Update Firewall Rule
vps_firewall_update_ruleUpdate an existing VPS firewall rule by specifying its ID and new parameters for protocol, port, source, action, or direction.
Instructions
Update an existing firewall rule.
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": {
"firewall_id": "<firewall_id>",
"rule_id": "<rule_id>",
"protocol": "<protocol>",
"port": "<port>",
"source": "<source>"
},
"name": "vps_firewall_update_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Port or range | |
| action | No | accept or drop | |
| source | Yes | Source IP/CIDR | |
| rule_id | Yes | Rule ID | |
| protocol | Yes | Protocol: tcp, udp, icmp | |
| direction | No | inbound or outbound | |
| firewall_id | Yes | Firewall ID |