Access the PAN-OS REST API

The PAN-OS REST API URL format includes a base path and the URI for the endpoint.
https://<IP address or FQDN>/restapi/<PAN-OS version>/<resource URI>, where:
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.
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.0 REST API resource URIs that are available for use. These resources allows you to manage policies on the firewall. You can view this list of resources in the REST API Reference on the firewall or Panorama at https://<IP_address>/restapi-doc. To complete the configuration, you’ll need to use the XML API on the firewall and Panorama.
ResourceURI
OBJECTS
/restapi/9.0/Objects/Addresses
/restapi/9.0/Objects/AddressGroups
/restapi/9.0/Objects/Regions
/restapi/9.0/Objects/Applications
/restapi/9.0/Objects/ApplicationGroups
/restapi/9.0/Objects/ApplicationFilters
/restapi/9.0/Objects/Services
/restapi/9.0/Objects/ServiceGroups
/restapi/9.0/Objects/Tags
/restapi/9.0/Objects/GlobalProtectHIPObjects
/restapi/9.0/Objects/GlobalProtectHIPProfiles
/restapi/9.0/Objects/ExternalDynamicLists
/restapi/9.0/Objects/CustomDataPatterns
/restapi/9.0/Objects/CustomSpywareSignatures
/restapi/9.0/Objects/CustomVulnerabilitySignatures
/restapi/9.0/Objects/CustomURLCategories
/restapi/9.0/Objects/AntivirusSecurityProfiles
/restapi/9.0/Objects/AntiSpywareSecurityProfiles
/restapi/9.0/Objects/VulnerabilityProtectionSecurityProfiles
/restapi/9.0/Objects/URLFilteringSecurityProfiles
/restapi/9.0/Objects/FileBlockingSecurityProfiles
/restapi/9.0/Objects/WildFireAnalysisSecurityProfiles
/restapi/9.0/Objects/DataFilteringSecurityProfiles
/restapi/9.0/Objects/DoSProtectionSecurityProfiles
/restapi/9.0/Objects/SecurityProfileGroups
/restapi/9.0/Objects/LogForwardingProfiles
/restapi/9.0/Objects/AuthenticationEnforcements
/restapi/9.0/Objects/DecryptionProfiles
/restapi/9.0/Objects/DecryptionForwardingProfiles
/restapi/9.0/Objects/Schedules
POLICIES
/restapi/9.0/Policies/SecurityRules
/restapi/9.0/Policies/NATRules
/restapi/9.0/Policies/QoSRules
/restapi/9.0/Policies/PolicyBasedForwardingRules
/restapi/9.0/Policies/DecryptionRules
/restapi/9.0/Policies/TunnelInspectionRules
/restapi/9.0/Policies/ApplicationOverrideRules
/restapi/9.0/Policies/AuthenticationRules
/restapi/9.0/Policies/DoSRules

Related Documentation