- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-26-2025 01:17 PM
Hi All,
I am trying to explore Python SDK related to panorama /pan os upgrade.
Any suggestion for starting point ?
05-28-2025 02:30 AM
Hi @D.Verma502651 ,
Here are a some starting points for Python SDKs.
Pan-os-python (previously pandevice) is the Python SDK from Palo Alto Networks for interacting with PAN-OS devices, including Panorama. It simplifies the XML API and lets you manage devices using Python-friendly code: https://github.com/PaloAltoNetworks/pandevice
Other resources: https://pandevice.readthedocs.io/en/latest/
Hope these help,
Kim.
05-28-2025 02:39 PM
I'm probably an outlier with this, but I personally find it easier to not work with any of the available SDKs and just building out the API calls needed and parsing them myself. There's been multiple instances so far where the SDKs are slow to get updated to account for changes, and some things that they just don't account for very well where you might need to fallback to the actual XML API anyways.
I personally feel like they get you into the door so to speak with using the API quick and easy, but you'll find instances where it just doesn't work that well. In my mind, if you're needing to build out API calls and parsing manually for a task then you mise as well be doing all of it.
05-28-2025 02:30 AM
Hi @D.Verma502651 ,
Here are a some starting points for Python SDKs.
Pan-os-python (previously pandevice) is the Python SDK from Palo Alto Networks for interacting with PAN-OS devices, including Panorama. It simplifies the XML API and lets you manage devices using Python-friendly code: https://github.com/PaloAltoNetworks/pandevice
Other resources: https://pandevice.readthedocs.io/en/latest/
Hope these help,
Kim.
05-28-2025 02:39 PM
I'm probably an outlier with this, but I personally find it easier to not work with any of the available SDKs and just building out the API calls needed and parsing them myself. There's been multiple instances so far where the SDKs are slow to get updated to account for changes, and some things that they just don't account for very well where you might need to fallback to the actual XML API anyways.
I personally feel like they get you into the door so to speak with using the API quick and easy, but you'll find instances where it just doesn't work that well. In my mind, if you're needing to build out API calls and parsing manually for a task then you mise as well be doing all of it.
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!