Admin-Level Commit and Revert using API

The PAN-OS XML API now supports Admin-Level Commit and Revert for firewall or Panorama configuration changes. Use the API within your script, application, or service to automate firewall and Panorama configuration changes without affecting pending changes by other administrators.
  • Commit admin-level changes on a firewall or Panorama while excluding shared objects—Include the administrator name in the request.
    https://firewall/api/?key=apikey&type=commit&action=partial&cmd=<commit><partial><device-and-network>excluded</device-and-network><shared-object>excluded</shared-object><admin><member>admin-name</member></admin></partial>
  • Revert admin-level changes on a firewall—Include the administrator name in the request.
    https://firewall/api/?key=apikey&type=op&cmd=<revert><config><partial><admin><member>admin-name</member></admin></partial></config></revert>
  • Revert admin-level changes to Panorama by a specific administrator within a specific device group—Include the administrator name and the device group where Panorama will revert changes.
    https://panorama/api/?key=apikey&type=op&cmd=<revert><config><partial><admin><member>admin-name</member></admin><device-group><member>device-group-name</member></device-group><no-template/><no-template-stack/><no-log-collector-group/><no-log-collector/><device-and-network>excluded</device-and-network></partial></config></revert>

Related Documentation