调用UpdateTransitRouterPeerAttachmentAttribute接口修改企业版转发路由器下跨地域连接的配置。
接口说明
UpdateTransitRouterPeerAttachmentAttribute 接口属于异步接口,即系统会先返回一个 RequestId,但该跨地域连接并未修改完成,系统后台的修改任务仍在进行。您可以调用 ListTransitRouterPeerAttachments 接口查询跨地域连接的状态。
当跨地域连接处于 Modifying 状态时,表示跨地域连接正在修改中,在该状态下,您只能对跨地域连接执行查询操作,不能执行其他操作。
当跨地域连接处于 Attached 状态时,表示跨地域连接修改完成。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
cen:UpdateTransitRouterPeerAttachmentAttribute |
update |
*TransitRouterPeerAttachment
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样。 |
02fb3da4-130e-11e9-8e44-001**** |
TransitRouterAttachmentId |
string |
是 |
跨地域连接 ID。 |
tr-attach-ft94dcrbc3e5taun3x |
TransitRouterAttachmentName |
string |
否 |
跨地域连接的新名称。 名称可以为空或长度为 1~128 个字符,不能以 http://或 https://开头。 |
testname |
TransitRouterAttachmentDescription |
string |
否 |
跨地域连接新的描述信息。 描述可以为空或长度为 1~256 个字符,不能以 http://或 https://开头。 |
testdesc |
AutoPublishRouteEnabled |
boolean |
否 |
是否允许企业版转发路由器自动发布跨地域连接的路由到对端地域。
|
false |
DryRun |
boolean |
否 |
是否对此次请求执行预检,包括权限、实例状态校验等。取值:
|
false |
Bandwidth |
integer |
否 |
跨地域连接的带宽值。单位:Mbps。
|
2 |
CenBandwidthPackageId |
string |
否 |
跨地域连接要绑定的带宽包 ID。 如果不输入带宽包 ID,则表示您要使用测试带宽。系统默认测试带宽为 1 Kbps,仅供您测试(IPv4)网络连通性。 说明
当 BandwidthType 取值为 DataTransfer 时,无需配置该项。 |
cenbwp-3xrxupouolw5ou**** |
BandwidthType |
string |
否 |
带宽的分配方式。取值:
|
BandwidthPackage |
DefaultLinkType |
string |
否 |
默认链路类型。 可选值为 Platinum(铂金),Gold(金),默认为 Gold(金)。 且仅在带宽分配方式是按流量计费时,才可以配置为 Platinum(铂金)。 |
Gold |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
返回结果。 |
||
RequestId |
string |
请求 ID。 |
A01FEDD7-7D69-4EB3-996D-CF79F6F885CA |
示例
正常返回示例
JSON
格式
{
"RequestId": "A01FEDD7-7D69-4EB3-996D-CF79F6F885CA"
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | InvalidTransitRouterAttachmentId.NotFound | TransitRouterAttachmentId is not found. | 网络连接实例ID不存在。 |
400 | OperationUnsupported.BandwidthType | The specified BandwidthType does not support the operation. | 当前BandwidthType不支持该操作。 |
400 | MissingParam.Bandwidth | The parameter Bandwidth is mandatory. | 带宽值参数是必需的。 |
400 | IncorrectStatus.Attachment | The resource is not in a valid state for the attachment operation. | 网络连接实例正在处理状态,请稍后再操作。 |
400 | IllegalParam.BandwidthType | BandwidthType is illegal. | 带宽包类型不合法。 |
400 | IllegalParam.Bandwidth | Bandwidth is illegal. | 带宽包ID不合法。 |
400 | ParameterIllegal.BandwidthPackageDefaultLinkTypeOnlySupportGold | Cen bandwidthPackage only support Gold. | 带宽分配方式为带宽包时,默认链路类型仅支持金(Gold) |
400 | ParameterIllegal.CdtDefaultLinkTypeOnlySupportPlatinumOrGold | DataTransfer only support Platinum and Gold. | 带宽分配方式为按流量计费时,默认链路类型仅支持铂金(Platinum)和金(Gold)。 |
400 | ParameterIllegal.CdtDefaultLinkTypeOnlySupportGold | CDT only support Gold when both transitrouters for cross regional connections are not all enterprise version. | 当跨地域连接的两端转发路由器不全是企业版且带宽分配方式为按流量计费时,默认链路类型仅支持金(Gold)。 |
400 | OperationNotAllowed.DefaultLinkTypeOnlySupportGold | Operation is not allowed because this user can only set default link type to Gold. | 本用户只能设置默认链路类型为金。 |
400 | OperationUnsupported.TransitRouterAttachment | The specified TransitRouterAttachment has configured TransitRegion. Please remove the configuration first. | 存在带宽复用配置,请删除后重试。 |
400 | IllegalParam.BandwidthLessThanQosPolicyBandwidth | The input bandwidth value is less than the sum of the Qos policy bandwidth. | 输入的带宽值小于QoS按带宽分配的限速值总和。 |
400 | IllegalParam.BandwidthPackageStatus | The status of the bandwidth package is incorrect. | 带宽包的状态错误。 |
400 | QuotaExceeded.Bandwidth | Bandwidth quota exceeded. | 带宽值超出配额限制。 |
400 | ParamExclusive.BandwidthTypeAndCenBandwidthPackageId | DataTransfer and CenBandwidthPackageId is mutually exclusive. | 带宽分配方式为CDT时,不支持设置CenBandwidthPackageId字段。 |
400 | OperationUnsupported.CloudDataTransferService | CCN region not support cloud data transfer service. | CCN地域中不支持cloud data transfer服务。 |
400 | InvalidParameter | Invalid parameter. | 参数不合法。 |
400 | Unauthorized | The AccessKeyId is unauthorized. | 账号无权限操作。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。