Queries the details of one or more route maps.
Operation description
Request description
RouteMapIds: Optional. The IDs of the route maps to query. If you do not specify this parameter, all route maps are queried.
Filter: Optional. The filter conditions used to filter route maps based on specific attributes such as name and direction.
ResourceGroupId: Optional. The ID of the resource group used to further filter the results.
DryRun: Optional. Specifies whether to perform a dry run.
MaxResults and NextToken: The pagination parameters used to control the number of returned results and retrieve the next page.
Note: If you specify both RouteMapIds and Filter, the logical OR operator is used. A route map that meets either condition is returned.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ListRouteMaps |
list |
RouteMap
RouteMap
|
None | None |
Request syntax
GET / HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
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 ensure that it is unique among different requests. The client token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the RequestId of the API request as the client token. The RequestId of each API request may be different. |
02fb3da4-130e-11e9-8e44-001**** |
| RouteMapIds |
array |
No |
The IDs of the route maps to query. If you do not specify this parameter, all route maps are queried. |
|
|
string |
No |
The IDs of the route maps to query. If you do not specify this parameter, all route maps are queried. |
rm-0a1b2c3d4e5f6a7b8 |
|
| Filter |
array<object> |
No |
The filter conditions. You can specify up to 5 filter conditions at a time. |
|
|
object |
No |
The filter conditions. You can specify up to 5 filter conditions at a time. |
||
| Key |
string |
No |
The filter condition. Valid values:
By default, multiple filter conditions have a logical AND relationship. A route map is returned only when it meets all filter conditions. You can specify up to 5 filter conditions at a time. |
Priority |
| Value |
array |
No |
The value of the filter condition. Specify the filter value based on the Key. You can specify multiple filter values for a single Key. Multiple filter values have a logical OR relationship. A route map is returned when it meets any of the filter values. You can specify up to 5 filter values for a single filter condition. |
|
|
string |
No |
The value of the filter condition. Specify the filter value based on the Key. You can specify multiple filter values for a single Key. Multiple filter values have a logical OR relationship. A route map is returned when it meets any of the filter values. You can specify up to 5 filter values for a single filter condition. |
10 |
|
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-0a1b2c3d4e5f6a7b8 |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run. Valid values:
|
true |
| MaxResults |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 100. If you do not specify the MaxResults parameter, pagination is not used. After you call the operation, the value of MaxResults indicates the total number of entries. If you specify the MaxResults parameter, pagination is used. After you call the operation, the value of MaxResults indicates the number of entries returned in the current query. We recommend that you set the MaxResults parameter to 20. |
10 |
| NextToken |
string |
No |
The token that is used to retrieve the next page of results. Valid values:
|
dd20**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The time when the route map was created. The time follows the ISO 8601 standard in the |
||
| MaxResults |
integer |
The number of entries returned on each page. Default value: 20. |
20 |
| NextToken |
string |
The token that is used to retrieve the next page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| RequestId |
string |
The ID of the request. |
B2063B16-852B-5B66-B73D-4ED4D1A5E5C2 |
| RouteMaps |
array<object> |
The information about the route maps. |
|
|
array<object> |
The information about the route maps. |
||
| CreationTime |
string |
The time when the route map was created. The time follows the ISO 8601 standard in the |
2026-03-28T02:29:19Z |
| Description |
string |
The description of the route map. |
desctest |
| Direction |
string |
The direction of the route map. Valid values:
|
Inbound |
| Name |
string |
The name of the route map. |
test |
| Priority |
integer |
The priority of the route map. A smaller value indicates a higher priority. |
10 |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-acfmydlzjd6dlhi |
| RouteMapId |
string |
The ID of the route map. |
rm-y40mxdvf7joc12**** |
| Status |
string |
The status of the route map. Valid values:
|
Active |
| Tag |
array<object> |
The list of tags. |
|
|
object |
The tag information. |
||
| Key |
string |
The tag key. |
test |
| Value |
string |
The tag value. |
jg |
| Version |
integer |
The version number of the route map configuration. The version number increases each time the route map and its associated route map rules are modified. |
7 |
| TotalCount |
integer |
The total number of entries. |
1 |
Examples
Success response
JSON format
{
"MaxResults": 20,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "B2063B16-852B-5B66-B73D-4ED4D1A5E5C2",
"RouteMaps": [
{
"CreationTime": "2026-03-28T02:29:19Z",
"Description": "desctest",
"Direction": "Inbound",
"Name": "test",
"Priority": 10,
"ResourceGroupId": "rg-acfmydlzjd6dlhi",
"RouteMapId": "rm-y40mxdvf7joc12****",
"Status": "Active",
"Tag": [
{
"Key": "test",
"Value": "jg"
}
],
"Version": 7
}
],
"TotalCount": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidOperation.UnsupportFilterValue | The specified FeatureFilter Value is not supported by this operation. | The error message returned because the specified filter value is invalid. |
| 400 | IllegalParam.NextToken | NextToken is illegal | The error message returned because the NextToken parameter is set to an invalid value. |
| 400 | InvalidParameter.MaxResults | The specified MaxResults is invalid. | The error message returned because the MaxResults parameter is set to an invalid value. |
| 400 | InvalidParameter.RouteMapIds | The specified RouteMapIds is invalid. | The specified RouteMapIds is invalid. |
| 400 | InvalidParameter.Filter | The specified Filter is invalid. | The specified Filter is invalid. |
| 400 | IllegalParam.TagKey | The tag keys are not valid. | The error message returned because the specified tag key is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.