DeleteRouteTable - 删除自定义路由表

调用DeleteRouteTable接口删除自定义路由表。

接口说明

  • DeleteRouteTable 接口属于异步接口,即系统会返回一个请求 ID,但该自定义路由表尚未删除成功,系统后台的删除任务仍在进行。您可以调用 DescribeRouteTableList 查询自定义路由表的删除状态:
    • 当自定义路由表处于 Deleting 状态时,表示自定义路由表正在删除中。
    • 当查询不到指定的自定义路由表时,表示自定义路由表删除成功。
  • DeleteRouteTable 接口不支持在同一个 VPC 中并发删除自定义路由表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
RegionIdstring

自定义路由表所属的 VPC 的地域 ID。

您可以通过调用 DescribeRegions 接口获取地域 ID。

cn-hangzhou
RouteTableIdstring

自定义路由表 ID。

vtb-bp145q7glnuzdvzu2****

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

DC668356-BCB4-42FD-9BC3-FA2B2E04B634

示例

正常返回示例

JSON格式

{
  "RequestId": "DC668356-BCB4-42FD-9BC3-FA2B2E04B634"
}

错误码

HTTP status code错误码错误信息描述
400OperationDenied.GatewayAssociatedYou cannot delete the specified route table because it still associates with gateway.无法删除指定的路由表,因为路由表绑定了网关
400MissingParam.RouteTableIdThe param of RouteTableId is missing.-
400IncorrectRouteTableTypeRoute table can be deleted by this action only when it's type is custom.-
400IncorrectVSwitchStatusThe current virtual switch status does not support this operation.vSwitch处于pending状态,无法删除。
400IncorrectRouteTableStatus.RouteEntryExistYou cannot delete the specified route table because it still has custom route entry.无法删除指定的路由表,因为表中仍然存在用户自定义路由条目。
400IncorrectStatus.cbnStatusCurrent CBN status does not support this operation.CBN当前状态不正确
400InvalidRegionId.NotFoundSpecified value of RegionId is not supported.-
400InvalidParameter.ActionThis vpc feature is not supported in this region-
400IncorrectRouteTableStatusThe current status of the route table does not support this operation.当前路由表的状态不支持删除操作
400DependencyViolation.RouteEntryVpc route table has route entry.-

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2025-02-10OpenAPI 描述信息更新、OpenAPI 错误码发生变更查看变更详情