unifi_console_firewall_policy_hits
List UniFi firewall policies with hit counts and last-hit times to audit rule usage and find unused, noisy, or stale rules.
Instructions
List zone-based firewall policies with hit counts and last-hit time, for audits.
Finds unused rules (zero hits), noisy rules and stale rules. The Integration API does not expose hit counts. Read-only: to change policies use the existing firewall tools.
Returns JSON: {"ok", "meta", "data": [{"name", "id", "index", "action", "enabled", "predefined", "hits", "last_hit", "logging", "source_zone", "destination_zone"}]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |