[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 the module to set the time zone and ntp primary and secondary addresses. To reduce … Continue reading [python]Working with Palo Alto firewall API with pan-python module

[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 content of a xml element. I encounter some issues when working with xml element that … Continue reading [python]Trying the operation command api in Palo Alto Firewall