功能介紹
更新 虛擬私有云 。
調(diào)試
您可以在API Explorer中調(diào)試該接口。
URI
PUT /v1/{project_id}/vpcs/{vpc_id}
請求參數(shù)
請求示例
- 更新id為99d9d709-8478-4b46-9f3f-2206b1023fd3的vpc,將名稱更新為vpc1,描述更新為test1,cidr更新為192.168.0.0/16。
PUT https://{Endpoint}/v1/{project_id}/vpcs/99d9d709-8478-4b46-9f3f-2206b1023fd3 { "vpc": { "name": "vpc1", "description": "test1", "cidr": "192.168.0.0/16" } }
響應參數(shù)
|
名稱 |
參數(shù)類型 |
說明 |
|---|---|---|
|
id |
String |
uuid形式的一個資源標識。 |
|
name |
String |
虛擬私有云名稱。 |
|
description |
String |
|
|
cidr |
String |
|
|
status |
String |
|
|
enterprise_project_id |
String |
說明:
關(guān)于企業(yè)項目ID的獲取及企業(yè)項目特性的詳細信息,請參見《企業(yè)管理用戶指南》。 |
|
routes |
||
|
tenant_id |
String |
String 功能說明:項目ID。 |
|
created_at |
String |
String
|
|
updated_at |
String |
String
|
響應示例
{
"vpc": {
"id": "99d9d709-8478-4b46-9f3f-2206b1023fd3",
"name": "vpc1",
"description": "test1",
"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-15T06:23:15"
}
}
狀態(tài)碼
請參見狀態(tài)碼。
錯誤碼
請參考錯誤碼。
