- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
08-03-2018 05:07 PM - edited 08-04-2018 08:54 AM
I am trying to add a PA-VM to the Panorama using the Panorama API.
I try:
https://1.0.20.30.40//api/?key=LUFRPT0zAndSoOnAndSoOnAndSoOn=&type=config&action=set&xpath=/config/devices/entry[@name='all']&element=<serial>12345678012345</serial>
and I get :
StatusCode : 200
StatusDescription : OK
Content : <response status="error" code="12"><msg><line>At most 1 occurrence is allowed for devices/entry</line></msg></response>
To show devices the the commad is:
/api/?type=op&cmd=<show><devices><all></all></devices></show>
or
/api/?type=op&cmd=<show><devices><connected></connected></devices></show>
What is the correct API call to add a serial number to the Panorama?
thanks
Roger
08-04-2018 05:03 PM
This works
https://FW_IP/api/?type=config&action=set&key=API_KEY&xpath=/config/mgt-config/devices&element=<entr... name='SERIAL_NUMBER'/>
08-04-2018 02:15 PM
Getting closer, but not quite
api/?type=config&action=set&key=LUFRPT0zAndSoOnAndSoOnAndSoOn&xpath=/config/mgt-config/devices/entry/[@name='12345678012345']
08-04-2018 05:03 PM
This works
https://FW_IP/api/?type=config&action=set&key=API_KEY&xpath=/config/mgt-config/devices&element=<entr... name='SERIAL_NUMBER'/>
08-05-2018 01:29 PM
Just FYI, and I forget to do it often as well, but when passing along API values you should put it in a Code box. This stops Live from auto-formating the API request as an actual hyperlink, which often breaks longer URLs and makes it difficult for people to see what they should actually be using.
😉
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!