功能介紹
路由表關(guān)解關(guān)聯(lián)子網(wǎng)。
調(diào)試
您可以在API Explorer中調(diào)試該接口。
URI
POST /v1/{project_id}/routetables/{routetable_id}/action
參數(shù)說(shuō)明請(qǐng)參見(jiàn)表1。
名稱 |
是否必選 |
參數(shù)類型 |
說(shuō)明 |
---|---|---|---|
project_id |
是 |
String |
項(xiàng)目ID,請(qǐng)參見(jiàn)獲取項(xiàng)目ID。 |
routetable_id |
是 |
String |
路由表ID,路由表唯一標(biāo)識(shí) |
請(qǐng)求參數(shù)
請(qǐng)求示例
- 解關(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ù)類型 |
說(shuō)明 |
---|---|---|
id |
String |
|
name |
String |
|
default |
Boolean |
|
routes |
||
subnets |
||
tenant_id |
String |
|
vpc_id |
String |
|
description |
String |
|
created_at |
String |
|
updated_at |
String |
|
名稱 |
參數(shù)類型 |
說(shuō)明 |
---|---|---|
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)碼
請(qǐng)參見(jiàn)狀態(tài)碼。
錯(cuò)誤碼
請(qǐng)參考錯(cuò)誤碼。