调用DescribeCenRegionDomainRouteEntries接口查询云企业网实例中具体地域内路由条目的详细信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
cen:DescribeCenRegionDomainRouteEntries |
get |
*CenInstance
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
CenId |
string |
是 |
云企业网实例 ID。 |
cen-7qthudw0ll6j**** |
CenRegionId |
string |
是 |
地域 ID。 您可以通过调用 DescribeChildInstanceRegions 接口获取地域 ID。 |
cn-hangzhou |
PageNumber |
integer |
否 |
查询页码。默认值为 1。 |
1 |
PageSize |
integer |
否 |
分页查询时每页显示的条目数。默认值为 10,取值范围:1~500。 |
10 |
Status |
string |
否 |
路由条目的状态。取值:
|
Active |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
PageSize |
integer |
分页查询时每页显示的条目数。 |
10 |
RequestId |
string |
请求 ID。 |
004E99FB-E996-5777-888E-BA1D8F215407 |
PageNumber |
integer |
查询页码。 |
1 |
TotalCount |
integer |
总条目数。 |
4 |
CenRouteEntries |
object |
||
CenRouteEntry |
array<object> |
路由条目信息列表。 |
|
object |
|||
ToOtherRegionStatus |
string |
路由条目去往其他地域的状态。
|
Active |
Type |
string |
路由条目的类型。
|
CEN |
Status |
string |
路由条目的状态。
|
Active |
NextHopType |
string |
路由条目下一跳类型。
|
VPC |
NextHopInstanceId |
string |
路由条目下一跳关联的网络实例 ID。 |
vpc-bp1j8728mm6pweeod**** |
NextHopRegionId |
string |
路由条目下一跳关联的网络实例所属的地域 ID。 |
cn-hangzhou |
DestinationCidrBlock |
string |
路由条目的目标网段。 |
192.168.1.0/24 |
Preference |
integer |
路由条目的优先级。 优先级数字越小,表示优先级越高。 |
50 |
CenRouteMapRecords |
object |
||
CenRouteMapRecord |
array<object> |
路由条目匹配到的入地域网关方向的路由策略。 |
|
object |
|||
RouteMapId |
string |
路由策略 ID。 |
cenrmap-cz5axczdxb7yfu**** |
RegionId |
string |
路由策略应用的地域 ID。 |
cn-hangzhou |
CenOutRouteMapRecords |
object |
||
CenOutRouteMapRecord |
array<object> |
路由条目匹配到的出地域网关方向的路由策略。 |
|
object |
|||
RouteMapId |
string |
路由策略 ID。 |
cenrmap-dbarzidzp7ek4k**** |
RegionId |
string |
路由策略应用的地域 ID。 |
ccn-cn-shanghai |
Communities |
object |
||
Community |
array |
路由条目的 Community 属性值列表。 |
|
string |
路由条目的 Community 属性值。 |
65501:1 |
|
AsPaths |
object |
||
AsPath |
array |
路由条目的 AS Path 属性值列表。 |
|
string |
路由条目的 AS Path 属性值。 |
65501 |
示例
正常返回示例
JSON
格式
{
"PageSize": 10,
"RequestId": "004E99FB-E996-5777-888E-BA1D8F215407",
"PageNumber": 1,
"TotalCount": 4,
"CenRouteEntries": {
"CenRouteEntry": [
{
"ToOtherRegionStatus": "Active",
"Type": "CEN",
"Status": "Active",
"NextHopType": "VPC",
"NextHopInstanceId": "vpc-bp1j8728mm6pweeod****",
"NextHopRegionId": "cn-hangzhou",
"DestinationCidrBlock": "192.168.1.0/24",
"Preference": 50,
"CenRouteMapRecords": {
"CenRouteMapRecord": [
{
"RouteMapId": "cenrmap-cz5axczdxb7yfu****",
"RegionId": "cn-hangzhou"
}
]
},
"CenOutRouteMapRecords": {
"CenOutRouteMapRecord": [
{
"RouteMapId": "cenrmap-dbarzidzp7ek4k****",
"RegionId": "ccn-cn-shanghai"
}
]
},
"Communities": {
"Community": [
"65501:1"
]
},
"AsPaths": {
"AsPath": [
"65501"
]
}
}
]
}
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | InvalidParameter | Invalid parameter. | 参数不合法。 |
400 | Unauthorized | The AccessKeyId is unauthorized. | 账号无权限操作。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。