文档

UpdateTransitRouterVpcAttachmentAttribute - 修改转发路由器下VPC连接信息

更新时间:

调用UpdateTransitRouterVpcAttachmentAttribute接口修改企业版转发路由器下VPC连接的名称和描述信息以及是否需要使企业版转发路由器自动发布路由到 VPC 实例。

接口说明

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

  • 当 VPC 连接处于 Modifying 状态时,表示 VPC 连接正在修改中,在该状态下,您只能对 VPC 连接执行查询操作,不能执行其他操作。
  • 当 VPC 连接处于 Attached 状态时,表示 VPC 连接修改完成。

调试

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

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
ClientTokenstring

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

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

说明 若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 不一样。
02fb3da4-130e-11e9-8e44-001****
TransitRouterAttachmentIdstring

VPC 连接 ID。

tr-attach-nls9fzkfat8934****
TransitRouterAttachmentNamestring

VPC 连接的名称。

名称可以为空或长度为 1~128 个字符,不能以 http://或 https://开头。

testname
TransitRouterAttachmentDescriptionstring

VPC 连接的描述信息。

描述可以为空或长度为 1~256 个字符,不能以 http://或 https://开头。

testdesc
DryRunboolean

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

  • false(默认值):发送正常请求,通过检查后直接修改 VPC 连接的名称和描述信息。
  • true:发送检查请求,只进行校验,不会修改 VPC 连接的名称和描述信息。检查项包括是否填写了必需参数、请求格式等。如果检查不通过,则返回对应错误。如果检查通过,则返回对应请求 ID。
false
AutoPublishRouteEnabledboolean

是否允许企业版转发路由器自动发布路由到 VPC 实例。

  • false:否。
  • true:是。
true

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

7E61D334-4025-41EF-9145-FC327B35301D

示例

正常返回示例

JSON格式

{
  "RequestId": "7E61D334-4025-41EF-9145-FC327B35301D"
}

错误码

HTTP status code错误码错误信息描述
400IncorrectStatus.TransitRouterAttachmentIdTransitRouterAttachmentId status is invalid.当前TransitRouterAttachment的状态不支持该操作,请稍后重试。
400InvalidTransitRouterAttachmentId.NotFoundTransitRouterAttachmentId is not found.网络连接实例ID不存在。
400InvalidOperation.RegionNotSupportThe operation is not supported in this region.当前地域不支持该操作。
400InvalidOperation.VpcAutoRoutesPublishInOtherCENThe operation is not supported because the VPC is already set autoRoutesPublish in other CEN.-
400QuotaExceeded.VpcAutoRoutesPublishPerTransitRouterThe count of VPC instance which set autoRoutesPublish in transitRouter is over limit.-
400InvalidOperation.VpnAssociatedThe operation is not supported because the VPC is associated with VPN.当前VPC与VPN绑定,无法打开路由自动同步功能。
400IllegalParam.Ipv6SupportIpv6Support is illegal. Valid Values are [enable, disable].请求参数Ipv6Support值非法,有效值为enable或disable。
400OperationFailed.VSwitchNotFoundThe specified vswitch not found.指定的VSwitchId不存在,请确认该VSwitch状态是否可用或指定其他可用的VSwitch。
400OperationFailed.VSwitchIpv6CidrNotAllocatedThe specified vswitch does not have IPv6 address allocated.指定的VSwitch未开通Ipv6,请开通Ipv6后再进行该操作。
400OperationInvalid.AttachmentReferencedIPv6RouteEntryExistedOperation is failed because there is at least one route entry(IPv6) which next hop is the specified attachment.存在IPv6路由条目指向attachment,无法进行该操作。
400OperationInvalid.AttachmentReferencedVpcIPv6RouteEntryExistedThe specified attachment is referenced by vpc route entry(IPv6).VPC中存在IPv6路由条目指向attachment,无法支持该操作。请先到VPC清除此路由条目,再执行该操作。
400OperationInvalid.EniReferencedIPv6RouteEntryExistedOperation is failed because there is at least one route entry(IPv6) which next hop is network interface that the specified attachment referenced.VPC中存在IPv6路由条目指向attachment相关的eni,无法支持该操作。请先清除此路由条目,再执行该操作。
400OperationUnsupported.VpcRoutePropagationSourceThe operation on this VPC route propagation source is not supported.不支持对此VPC路由传播源的操作。
400OperationUnsupported.TransitRouterTypeThe specified TransitRouterType does not support the operation.当前TransitRouter类型不支持该操作。
400InvalidParameterInvalid parameter.参数不合法。
400UnauthorizedThe AccessKeyId is unauthorized.账号无权限操作。

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

变更历史

变更时间变更内容概要操作
2024-07-10OpenAPI 错误码发生变更查看变更详情
2024-04-19OpenAPI 错误码发生变更查看变更详情
2022-10-19OpenAPI 错误码发生变更、OpenAPI 入参发生变更查看变更详情