调用UpdateTransitRouterVpcAttachmentAttribute接口修改企业版转发路由器下VPC连接的名称和描述信息以及是否需要使企业版转发路由器自动发布路由到 VPC 实例。
接口说明
UpdateTransitRouterVpcAttachmentAttribute 接口属于异步接口,即系统会先返回一个 RequestId,但该 VPC 连接并未修改完成,系统后台的修改任务仍在进行。您可以调用 ListTransitRouterVpcAttachments 接口查询 VPC 连接的状态。
- 当 VPC 连接处于 Modifying 状态时,表示 VPC 连接正在修改中,在该状态下,您只能对 VPC 连接执行查询操作,不能执行其他操作。 
- 当 VPC 连接处于 Attached 状态时,表示 VPC 连接修改完成。 
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
 调试
        
            调试
        
    
授权信息
| 操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 | 
| cen:UpdateTransitRouterVpcAttachmentAttribute | update | *TransitRouterVpcAttachment 
 | 无 | 无 | 
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
| ClientToken | string | 否 | 客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明 
 若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 不一样。 | 02fb3da4-130e-11e9-8e44-001**** | 
| TransitRouterAttachmentId | string | 是 | VPC 连接 ID。 | tr-attach-nls9fzkfat8934**** | 
| TransitRouterAttachmentName | string | 否 | VPC 连接的名称。 名称可以为空或长度为 1~128 个字符,不能以 http://或 https://开头。 | testname | 
| TransitRouterAttachmentDescription | string | 否 | VPC 连接的描述信息。 描述可以为空或长度为 1~256 个字符,不能以 http://或 https://开头。 | testdesc | 
| DryRun | boolean | 否 | 是否对此次请求执行预检,包括权限、实例状态校验等。取值: 
 | false | 
| TransitRouterVPCAttachmentOptions | object | 否 | VPC 连接的功能属性列表。 | |
| string | 否 | VPC 连接的功能属性。 ipv6Support:是否开启 IPv6 功能。 
 说明 
 为 VPC 连接开启 IPv6 功能前,请确保 VPC 实例及其关联的交换机实例已经开启 IPv6 功能。具体操作,请参见 AllocateVpcIpv6Cidr 和 CreateVSwitchCidrReservation 。 | ipv6Support:enable | |
| AutoPublishRouteEnabled | boolean | 否 | 是否允许企业版转发路由器自动发布路由到 VPC 实例。 
 | true | 
返回参数
| 名称 | 类型 | 描述 | 示例值 | 
| object | |||
| RequestId | string | 请求 ID。 | 7E61D334-4025-41EF-9145-FC327B35301D | 
示例
正常返回示例
JSON格式
{
  "RequestId": "7E61D334-4025-41EF-9145-FC327B35301D"
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 400 | IncorrectStatus.TransitRouterAttachmentId | TransitRouterAttachmentId status is invalid. | 当前TransitRouterAttachment的状态不支持该操作,请稍后重试。 | 
| 400 | InvalidTransitRouterAttachmentId.NotFound | TransitRouterAttachmentId is not found. | 网络连接实例ID不存在。 | 
| 400 | InvalidOperation.RegionNotSupport | The operation is not supported in this region. | 当前地域不支持该操作。 | 
| 400 | InvalidOperation.VpcAutoRoutesPublishInOtherCEN | The operation is not supported because the VPC is already set autoRoutesPublish in other CEN. | |
| 400 | QuotaExceeded.VpcAutoRoutesPublishPerTransitRouter | The count of VPC instance which set autoRoutesPublish in transitRouter is over limit. | |
| 400 | InvalidOperation.VpnAssociated | The operation is not supported because the VPC is associated with VPN. | 当前VPC与VPN绑定,无法打开路由自动同步功能。 | 
| 400 | IllegalParam.Ipv6Support | Ipv6Support is illegal. Valid Values are [enable, disable]. | 请求参数Ipv6Support值非法,有效值为enable或disable。 | 
| 400 | OperationFailed.VSwitchNotFound | The specified vswitch not found. | 指定的VSwitchId不存在,请确认该VSwitch状态是否可用或指定其他可用的VSwitch。 | 
| 400 | OperationFailed.VSwitchIpv6CidrNotAllocated | The specified vswitch does not have IPv6 address allocated. | 指定的VSwitch未开通Ipv6,请开通Ipv6后再进行该操作。 | 
| 400 | OperationInvalid.AttachmentReferencedIPv6RouteEntryExisted | Operation is failed because there is at least one route entry(IPv6) which next hop is the specified attachment. | 存在IPv6路由条目指向attachment,无法进行该操作。 | 
| 400 | OperationInvalid.AttachmentReferencedVpcIPv6RouteEntryExisted | The specified attachment is referenced by vpc route entry(IPv6). | VPC中存在IPv6路由条目指向attachment,无法支持该操作。请先到VPC清除此路由条目,再执行该操作。 | 
| 400 | OperationInvalid.EniReferencedIPv6RouteEntryExisted | Operation 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,无法支持该操作。请先清除此路由条目,再执行该操作。 | 
| 400 | OperationUnsupported.VpcRoutePropagationSource | The operation on this VPC route propagation source is not supported. | 不支持对此VPC路由传播源的操作。 | 
| 400 | OperationUnsupported.TransitRouterType | The specified TransitRouterType does not support the operation. | 当前TransitRouter类型不支持该操作。 | 
| 400 | InvalidParameter | Invalid parameter. | 参数不合法。 | 
| 400 | Unauthorized | The AccessKeyId is unauthorized. | 账号无权限操作。 | 
| 400 | INVALID_OPERATION_RESOURCE_NOT_SUPPORT_APPLIANCE_MODE | Only VPC attachment support appliance mode. | 只有专有网络连接支持网元导流模式。 | 
| 400 | InvalidParameter.Ipv6Support | The specified parameter Ipv6Support is invalid. | 输入的参数Ipv6Support不合法。 | 
| 400 | InvalidParameter.ApplianceModeSupport | The specified parameter ApplianceModeSupport is invalid. | 输入的参数ApplianceModeSupport不合法。 | 
| 400 | ParamExclusive.TransitRouterVPCAttachmentOptionsAndOptions | When creating or modifying a VPC attachment, the input parameter TransitRouterVPCAttachmentOptions and Options cannot be used at the same time. | 创建或修改专有网络连接时,不支持同时使用入参TransitRouterVPCAttachmentOptions和Options。 | 
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。