You can call the DescribeCenRouteMaps operation to query the configurations of routing policies.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:DescribeCenRouteMaps |
get |
*CenInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. |
10 |
| CenId |
string |
Yes |
The ID of the Cloud Enterprise Network (CEN) instance. |
cen-wx12mmlt17ld82**** |
| RouteMapId |
string |
No |
The ID of the routing policy. |
cenrmap-y40mxdvf7joc12**** |
| CenRegionId |
string |
No |
The ID of the region where the routing policy is applied. You can call the DescribeChildInstanceRegions operation to query region IDs. |
cn-hangzhou |
| TransmitDirection |
string |
No |
The direction in which the routing policy is applied. Valid values:
For example, routes are advertised from network instances in the current region to the gateway of the current region, or routes from other regions are advertised to the gateway of the current region.
For example, routes are advertised from the gateway of the current region to network instances in the current region, or to gateways in other regions. |
RegionOut |
| TransitRouterRouteTableId |
string |
No |
The ID of the route table of the transit router that is associated with the routing policy. |
vtb-gw8nx3515m1mbd1z1**** |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The response. |
||
| PageSize |
integer |
The number of entries returned per page. |
10 |
| RequestId |
string |
The request ID. |
24CE1987-D1D1-5324-9BAD-2750B60E6ABB |
| PageNumber |
integer |
The page number. |
1 |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| RouteMaps |
object |
||
| RouteMap |
array<object> |
A list of routing policies. |
|
|
object |
The information about the routing policy. |
||
| RouteMapId |
string |
The ID of the routing policy. |
cenrmap-y40mxdvf7joc12**** |
| Status |
string |
The status of the routing policy.
|
Active |
| TransmitDirection |
string |
The direction in which the routing policy is applied. |
RegionOut |
| SourceInstanceIdsReverseMatch |
boolean |
Indicates whether the source instance IDs are excluded.
|
false |
| CenRegionId |
string |
The ID of the region where the routing policy is applied. |
cn-hangzhou |
| CenId |
string |
The ID of the CEN instance. |
cen-wx12mmlt17ld82**** |
| Priority |
integer |
The priority of the routing policy. A smaller value indicates a higher priority. |
5000 |
| TransitRouterRouteTableId |
string |
The ID of the route table of the transit router that is associated with the routing policy. |
vtb-gw8nx3515m1mbd1z1**** |
| CommunityOperateMode |
string |
The action to be performed on the community.
This parameter specifies the action to be performed after a route meets the match conditions. |
Additive |
| MapResult |
string |
The action that is performed after all match conditions are met.
|
Deny |
| CommunityMatchMode |
string |
The match mode for the community.
|
Include |
| Description |
string |
The description of the routing policy. |
desctest |
| AsPathMatchMode |
string |
The match mode for the AS-path.
|
Include |
| Preference |
integer |
The new priority of the route. A smaller value indicates a higher priority. This parameter specifies the action to be performed after a route meets the match conditions. |
20 |
| DestinationInstanceIdsReverseMatch |
boolean |
Indicates whether the destination instance IDs are excluded.
|
false |
| CidrMatchMode |
string |
The match mode for the prefix list. Valid values:
For example, a policy with the 10.10.0.0/16 route prefix matches the 10.10.1.0/24 route.
For example, a policy with the 10.10.0.0/16 route prefix matches only the 10.10.0.0/16 route. |
Include |
| NextPriority |
integer |
The priority of the next routing policy that is associated with the current routing policy. |
33 |
| MatchAddressType |
string |
The IP address family of the route.
|
IPv4 |
| SourceRegionIds |
object |
||
| SourceRegionId |
array |
A list of source region IDs to be matched. |
|
|
string |
A list of source region IDs to be matched. |
cn-hangzhou |
|
| SourceChildInstanceTypes |
object |
||
| SourceChildInstanceType |
array |
A list of source instance types to be matched.
|
|
|
string |
A list of source instance types to be matched.
|
VPC |
|
| DestinationRouteTableIds |
object |
||
| DestinationRouteTableId |
array |
A list of destination route table IDs to be matched. You can enter up to 32 route table IDs. Note
This parameter takes effect only when the routing policy is applied to the outbound direction of the regional gateway and the destination route table belongs to a network instance in the current region. |
|
|
string |
A list of destination route table IDs to be matched. You can enter up to 32 route table IDs. Note
This parameter takes effect only when the routing policy is applied to the outbound direction of the regional gateway and the destination route table belongs to a network instance in the current region. |
vtb-adefrgtr144vf**** |
|
| SourceInstanceIds |
object |
||
| SourceInstanceId |
array |
A list of source instance IDs to be matched. |
|
|
string |
A list of source instance IDs to be matched. |
vpc-adeg3544fdf34vf**** |
|
| DestinationCidrBlocks |
object |
||
| DestinationCidrBlock |
array |
A list of prefixes to be matched. Both IPv4 and IPv6 prefixes are supported. |
|
|
string |
A list of prefixes to be matched. Both IPv4 and IPv6 prefixes are supported. |
10.10.10.0/24 |
|
| DestinationRegionIds |
object |
||
| DestinationRegionId |
array |
A list of destination region IDs. |
|
|
string |
A list of destination region IDs. |
cn-beijing |
|
| SourceRouteTableIds |
object |
||
| SourceRouteTableId |
array |
A list of source route table IDs to be matched. |
|
|
string |
A list of source route table IDs to be matched. |
vtb-adfr233vf34rvd4**** |
|
| MatchCommunitySet |
object |
||
| MatchCommunity |
array |
The community to be matched. |
|
|
string |
The community to be matched. |
65501:1 |
|
| PrependAsPath |
object |
||
| AsPath |
array |
The AS-path that is prepended when the regional gateway receives or advertises a route. This parameter specifies the action to be performed after a route meets the match conditions. |
|
|
string |
The AS-path that is prepended when the regional gateway receives or advertises a route. This parameter specifies the action to be performed after a route meets the match conditions. |
65501 |
|
| RouteTypes |
object |
||
| RouteType |
array |
A list of route types to be matched.
|
|
|
string |
A list of route types to be matched.
|
System |
|
| DestinationChildInstanceTypes |
object |
||
| DestinationChildInstanceType |
array |
A list of destination instance types to be matched.
Note
This parameter takes effect only when the routing policy is applied to the outbound direction of the regional gateway and the destination instance is in the current region. |
|
|
string |
A list of destination instance types to be matched.
Note
This parameter takes effect only when the routing policy is applied to the outbound direction of the regional gateway and the destination instance is in the current region. |
VPC |
|
| DestinationInstanceIds |
object |
||
| DestinationInstanceId |
array |
A list of destination instance IDs to be matched. Note
This parameter takes effect only when the routing policy is applied to the outbound direction of the regional gateway and the destination instance is in the current region. |
|
|
string |
A list of destination instance IDs to be matched. Note
This parameter takes effect only when the routing policy is applied to the outbound direction of the regional gateway and the destination instance is in the current region. |
vpc-afrfs434465fdf**** |
|
| MatchAsns |
object |
||
| MatchAsn |
array |
A list of AS-paths to be matched. |
|
|
string |
A list of AS-paths to be matched. |
65501 |
|
| OperateCommunitySet |
object |
||
| OperateCommunity |
array |
The community to be operated. |
|
|
string |
The community to be operated. |
65501:1 |
Examples
Success response
JSON format
{
"PageSize": 10,
"RequestId": "24CE1987-D1D1-5324-9BAD-2750B60E6ABB",
"PageNumber": 1,
"TotalCount": 1,
"RouteMaps": {
"RouteMap": [
{
"RouteMapId": "cenrmap-y40mxdvf7joc12****",
"Status": "Active",
"TransmitDirection": "RegionOut",
"SourceInstanceIdsReverseMatch": false,
"CenRegionId": "cn-hangzhou",
"CenId": "cen-wx12mmlt17ld82****",
"Priority": 5000,
"TransitRouterRouteTableId": "vtb-gw8nx3515m1mbd1z1****",
"CommunityOperateMode": "Additive",
"MapResult": "Deny",
"CommunityMatchMode": "Include",
"Description": "desctest",
"AsPathMatchMode": "Include",
"Preference": 20,
"DestinationInstanceIdsReverseMatch": false,
"CidrMatchMode": "Include",
"NextPriority": 33,
"MatchAddressType": "IPv4",
"SourceRegionIds": {
"SourceRegionId": [
"cn-hangzhou"
]
},
"SourceChildInstanceTypes": {
"SourceChildInstanceType": [
"VPC"
]
},
"DestinationRouteTableIds": {
"DestinationRouteTableId": [
"vtb-adefrgtr144vf****"
]
},
"SourceInstanceIds": {
"SourceInstanceId": [
"vpc-adeg3544fdf34vf****"
]
},
"DestinationCidrBlocks": {
"DestinationCidrBlock": [
"10.10.10.0/24"
]
},
"DestinationRegionIds": {
"DestinationRegionId": [
"cn-beijing"
]
},
"SourceRouteTableIds": {
"SourceRouteTableId": [
"vtb-adfr233vf34rvd4****"
]
},
"MatchCommunitySet": {
"MatchCommunity": [
"65501:1"
]
},
"PrependAsPath": {
"AsPath": [
"65501"
]
},
"RouteTypes": {
"RouteType": [
"System"
]
},
"DestinationChildInstanceTypes": {
"DestinationChildInstanceType": [
"VPC"
]
},
"DestinationInstanceIds": {
"DestinationInstanceId": [
"vpc-afrfs434465fdf****"
]
},
"MatchAsns": {
"MatchAsn": [
"65501"
]
},
"OperateCommunitySet": {
"OperateCommunity": [
"65501:1"
]
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.