Queries the associated forwarding correlations of a route table of an Enterprise Edition transit router.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No ListTransitRouterRouteTableAssociations

The operation that you want to perform. Set the value to ListTransitRouterRouteTableAssociations.

TransitRouterRouteTableId String Yes vtb-bp1dudbh2d5na6b50****

The ID of the route table of the Enterprise Edition transit router.

MaxResults Integer No 1

The number of entries to return on each page. Default value: 50.

NextToken String No a415****

The token for returning the next page when the data is returned in more than one page.

TransitRouterAttachmentId String No tr-attach-nls9fzkfat8934****

The ID of the network instance connection.

Response parameters

Parameter Type Example Description
MaxResults Integer 1

The number of entries returned per page.

NextToken String a415****

The token for returning the next page when the data is returned in more than one page.

RequestId String F6B1D9AB-176D-4399-801D-8BC576F4EB0D

The ID of the request.

TotalCount Integer 2

The total number of entries returned.

TransitRouterAssociations Array of TransitRouterAssociation

The list of associated forwarding correlations.

ResourceId String vpc-bp1h8vbrbcgohcju5****

The ID of the next hop.

ResourceType String VPC

The type of next hop. Valid values:

  • VPC: a virtual private cloud (VPC)
  • CCN: a Cloud Connect Network (CCN) instance
  • VBR: a virtual border router (VBR)
  • TR: a transit router
Status String Associating

The state of the associated forwarding correlation. Valid values:

  • Active: The route table is associated with the network instance connection.
  • Associating: The route table is being associated with the network instance connection.
  • Dissociating: The route table is being disassociated from the network instance connection.
  • Deleted: The route table is disassociated from the network instance connection.
TransitRouterAttachmentId String tr-attach-nls9fzkfat8934****

The ID of the network instance connection.

TransitRouterRouteTableId String vtb-bp1dudbh2d5na6b50****

The ID of the route table of the Enterprise Edition transit router.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListTransitRouterRouteTableAssociations
&TransitRouterAttachmentId=tr-attach-nls9fzkfat8934****
&TransitRouterRouteTableId=vtb-bp1dudbh2d5na6b50****
&<Common request parameters>

Sample success responses

XML format

<ListTransitRouterRouteTableAssociationsResponse> 
  <TotalCount>2</TotalCount>
  <RequestId>F6B1D9AB-176D-4399-801D-8BC576F4EB0D</RequestId>
  <NextToken>a415****</NextToken>
  <MaxResults>1</MaxResults>
  <TransitRouterAssociations>
        <Status>Associating</Status>
        <TransitRouterAttachmentId>tr-attach-nls9fzkfat8934****</TransitRouterAttachmentId>
        <TransitRouterRouteTableId>vtb-bp1dudbh2d5na6b50****</TransitRouterRouteTableId>
        <ResourceId>vpc-bp1h8vbrbcgohcju5****</ResourceId>
        <ResourceType>VPC</ResourceType>
  </TransitRouterAssociations>
</ListTransitRouterRouteTableAssociationsResponse>

JSON format

{
  "TotalCount": 2,
  "RequestId": "F6B1D9AB-176D-4399-801D-8BC576F4EB0D",
  "NextToken": "a415****",
  "MaxResults": 1,
  "TransitRouterAssociations": [
    {
      "Status": "Associating",
      "TransitRouterAttachmentId": "tr-attach-nls9fzkfat8934****",
      "TransitRouterRouteTableId": "vtb-bp1dudbh2d5na6b50****",
      "ResourceId": "vpc-bp1h8vbrbcgohcju5****",
      "ResourceType": "VPC"
    }
  ]
}

Error codes

HttpCode Error code Error message Description
400 IllegalParam.NextToken The parameter NextToken is invalid. The error message returned because the specified value of the NextToken parameter is invalid. Check the limits and change the value accordingly.

For a list of error codes, visit the API Error Center.