Describes the route entries of an Express Connect Router (ECR).
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
expressconnectrouter:DescribeExpressConnectRouterRouteEntries | list | *ExpressConnectRouter
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
EcrId | string | Yes | The ID of the ECR instance. | ecr-mezk2idmsd0vx2**** |
QueryRegionId | string | No | The region where the ECR instance is deployed. | cn-hangzhou |
DestinationCidrBlock | string | No | The destination CIDR block of the route that you want to query. | 172.20.47.0/24 |
NexthopInstanceId | string | No | The ID of the next hop instance. | br-hp3u4u5f03tfuljis**** |
AsPath | string | No | The AS path of the route. | [64993,64512] |
Community | string | No | The community value of the Border Gateway Protocol (BGP) route. | 9001:9263 |
NextToken | string | No | The token that is used for the next query. Valid values:
| FF9nMec/RZ6H9oqFn1pvyir/SLRlxCCyHJonbGzqL01hiM6Jb3wJowdHvjCfog7ww1b9rSHMRFJnrUBfVba68TJg== |
MaxResults | integer | No | The maximum number of entries to return on each page. Valid values: 1 to 2147483647. Default value: 10. | 10 |
DryRun | boolean | No | Specifies whether to perform a dry run. Valid values:
| true |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. Note If you do not specify this parameter, the system automatically uses the RequestId of the request as the ClientToken. The RequestId may be different for each request. | 02fb3da4-130e-11e9-8e44-00**** |
Response parameters
Parameter | Type | Description | Example |
object | RpcResponse | ||
RequestId | string | The request ID. | 6FABF516-FED3-5697-BDA2-B18C5D9A**** |
Success | boolean | Indicates whether the call is successful. Valid values:
| True |
Code | string | Indicates whether the call is successful. A value of 200 indicates that the call is successful. Other values indicate that the call failed. For more information, see the Error Codes section. | 200 |
Message | string | The message that is returned. | OK |
HttpStatusCode | integer | The HTTP status code. | 200 |
DynamicCode | string | The dynamic error code. | IllegalParamFormat.EcrId |
DynamicMessage | string | The dynamic error message. This message is used to replace the Note For example, if the value of ErrMessage is The Value of Input Parameter %s is not valid and the value of DynamicMessage is DtsJobId, the specified DtsJobId parameter is invalid. | The param format of EcrId **** is illegal. |
AccessDeniedDetail | string | The details of the access denial. | Authentication is failed for **** |
TotalCount | integer | The total number of entries. | 2 |
MaxResults | integer | The maximum number of entries returned per page. Valid values: 1 to 2147483647. Default value: 10. | 6 |
NextToken | string | The token that is used for the next query. Valid values:
| gAAAAABkWwFTUMNCdWC0VMYOIylA56Hx6JUfCZlk5hQ5g_fnKmetN6303tqq5UJ2ouJzyT2fDOdzb-NqyEB5jcY8Z2euX7qHDA== |
| RouteEntriesList | array<object> | The list of routes. | |
object | |||
DestinationCidrBlock | string | The destination CIDR block of the route. | 192.168.0.0/16 |
Status | string | The status of the ECR instance. | ACTIVE |
NexthopInstanceId | string | The ID of the next hop instance. | br-hp3u4u5f03tfuljis**** |
NexthopInstanceRegionId | string | The region where the next hop instance is deployed. | cn-hangzhou |
AsPath | string | The AS path of the route. | [64993,64512] |
Community | string | The community value of the BGP route. | 9001:9263 |
Med | integer | The MED value of the BGP route. The MED value is used to select the optimal route between an ECR and a transit router.
| 2000 |
Examples
Success response
JSON format
{
"RequestId": "6FABF516-FED3-5697-BDA2-B18C5D9A****",
"Success": true,
"Code": "200",
"Message": "OK",
"HttpStatusCode": 200,
"DynamicCode": "IllegalParamFormat.EcrId",
"DynamicMessage": "The param format of EcrId **** is illegal.\n",
"AccessDeniedDetail": "Authentication is failed for ****\n",
"TotalCount": 2,
"MaxResults": 6,
"NextToken": "gAAAAABkWwFTUMNCdWC0VMYOIylA56Hx6JUfCZlk5hQ5g_fnKmetN6303tqq5UJ2ouJzyT2fDOdzb-NqyEB5jcY8Z2euX7qHDA==",
"RouteEntriesList": [
{
"DestinationCidrBlock": "192.168.0.0/16",
"Status": "ACTIVE",
"NexthopInstanceId": "br-hp3u4u5f03tfuljis****\n",
"NexthopInstanceRegionId": "cn-hangzhou",
"AsPath": "[64993,64512]",
"Community": "9001:9263",
"Med": 2000
}
]
}Error codes
HTTP status code | Error code | Error message | Description |
400 | IllegalParamFormat.DestinationCidrBlock | The format of the specified destination Cidr route parameter is incorrect. | The format of the destination Cidr routing parameter you specified is incorrect. Please check and enter it again. |
400 | MissingParam.%s | The param of %s is missing. | The request parameters are not specified. Please check the corresponding parameters and try again. |
400 | IllegalParamFormat.%s | The param format of %s is illegal. | Illegal parameter format |
400 | IllegalParam.%s | The param of %s is illegal. | Illegal parameter |
404 | ResourceNotFound.EcrId | EcrId not found. | ECR instance does not exist |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.