Skip to content

list_firewall_zones

List the Zone-Based Firewall zones on the controller (v2 API).

Side effects: None (read-only).

Zones are what list_firewall_policies records point at through source.zone_id and destination.zone_id, so this is the lookup that turns a policy into “WAN to LAN”. A site still on legacy rulesets returns [].

Returns one record per zone with _id, name, zone_key ("wan", "lan", …), default_zone, attr_no_edit and the network_ids the zone spans.

list_firewall_zones(controller="default")
Parameter Type Required Default Description
controller string no “default” Name of the UniFi controller to target. Defaults to "default".