unifi_firewall_policies
Create, list, update, reorder, and delete UniFi firewall policies with filtering and pagination.
Instructions
Firewall policies and their ordering. Operations:
list (Read): List Firewall Policies
create (Create): Create Firewall Policy
get_ordering (Read): Get User-Defined Firewall Policy Ordering
update_ordering (Update): Reorder User-Defined Firewall Policies
delete (Destructive): Delete Firewall Policy — requires confirm: true
get (Read): Get Firewall Policy
patch (Update): Patch Firewall Policy
update (Update): Update Firewall Policy List results are pages: { offset, limit (max 200), count, totalCount, data[] }. Filtering: pass filter as property.function(args); combine with and(...), or(...), not(...). Functions: eq, ne, gt, ge, lt, le, like, in, notIn, isNull, isNotNull; SET: contains, containsAny, containsAll, containsExactly, isEmpty. Strings use single quotes ('guest'); like patterns: '.'=one char, '*'=any run, ''=escape. For request-body shapes call unifi_spec with { operation: "unifi_firewall_policies." }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body for: create, update_ordering, patch, update. Exact schema via unifi_spec. | |
| limit | No | Page size (default 25, max 200). Used by: list. | |
| filter | No | Filter expression (see tool description). Used by: list. | |
| offset | No | Pagination offset (default 0). Used by: list. | |
| siteId | No | siteId (uuid). Used by: list, create, get_ordering, update_ordering, delete, get, patch, update. | |
| confirm | No | Must be true to execute: delete. These change or remove live configuration. | |
| consoleId | No | Cloud mode only: the console to target. Discover IDs with unifi_consoles. Ignored in direct (single-console) mode. | |
| operation | Yes | Which operation to perform. | |
| firewallPolicyId | No | firewallPolicyId (uuid). Used by: delete, get, patch, update. | |
| sourceFirewallZoneId | No | sourceFirewallZoneId (uuid). Used by: get_ordering, update_ordering. | |
| destinationFirewallZoneId | No | destinationFirewallZoneId (uuid). Used by: get_ordering, update_ordering. |