Mengkueri konfigurasi kebijakan perutean.
Deskripsi operasi
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:DescribeCenRouteMaps |
get |
*CenInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
Nomor halaman. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 10. |
10 |
| CenId |
string |
Yes |
ID instans Cloud Enterprise Network (CEN). |
cen-wx12mmlt17ld82**** |
| RouteMapId |
string |
No |
ID kebijakan perutean. |
cenrmap-y40mxdvf7joc12**** |
| CenRegionId |
string |
No |
ID wilayah tempat kebijakan perutean diterapkan. Anda dapat memanggil operasi DescribeChildInstanceRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| TransmitDirection |
string |
No |
Arah penerapan kebijakan perutean. Nilai valid:
Misalnya, entri rute diiklankan dari instans jaringan di wilayah saat ini ke gerbang wilayah saat ini, atau entri rute dari wilayah lain diiklankan ke gerbang wilayah saat ini.
Misalnya, entri rute diiklankan dari gerbang wilayah saat ini ke instans jaringan di wilayah saat ini, atau ke gerbang di wilayah lain. |
RegionOut |
| TransitRouterRouteTableId |
string |
No |
ID tabel rute router transit yang terkait dengan kebijakan perutean. |
vtb-gw8nx3515m1mbd1z1**** |
Elemen respons
|
Element |
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. |
|
|
array<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. Catatan
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. Catatan
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.
Catatan
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.
Catatan
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. Catatan
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. Catatan
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 |
Contoh
Respons sukses
JSONformat
{
"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"
]
}
}
]
}
}
Kode kesalahan
|
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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.