Disassociates a route table from a vSwitch.
Usage notes
- The UnassociateRouteTable operation is asynchronous. After you send the request, the system returns a request ID. However, the operation is still being performed in the system background. You can call the DescribeVSwitchAttributes operation to query the status of a vSwitch:
- If the vSwitch is in the Pending state, the route table is being disassociated.
- If the vSwitch is in the Available state, the route table is disassociated.
- You cannot repeatedly call the UnassociateRouteTable operation to disassociate a route table from a vSwitch within the specified period of time.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
RegionId | String | Yes | cn-hangzhou | The region ID of the virtual private cloud (VPC) to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list. |
RouteTableId | String | Yes | vtb-bp145q7glnuzdvzu2**** | The ID of the route table. |
VSwitchId | String | Yes | vsw-25naue4**** | The ID of the vSwitch from which you want to disassociate the route table. |
ClientToken | String | No | 02fb3da4-130e-11e9-8e44-0016e04115b | The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among all requests. The token can contain only ASCII characters.
Note If you do not specify this parameter,
ClientToken is set to the value of
RequestId. The value of
RequestId may be different for each API request.
|
Action | String | Yes | UnassociateRouteTable | The operation that you want to perform. Set the value to UnassociateRouteTable. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 62172DD5-6BAC-45DF-8D44-xxxxxxx | The ID of the request. |
Examples
Sample requests
https://vpc.aliyuncs.com/?Action=UnassociateRouteTable
&RegionId=cn-hangzhou
&RouteTableId=vtb-bp145q7glnuzdvzu2****
&VSwitchId=vsw-25naue4****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version="1.0" encoding="UTF-8"?>
<UnassociateRouteTableResponse>
<RequestId>62172DD5-6BAC-45DF-8D44-xxxxxxx</RequestId>
</UnassociateRouteTableResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "62172DD5-6BAC-45DF-8D44-xxxxxxxx"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
404 | InvalidRouteTableId.NotFound | Specified route table does not exist. | The error message returned because the specified route table does not exist. |
For a list of error codes, visit the API Error Center.