更新时间:2024-03-05 GMT+08:00
解关联路由表与子网
功能介绍
路由表关解关联子网。
请求参数
|
名称 |
是否必选 |
参数类型 |
说明 |
|---|---|---|---|
|
routetable |
是 |
routetable object |
路由表对象,参见表3。 |
请求示例
- 解关联路由表3d42a0d4-a980-4613-ae76-a2cddecff054和子网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" ] } } }
响应参数
|
名称 |
参数类型 |
说明 |
|---|---|---|
|
routetable |
routetable object |
路由表对象,参见表6。 |
|
名称 |
参数类型 |
说明 |
|---|---|---|
|
id |
String |
|
|
name |
String |
|
|
default |
Boolean |
|
|
routes |
Array of route objects |
|
|
subnets |
Array of subnet objects |
|
|
tenant_id |
String |
|
|
vpc_id |
String |
|
|
description |
String |
|
|
created_at |
String |
|
|
updated_at |
String |
|
|
名称 |
参数类型 |
说明 |
|---|---|---|
|
type |
String |
|
|
destination |
String |
|
|
nexthop |
String |
|
|
description |
String |
|
响应示例
{
"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"
}
}
状态码
请参见状态码。
错误码
请参考错误码。
父主题: 路由表