Python SDK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Python SDK

L0 Member

Hi All,
I am trying to explore Python SDK related to panorama /pan os upgrade. 
Any suggestion for starting point ?

2 accepted solutions

Accepted Solutions

Community Team Member

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.

 

LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

View solution in original post

Cyber Elite
Cyber Elite

@D.Verma502651,

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.

View solution in original post

2 REPLIES 2

Community Team Member

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.

 

LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

Cyber Elite
Cyber Elite

@D.Verma502651,

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.

  • 2 accepted solutions
  • 321 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!