vpc_add_sg_rule
Add a rule to a security group in IBM Cloud VPC, specifying direction, protocol, port range, and remote CIDR.
Instructions
Add a rule to a security group
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": {
"sg_id": "<sg_id>",
"direction": "<direction>",
"protocol": "<protocol>"
},
"name": "vpc_add_sg_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sg_id | Yes | ||
| direction | Yes | ||
| protocol | Yes | ||
| port_min | No | ||
| port_max | No | ||
| remote_cidr | No | e.g. 0.0.0.0/0 | |
| region | No |