test_security_policy_match
Check which security policy rule matches a network flow by querying the managed firewall's ground truth, including local rules and user-based conditions.
Instructions
[READ-ONLY] Asks a managed firewall which security rule matches a flow (test security-policy-match). This is the ground truth, including local rules invisible from Panorama. Include source_user so user/group-based rules are evaluated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Destination zone (post-NAT) | |
| from | No | Source zone | |
| device | No | Specific firewall (hostname or serial). Usually omit it: the firewall is chosen from device_group, or from the user's/IP's recent traffic. | |
| source | Yes | Source IP | |
| category | No | URL category | |
| firewall | No | Panorama entry from firewalls.json. Optional when a single Panorama is configured. | |
| protocol | No | IP protocol number (default 6 = TCP, 17 = UDP) | |
| show_all | No | Return every matching rule instead of the first one | |
| application | No | ||
| destination | Yes | Destination IP (pre-NAT) | |
| source_user | No | User name, with or without domain (e.g. 'jdoe' or 'corp\\jdoe') | |
| device_group | No | Device group name (includes what it inherits from shared and parent groups), or 'shared'. When omitted, every location is searched. | |
| destination_port | Yes |