All Products
Document Center

Cloud Enterprise Network:ReplaceTransitRouterRouteTableAssociation

Last Updated:Mar 25, 2024

Associates a network instance connection with another route table of a transit router.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
  • TransitRouterVpcAttachment

Request parameters


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

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

Note If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId for each API request may be different.

Specifies whether only to precheck the API request. Valid values:

  • true: prechecks the request but does not associate the network instance connection with another route table. The system checks whether the required parameters are set, whether the formats of the values are valid, and the service limits. If the request fails to pass the precheck, the corresponding error message is returned. If the request passes the precheck, the DryRunOperation error code is returned.
  • false: sends the request. After the request passes the authentication, the network instance connection is associated with the specified route table. This is the default value.

The ID of the network instance connection.


The ID of the route table with which you want to associate the network instance connection.


Response parameters


The returned result.


The ID of the request.



Sample success responses


  "RequestId": "160BD7D3-3D1E-5702-9AF0-56E4B15FCB65"

Error codes

HTTP status codeError codeError messageDescription
400InvalidAttachmentId.NotFoundThe specified AttachmentId is not found.The error message returned because the specified network instance connection ID does not exist.
400InvalidRouteTableId.NotFoundThe specified RouteTableId is not found.The specified route table ID does not exist.
400OperationUnsupported.TransitAttachmentThe specified TransitAttachment does not support the operation.The error message returned because this operation is not supported by the specified transit router attachment (TransitAttachment).
400IllegalParam.TransitRouterTableTypeTransitRouterTableType is illegal. -
400IncorrectStatus.StatusThe TransitRouterRouteTable or TransitRouterAttachment Status is illegal.The error message returned because the status of the transit router route table or the transit router attachment does not support this operation. Try again later.
400InvalidParameterInvalid parameter.The error message returned because the parameter is set to an invalid value.
400UnauthorizedThe AccessKeyId is unauthorized.The error message returned because you do not have the permissions to perform this operation.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2021-09-29Add Operationsee changesets