get_config
Reads configuration XML at a specified XPath from the firewall or Panorama candidate buffer, letting you verify staged candidate changes or review committed settings without modifying anything.
Instructions
[READ-ONLY] Reads configuration XML at a specific XPath location from the firewall/Panorama candidate buffer. Use this to verify staged candidate changes (look for dirtyId="2" admin="admin" attributes on tags — those mark uncommitted candidate state) or to read committed config. Does not modify anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xpath | Yes | XPath to the configuration element to read (e.g., '/config/devices/entry[@name="localhost.localdomain"]/template/entry[@name="TMPL-BRANCH"]/config/devices/entry[@name="localhost.localdomain"]/vsys/entry[@name="vsys1"]/zone') | |
| format | No | Response format. Defaults to the existing parsed JSON response; 'xml' returns sanitized result XML. | |
| firewall | No | Target firewall name (from firewalls.json). Required when multiple firewalls are configured; optional otherwise. | |
| metadata_only | No | Return only xpath/existence/admin/dirtyId/time candidate metadata. Defaults to false. | |
| redact_secrets | No | Compatibility option for generic/non-sensitive redaction policy. PAN-OS pre-shared-key and key values are always redacted regardless of this value. |