create_firewall_group_rule
Add a rule to a firewall security group, specifying action (ACCEPT/DROP/REJECT), direction (in/out), enable status, and optional source, destination, protocol, ports, macro, or comment.
Instructions
Add a rule to a firewall security group.
Args: group: Security group name. action: 'ACCEPT', 'DROP', 'REJECT'. type: 'in', 'out'. enable: 1 = enabled, 0 = disabled. source: Source address/range. dest: Destination address/range. proto: Protocol. sport: Source port(s). dport: Destination port(s). macro: Predefined macro. comment: Description.
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": {
"group": "<group>",
"action": "<action>",
"type": "<type>"
},
"name": "create_firewall_group_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest | No | ||
| type | Yes | ||
| dport | No | ||
| group | Yes | ||
| macro | No | ||
| proto | No | ||
| sport | No | ||
| action | Yes | ||
| enable | No | ||
| source | No | ||
| comment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |