All Products
Search
Document Center

Cloud Enterprise Network:ListCenChildInstanceRouteEntriesToAttachment

Last Updated:Jul 19, 2024

Queries routes in route tables of network instances that point to network instance connections on Enterprise Edition transit routers.

Debugging

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

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
MaxResultsintegerNo

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

20
NextTokenstringNo

The token that determines the start point of the query. Valid values:

  • If this is your first query and no subsequent queries are to be sent, ignore this parameter.
  • If a subsequent query is to be sent, set the parameter to the value of NextToken that is returned from the last call.
FFmyTO70tTpLG6I3FmYAXGKPd****
CenIdstringNo

The ID of the CEN instance.

cen-dc4vwznpwbobrl****
ChildInstanceRouteTableIdstringYes

The ID of the route table configured on the network instance.

vtb-bp174d1gje79u1g4t****
TransitRouterAttachmentIdstringYes

The ID of the network instance connection.

tr-attach-r6g0m3epjehw57****
RouteFilterarray<object>No

The filter condition for the destination CIDR block.

objectNo
KeystringNo

The match mode of the route.

  • prefix-exact-match: exact match.
prefix-exact-match
ValuearrayNo

The destination CIDR blocks.

stringNo

The destination CIDR block.

10.0.0.0/8
ServiceTypestringNo

Specifies whether to host the route. If you leave the parameter empty, the route is not hosted. A value of TR specifies that the route is hosted on a transit router.

TR

Response parameters

ParameterTypeDescriptionExample
object

The response.

NextTokenstring

The token that determines the start point of the next query. Valid values:

  • If NextToken is not returned, it indicates that no additional results exist.
  • If NextToken was returned in the previous query, specify the value to obtain the next set of results.
FFmyTO70tTpLG6I3FmYAXGKPd****
RequestIdstring

The ID of the region.

530BC816-F575-412A-AAB2-435125D26328
RouteEntryarray<object>

The detailed information about the route.

object

The detailed information about the route.

CenIdstring

The ID of the CEN instance.

cen-9adwg6ghpq8oq4dp7q
TransitRouterAttachmentIdstring

The ID of the network instance connection.

tr-attach-y463sghkkv1loe****
Statusstring

The status of the route. Valid values:

  • Available: The route is available.
  • Pending: The route is being configured.
  • Modifying: the route is being modified.
Available
ServiceTypestring

Indicates whether the route is hosted. If the parameter is empty, the route is not hosted. A value of TR indicates that the route is hosted on a transit router.

TR
DestinationCidrBlockstring

The destination CIDR block of the route.

10.0.0.0/8
ChildInstanceRouteTableIdstring

The ID of the route table configured on the network instance.

vtb-bp1tlaj1c4nxr2t3e****

Examples

Sample success responses

JSONformat

{
  "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
  "RequestId": "530BC816-F575-412A-AAB2-435125D26328",
  "RouteEntry": [
    {
      "CenId": "cen-9adwg6ghpq8oq4dp7q",
      "TransitRouterAttachmentId": "tr-attach-y463sghkkv1loe****",
      "Status": "Available",
      "ServiceType": "TR",
      "DestinationCidrBlock": "10.0.0.0/8",
      "ChildInstanceRouteTableId": "vtb-bp1tlaj1c4nxr2t3e****"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalParam.NextTokenThe parameter NextToken is invalid.The error message returned because the NextToken parameter is set to an invalid value. Check the value and try again.
400MissingParam.TransitRouterAttachmentIdThe parameter TransitRouterAttachmentId is Missing.The error message returned because the TransitRouterAttachmentId parameter is not set.
400MissingParam.ChildInstanceRouteTableIdThe parameter ChildInstanceRouteTableId is Missing.-
400MissingParam.ChildInstanceRouteTableIdThe parameter TransitRouterAttachmentId is Missing.The error message returned because the ChildInstanceRouteTableId parameter is not set.
400InvalidParam.RouteFilterThe parameter RouteFilter is invalid.The error message returned because the specified route filter is invalid.
400ResourceNotFound.TransitRouterAttachmentThe specified TransitRouterAttachment does not exist.-
400InvalidParam.RoutFilterKeyThe specified Key of RouteFilter is invalid.The error message returned because the specified route filter key is invalid.
400InvalidParam.CenIdThe specified CEN does not exist.-
400OperationFailed.CenInstanceStatusThe CEN instance is not in a valid state for the operation.-
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
No change history