PAN-OS XML REST-API - Proxy to Firewall from Panorama

If you are familiar with Palo Alto Networks XML API, here is an extremely easy way to proxy API requests from Panorama to connected firewalls.

PAN-OS XML REST-API - Proxy to Firewall from Panorama
Photo by Jakob Søby / Unsplash
curl --location -g --request GET 'https://<ip/host>/api/?type=config&action=get&xpath=/config/devices/entry/vsys/entry[@name='\''vsys1'\'']/rulebase/security&key=<token>&target=<fw_serial>'
Example of API proxy from Panorama to firewall

Get Candidate Configuration

Subscribe to Devtooler

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
[email protected]
Subscribe