文档

DeleteRouteTable - 删除自定义路由表

更新时间:

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

接口说明

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

调试

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

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
vpc:DeleteRouteTableWrite
  • RouteTable
    acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

请求参数

名称类型必填描述示例值
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当前状态不正确
404InvalidRegionId.NotFoundSpecified value of RegionId is not supported.-
404InvalidParameter.ActionThis vpc feature is not supported in this region-
404IncorrectRouteTableStatusThe current status of the route table does not support this operation.当前路由表的状态不支持删除操作
404DependencyViolation.RouteEntryVpc route table has route entry.-

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

  • 本页导读 (1)
文档反馈