I'm looking for the correct syntax to add a new managed device (serial number) into panorama, using API.
I tried lots of stuffs, but without success.
Does anybody can help me? or is it simply not supported?
Thx in advance,
Solved! Go to Solution.
The call to add a firewall with serial number 12345 is:
If you're curious how I ended up finding the syntax, I used Web UI Debug to look at the call that was done when I added the serial number.
I alreaydy tried this syntax, I got an error:
"a duplicate parameter was found in the argument string (name)"
I am pushing the API request from Ansible via a curl command.
If i do it from the shell directly, I got HTTP/1.1 404 Not Found
Have you tested it ?
I used WebUI, CLI debug and API Browser to search if I missed something:
<request cmd="add" obj="/config/mgt-config/devices" cookie="2012481505869557" target="panorama">
<request cmd="set" obj="/config/mgt-config/devices" cookie="3769490762205842"><entry name='111111111111111'/></request>
cmd action is different, but both work. Only from API I cannot get it working :(
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!