PAN-OS has a very comprehensive XML API, and you'll find under the hood that the PAN-OS web GUI itself uses this API (try browsing to https://{{yourdevice}}/api or https://{{yourdevice}}/debug and have a look around).

In 2019, I'd recommend that your automation efforts should focus on Ansible and Terraform to achieve your objectives, or if you're using Python or Golang then use the relevant SDK

However, there are occasions like testing or development where a quick shell script is useful, and for this you may want to call the PAN-OS XML API directly. There is plenty of documentation for the XML API, but as an addendum, I've started collating useful examples of API calls. You can find them here.

--- home --- twitter --- linkedin ---