How to commit to Panorama using XML API Request?

How to commit to Panorama using XML API Request?

3146
Created On 01/24/23 09:01 AM - Last Modified 10/19/23 20:53 PM


Objective


The objective of this article is to show how to commit locally to Panorama using XML API Request.

Environment


  • Panorama appliances.
  • All PAN-OS versions.


Procedure


  1. The XML API Guide provides information on "Commit " and "Commit all " API requests
  2. An example of "commit-all" from Panorama is shown below.
  • From the browser, use below API request to commit locally to Panorama:
     https://<PANORAMA_IP>/api/?type=commit&key=<KEY>&cmd=<commit-all><shared-policy><device-group></device-group></shared-policy></commit-all>
  • Or via cURL call: 
    curl -k 'https://<PANORAMA_IP>/api/?type=commit&key=<KEY>&cmd=<commit-all><shared-policy><device-group></device-group></shared-policy></commit-all>'


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000kGU5CAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail