- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-25-2019 10:32 AM
This would depend. Are you currently managing your licenses through Panorama? You could confirm whether you see your licenses under Panorama > Device Deployment > Licenses or the "request batch license..." CLI commands.
If you are, you'd just do the
/api/?type=op&cmd=<request><batch><license><info></info></license></batch></request>
but realistically if you had these here, I suspect you'd just view the information in this tab. If the licenses aren't being managed by Panorama, Panorama also has the ability to redirect API calls to the firewalls using the "target=" parameter. This would involved taking an input of the serial numbers of your firewalls (either manually or programmatically using the API call for "show devices connected".
This process is explained a little more in depth in the "Query a Firewall from Panorama" section of the XML API Guide. But essentially, you'd want to iterate over all your serial numbers and do the following call:
/api/?type=op&cmd=<request><license><info></info></license></request>&target=XYZ&key=ABC
where XYZ was the serial number of an individual firewall and ABC was the API key.
03-01-2019 06:14 AM
Thanks, Could you provide me exact api syntax to use. When i enter
https://<panaroma ip>/api/?type=op&cmd=<request><batch><license><info></info></license></batch></request>
it results in error.
Thanks
Amar
03-01-2019 10:16 AM
Are you specifiying the API key? Our XMl API guide is a great resource for building your API calls.
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!