调用ModifyTransitRouterVpcAttachmentAttributes接口,修改指定VPC类型网络实例连接的信息。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyTransitRouterVpcAttachmentAttributes | 要执行的操作,取值为ModifyTransitRouterVpcAttachmentAttributes。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为2020-04-01。 |
TransitRouterAttachmentId | String | 是 | tr-attach-13n2l4c**** | 网络实例连接的ID。您可以调用DescribeTransitRouterVpcAttachments接口获取VPC类型网络实例连接的ID。 |
Ipv6Enabled | Boolean | 否 | false | 是否开启IPv6功能。
说明 中转路由器IPv6功能正在邀测中,如需使用,请联系客户经理。 |
AttachPoints.N.SubnetId | String | 否 | AttachPoints.1.SubnetId=subnet-2fexiqjlgjif45oxruvso****&AttachPoints.2.SubnetId=subnet-7rtsu6whhle6j**** | 网络实例连接连接点的子网ID。
|
AttachPoints.N.ZoneId | String | 否 | AttachPoints.1.ZoneId=cn-guangzhou-a&AttachPoints.2.ZoneId=cn-guangzhou-b | 子网所属可用区的ID。
|
AutoPublishRouteEnabled | Boolean | 否 | false | 是否自动同步TR路由到网络实例路由表中。
|
Description | String | 否 | This attachment is used for test. | 网络实例连接的描述信息。
|
TransitRouterAttachmentName | String | 否 | attachment-02 | 网络实例连接的名称。
|
本接口无特有的返回参数。更多信息请见返回结构。
GET /?Action=ModifyTransitRouterVpcAttachmentAttributes&Version=2020-04-01&TransitRouterAttachmentId=tr-attach-13n2l4c****&TransitRouterAttachmentName=attachment-02 HTTP/1.1 Host: open.volcengineapi.com Service: transitrouter Region: cn-guangzhou
{ "ResponseMetadata": { "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28D****", "Action": "ModifyTransitRouterVpcAttachmentAttributes", "Version": "2020-04-01", "Service": "transitrouter", "Region": "cn-guangzhou" }, "Result": {} }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidDescription.Malformed | The specified description is malformed. | 指定的描述格式不合法。请修复描述格式后重试。 |
400 | InvalidDescription.Malformed | The specified description is malformed. Ensure the maximum length of description is 255. | 指定的描述格式不合法。描述长度不能超过255个字符。 |
400 | InvalidName.Malformed | The specified name is malformed. Ensure the maximum length of name is 128. | 指定的名称格式不合法。名称长度不能超过128个字符。 |
400 | InvalidName.Malformed | The specified name is malformed. | 指定的名称格式不合法。请修复名称格式后重试。 |
400 | InvalidTransitRouter.InvalidStatus | The specified Transit Router is not in the correct status for the request. | 指定的中转路由器所处状态无法响应该请求。 |
400 | InvalidTransitRouterAttachment.InvalidStatus | The specified Transit Router Attachment is not in the correct status for the request. | 指定的网络实例连接所处状态无法响应该请求。 |
400 | InvalidTransitRouterAttachment.SubnetIdDuplicate | There are subnets used multiple times in the request. | 存在子网在创建网络实例连接操作中被多次指定。 |
400 | InvalidTransitRouterAttachment.ZoneIdDuplicate | There are available zones used multiple times in the request. | 存在可用区在创建网络实例连接操作中被多次指定。 |
400 | InvalidTransitRouterAttachment.ZoneIdMismatch | The specified available zone does not match with the specified subnet. | 指定的可用区和指定的子网不匹配。 |
400 | InvalidTransitRouterAttachment.ZoneUnsupported | There are available zones not supported by Transit Router. | 指定的部分可用区暂不支持创建网络实例连接。 |
400 | QuotaExceeded.AttachPointPerTransitRouterAttachment | The specified request reaches the max number of attach points that you can specify. | 已达到单个网络实例连接可指定的挂载点数目上限。 |
400 | InvalidTransitRouterAttachment.InsufficientSubnetIpAddresses | There are subnets that do not have available IP addresses. | 存在子网无可用IP。 |
400 | InvalidTransitRouter.InvalidBusinessStatus | The request is denied because the specified Transit Router is shut down due to arrears. | 指定的中转路由器欠费关停,不支持当前操作。 |
400 | LimitExceeded.AutoRoutePublishOfTrEnabledPerVpc | You've reached the maximum number of TRs that one vpc can enable auto route publish with. | 已达到单个私有网络可开启的TR路由自动同步的TR数量上限。 |
400 | InvalidTransitRouterAttachment.SubnetWithoutIPv4Cidr | There are subnets without IPv4 cidr within the specific requirement. | 存在部分子网无可用IPv4地址。 |
400 | InvalidTransitRouterAttachment.SubnetWithoutIPv6Cidr | There are subnets without IPv6 cidr within the specific requirement. | 存在部分子网无可用IPv6地址。 |
400 | InvalidTransitRouterAttachment.VpcWithIPv4RouteEntryToTransitRouter | The specified TR attachment can not be modified as IPv6 only, since there are IPv4 static routes in VPC route tables depending on the attachment. | 指定的私有网络中存在指向该中转路由器的IPv4路由条目,不允许关闭该连接的IPv4功能。 |
400 | InvalidTransitRouterAttachment.VpcWithIPv6RouteEntryToTransitRouter | The specified TR attachment can not be modified as IPv4 only, since there are IPv6 static routes in VPC route tables depending on the attachment. | 指定的私有网络中存在指向该中转路由器的IPv6路由条目,不允许关闭该连接的IPv6功能。 |
400 | InvalidTransitRouterAttachment.VpcWithRouteEntryToTransitRouter | The VPC of the specified attachment has customized route entries to the Transit Router. | 指定网络实例连接对应私有网络的路由表存在指向该中转路由器的路由条目。 |
400 | InvalidTransitRouterAttachment.WithIPv4StaticRouteEntry | The specified TR attachment can not be modified as IPv6 only, since there are IPv4 static routes in TR route tables depending on the attachment. | TR路由表中存在指向该网络实例的IPv4静态路由,不允许关闭该连接的IPv4功能。 |
400 | InvalidTransitRouterAttachment.WithIPv6StaticRouteEntry | The specified TR attachment can not be modified as IPv4 only, since there are IPv6 static routes in TR route tables depending on the attachment. | TR路由表中存在指向该网络实例的IPv6静态路由,不允许关闭该连接的IPv6功能。 |
403 | Forbidden.TransitRouterIPv6 | You are not authorized to use ipv6 on Transit Router. | 未开通中转路由器IPv6功能,不支持该操作。 |
403 | Forbidden.NoPermissionToOperate | You are not authorized to operate the specified resource. | 无权限操作指定的资源。 |
404 | InvalidTransitRouterAttachment.NotFound | The specified Transit Router attachment does not exist. | 指定的网络实例连接不存在。 |
404 | InvalidTransitRouterAttachment.SubnetNotFound | The specified subnet does not exist. | 指定的子网不存在。 |