Xem chi tiết security group rule
GET
/v2.0/security-group-rules/{security_group_rule_id}Trả về một rule với direction, ethertype, protocol, dải port và phạm vi remote. Dùng để xác nhận rule thực sự cho phép gì trước khi bạn nhân bản hoặc xoá nó.
info
Nguồn: show-security-group-rule
Request
Tham số
security_group_rule_idstringbắt buộcpathID của rule.
verbosebooleanqueryTrả về thông tin chi tiết.
fieldsstringqueryChỉ trả về các thuộc tính được liệt kê. Có thể lặp lại.
Request mẫu
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
Response mẫu
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
}
}
Mã trạng thái
Thành công
| Mã | Mô tả |
|---|---|
| 200 - OK | Request thành công. |
Lỗi
| Mã | Mô tả |
|---|---|
| 401 - Unauthorized | Cần xác thực trước khi gửi request. |
| 403 - Forbidden | Policy không cho phép user hiện tại thực hiện thao tác này. |
| 404 - Not Found | Rule không tồn tại, hoặc không hiển thị với project của bạn. |