功能介紹
查詢 虛擬私有云 。
調(diào)試
您可以在API Explorer中調(diào)試該接口。
URI
GET /v1/{project_id}/vpcs/{vpc_id}
| 
 名稱  | 
 是否必選  | 
 說明  | 
|---|---|---|
| 
 project_id  | 
 是  | 
 項(xiàng)目ID,獲取項(xiàng)目ID請(qǐng)參見獲取項(xiàng)目ID。  | 
| 
 vpc_id  | 
 是  | 
 虛擬 私有云 唯一標(biāo)識(shí)  | 
請(qǐng)求參數(shù)
無
請(qǐng)求示例
GET https://{Endpoint}/v1/{project_id}/vpcs/99d9d709-8478-4b46-9f3f-2206b1023fd3
響應(yīng)參數(shù)
| 
 名稱  | 
 參數(shù)類型  | 
 說明  | 
|---|---|---|
| 
 id  | 
 String  | 
 uuid形式的一個(gè)資源標(biāo)識(shí)。  | 
| 
 name  | 
 String  | 
  | 
| 
 description  | 
 String  | 
  | 
| 
 cidr  | 
 String  | 
  | 
| 
 status  | 
 String  | 
  | 
| 
 routes  | 
||
| 
 enterprise_project_id  | 
 String  | 
  | 
| 
 tenant_id  | 
 String  | 
 功能說明:項(xiàng)目ID。  | 
| 
 created_at  | 
 String  | 
  | 
| 
 updated_at  | 
 String  | 
  | 
響應(yīng)示例
{
    "vpc": {
        "id": "99d9d709-8478-4b46-9f3f-2206b1023fd3",
        "name": "vpc",
        "description": "test",
        "cidr": "192.168.0.0/16",
        "status": "OK",
        "enterprise_project_id": "0" ,
        "routes": [],
        "tenant_id": "087679f0aa80d32a2f4ec0172f5e902b",
        "created_at": "2022-12-15T02:25:11",
        "updated_at": "2022-12-15T02:25:11"
}
}
狀態(tài)碼
請(qǐng)參見狀態(tài)碼。
錯(cuò)誤碼
請(qǐng)參考錯(cuò)誤碼。
  
    