Delete Routing Tables

Last updated: 2019-09-26 20:42:34

PDF

1. API Description

This API (DeleteRouteTable) is used to delete routing table.
Domain for API request:vpc.api.qcloud.com

2. Input Parameters

The following request parameter list only provides API request parameters. Common request parameters need to be added when the API is called. For more information, refer to Common Request Parameters. The Action field for this API is DeleteRouteTable.

Parameter Name Required Type Description
vpcId Yes String ID of VPC to which the subnet belongs. It can be vpcId or unVpcId. unVpcId is recommended. For example, vpc-rqndayhs. It can be queried through API DescribeVpcEx.
routeTableId Yes String The routing table ID assigned by the system, which can be routeTableId or unRouteTableId. unRouteTableId is recommended. For example, rtb-rqndayhs. It can be queried through API DescribeRouteTable.

3. Output Parameters

Parameter Name Type Description
code Int Error code, 0: Succeeded, other values: Failed.
message String Error message.

4. Error Codes

The following error code list only provides the business logic error codes for this API. For additional common error codes, refer to VPC Error Codes.

Error Code Description
InvalidVpc.NotFound VPC not exist. Please check the information you entered. You can query VPC through API DescribeVpcEx.
InvalidRouteTableId.NotFound Routing table ID not exist. Please check the information you entered. It can be queried through API DescribeRouteTable.

5. Example

Input

  https://vpc.api.qcloud.com/v2/index.php?Action=DeleteRouteTable
  &<Common request parameters>
  &vpcId=vpc-amhnnao5
  &routeTableId=rtb-4ahe1qy2

Output

{
    "code": 0,
    "message": ""
}