panorama_remove_ipsec_candidate
Plan and apply removal of owned IPsec resources from Panorama candidate config. Plan mode previews deletion; apply mode deletes only owned resources with snapshot and auto-restore on failure.
Instructions
[DESTRUCTIVE] Two-phase removal of owned IPsec resources. mode 'plan' returns a removal plan; mode 'apply' requires the returned plan_id and plan_hash and deletes only owned resources, snapshotting first and auto-restoring on failure. Candidate configuration only; no commit or push is performed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | plan returns a removal plan; apply deletes owned resources | |
| vsys | No | Virtual system name | vsys1 |
| serial | No | Managed firewall serial number. OPTIONAL — auto-resolved from the template's device assignment when omitted. Only supply it when the template is bound to more than one device. | |
| plan_id | No | Required for mode 'apply' | |
| tunnels | No | Optional deployment spec (1 or 2 tunnels). When supplied, resource names are derived from the spec instead of legacy fixture defaults so the correct owned resources are removed. | |
| firewall | No | Target firewall name (from firewalls.json). Required when multiple firewalls are configured; optional otherwise. | |
| template | Yes | Panorama template name (one per firewall) | |
| plan_hash | No | Required for mode 'apply' | |
| deployment | Yes | Short unique label for this deployment (e.g. 'istanbul-branch-01'). Every created object is prefixed with it, and it must not collide with any existing name — it is the ownership boundary that keeps prod safe. | |
| virtualRouter | No | Virtual router name (Legacy Virtual Router). OPTIONAL — auto-detected from the template's single virtual-router when omitted. Falls back to 'default'/'vr_root' if detection is inconclusive. | |
| ikeCryptoProfiles | No | ||
| ipsecCryptoProfiles | No |