Call the DescribeZoneVpcTree operation to query the zones and the Virtual Private Clouds (VPCs) attached to them in your account.
Operation description
This operation is not recommended due to low performance. To retrieve a list of zones, call DescribeZones. To retrieve the details of attached VPCs, call DescribeZoneInfo with the zone ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pvtz:DescribeZoneVpcTree |
*Zone
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Valid values:
Default value: en |
en |
| UserClientIp |
string |
No |
The IP address of the client. |
127.0.XX.XX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID of the request. |
7B07FBC3-3A53-4939-A3C6-2BDFE407BAB2 |
| Zones |
object |
||
| Zone |
array<object> |
A list of zones. |
|
|
object |
The details of the zone. |
||
| UpdateTime |
string |
The time when the zone was last updated. |
2019-09-18T08:20Z |
| ZoneType |
string |
The type of the zone. Description:
|
AUTH_ZONE |
| Remark |
string |
The remarks. |
demo |
| CreateTime |
string |
The time when the zone was created. |
2019-09-18T08:20Z |
| Vpcs |
object |
||
| Vpc |
array<object> |
A list of attached VPCs. |
|
|
object |
The VPC information. |
||
| VpcName |
string |
The name of the VPC. |
demo-vpc |
| VpcId |
string |
The unique ID of the VPC. |
vpc-f8zvrvr1payllgz38**** |
| VpcType |
string |
The type of the VPC. Description:
|
STANDARD |
| RegionName |
string |
The name of the region where the VPC is located. |
China (Heyuan) |
| RegionId |
string |
The ID of the region where the VPC is located. |
cn-heyuan |
| RecordCount |
integer |
The number of DNS records in the zone. |
1 |
| ZoneName |
string |
The name of the zone. |
example.com |
| UpdateTimestamp |
integer |
The time when the zone was last updated. This value is a UNIX timestamp. |
1568794834000 |
| ZoneId |
string |
The unique ID of the zone. |
df2d03865266bd9842306db586d3**** |
| ZoneTag |
string |
The type of the cloud service. Note
|
BLINK |
| IsPtr |
boolean |
Indicates whether the zone is a reverse lookup zone. Description:
|
false |
| CreateTimestamp |
integer |
The time when the zone was created. This value is a UNIX timestamp. |
1568794812000 |
| DnsGroup |
string |
The built-in authoritative zone. Description:
|
NORMAL_ZONE |
| Creator |
string |
The creator of the zone. |
141339776561**** |
| CreatorType |
string |
The type of the operator. |
USER |
| DnsGroupChanging |
boolean |
The status of switching the zone location between a regular zone and a fast zone. Description:
|
true |
Examples
Success response
JSON format
{
"RequestId": "7B07FBC3-3A53-4939-A3C6-2BDFE407BAB2",
"Zones": {
"Zone": [
{
"UpdateTime": "2019-09-18T08:20Z",
"ZoneType": "AUTH_ZONE",
"Remark": "demo",
"CreateTime": "2019-09-18T08:20Z",
"Vpcs": {
"Vpc": [
{
"VpcName": "demo-vpc",
"VpcId": "vpc-f8zvrvr1payllgz38****",
"VpcType": "STANDARD",
"RegionName": "China (Heyuan)",
"RegionId": "cn-heyuan"
}
]
},
"RecordCount": 1,
"ZoneName": "example.com\n",
"UpdateTimestamp": 1568794834000,
"ZoneId": "df2d03865266bd9842306db586d3****",
"ZoneTag": "BLINK",
"IsPtr": false,
"CreateTimestamp": 1568794812000,
"DnsGroup": "NORMAL_ZONE",
"Creator": "141339776561****",
"CreatorType": "USER",
"DnsGroupChanging": true
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.