DeleteTransitRouterVpcAttachment_云企业网_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

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

  • 当 VPC 连接处于 Detaching 状态时,表示 VPC 连接正在删除中,在该状态下,您只能对 VPC 连接执行查询操作,不能执行其他操作。
  • 当查询不到指定的 VPC 连接时,表示 VPC 连接删除完成。

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

前提条件

删除 VPC 连接前,请确保您未使用该 VPC 实例配置访问 PrivateZone 的路由。删除访问 PrivateZone 的路由,请参见UnroutePrivateZoneInCenToVpc

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
cen:DeleteTransitRouterVpcAttachment
Delete
TransitRouterVpcAttachment
acs:cen:*:{#accountId}:centransitrouterattachment/{#centransitrouterattachmentId}

请求参数

字段名称字段详情
ClientTokenstring

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

示例值:02fb3da4-130e-11e9-8e44-001****
TransitRouterAttachmentIdstring

VPC 连接 ID。

示例值:tr-attach-ia340z7xis7t5s****参考取值来源:
    ListTransitRouterEcrAttachments
    CreateTransitRouterVpcAttachment
DryRunboolean

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

示例值:false
Forceboolean

是否强制删除 VPC 连接,取值:展开详情

示例值:false

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:7E61D334-4025-41EF-9145-FC327B35301D

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
OperationFailed.AttachmentReferencedVpcRouteEntryExisted
Operation is failed because there is at least one route entry which next hop is the specified attachment.诊断
400
OperationFailed.RouteTablePropagationExist
The specified TransitRouterAttachment has configured RouteTablePropagation. Please remove the configuration first.诊断
400
OperationFailed.MulticastDomainAssociationExist
The specified TransitRouterAttachment has configured MulticastDomainAssociation. Please remove the configuration first.诊断
400
OperationUnsupported.TransitRouterType
The specified TransitRouterType does not support the operation.诊断
400
OperationFailed.PrefixListExist
Operation failed because PrefixList exists.诊断
400
InvalidTransitRouterAttachmentId.NotFound
TransitRouterAttachmentId is not found.诊断
400
IncorrectStatus.VpcRouteEntry
The resource is not in a valid state for the attachment operation.诊断
400
IncorrectStatus.VpcSwitch
The resource is not in a valid state for the attachment operation.诊断
400
IncorrectStatus.Vpc
The resource is not in a valid state for the operation.诊断
400
OperationFailed.NotSupportForceDelete
Not support force delete attachment.诊断
400
IncorrectStatus.VpcRouteTable
The VPC route table is not in a desired state.诊断
400
OperationFailed.RouteEntryExist
Failed to delete the instance because a route table entry points to the instance.诊断
400
OperationFailed.RouteTableAssociationExist
Operation failed because there is associated routing table.诊断
400
IncorrectStatus.VpcResource
The resource is not in a valid state for the attachment operation.诊断
400
OperationFailed.FlowLogExistOrNisOpened
Operation failed because FlowLog exists or Nis opened.诊断
400
InvalidParameter
Invalid parameter.诊断
400
Unauthorized
The AccessKeyId is unauthorized.诊断

变更历史

变更时间变更内容概要操作
2025-01-02
变更错误码400
2024-07-10
变更错误码400
2024-01-26
变更错误码400
2023-03-27
变更错误码400
2023-03-09
变更错误码400
删除返回参数
2023-01-04
变更错误码400
新增返回参数
2022-12-22
变更错误码400
2022-12-02
变更错误码400
2022-12-01
新增请求参数Force
  • 1
  • 2
  • 10 条/页

相关示例

查询转发路由器下网络实例的连接信息并删除
2022-05-10