删除高速通道实例,包含发起端和接收端。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用前面加 * 表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
vpc:DeleteRouterInterface | delete | *RouterInterface acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId} |
| 无 |
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 高速通道所在的地域 ID。您可以通过调用 DescribeRegions 接口获取地域 ID。 | cn-shanghai |
RouterInterfaceId | string | 是 | 高速通道的实例 ID。 | ri-119mfjz**** |
Force | boolean | 否 | 是否强制删除关联的路由条目。
| false |
ClientToken | string | 否 | 用于保证请求的幂等性。 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过 64 个 ASCII 字符。 | 02fb3da4-130e-11e9-8e44-00**** |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "980960B0-2969-40BF-8542-EBB34FD358AB"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | IncorrectStatus.RouterInterface | This openeration would not be allowed because the status of this RouterInterface is not correct. | 当前实例的状态无法进行删除,请等待状态变更后再次进行操作。 |
400 | DependencyViolation.RouterInterfaceReferedByRouteEntry | RouterInterface cannot be deleted when it is refered by a route table entry as next hop. | 路由器接口被某个路由条目引用(将当做下一跳目标)时,不能删除,请先删除指向该路由器接口的路由条目后再进行删除。 |
400 | InvalidRouterInterfaceChargeType.Malformed | The prepaid routerinterface can not delete. | 无法删除预付费路由器接口。 |
400 | InvalidRouterInterfaceOppositeChargeType.Malformed | Opposite routerinterface is prepaid and can not delete. | - |
400 | IncorrectStatus.Vpc | Vpc incorrect status. | VPC未处于稳态. |
400 | OperationFailed.OperationLocked | Operation failed because OperationLocked. | 操作失败因为实例已经被运维锁定。 |
404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | 指定的RegionId不存在 |
404 | InvalidInstanceId.NotFound | The InstanceId provided does not exist in our records. | 该 ECS 实例不存在(实例不在该 VPC 下)。 |
404 | InvalidRouterInterfaceId.NotFound | The routerInterface is not exist. | - |
404 | IncorrectStatus.VSwitchOrRouteEntry | vpc has no stable subnet or route entry. | - |
404 | DependencyViolation.ClassicLinkEcsRouteEntry | RouterInterface cannot be deleted when it is used by cross account classicLink. | - |
500 | InternalError | Internal system error. | 内部系统错误。 |
访问错误中心查看更多错误码。