Skip to content

type=upload

Sven Waschkut edited this page Feb 7, 2022 · 1 revision

upload full config

  • from local file system to your PAN-OS Firewall or Panorama pan-os-php type=upload in=local.xml out=api://192.169.50.10 preserveMgmtsystem injectUserAdmin2 loadAfterUpload

  • from PAN-OS Firewall or Panorama (backup to local file system) pan-os-php type=upload in=api://192.169.50.10 out=local.xml

upload partial config; like "load config partial" on PAN-OS

  • local file vsys1
    • address / address-group / service / service-group / tag
  • to vsys1 on PAN-OS production Firewall

pan-os-php type=upload in=local.xml out=api://192.168.50.10 'fromXpath=/config/devices/entry[@name="localhost.localdomain"]/vsys/entry[@name="vsys1"]/*[name()="address" or name()="address-group" or name()="service" or name()="service-group" or name()="tag"]' 'toXpath=/config/devices/entry[@name="localhost.localdomain"]/vsys/entry[@name="vsys1"]' shadow-apikeynohidden