forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
35 KiB
35 KiB
Disassociating Subnets from a Route Table
Function
This API is used to disassociate subnets from a route table.
For details, see Associating a Route Table with a Subnet.
Request Parameters
Name |
Mandatory |
Type |
Description |
---|---|---|---|
routetable |
Yes |
routetable object |
Specifies the route table. For details, see Table 3. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
subnets |
Yes |
subnet object |
|
Example Request
- Disassociate route table 3d42a0d4-a980-4613-ae76-a2cddecff054 from subnet 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" ] } } }
Response Parameters
Name |
Type |
Description |
---|---|---|
routetable |
routetable object |
Specifies the route table. For details, see Table 6. |
Parameter |
Type |
Description |
---|---|---|
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 |
|
Name |
Type |
Description |
---|---|---|
type |
String |
|
destination |
String |
|
nexthop |
String |
|
description |
String |
|
Example Response
{ "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" } }
Status Code
See Status Codes.
Error Code
See Error Codes.
Parent topic: Route Table