调用DescribeCenRegionDomainRouteEntries接口查询云企业网实例中某个地域下的路由条目信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 否 | DescribeCenRegionDomainRouteEntries | 要执行的操作。取值:DescribeCenRegionDomainRouteEntries。 |
CenId | String | 是 | cen-7qthudw0ll6j**** | 云企业网实例ID。 |
CenRegionId | String | 是 | cn-hangzhou | 地域ID。 您可以通过调用DescribeChildInstanceRegions接口获取地域ID。 |
PageNumber | Integer | 否 | 1 | 查询页码。默认值为1。 |
PageSize | Integer | 否 | 10 | 分页查询时每页显示的条目数。默认值为10,取值范围:1~50。 |
Status | String | 否 | Active | 路由条目的状态。取值:
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
CenRouteEntries | Array of CenRouteEntry | 路由条目信息列表。 |
|
CenRouteEntry | |||
AsPaths | List | 65501 | 路由条目的AS Path属性值。 |
CenOutRouteMapRecords | Array of CenOutRouteMapRecord | 路由条目匹配到的出地域网关方向的路由策略。 |
|
CenOutRouteMapRecord | |||
RegionId | String | ccn-cn-shanghai | 路由策略应用的地域ID。 |
RouteMapId | String | cenrmap-dbarzidzp7ek4k**** | 路由策略ID。 |
CenRouteMapRecords | Array of CenRouteMapRecord | 路由条目匹配到的入地域网关方向的路由策略。 |
|
CenRouteMapRecord | |||
RegionId | String | cn-hangzhou | 路由策略应用的地域ID。 |
RouteMapId | String | cenrmap-cz5axczdxb7yfu**** | 路由策略ID。 |
Communities | List | 65501:1 | 路由条目的Community属性值。 |
DestinationCidrBlock | String | 192.168.1.0/24 | 路由条目的目标网段。 |
NextHopInstanceId | String | vpc-bp1j8728mm6pweeod**** | 路由条目下一跳关联的网络实例ID。 |
NextHopRegionId | String | cn-hangzhou | 路由条目下一跳关联的网络实例所属的地域ID。 |
NextHopType | String | VPC | 路由条目下一跳类型。
|
Preference | Integer | 50 | 路由条目的优先级。 优先级数字越小,表示优先级越高。 |
Status | String | Active | 路由条目的状态。
|
ToOtherRegionStatus | String | Active | 路由条目去往其他地域的状态。
|
Type | String | CEN | 路由条目的类型。
|
PageNumber | Integer | 1 | 查询页码。 |
PageSize | Integer | 10 | 分页查询时每页显示的条目数。 |
RequestId | String | 004E99FB-E996-5777-888E-BA1D8F215407 | 请求ID。 |
TotalCount | Integer | 4 | 总条目数。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeCenRegionDomainRouteEntries &CenId=cen-7qthudw0ll6j**** &CenRegionId=cn-hangzhou &<公共请求参数>
正常返回示例
XML
格式
<DescribeCenRegionDomainRouteEntriesResponse> <TotalCount>4</TotalCount> <RequestId>004E99FB-E996-5777-888E-BA1D8F215407</RequestId> <PageSize>10</PageSize> <PageNumber>1</PageNumber> <CenRouteEntries> <CenRouteEntry> <Status>Active</Status> <ToOtherRegionStatus>Active</ToOtherRegionStatus> <CenOutRouteMapRecords> <CenOutRouteMapRecord> <RegionId>ccn-cn-shanghai</RegionId> <RouteMapId>cenrmap-dbarzidzp7ek4k****</RouteMapId> </CenOutRouteMapRecord> </CenOutRouteMapRecords> <NextHopType>VPC</NextHopType> <NextHopRegionId>cn-hangzhou</NextHopRegionId> <Type>CEN</Type> <Preference>50</Preference> <Communities> </Communities> <CenRouteMapRecords> </CenRouteMapRecords> <DestinationCidrBlock>10.0.8.0/24</DestinationCidrBlock> <AsPaths> </AsPaths> <NextHopInstanceId>vpc-bp1j8728mm6pweeod****</NextHopInstanceId> </CenRouteEntry> <CenRouteEntry> <Status>Active</Status> <CenOutRouteMapRecords> </CenOutRouteMapRecords> <NextHopType>local_service</NextHopType> <NextHopRegionId>cn-hangzhou</NextHopRegionId> <Type>System</Type> <Preference>50</Preference> <Communities> </Communities> <CenRouteMapRecords> </CenRouteMapRecords> <DestinationCidrBlock>100.64.0.0/10</DestinationCidrBlock> <AsPaths> </AsPaths> </CenRouteEntry> <CenRouteEntry> <Status>Active</Status> <CenOutRouteMapRecords> </CenOutRouteMapRecords> <NextHopType>CCN</NextHopType> <NextHopRegionId>ccn-cn-shanghai</NextHopRegionId> <Type>CEN</Type> <Preference>50</Preference> <Communities> </Communities> <CenRouteMapRecords> <CenRouteMapRecord> <RegionId>cn-hangzhou</RegionId> <RouteMapId>cenrmap-cz5axczdxb7yfu****</RouteMapId> </CenRouteMapRecord> </CenRouteMapRecords> <DestinationCidrBlock>172.16.0.0/16</DestinationCidrBlock> <AsPaths> </AsPaths> <NextHopInstanceId>ccn-0q3b7oviikmm9h*****</NextHopInstanceId> </CenRouteEntry> <CenRouteEntry> <Status>Active</Status> <CenOutRouteMapRecords> </CenOutRouteMapRecords> <NextHopType>CCN</NextHopType> <NextHopRegionId>ccn-cn-shanghai</NextHopRegionId> <Type>CEN</Type> <Preference>50</Preference> <Communities> </Communities> <CenRouteMapRecords> <CenRouteMapRecord> <RegionId>cn-hangzhou</RegionId> <RouteMapId>cenrmap-cz5axczdxb7yfu****</RouteMapId> </CenRouteMapRecord> </CenRouteMapRecords> <DestinationCidrBlock>192.168.2.0/24</DestinationCidrBlock> <AsPaths> </AsPaths> <NextHopInstanceId>ccn-0q3b7oviikmm9h****</NextHopInstanceId> </CenRouteEntry> </CenRouteEntries> </DescribeCenRegionDomainRouteEntriesResponse>
JSON
格式
{ "TotalCount": 4, "RequestId": "004E99FB-E996-5777-888E-BA1D8F215407", "PageSize": 10, "PageNumber": 1, "CenRouteEntries": { "CenRouteEntry": [ { "Status": "Active", "ToOtherRegionStatus": "Active", "CenOutRouteMapRecords": { "CenOutRouteMapRecord": [ { "RegionId": "ccn-cn-shanghai", "RouteMapId": "cenrmap-dbarzidzp7ek4k****" } ] }, "NextHopType": "VPC", "NextHopRegionId": "cn-hangzhou", "Type": "CEN", "Preference": 50, "Communities": { "Community": [] }, "CenRouteMapRecords": { "CenRouteMapRecord": [] }, "DestinationCidrBlock": "10.0.8.0/24", "AsPaths": { "AsPath": [] }, "NextHopInstanceId": "vpc-bp1j8728mm6pweeod****" }, { "Status": "Active", "CenOutRouteMapRecords": { "CenOutRouteMapRecord": [] }, "NextHopType": "local_service", "NextHopRegionId": "cn-hangzhou", "Type": "System", "Preference": 50, "Communities": { "Community": [] }, "CenRouteMapRecords": { "CenRouteMapRecord": [] }, "DestinationCidrBlock": "100.64.0.0/10", "AsPaths": { "AsPath": [] } }, { "Status": "Active", "CenOutRouteMapRecords": { "CenOutRouteMapRecord": [] }, "NextHopType": "CCN", "NextHopRegionId": "ccn-cn-shanghai", "Type": "CEN", "Preference": 50, "Communities": { "Community": [] }, "CenRouteMapRecords": { "CenRouteMapRecord": [ { "RegionId": "cn-hangzhou", "RouteMapId": "cenrmap-cz5axczdxb7yfu****" } ] }, "DestinationCidrBlock": "172.16.0.0/16", "AsPaths": { "AsPath": [] }, "NextHopInstanceId": "ccn-0q3b7oviikmm9h*****" }, { "Status": "Active", "CenOutRouteMapRecords": { "CenOutRouteMapRecord": [] }, "NextHopType": "CCN", "NextHopRegionId": "ccn-cn-shanghai", "Type": "CEN", "Preference": 50, "Communities": { "Community": [] }, "CenRouteMapRecords": { "CenRouteMapRecord": [ { "RegionId": "cn-hangzhou", "RouteMapId": "cenrmap-cz5axczdxb7yfu****" } ] }, "DestinationCidrBlock": "192.168.2.0/24", "AsPaths": { "AsPath": [] }, "NextHopInstanceId": "ccn-0q3b7oviikmm9h****" } ] } }
错误码
访问错误中心查看更多错误码。