All Products
Search
Document Center

Cloud Enterprise Network:UpdateTransitRouterPeerAttachmentAttribute

Last Updated:Jul 23, 2026

Modifies the configuration of an inter-region connection on an Enterprise Edition transit router by calling the UpdateTransitRouterPeerAttachmentAttribute operation.

Operation description

UpdateTransitRouterPeerAttachmentAttribute is an asynchronous operation. After you send a request, the system returns a RequestId but the inter-region connection is not yet modified. The modification task continues to run in the background. You can call ListTransitRouterPeerAttachments to query the status of the inter-region connection.

  • If the inter-region connection is in the Modifying state, the inter-region connection is being modified. In this state, you can only query the inter-region connection but cannot perform other operations on it.

  • If the inter-region connection is in the Attached state, the inter-region connection is modified.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cen:UpdateTransitRouterPeerAttachmentAttribute

update

*TransitRouterPeerAttachment

acs:cen:*:{#accountId}:centransitrouterattachment/{#centransitrouterattachmentId}

None None

Request parameters

Parameter

Type

Required

Description

Example

ClientToken

string

No

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.

Note

If you do not specify this parameter, the system automatically uses the RequestId as the ClientToken. The RequestId of each API request may be different.

02fb3da4-130e-11e9-8e44-001****

TransitRouterAttachmentId

string

Yes

The ID of the inter-region connection.

tr-attach-ft94dcrbc3e5taun3x

TransitRouterAttachmentName

string

No

The new name of the inter-region connection.

The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.

testname

TransitRouterAttachmentDescription

string

No

The new description of the inter-region connection.

The description can be empty or 1 to 256 characters in length, and cannot start with http:// or https://.

testdesc

AutoPublishRouteEnabled

boolean

No

Specifies whether to allow the Enterprise Edition transit router to automatically advertise routes of the inter-region connection to the peer region.

  • false (default): no.

  • true: yes.

false

DryRun

boolean

No

Specifies whether to perform a dry run, including permission and instance status verification. Valid values:

  • false (default): sends a normal request and directly modifies the configuration of the inter-region connection after the request passes the check.

  • true: sends a check request. Only the check is performed and the configuration of the inter-region connection is not modified. The check items include whether required parameters are specified and the request format. If the check fails, the corresponding error is returned. If the check succeeds, the corresponding request ID is returned.

false

Bandwidth

integer

No

The bandwidth value of the inter-region connection. Unit: Mbit/s.

  • If BandwidthType is set to BandwidthPackage, this parameter specifies the bandwidth that the inter-region connection can use.

  • If BandwidthType is set to DataTransfer, this parameter specifies the bandwidth limit of the inter-region connection.

2

CenBandwidthPackageId

string

No

The ID of the bandwidth package to be associated with the inter-region connection.

Note

If BandwidthType is set to DataTransfer, you do not need to configure this parameter.

cenbwp-3xrxupouolw5ou****

BandwidthType

string

No

The bandwidth allocation method. Valid values:

  • BandwidthPackage: allocates bandwidth from a bandwidth package.

  • DataTransfer: does not allocate bandwidth to the inter-region connection. Billing is based on the traffic volume.

BandwidthPackage

DefaultLinkType

string

No

The default link type.

Valid values: Platinum and Gold. Default value: Gold.

The value can be set to Platinum only when the bandwidth allocation method is pay-by-data-transfer.

Gold

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

A01FEDD7-7D69-4EB3-996D-CF79F6F885CA

Examples

Success response

JSON format

{
  "RequestId": "A01FEDD7-7D69-4EB3-996D-CF79F6F885CA"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidTransitRouterAttachmentId.NotFound TransitRouterAttachmentId is not found. The error message returned because the ID of the network instance does not exist.
400 OperationUnsupported.BandwidthType The specified BandwidthType does not support the operation. The error message returned because this operation is not supported by the specified bandwidth type.
400 MissingParam.Bandwidth The parameter Bandwidth is mandatory. The error message returned because no bandwidth value is specified. You must specify a bandwidth value.
400 IncorrectStatus.Attachment The resource is not in a valid state for the attachment operation. The error message returned because the operation is not allowed when the network instance is being processed. Try again later.
400 IllegalParam.BandwidthType BandwidthType is illegal. The error message returned because the specified bandwidth plan type is invalid.
400 IllegalParam.Bandwidth Bandwidth is illegal. The error message returned because the specified bandwidth plan ID is invalid.
400 ParameterIllegal.BandwidthPackageDefaultLinkTypeOnlySupportGold Cen bandwidthPackage only support Gold. Cen bandwidthPackage only support Gold.
400 ParameterIllegal.CdtDefaultLinkTypeOnlySupportPlatinumOrGold DataTransfer only support Platinum and Gold. DataTransfer only support Platinum and Gold.
400 ParameterIllegal.CdtDefaultLinkTypeOnlySupportGold CDT only support Gold when both transitrouters for cross regional connections are not all enterprise version. CDT only support Gold when both transitrouters for cross regional connections are not all enterprise version.
400 OperationNotAllowed.DefaultLinkTypeOnlySupportGold Operation is not allowed because this user can only set default link type to Gold. This user can only set the default link type to Gold.
400 OperationUnsupported.TransitRouterAttachment The specified TransitRouterAttachment has configured TransitRegion. Please remove the configuration first. The error message returned because bandwidth multiplexing is enabled. Disable bandwidth multiplexing and try again.
400 IllegalParam.BandwidthLessThanQosPolicyBandwidth The input bandwidth value is less than the sum of the Qos policy bandwidth. The input bandwidth value is less than the sum of the Qos policy bandwidth.
400 IllegalParam.BandwidthPackageStatus The status of the bandwidth package is incorrect. The status of the bandwidth package is incorrect.
400 QuotaExceeded.Bandwidth Bandwidth quota exceeded. Bandwidth quota exceeded.
400 ParamExclusive.BandwidthTypeAndCenBandwidthPackageId DataTransfer and CenBandwidthPackageId is mutually exclusive. When the value of bandwidthType is DataTransfer, the CenBandwidthPackageId field cannot be set.
400 OperationUnsupported.CloudDataTransferService CCN region not support cloud data transfer service. The error message returned because the Cloud Data Transfer (CDT) service is not supported in the region of the CCN instance.
400 InvalidParameter Invalid parameter. The error message returned because the parameter is set to an invalid value.
400 Unauthorized The AccessKeyId is unauthorized. The error message returned because you do not have the permissions to perform this operation.
400 ParameterIllegal.CdtDefaultLinkTypeOnlySupportUnderlaySilver CDT only support UnderlaySilver when both transitrouters for cross regional connections are not all enterprise version. CDT only support UnderlaySilver when both transitrouters for cross regional connections are not all enterprise version.
400 ParameterIllegal.DefaultLinkTypeOnlySupportUnderlaySilver Cen bandwidthPackage only support UnderlaySilver. When the bandwidth allocation method is bandwidth package, the default link type supports only silver (UnderlaySilver)
400 OperationNotAllowed.DefaultLinkTypeOnlySupportUnderlaySilver This user can only set the default link type to UnderlaySilver. This user can only set the default link type to UnderlaySilver.
400 InvalidOperation.QueueLinkTypeNotEqualsAttachmentLinkType The operation is invalid because the link type of an existing QoS queue does not match the link type of the attachment. The operation is invalid because the link type of an existing QoS queue does not match the link type of the attachment.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.