Change a firewall rule
update_firewall_ruleChange a firewall rule from list_firewall_rules: its ports, protocol, sources or description. Fields you leave out stay as they are; sources replaces the whole list. Applies to running machines within about a minute.
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": {
"id": "<id>"
},
"name": "update_firewall_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Rule ID from list_firewall_rules | |
| ports | No | A port like "8080" or a range like "8000-8100" | |
| sources | No | ["anywhere"], or IP addresses and CIDR ranges, IPv4 or IPv6 | |
| protocol | No | ||
| workspace | No | Workspace ID (optional: defaults to the authenticated workspace) | |
| description | No | ||
| environment | No | Environment name (optional: defaults to the environment this session acts in) |