Queries routing policies.
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:DescribeCenRouteMaps | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PageNumber | integer | No | The page number of the page to return. Default value: 1. | 1 |
PageSize | integer | No | The number of entries per page. Default value: 10. | 10 |
CenId | string | Yes | The ID of the Cloud Enterprise Network (CEN) instance. | cen-wx12mmlt17ld82**** |
RouteMapId | string | No | The routing policy ID. | cenrmap-y40mxdvf7joc12**** |
CenRegionId | string | No | The region ID of the routing policy. You can call the DescribeChildInstanceRegions operation to query the most recent region list. | cn-hangzhou |
TransmitDirection | string | No | The direction in which the routing policy is applied. Valid values:
For example, routes are advertised from network instances deployed in the current region or other regions to the gateway deployed in the current region.
For example, routes are advertised from the gateway deployed in the current region to network instances deployed in the current region, or to gateways deployed in other regions. | RegionOut |
TransitRouterRouteTableId | string | No | The route table ID of the transit router with which the routing policy is associated. | vtb-gw8nx3515m1mbd1z1**** |
Response parameters
Examples
Sample success responses
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-09-18 | The response structure of the API has changed | View Change Details |
2024-09-10 | The response structure of the API has changed | View Change Details |
2024-09-10 | The response structure of the API has changed | View Change Details |