Queries the list of private zones and the corresponding VPCs to which the private zones are attached.
Note: We recommend that you do not call this API operation due to its low performance. Instead, you can call the DescribeZones operation to query the list of private zones. If you want to query the corresponding VPCs to which private zones are attached, you can call the DescribeZoneInfo operation based on the IDs of the private zones.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeZoneVpcTree |
The operation that you want to perform. Set the value to DescribeZoneVpcTree. |
Lang | String | No | en |
The language. |
UserClientIp | String | No | 127.0.0.1 |
The IP address of the client. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 7B07FBC3-3A53-4939-A3C6-2BDFE407BAB2 |
The ID of the request. |
Zones | Array |
The list of private zones. |
|
Zone |
The information about a private zone. |
||
CreateTime | String | 2019-09-18T08:20Z |
The time when the private zone was created. |
CreateTimeStamp | Long | 1568794812000 |
The timestamp when the private zone was created. |
IsPtr | Boolean | false |
Indicates whether the private zone is a reverse lookup zone. Valid values: true: indicates that the private zone is a reverse lookup zone. false: indicates that the private zone is not a reverse lookup zone. |
RecordCount | Integer | 1 |
The number of DNS records. |
Remark | String | demo |
The description. |
UpdateTime | String | 2019-09-18T08:20Z |
The time when the private zone was updated. |
UpdateTimestamp | Long | 1568794834000 |
The timestamp when the private zone was updated. |
Vpcs | Array |
The list of the VPCs to which the private zones are attached. |
|
Vpc |
The information about a VPC. |
||
RegionId | String | cn-beijing |
The ID of the region. |
RegionName | String | China North 2 |
The name of the region. |
VpcId | String | vpc-2z21341ssdadsfzyd49ra |
The ID of the VPC. |
VpcName | String | demo-vpc |
The name of the VPC. |
ZoneId | String | 6d83e3b31aa60ca4aaa7161f1b6baa95 |
The ID of the private zone. |
ZoneName | String | localzone.demo |
The name of the private zone. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DescribeZoneVpcTree
&<Common request parameters>
Sample success responses
XML
format
<DescribeZoneVpcTreeResponse>
<RequestId>A105C920-585C-49F2-B41C-98F147CDD945</RequestId>
<Zones>
<Zone>
<ZoneId>6d83e3b31aa60ca4aaa7161f1b6baa95</ZoneId>
<ZoneName>localzone.demo</ZoneName>
<CreateTime>2019-09-18T08:20Z</CreateTime>
<CreateTimestamp>1568794812000</CreateTimestamp>
<UpdateTimestamp>1568794834000</UpdateTimestamp>
<UpdateTime>2019-09-18T08:20Z</UpdateTime>
<IsPtr>false</IsPtr>
<RecordCount>1</RecordCount>
<Vpcs>
<Vpc>
<VpcName>demo-vpc</VpcName>
<RegionName>China North 2</RegionName>
<RegionId>cn-beijing</RegionId>
<VpcId>vpc-2z21341ssdadsfzyd49ra</VpcId>
</Vpc>
<Vpc>
<VpcName>Test</VpcName>
<RegionName>China North 2</RegionName>
<RegionId>cn-beijing</RegionId>
<VpcId>vpc-2ze21safadf23zyyg</VpcId>
</Vpc>
</Vpcs>
</Zone>
<Zone>
<ZoneId>fc1fc1dfbb6a7dc85dc8caa869ccee7a</ZoneId>
<ZoneName>0.168.192.in-addr.arpa</ZoneName>
<CreateTime>2019-10-15T03:47Z</CreateTime>
<CreateTimestamp>1571111261000</CreateTimestamp>
<UpdateTime>2019-10-15T03:47Z</UpdateTime>
<UpdateTimestamp>1571111261000</UpdateTimestamp>
<IsPtr>true</IsPtr>
<RecordCount>0</RecordCount>
<Vpcs>
</Vpcs>
</Zone>
</Zones>
</DescribeZoneVpcTreeResponse>
JSON
format
{
"RequestId":"A105C920-585C-49F2-B41C-98F147CDD945",
"Zones":{
"Zone":[
{
"ZoneName":"localzone.demo",
"IsPtr":false,
"CreateTimestamp":1568794812000,
"Vpcs":{
"Vpc":[
{
"VpcName":"demo-vpc",
"RegionName":"China North 2",
"RegionId":"cn-beijing",
"VpcId":"vpc-2z21341ssdadsfzyd49ra"
},
{
"VpcName":"Test",
"RegionName":"China North 2",
"RegionId":"cn-beijing",
"VpcId":"vpc-2ze21safadf23zyyg"
}
]
},
"RecordCount":1,
"UpdateTimestamp":1568794834000,
"CreateTime":"2019-09-18T08:20Z",
"UpdateTime":"2019-09-18T08:20Z",
"ZoneId":"6d83e3b31aa60ca4aaa7161f1b6baa95"
},
{
"ZoneName":"0.168.192.in-addr.arpa",
"IsPtr":true,
"CreateTimestamp":1571111261000,
"Vpcs":{
"Vpc":[]
},
"RecordCount":0,
"UpdateTimestamp":1571111261000,
"CreateTime":"2019-10-15T03:47Z",
"UpdateTime":"2019-10-15T03:47Z",
"ZoneId":"fc1fc1dfbb6a7dc85dc8caa869ccee7a"
}
]
}
}
Error codes
For a list of error codes, visit the API Error Center.