All Products
Search
Document Center

Cloud Enterprise Network:ReplaceTransitRouterRouteTableAssociation

Last Updated:Oct 22, 2024

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

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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
cen:ReplaceTransitRouterRouteTableAssociationupdate
  • TransitRouterVpcAttachment
    acs:cen:*:{#accountId}:centransitrouterattachment/{#centransitrouterattachmentId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ClientTokenstringNo

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.
123e4567-e89b-12d3-a456-426655****
DryRunbooleanNo

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.
false
TransitRouterAttachmentIdstringYes

The ID of the network instance connection.

tr-attach-071g5j5tefg4x6****
TransitRouterRouteTableIdstringYes

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

vtb-bp1cprmc6xmzjd66i****

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The ID of the request.

160BD7D3-3D1E-5702-9AF0-56E4B15FCB65

Examples

Sample success responses

JSONformat

{
  "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 OperationView Change Details