Set Configuration
Table of Contents
Expand all | Collapse all
-
- Upgrade a Firewall to the Latest PAN-OS Version (API)
- Show and Manage GlobalProtect Users (API)
- Query a Firewall from Panorama (API)
- Upgrade PAN-OS on Multiple HA Firewalls through Panorama (API)
- Automatically Check for and Install Content Updates (API)
- Enforce Policy using External Dynamic Lists and AutoFocus Artifacts (API)
- Configure SAML 2.0 Authentication (API)
- Quarantine Compromised Devices (API)
- Manage Certificates (API)
-
- Asynchronous and Synchronous Requests to the PAN-OS XML API
- Run Operational Mode Commands (API)
- Apply User-ID Mapping and Populate Dynamic Groups (API)
- Get Version Info (API)
-
- PAN-OS REST API
- Access the PAN-OS REST API
- Resource Methods and Query Parameters (REST API)
- PAN-OS REST API Request and Response Structure
- PAN-OS REST API Error Codes
- Work With Objects (REST API)
- Create a Security Policy Rule (REST API)
- Work with Policy Rules on Panorama (REST API)
- Create a Tag (REST API)
- Configure a Security Zone (REST API)
- Configure an SD-WAN Interface (REST API)
- Create an SD-WAN Policy Pre Rule (REST API)
- Configure an Ethernet Interface (REST API)
- Update a Virtual Router (REST API)
- Work With Decryption (APIs)
Set Configuration
Useaction=set to add or create
a new object at a specified location in the PAN-OS configuration.
Use thexpath parameter to specify the location
of the object in the configuration. For example, if you are adding
a new rule to the security rulebase, the xpath-value would be:
/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security
Use theelement parameter to specify a
value for the object you are adding or creating using XML.
Configuration Node | API Request |
---|---|
Create a new rule called rule1 in security policy | where the xpath-value is: and the element-value is:
|
Add an additional member to an address group
or list | Include the 'list' node in the xpath using themember[text()='name'] syntax
and include the members in the element parameter. For example, to add
an additional static address object namedabc to
an address group namedtest, use:
|
Create a new IP address on a specific interface | Specify the interface and IP address in
the request:
|
Enable or disable a security rule | Altenatively, use<disabled>no</disabled> to enable a rule. |