Change VPS Firewall IP Set
mutate_vserver_firewall_ipsetCreate or delete a VPS firewall IP set, or add/remove an address (cidr). Rules reference a set as +name. Requires confirm=true. Requires an active ZapX Pass (see server instructions).
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": {
"serviceId": "<serviceId>",
"action": "<action>",
"name": "<name>"
},
"name": "mutate_vserver_firewall_ipset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cidr | No | add_entry/remove_entry: IP address or CIDR, e.g. 203.0.113.7 or 198.51.100.0/24. | |
| name | Yes | IP set name (letters, digits, - and _). Use it in rules as +name. | |
| action | Yes | ||
| comment | No | add_entry: free text comment. | |
| confirm | No | ||
| serviceId | Yes | ID of the VPS: the "id" field from list_account_services or list_vservers (e.g. "cmabc123..."). The numericId shown in the panel (e.g. "180") is accepted too. IDs of other service types do not work here. |