查询安全组规则
功能介绍
查询单个安全组规则。
调试
您可以在API Explorer中调试该接口。
URI
GET /v1/{project_id}/security-group-rules/{security_group_rule_id}
请求参数
无
请求示例
GET https://{Endpoint}/v1/{project_id}/security-group-rules/2bc0accf-312e-429a-956e-e4407625eb62
  响应参数
| 名称 | 参数类型 | 说明 | 
|---|---|---|
| security_group_rule | security_group_rule object | 安全组规则对象,请参见表3。 | 
| 名称 | 参数类型 | 说明 | 
|---|---|---|
| id | String | 安全组规则标识。 | 
| description | String | 
 | 
| security_group_id | String | 安全组标识。 | 
| direction | String | 
 | 
| ethertype | String | 
 | 
| protocol | String | 
 | 
| port_range_min | Integer | 
 | 
| port_range_max | Integer | 
 | 
| remote_ip_prefix | String | 
 | 
| remote_group_id | String | 
 | 
| remote_address_group_id | String | 
 | 
| tenant_id | String | 
 | 
响应示例
{
    "security_group_rule": {
        "direction": "ingress", 
        "ethertype": "IPv4", 
        "id": "2bc0accf-312e-429a-956e-e4407625eb62", 
        "description":"",
        "port_range_max": 80, 
        "port_range_min": 80, 
        "protocol": "tcp", 
        "remote_group_id": "85cc3048-abc3-43cc-89b3-377341426ac5", 
        "remote_ip_prefix": null, 
        "security_group_id": "a7734e61-b545-452d-a3cd-0189cbd9747a", 
        "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550",
        "remote_address_group_id": null
    }
}
  状态码
请参见状态码。
错误码
请参考错误码。
 
  