Get security group
get_security_groupRetrieve a single security group by ID with all rules—direction, protocol, ports, and remote targets. Use list_security_groups to find the ID by name first.
Instructions
Get one security group by ID with all its rules: direction, protocol, ports, remote.
Use list_security_groups to find IDs by name. Returns not_found if the group is not visible to the selected project.
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": {
"security_group_id": "<security_group_id>"
},
"name": "get_security_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Project ID to work in; omit for the default project. Allowed values are listed by get_scope. | |
| security_group_id | Yes | Security group ID, as returned by list_security_groups. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | No | ||
| stateful | No | ||
| project_id | No | ||
| description | No | ||
| security_group_rules | No |