panorama_add_pre_rule
Creates a security pre-rule in a Panorama device group, staged in candidate config. Commit and push to devices to activate it.
Instructions
[MODIFIES CONFIG] Creates a security pre-rule in a Panorama device group (pushed before local firewall rules). Staged in candidate config — requires 'panorama_commit' then 'panorama_push_to_devices' to activate.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device_group": "<device_group>",
"name": "<name>",
"from_zones": "<from_zones>",
"to_zones": "<to_zones>",
"source": "<source>",
"destination": "<destination>",
"application": "<application>",
"service": "<service>",
"action": "<action>"
},
"name": "panorama_add_pre_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Tags to apply to the rule | |
| name | Yes | Rule name | |
| action | Yes | Rule action | |
| source | Yes | Source addresses or 'any' | |
| log_end | No | Log at session end | |
| service | Yes | Services (e.g. ['application-default']) or 'any' | |
| disabled | No | Create rule in disabled state | |
| firewall | No | Target firewall name (from firewalls.json). Required when multiple firewalls are configured; optional otherwise. | |
| to_zones | Yes | Destination zones (e.g. ['untrust']) | |
| log_start | No | Log at session start | |
| from_zones | Yes | Source zones (e.g. ['trust', 'dmz']) | |
| application | Yes | Applications (e.g. ['web-browsing', 'ssl']) or 'any' | |
| description | No | Optional description | |
| destination | Yes | Destination addresses or 'any' | |
| device_group | Yes | Name of the device group | |
| profile_group | No | Security profile group name to apply |