create_firewall_rule
Creates a firewall rule for a public IP address in CloudStack, allowing you to control inbound traffic by protocol, port range, and CIDR list.
Instructions
Create a 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": {
"ipaddressid": "<ipaddressid>",
"protocol": "<protocol>"
},
"name": "create_firewall_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endport | No | End port | |
| cidrlist | No | CIDR list (comma-separated) | |
| protocol | Yes | Protocol (tcp, udp, icmp) | |
| startport | No | Start port | |
| ipaddressid | Yes | Public IP address ID |