Note:
This is a legacy API which has been hidden and will no longer be updated. We recommend using the new VPC API 3.0 which is standardized and faster.
This API (DeleteRouteTable) is used to delete route tables.
Domain name for API requests: vpc.api.qcloud.com
The following request parameter list only provides API request parameters. Common request parameters are required when the API is called. For more information, see the Common Request Parameters page. The Action field for this API is DeleteRouteTable.
Parameter name | Required | Type | Description |
---|---|---|---|
vpcId | Yes | String | ID of the VPC to which the subnet belongs, which can be the vpcId or unVpcId (recommended), for example vpc-rqndayhs. You can query this ID through the API DescribeVpcEx. |
routeTableId | Yes | String | The route table ID assigned by the system, which can be routeTableId or unRouteTableId (recommended), for example rtb-rqndayhs. You can query this ID through the API DescribeRouteTable. |
Parameter name | Type | Description |
---|---|---|
code | Int | Error code. 0: Successful; other values: Failed. |
message | String | Error message. |
The following error codes only include business logic error codes for this API. For additional common error codes, see VPC Error Codes.
Error code | Description |
---|---|
InvalidVpc.NotFound | Invalid VPC. This error code indicates that the VPC does not exist. In this case, verify whether the resource information that you entered is correct. You can query the VPC through the API DescribeVpcEx. |
InvalidRouteTableId.NotFound | Invalid route table. This error code indicates that the route table ID does not exist. In this case, verify whether the resource information that you entered is correct. You can query this ID through the API DescribeRouteTable. |
Input
https://vpc.api.qcloud.com/v2/index.php?Action=DeleteRouteTable &<Common Request Parameters> &vpcId=vpc-amhnnao5 &routeTableId=rtb-4ahe1qy2
Output
{
"code": 0,
"message": ""
}
Was this page helpful?