Skip to content

list_firewall_groups

List reusable firewall groups (address, IPv6-address, and port groups).

Side effects: None (read-only).

Firewall groups are named, reusable sets of addresses or ports that firewall rules and other policies reference by _id instead of repeating literals. Returns one record per group with _id, name, group_type (address-group/ipv6-address-group/ port-group), and group_members (the list of CIDRs, IPs, or ports).

list_firewall_groups(controller="default")
ParameterTypeRequiredDefaultDescription
controllerstringno”default”Name of the UniFi controller to target. Defaults to "default".