unifi_reorder_firewall_policies
Reorder a zone pair's user-defined firewall policies by listing them before or after system-defined rules; previews the change unless confirm is true.
Instructions
Set the order of a zone pair's user-defined policies (official PUT /firewall/policies/ordering). Name every user-defined policy of the pair exactly once, by id or name, in beforeSystemDefined or afterSystemDefined. Always needs confirm: true; without it the tool previews the order before → after. System-defined policies can't be moved, and a pair holding IPS auto-blocks (no id in the API) can't be reordered here.
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": {
"sourceZone": "<sourceZone>",
"destinationZone": "<destinationZone>",
"beforeSystemDefined": "<beforeSystemDefined>"
},
"name": "unifi_reorder_firewall_policies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site name, id or reference; optional while the console has a single site | |
| confirm | No | Must be true to carry out a guarded change; without it the tool only previews it | |
| sourceZone | Yes | Source zone name or id | |
| destinationZone | Yes | Destination zone name or id | |
| afterSystemDefined | No | Policies evaluated after the system-defined ones, in order | |
| beforeSystemDefined | Yes | Policies evaluated before the system-defined ones, in order |