Queries the connection configuration of PrivateZone.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No DescribeCenPrivateZoneRoutes

The operation that you want to perform. Set the value to DescribeCenPrivateZoneRoutes.

CenId String Yes cen-7qthudw0ll6jmc****

The ID of the Cloud Enterprise Network (CEN) instance.

PageNumber Integer No 1

The number of the page to return. Default value: 1.

PageSize Integer No 10

The number of entries to return on each page. Default value: 10. Valid values: 1 to 50.

AccessRegionId String No cn-hangzhou

The ID of the region where PrivateZone is accessed.

You can call the DescribeChildInstanceRegions operation to query the most recent region list.

HostRegionId String No cn-hangzhou

The ID of the region where PrivateZone is deployed.

Response parameters

Parameter Type Example Description
CenId String cen-7qthudw0ll6jmc****

The ID of the CEN instance.

PageNumber Integer 1

The page number of the returned page.

PageSize Integer 10

The number of entries returned per page.

PrivateZoneDnsServers String 100.100.XX.XX/32,100.100.XX.XX/32

The IP address of the DNS server used by PrivateZone.

PrivateZoneInfos Array of PrivateZoneInfo

The detailed configuration of PrivateZone.

PrivateZoneInfo
AccessRegionId String cn-hangzhou

The ID of the region where PrivateZone is accessed.

HostRegionId String cn-hangzhou

The ID of the region where PrivateZone is deployed.

HostVpcId String vpc-bp18sth14qii3pnvo****

The ID of the virtual private cloud (VPC) that is associated with PrivateZone.

Status String Active

The status of PrivateZone. Valid values:

  • Creating
  • Active
  • Deleting
RequestId String 461EC1B5-04A8-4706-8764-8F5BCEF48A6F

The ID of the request.

TotalCount Integer 2

The total number of entries returned.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeCenPrivateZoneRoutes
&CenId=cen-7qthudw0ll6jmc****    
&<Common request parameters>

Sample success responses

XML format

<DescribeCenPrivateZoneRoutesResponse>
      <PrivateZoneInfos>
            <PrivateZoneInfo>
                  <Status>Active</Status>
                  <HostVpcId>vpc-bp18sth14qii3pnvo****</HostVpcId>
                  <AccessRegionId>ccn-cn-shanghai</AccessRegionId>
                  <HostRegionId>cn-hangzhou</HostRegionId>
            </PrivateZoneInfo>
            <PrivateZoneInfo>
                  <Status>Active</Status>
                  <HostVpcId>vpc-bp18sth14qii3pnvo****</HostVpcId>
                  <AccessRegionId>cn-hangzhou</AccessRegionId>
                  <HostRegionId>cn-hangzhou</HostRegionId>
            </PrivateZoneInfo>
      </PrivateZoneInfos>
      <PageNumber>1</PageNumber>
      <TotalCount>2</TotalCount>
      <PageSize>10</PageSize>
      <PrivateZoneDnsServers>100.100.XX.XX/32,100.100.XX.XX/32</PrivateZoneDnsServers>
      <RequestId>461EC1B5-04A8-4706-8764-8F5BCEF48A6F</RequestId>
</DescribeCenPrivateZoneRoutesResponse>

JSON format

{
    "PrivateZoneInfos": {
        "PrivateZoneInfo": [
            {
                "Status": "Active",
                "HostVpcId": "vpc-bp18sth14qii3pnvo****",
                "AccessRegionId": "ccn-cn-shanghai",
                "HostRegionId": "cn-hangzhou"
            },
            {
                "Status": "Active",
                "HostVpcId": "vpc-bp18sth14qii3pnvo****",
                "AccessRegionId": "cn-hangzhou",
                "HostRegionId": "cn-hangzhou"
            }
        ]
    },
    "PageNumber": 1,
    "TotalCount": 2,
    "PageSize": 10,
    "PrivateZoneDnsServers": "100.100.XX.XX/32,100.100.XX.XX/32",
    "RequestId": "461EC1B5-04A8-4706-8764-8F5BCEF48A6F"
}

Error codes

For a list of error codes, visit the API Error Center.