功能介紹
路由表關(guān)解關(guān)聯(lián)子網(wǎng)。
調(diào)試
您可以在API Explorer中調(diào)試該接口。
URI
POST /v1/{project_id}/routetables/{routetable_id}/action
|
名稱 |
是否必選 |
參數(shù)類型 |
說明 |
|---|---|---|---|
|
project_id |
是 |
String |
項目ID,請參見獲取項目ID。 |
|
routetable_id |
是 |
String |
路由表ID,路由表唯一標識 |
請求參數(shù)
請求示例
- 解關(guān)聯(lián)路由表3d42a0d4-a980-4613-ae76-a2cddecff054和子網(wǎng)815a6b9e-f766-48eb-967c-0ada72d85435。
POST https://{Endpoint}/v1/6fbe9263116a4b68818cf1edce16bc4f/
routetables/3d42a0d4-a980-4613-ae76-a2cddecff054/action { "routetable": { "subnets": { "disassociate": [ "815a6b9e-f766-48eb-967c-0ada72d85435" ] } } }
響應(yīng)參數(shù)
|
名稱 |
參數(shù)類型 |
說明 |
|---|---|---|
|
id |
String |
|
|
name |
String |
|
|
default |
Boolean |
|
|
routes |
||
|
subnets |
||
|
tenant_id |
String |
|
|
vpc_id |
String |
|
|
description |
String |
|
|
created_at |
String |
|
|
updated_at |
String |
|
|
名稱 |
參數(shù)類型 |
說明 |
|---|---|---|
|
type |
String |
|
|
destination |
String |
|
|
nexthop |
String |
|
|
description |
String |
|
響應(yīng)示例
{
"routetable": {
"id": "3d42a0d4-a980-4613-ae76-a2cddecff054",
"vpc_id": "ab78be2d-782f-42a5-aa72-35879f6890ff",
"description": "abc",
"routes": [
{
"type": "ecs",
"destination": "10.10.10.0/24",
"nexthop": "7c50463d-d36c-4417-aa85-cc11fa10f341",
"description": "abc"
}
],
"subnets": [
{
"id": "8d4ce32f-d68a-4c4c-9f18-c68d8a5c7f2f"
}
],
"tenant_id": "6fbe9263116a4b68818cf1edce16bc4f",
"created_at": "2022-12-15T02:56:40",
"updated_at": "2022-12-15T03:06:21"
}
}
狀態(tài)碼
請參見狀態(tài)碼。
錯誤碼
請參考錯誤碼。
