Tag Archives: palo alto rest api

[python]Exception handling with pan-python

pan.xapi has its own error handling, so on previous post i updated the code with exception handling. I actually tested with wrong credential, I could see the http 403 forbidden error raised. Which is good, as I would know what … Continue reading

Posted in Python, Scripting | Tagged , , , , | Leave a comment

[python]Working with Palo Alto firewall API with pan-python module

This is another demonstration on the use of pan-python module. The usage documentation can be found in github. This is a simple demonstration on using the pan.xapi module from pan-python. Only changes the device configuration time settings. The demo uses … Continue reading

Posted in Python, Scripting | Tagged , , | Leave a comment

[python]Trying the operation command api in Palo Alto Firewall

This code sample uses requests and beautifulsoup4 modules to manipulate data extracted with PA’s REST API. PA only supports xml though. The requests is to use the GET method when calling REST API, the beautifulsoup4 is to easily extract the … Continue reading

Posted in Python, Scripting | Tagged , , | Leave a comment