Access the PAN-OS REST API
Table of Contents
9.1 (EoL)
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)
-
- 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)
End-of-Life (EoL)
Access the PAN-OS REST API
The PAN-OS REST API URL format includes a base
path and the URI for the endpoint:
curl -X GET "https://<IP address or FQDN>/restapi/<PAN-OS version>/<resource URI>."
The
base path includes the FQDN or IP address of the firewall or Panorama
and the version. The resource URI is the path for the resource or endpoint
you want to work with, and it corresponds with the resources you
can access on the web interface. Use the PAN-OS Web Interface Help to
familiarize yourself with the field properties, descriptions, and
supported values for each resource.
You can view the full
list of resources in the REST API Reference on the firewall or Panorama
at
https://<IP_address>/restapi-doc.
To
use the REST API, you must Enable API Access for your administrators
and Get Your API Key. See API Authentication and Security for details
on authenticating your API requests.
The following
table lists the PAN-OS 9.1 REST API resource URIs that are available
on the firewall. The resource URIs on Panorama are analogous except
that resources support both pre rule and post rule policies. The
PAN-OS 9.1 REST API resources offer abilities like managing policies on
the firewall or configuring SD-WAN interfaces and policies on Panorama.
To complete the configuration, you’ll need to use the XML API on
the firewall and Panorama.
Resource | URI |
---|---|
OBJECTS | /restapi/v9.1/Objects/Addresses |
/restapi/v9.1/Objects/AddressGroups | |
/restapi/v9.1/Objects/Regions | |
/restapi/v9.1/Objects/Applications | |
/restapi/v9.1/Objects/ApplicationGroups | |
/restapi/v9.1/Objects/ApplicationFilters | |
/restapi/v9.1/Objects/Services | |
/restapi/v9.1/Objects/ServiceGroups | |
/restapi/v9.1/Objects/Tags | |
/restapi/v9.1/Objects/GlobalProtectHIPObjects | |
/restapi/v9.1/Objects/GlobalProtectHIPProfiles | |
/restapi/v9.1/Objects/ExternalDynamicLists | |
/restapi/v9.1/Objects/CustomDataPatterns | |
/restapi/v9.1/Objects/CustomSpywareSignatures | |
/restapi/v9.1/Objects/CustomVulnerabilitySignatures | |
/restapi/v9.1/Objects/CustomURLCategories | |
/restapi/v9.1/Objects/AntivirusSecurityProfiles | |
/restapi/v9.1/Objects/AntiSpywareSecurityProfiles | |
/restapi/v9.1/Objects/VulnerabilityProtectionSecurityProfiles | |
/restapi/v9.1/Objects/URLFilteringSecurityProfiles | |
/restapi/v9.1/Objects/FileBlockingSecurityProfiles | |
/restapi/v9.1/Objects/WildFireAnalysisSecurityProfiles | |
/restapi/v9.1/Objects/DataFilteringSecurityProfiles | |
/restapi/v9.1/Objects/DoSProtectionSecurityProfiles | |
/restapi/v9.1/Objects/SecurityProfileGroups | |
/restapi/v9.1/Objects/LogForwardingProfiles | |
/restapi/v9.1/Objects/AuthenticationEnforcements | |
/restapi/v9.1/Objects/DecryptionProfiles | |
/restapi/v9.1/Objects/DecryptionForwardingProfiles | |
/restapi/v9.1/Objects/Schedules | |
/restapi/v9.1/Objects/SDWANPathQualityProfiles | |
/restapi/v9.1/Objects/SDWANTrafficDistributionProfiles | |
POLICIES | /restapi/v9.1/Policies/SecurityRules |
/restapi/v9.1/Policies/NATRules | |
/restapi/v9.1/Policies/QoSRules | |
/restapi/v9.1/Policies/PolicyBasedForwardingRules | |
/restapi/v9.1/Policies/DecryptionRules | |
/restapi/v9.1/Policies/TunnelInspectionRules | |
/restapi/v9.1/Policies/ApplicationOverrideRules | |
/restapi/v9.1/Policies/AuthenticationRules | |
/restapi/v9.1/Policies/DoSRules | |
/restapi/v9.1/Policies/SDWANRules | |
NETWORK | /restapi/v9.1/Network/SDWANInterfaces |
/restapi/v9.1/Network/SDWANInterfaceProfiles | |
/restapi/v9.1/Network/EthernetInterfaces | |
/restapi/v9.1/Network/TunnelIntefaces | |
/restapi/v9.1/Network/Zones | |
/restapi/v9.1/Network/VirtualRouters | |
/restapi/v9.1/Network/QoSInterfaces | |
DEVICE | /restapi/v9.1/Device/VirtualSystems |