Deletes a custom route table from an Enterprise Edition transit router.
Usage notes
- You cannot delete the default route table of an Enterprise Edition transit router.
- DeleteTransitRouterRouteTable is an asynchronous operation. After you send a request, the request ID is returned but the operation is still being performed in the system background.
You can call ListTransitRouterRouteTables to query the status of a custom route table.
- If a custom route table is in the Deleting state, the custom route table is being deleted. In this case, you can query the custom route table but cannot perform other operations.
- If a custom route table cannot be found, the custom route table is deleted.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DeleteTransitRouterRouteTable |
The operation that you want to perform. Set the value to DeleteTransitRouterRouteTable. |
| ClientToken | String | No | 02fb3da4-130e-11e9-8e44-001**** |
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 different requests. ClientToken can contain only ASCII characters. Note If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId may be different for each API request.
|
| DryRun | Boolean | No | false |
Specifies whether only to precheck the request. Check items include permissions and the status of the transit router. Valid values:
|
| TransitRouterRouteTableId | String | Yes | vtb-bp1xbcgpgcz9axl9m**** |
The ID of the custom route table. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | EAB2F133-8556-4D7C-9E91-7EE4FE9CC7D2 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteTransitRouterRouteTable
&ClientToken=02fb3da4-130e-11e9-8e44-001****
&DryRun=false
&TransitRouterRouteTableId=vtb-bp1xbcgpgcz9axl9m****
&Common request parameters
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteTransitRouterRouteTableResponse>
<RequestId>EAB2F133-8556-4D7C-9E91-7EE4FE9CC7D2</RequestId>
</DeleteTransitRouterRouteTableResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "EAB2F133-8556-4D7C-9E91-7EE4FE9CC7D2"
}
Error codes
| HttpCode | Error code | Error message | Description |
|---|---|---|---|
| 400 | InvalidTransitRouterRouteTableId.NotFound | TransitRouterRouteTableId is not found. | The error message returned because the specified route table ID of the transit router does not exist. |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. | The error message returned because the dry run request passes the precheck. |
| 400 | IncorrectStatus.TransitRouterRouteTable | TransitRouterRouteTable status is invalid. | The error message returned because the transit router is in an invalid state. |
For a list of error codes, visit the API Error Center.