Get Security Group Rule Details
GET
/v2.0/security-group-rules/{security_group_rule_id}Returns one rule with its direction, ethertype, protocol, port range, and remote scope. Use it to confirm what a rule actually allows before you duplicate or delete it.
info
Source: show-security-group-rule
Request
Parameters
security_group_rule_idstringrequiredpathThe ID of the rule.
verbosebooleanqueryReturn detailed information.
fieldsstringqueryReturn only the listed attributes. Can be repeated.
Sample Request
curl -ks -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://api.vietnix.cloud:9696/v2.0/security-group-rules/{security_group_rule_id}
Response
Sample Response
Response body
{
"security_group_rule": {
"id": "5c9f3a21-7d4e-4b8f-a0c6-3e2d1b0a9f88",
"security_group_id": "e7489f02-f846-46f2-9edf-cc5a2640041a",
"direction": "ingress",
"ethertype": "IPv4",
"protocol": "tcp",
"port_range_min": 22,
"port_range_max": 22,
"remote_ip_prefix": "203.0.113.0/24",
"remote_group_id": null,
"remote_address_group_id": null,
"description": "SSH from office network",
"tenant_id": "f5d834d636c642c7bfe8af86139c6f26",
"project_id": "f5d834d636c642c7bfe8af86139c6f26",
"created_at": "2026-02-11T08:24:02Z",
"updated_at": "2026-02-11T08:24:02Z",
"revision_number": 1
}
}
Status Code
Success
| Status Code | Description |
|---|---|
| 200 - OK | Request was successful. |
Error
| Status Code | Description |
|---|---|
| 401 - Unauthorized | User must authenticate before making a request. |
| 403 - Forbidden | Policy does not allow current user to do this operation. |
| 404 - Not Found | The rule does not exist, or is not visible to your project. |