Queries routes in route tables of network instances that point to network instance connections on Enterprise Edition transit routers.
Operation description
Before you call the ListCenChildInstanceRouteEntriesToAttachment operation, make sure that all request parameter values are valid. If a parameter is set to an invalid value, a request ID is returned, but the routes to the network instance are not returned.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
cen:ListCenChildInstanceRouteEntriesToAttachment | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
MaxResults | integer | No | The number of entries to return on each page. Default value: 20. | 20 |
NextToken | string | No | The token that determines the start point of the query. Valid values:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
CenId | string | No | The ID of the CEN instance. | cen-dc4vwznpwbobrl**** |
ChildInstanceRouteTableId | string | Yes | The ID of the route table configured on the network instance. | vtb-bp174d1gje79u1g4t**** |
TransitRouterAttachmentId | string | Yes | The ID of the network instance connection. | tr-attach-r6g0m3epjehw57**** |
RouteFilter | array<object> | No | The filter condition for the destination CIDR block. | |
object | No | |||
Key | string | No | The match mode of the route.
| prefix-exact-match |
Value | array | No | The destination CIDR blocks. | |
string | No | The destination CIDR block. | 10.0.0.0/8 | |
ServiceType | string | No | 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
Examples
Sample success responses
JSON
format
{
"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 code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam.NextToken | The parameter NextToken is invalid. | The error message returned because the NextToken parameter is set to an invalid value. Check the value and try again. |
400 | MissingParam.TransitRouterAttachmentId | The parameter TransitRouterAttachmentId is Missing. | The error message returned because the TransitRouterAttachmentId parameter is not set. |
400 | MissingParam.ChildInstanceRouteTableId | The parameter ChildInstanceRouteTableId is Missing. | - |
400 | MissingParam.ChildInstanceRouteTableId | The parameter TransitRouterAttachmentId is Missing. | The error message returned because the ChildInstanceRouteTableId parameter is not set. |
400 | InvalidParam.RouteFilter | The parameter RouteFilter is invalid. | The error message returned because the specified route filter is invalid. |
400 | ResourceNotFound.TransitRouterAttachment | The specified TransitRouterAttachment does not exist. | - |
400 | InvalidParam.RoutFilterKey | The specified Key of RouteFilter is invalid. | The error message returned because the specified route filter key is invalid. |
400 | InvalidParam.CenId | The specified CEN does not exist. | - |
400 | OperationFailed.CenInstanceStatus | The CEN instance is not in a valid state for the operation. | - |
400 | Unauthorized | The 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 time | Summary of changes | Operation |
---|