List firewall groups
unifi_list_firewall_groupsList a site's legacy firewall groups—address, IPv6 address, and port groups—from the classic controller API to retrieve IDs used by legacy firewall rules.
Instructions
List the site's firewall groups (address, IPv6 address and port groups) from the classic controller API (rest/firewallgroup), whole and unpaged. Legacy firewall rules reference these by ID. IDs are the classic controller's _id values, which differ from Integration API IDs: do not pass one to an Integration API tool, or the reverse.
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": {
"siteReference": "<siteReference>"
},
"name": "unifi_list_firewall_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteReference | Yes | Site internalReference from unifi_list_sites (often default), not the Integration API UUID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| count | Yes | ||
| siteReference | Yes |