You need to enable JavaScript to run this app.
导航

DeleteRouteTable

最近更新时间2024.01.10 10:41:29

首次发布时间2021.07.29 14:11:54

调用 DeleteRouteTable 接口,删除指定的路由表。

调用说明

系统路由表不支持调用本接口删除。删除VPC时,其随VPC一同删除。

调试

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringDeleteRouteTable要执行的操作,取值:DeleteRouteTable。
VersionString2020-04-01API版本信息,取值为:2020-04-01。

RouteTableId

String

vtb-2fdzao4h726f45******

待删除路由表的ID。
您可以调用 DescribeRouteTableList 接口,查询路由表的ID。

返回数据

参数名称
类型
示例值
描述
RequestIdString2021062415303301022514515207C4****请求ID。

请求示例

GET /?Action=DeleteRouteTable&Version=2020-04-01&RouteTableId=vtb-2fdzao4h726f45**** HTTP/1.1
Host: open.volcengineapi.com
Service: vpc
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2021062415303301022514515207C4****",
        "Action": "DeleteRouteTable",
        "Version": "2020-04-01",
        "Service": "vpc",
        "Region": "cn-beijing"
    },
    "Result": {
        "RequestId": "2021062415303301022514515207C4****"
    }
}

错误码

此处仅展示当前API的错误码,更多错误码请参见公共错误码

HttpCode
错误码
错误信息
描述
400InvalidRouteTable.InUseThe specified route table has dependent resource of a subnet.指定的路由表关联子网,无法删除。
400InvalidRouteTable.InUseThe specified route table has dependent resource of a route entry.指定的路由表下有路由条目,无法删除。
400InvalidVpc.InvalidStatusThe specified VPC is not in the correct status for the request.指定的VPC所处状态无法响应该请求。
403ForbiddenYou are not authorized to perform operations on the specified route table. The specified route table is a system route table.无权限对指定路由表进行操作。指定的路由表为系统路由表。
404InvalidRouteTable.NotFoundThe specified route table does not exist.指定的路由表不存在。