功能介紹
查詢單個安全組。
調(diào)試
您可以在API Explorer中調(diào)試該接口。
請求參數(shù)
無
請求示例
GET https://{Endpoint}/v1/{project_id}/security-groups/16b6e77a-08fa-42c7-aa8b-106c048884e6
響應(yīng)參數(shù)
| 
 名稱  | 
 參數(shù)類型  | 
 說明  | 
|---|---|---|
| 
 name  | 
 String  | 
 安全組名稱  | 
| 
 description  | 
 String  | 
 安全組描述  | 
| 
 id  | 
 String  | 
 安全組唯一標識  | 
| 
 vpc_id  | 
 String  | 
 安全組所在的vpc的資源標識 說明:
 
該參數(shù)功能已廢棄,不建議繼續(xù)使用。 當前該參數(shù)只作提示用,不約束安全組在此vpc下。  | 
| 
 security_group_rules  | 
 默認安全組規(guī)則列表,保證安全組內(nèi)互通。  | 
|
| 
 enterprise_project_id  | 
 String  | 
 說明:
 
關(guān)于企業(yè)項目ID的獲取及企業(yè)項目特性的詳細信息,請參見《企業(yè)管理用戶指南》。  | 
| 
 名稱  | 
 參數(shù)類型  | 
 說明  | 
|---|---|---|
| 
 id  | 
 String  | 
 安全組規(guī)則標識  | 
| 
 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  | 
  | 
響應(yīng)示例
{
    "security_group": {
        "id": "16b6e77a-08fa-42c7-aa8b-106c048884e6", 
        "name": "qq", 
        "description": "qq", 
        "vpc_id": "3ec3b33f-ac1c-4630-ad1c-7dba1ed79d85", 
        "enterprise_project_id": "0aad99bc-f5f6-4f78-8404-c598d76b0ed2",
        "security_group_rules": [
            {
                "direction": "egress", 
                "ethertype": "IPv4", 
                "id": "369e6499-b2cb-4126-972a-97e589692c62", 
                "description": "",
                "security_group_id": "16b6e77a-08fa-42c7-aa8b-106c048884e6",
                "remote_address_group_id": null
            }, 
            {
                "direction": "ingress", 
                "ethertype": "IPv4", 
                "id": "0222556c-6556-40ad-8aac-9fd5d3c06171", 
                "description": "",
                "remote_group_id": "16b6e77a-08fa-42c7-aa8b-106c048884e6", 
                "security_group_id": "16b6e77a-08fa-42c7-aa8b-106c048884e6"
            }
        ]
    }
}
狀態(tài)碼
請參見狀態(tài)碼。
錯誤碼
請參考錯誤碼。
  
    