DeleteTransitRouterPeerAttachment - 删除企业版转发路由器下的跨地域连接

调用DeleteTransitRouterPeerAttachment接口删除企业版转发路由器下的跨地域连接。

接口说明

DeleteTransitRouterPeerAttachment 接口属于异步接口,即系统会先返回一个 RequestId,但该跨地域连接并未删除完成,系统后台的删除任务仍在进行。您可以调用 ListTransitRouterPeerAttachments 接口查询跨地域连接的状态。

  • 当跨地域连接处于 Detaching 状态时,表示跨地域连接正在删除中,在该状态下,您只能对跨地域连接执行查询操作,不能执行其他操作。

  • 当查询不到指定的跨地域连接时,表示跨地域连接删除完成。

在调用 DeleteTransitRouterPeerAttachment 接口过程时请确保输入的参数值无误。如果您输入的参数有误调用接口后仍然会返回 RequestId,但不会删除企业版转发路由器下的跨地域连接。

调试

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

调试

授权信息

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

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

cen:DeleteTransitRouterPeerAttachment

delete

*TransitRouterPeerAttachment

acs:cen:*:{#accountId}:centransitrouterattachment/{#centransitrouterattachmentId}

请求参数

名称

类型

必填

描述

示例值

ClientToken

string

客户端 Token,用于保证请求的幂等性。

从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。

说明

若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 不一样。

02fb3da4-130e-11e9-8e44-001****

TransitRouterAttachmentId

string

跨地域连接 ID。

tr-attach-gyjhtx9sjsxhm6****

DryRun

boolean

是否对此次删除请求执行预检,包括权限、实例状态校验等。取值:

  • false(默认值):发送正常请求,通过检查后直接删除跨地域连接。

  • true:发送检查请求,只进行校验,不会删除跨地域连接。检查项包括是否填写了必需参数、请求格式等。如果检查不通过,则返回对应错误。如果检查通过,则返回对应请求 ID。

false

Force

boolean

是否强制删除跨地域连接,取值:

  • false(默认值):删除跨地域连接前校验是否存在相关资源依赖,如关联转发、路由学习等。如果存在相关依赖,则不允许删除,返回对应错误。

  • true:删除跨地域连接时,默认删除所有相关依赖。

false

返回参数

名称

类型

描述

示例值

object

RequestId

string

请求 ID。

A01FEDD7-7D69-4EB3-996D-CF79F6F885CA

示例

正常返回示例

JSON格式

{
  "RequestId": "A01FEDD7-7D69-4EB3-996D-CF79F6F885CA"
}

错误码

HTTP status code

错误码

错误信息

描述

400 OperationFailed.RouteTablePropagationExist Operation failed because You are not allowed to delete TransitAttachment with TransitRouter RouteTable Associated. TransitAttachment绑定在路由表上,请解绑后重试。
400 OperationFailed.RouteEntryExist Operation failed because the TransitRouterAttachment exists in RouteTable.
400 OperationFailed.RouteTableAssociationExist Operation failed because TransitRouterRouteTable exists 由于存在关联的路由表,网络连接删除失败。
400 OperationFailed.TrafficQosExist Operation failed because TrafficQos exists TrafficQos存在,请删除后重试。
400 InvalidValue.PrefixlistCidr Invalid cidr exist in the specified prefixlist. prefixlist中存在不合法的cidr。
400 OperationFailed.FlowLogExistOrNisOpened Operation failed because FlowLog exists or Nis opened. 存在flowlog或者开通Nis服务,无法支持该操作。
400 OperationFailed.NotSupportForceDelete Not support force delete attachment. 不支持强制删除功能。
400 InvalidTransitRouterAttachmentId.NotFound TransitRouterAttachmentId is not found. 网络连接实例ID不存在。
400 OperationUnsupported.TransitRouterType The operation is not supported because of the wrong transitRouter type. 当前TransitRouter类型不支持该操作。
400 OperationFailed.MulticastGroupExist Operation is failed because attachment exists in multicast groups. attachment绑定在组播组中,无法操作,请解绑后重试。
400 OperationUnsupported.TransitRouterAttachment The specified TransitRouterAttachment has configured TransitRegion. Please remove the configuration first. 存在带宽复用配置,请删除后重试。
400 OperationFailed.PrefixListExist Operation failed because PrefixList exists. prefixlist存在,操作失败。
400 OperationFailed.InterRegionCloudRouteEntryExist Operation failed because inter region cloud route associated with specified attachment exist. Attachment存在关联的跨地域云服务路由。
400 InvalidParameter Invalid parameter. 参数不合法。
400 Unauthorized The AccessKeyId is unauthorized. 账号无权限操作。

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

变更历史

更多信息,参考变更详情