调用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

路由条目的状态。取值:

  • Active:可用。
  • Candidate:备份。
  • Rejected:拒绝。
  • Prohibited:禁用。
  • All(默认值):表示查询当前地域下所有状态的路由条目信息。

返回数据

名称 类型 示例值 描述
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

路由条目下一跳类型。

  • VPC:专有网络。
  • VBR:边界路由器。
  • CCN:云连接网。
  • local_service:表示当前路由条目为云服务系统路由,没有下一跳。
Preference Integer 50

路由条目的优先级。

优先级数字越小,表示优先级越高。

Status String Active

路由条目的状态。

  • Active:可用。
  • Candidate:备份。
  • Rejected:拒绝。
  • Prohibited:禁用。
ToOtherRegionStatus String Active

路由条目去往其他地域的状态。

  • Active:可用。
  • Prohibited:禁用。
Type String CEN

路由条目的类型。

  • CEN:表示通过云企业网传递的路由。
  • Custom:表示自定义路由。
  • System:表示系统路由。
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****"
            }
        ]
    }
}

错误码

访问错误中心查看更多错误码。