调用DeleteRouteTable接口删除自定义路由表。
接口说明
- DeleteRouteTable 接口属于异步接口,即系统会返回一个请求 ID,但该自定义路由表尚未删除成功,系统后台的删除任务仍在进行。您可以调用 DescribeRouteTableList 查询自定义路由表的删除状态:
- 当自定义路由表处于 Deleting 状态时,表示自定义路由表正在删除中。
- 当查询不到指定的自定义路由表时,表示自定义路由表删除成功。
- DeleteRouteTable 接口不支持在同一个 VPC 中并发删除自定义路由表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| RegionId | string | 是 | 自定义路由表所属的 VPC 的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 | cn-hangzhou |
| RouteTableId | string | 是 | 自定义路由表 ID。 | vtb-bp145q7glnuzdvzu2**** |
返回参数
示例
正常返回示例
JSON格式
{
"RequestId": "DC668356-BCB4-42FD-9BC3-FA2B2E04B634"
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 400 | OperationDenied.GatewayAssociated | You cannot delete the specified route table because it still associates with gateway. | 无法删除指定的路由表,因为路由表绑定了网关 |
| 400 | MissingParam.RouteTableId | The param of RouteTableId is missing. | - |
| 400 | IncorrectRouteTableType | Route table can be deleted by this action only when it's type is custom. | - |
| 400 | IncorrectVSwitchStatus | The current virtual switch status does not support this operation. | 该vSwitch处于pending状态,无法删除。 |
| 400 | IncorrectRouteTableStatus.RouteEntryExist | You cannot delete the specified route table because it still has custom route entry. | 无法删除指定的路由表,因为表中仍然存在用户自定义路由条目。 |
| 400 | IncorrectStatus.cbnStatus | Current CBN status does not support this operation. | CBN当前状态不正确 |
| 400 | InvalidRegionId.NotFound | Specified value of RegionId is not supported. | - |
| 400 | InvalidParameter.Action | This vpc feature is not supported in this region | - |
| 400 | IncorrectRouteTableStatus | The current status of the route table does not support this operation. | 当前路由表的状态不支持删除操作 |
| 400 | DependencyViolation.RouteEntry | Vpc route table has route entry. | - |
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 |
|---|---|---|
| 2025-02-10 | OpenAPI 描述信息更新、OpenAPI 错误码发生变更 | 查看变更详情 |
