Skip to content

API mode syntax to download PAN OS configuration file

Sven Waschkut edited this page Feb 6, 2023 · 3 revisions

command

  • type=upload in=api://[MGMT-IP] out=candidate-config.xml per default 'candidate-config' is downloaded

  • possible config files:

    • type=upload in=api://[MGMT-IP]/candidate-config out=candidate-config.xml
    • type=upload in=api://[MGMT-IP]/running-config out=running-config.xml
    • type=upload in=api://[MGMT-IP]/merged-config out=merged-config.xml
    • type=upload in=api://[MGMT-IP]/panorama-pushed-config out=panorama-pushed-config.xml
  • use Panorama as proxy to connect to FW:

    • type=upload in=api://[FW-SERIAL]@[Panorama-MGMT-IP] out=candidate-config.xml

the easiest way to execute PAN-OS-PHP is running the available Docker container:

docker run --name panosphp --rm -v ${PWD}:/share -it swaschkut/pan-os-php:latest type=upload in=api://[MGMT-IP] out=/share/candidate-config.xml