Queries the routing policies of a Cloud Enterprise Network (CEN) instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeCenRouteMaps |
The operation that you want to perform. Set the value to DescribeCenRouteMaps. |
PageNumber | Integer | No | 1 |
The page number of the page to return. Default value: 1. |
PageSize | Integer | No | 10 |
The number of entries to return on each page. Default value: 10. |
CenId | String | Yes | cen-wx12mmlt17ld82**** |
The ID of the CEN instance. |
RouteMapId | String | No | cenrmap-y40mxdvf7joc12**** |
The ID of the routing policy. |
CenRegionId | String | No | cn-hangzhou |
The ID of the region where the routing policy is applied. You can call the DescribeChildInstanceRegions operation to query the most recent region list. |
TransmitDirection | String | No | RegionOut |
The direction in which the routing policy is applied. Valid values:
|
TransitRouterRouteTableId | String | No | vtb-gw8nx3515m1mbd1z1**** |
The route table ID of the transit router with which the routing policy is associated. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
PageSize | Integer | 10 |
The number of entries returned per page. |
RequestId | String | 24CE1987-D1D1-5324-9BAD-2750B60E6ABB |
The ID of the request. |
PageNumber | Integer | 1 |
The page number of the returned page. |
TotalCount | Integer | 1 |
The number of entries returned. |
RouteMaps | Array of RouteMap |
The information about the routing policy. |
|
RouteMap | |||
RouteMapId | String | cenrmap-y40mxdvf7joc12**** |
The ID of the routing policy. |
Status | String | Active |
The status of the routing policy. Valid values:
|
TransmitDirection | String | RegionOut |
The direction in which the routing policy is applied. |
SourceInstanceIdsReverseMatch | Boolean | false |
Indicates whether the source network instance IDs are excluded.
|
CenRegionId | String | cn-hangzhou |
The ID of the region where the routing policy is applied. |
CenId | String | cen-wx12mmlt17ld82**** |
The ID of the CEN instance. |
Priority | Integer | 5000 |
The priority of the routing policy. A smaller value indicates a higher priority. |
TransitRouterRouteTableId | String | vtb-gw8nx3515m1mbd1z1**** |
The route table ID of the transit router with which the routing policy is associated. |
CommunityOperateMode | String | Additive |
The action that is performed on the community of the route.
This parameter specifies the action to be performed when a route meets the match condition. |
MapResult | String | Deny |
The action performed on a route that meets the match conditions.
|
CommunityMatchMode | String | Include |
The match method that is used to match routes based on the community.
|
Description | String | desctest |
Enter a description for the routing policy. |
AsPathMatchMode | String | Include |
The match method that is used to match routes based on the AS path.
|
Preference | Integer | 20 |
The new priority of the route. A smaller value indicates a higher priority. This parameter specifies the action to be performed when a route meets the match condition. |
DestinationInstanceIdsReverseMatch | Boolean | false |
Indicates whether the destination network instance IDs are excluded.
|
CidrMatchMode | String | Include |
The match method that is used to match routes based on the prefix. Valid values:
|
NextPriority | Integer | 33 |
Specify a priority for the routing policy that you want to associate with the current one. |
SourceRegionIds | Array of String | cn-hangzhou |
The IDs of the source regions to which the routes belong. |
SourceChildInstanceTypes | Array of String | VPC |
The types of source network instances to which the routes belong.
|
DestinationRouteTableIds | Array of String | vtb-adefrgtr144vf**** |
The IDs of the destination route tables to which the routes belong. You can enter at most 32 route table IDs. Note The destination route table IDs are valid only when the routing policy is applied
to scenarios where routes are advertised from the gateway in the current region to
route tables in the current region.
|
SourceInstanceIds | Array of String | vpc-adeg3544fdf34vf**** |
The IDs of the source network instances to which the routes belong. |
DestinationCidrBlocks | Array of String | 10.10.10.0/24 |
The prefixes of the routes. |
SourceRouteTableIds | Array of String | vtb-adfr233vf34rvd4**** |
The IDs of the source route tables to which the routes belong. |
MatchCommunitySet | Array of String | 65501:1 |
The community set based on which the routes are compared. |
PrependAsPath | Array of String | 65501 |
The AS paths that are prepended by using an action statement when regional gateways receive or advertise routes. This parameter specifies the action to be performed when a route meets the match condition. |
RouteTypes | Array of String | System |
The type of route that is compared. Valid values:
|
DestinationChildInstanceTypes | Array of String | VPC |
The types of destination network instances to which the routes belong.
Note The destination network instance types are valid only when the routing policy is applied
to scenarios where routes are advertised from the gateway in the current region to
network instances in the current region.
|
DestinationInstanceIds | Array of String | vpc-afrfs434465fdf**** |
The IDs of the destination network instances to which the routes belong. Note The destination network instance IDs are valid only when the routing policy is applied
to scenarios where routes are advertised from the gateway in the current region to
network instances in the current region.
|
MatchAsns | Array of String | 65501 |
The AS paths based on which the routes are compared. |
OperateCommunitySet | Array of String | 65501:1 |
The community set on which actions are performed. |
Examples
Sample request
http(s)://[Endpoint]/?Action=DescribeCenRouteMaps
&PageNumber=1
&PageSize=10
&CenId=cen-wx12mmlt17ld82****
&RouteMapId=cenrmap-y40mxdvf7joc12****
&CenRegionId=cn-hangzhou
&TransmitDirection=RegionOut
&TransitRouterRouteTableId=vtb-gw8nx3515m1mbd1z1****
&Common request parameters
Sample responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeCenRouteMapsResponse>
<TotalCount>1</TotalCount>
<RequestId>24CE1987-D1D1-5324-9BAD-2750B60E6ABB</RequestId>
<PageSize>10</PageSize>
<PageNumber>1</PageNumber>
<RouteMaps>
<RouteMap>
<Status>Active</Status>
<TransitRouterRouteTableId>vtb-gw8nx3515m1mbd1z1****</TransitRouterRouteTableId>
<Priority>5000</Priority>
<SourceChildInstanceTypes>
<SourceChildInstanceType>VBR</SourceChildInstanceType>
<SourceChildInstanceType>CCN</SourceChildInstanceType>
</SourceChildInstanceTypes>
<CenId>cen-wx12mmlt17ld82****</CenId>
<TransmitDirection>RegionOut</TransmitDirection>
<CenRegionId>cn-hangzhou</CenRegionId>
<RouteMapId>cenrmap-y40mxdvf7joc12****</RouteMapId>
<MapResult>Deny</MapResult>
<DestinationChildInstanceTypes>
<DestinationChildInstanceType>VBR</DestinationChildInstanceType>
<DestinationChildInstanceType>CCN</DestinationChildInstanceType>
</DestinationChildInstanceTypes>
</RouteMap>
</RouteMaps>
</DescribeCenRouteMapsResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"TotalCount" : 1,
"RequestId" : "24CE1987-D1D1-5324-9BAD-2750B60E6ABB",
"PageSize" : 10,
"PageNumber" : 1,
"RouteMaps" : {
"RouteMap" : [ {
"Status" : "Active",
"TransitRouterRouteTableId" : "vtb-gw8nx3515m1mbd1z1****",
"Priority" : 5000,
"SourceChildInstanceTypes" : {
"SourceChildInstanceType" : [ "VBR", "CCN" ]
},
"CenId" : "cen-wx12mmlt17ld82****",
"TransmitDirection" : "RegionOut",
"CenRegionId" : "cn-hangzhou",
"RouteMapId" : "cenrmap-y40mxdvf7joc12****",
"MapResult" : "Deny",
"DestinationChildInstanceTypes" : {
"DestinationChildInstanceType" : [ "VBR", "CCN" ]
}
} ]
}
}
Error codes
For a list of error codes, visit the API Error Center.