Create ACL Rule
unifi_create_acl_ruleCreate a UniFi layer-2/switch ACL rule to allow or block traffic by defining action, filters, and enforcing devices; confirm changes before applying.
Instructions
Create a layer-2/switch ACL rule. 'config' requires action (ALLOW/BLOCK), enabled, name, type; plus sourceFilter/destinationFilter/enforcingDeviceFilter as needed. Model it on an existing rule fetched via unifi_get_acl_rule. CAUTION: changes switching-level access; confirm with the user.
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": {
"config": "<config>"
},
"name": "unifi_create_acl_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Full ACL rule object. Required: action, enabled, name, type. See unifi_get_acl_rule for the filter shapes. A config with any value still containing "[redacted]" (how reads show credentials) is refused: put the real value in, or leave the field out. | |
| siteId | No | Site ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically. |