Call the DescribeZoneInfo operation to retrieve the details of a specified built-in authoritative zone. The details include the list of VPCs that are bound to the zone.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pvtz:DescribeZoneInfo |
get |
*Zone
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Valid values:
Default: en |
en |
| ZoneId |
string |
Yes |
The unique ID of the zone. |
df2d03865266bd9842306db586d3**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID of the request. |
F73F41A3-B6DD-42CA-A793-FFF93277835D |
| SlaveDns |
boolean |
Indicates whether secondary DNS is enabled. Valid values:
|
false |
| ResourceGroupId |
string |
The ID of the resource group to which the zone belongs. |
rg-acfmykd63gt**** |
| ZoneId |
string |
The unique ID of the zone. |
df2d03865266bd9842306db586d3**** |
| ProxyPattern |
string |
Indicates whether the recursive proxy for subdomains is enabled.
|
ZONE |
| CreateTime |
string |
The time when the zone was created. |
2024-07-15T09:40Z |
| ZoneType |
string |
The type of the zone. Valid values:
|
AUTH_ZONE |
| Remark |
string |
The remarks. |
test |
| ZoneName |
string |
The name of the zone. |
zone-test.cn |
| ZoneTag |
string |
The tag of the zone. |
pvtz |
| UpdateTime |
string |
The time when the zone was last updated. |
2024-07-22T09:39Z |
| UpdateTimestamp |
integer |
The timestamp that indicates when the zone was last updated. |
1721641148000 |
| RecordCount |
integer |
The total number of DNS records in the zone. |
5 |
| CreateTimestamp |
integer |
The timestamp that indicates when the zone was created. |
1721036404000 |
| BindVpcs |
object |
||
| Vpc |
array<object> |
The list of bound VPCs. |
|
|
object |
The list of bound VPCs. |
||
| VpcName |
string |
The name of the VPC. |
vpc_test |
| VpcId |
string |
The unique ID of the VPC. |
vpc-f8zvrvr1payllgz38**** |
| VpcType |
string |
The type of the VPC. Valid values:
|
STANDARD |
| RegionName |
string |
The name of the region where the VPC is located. |
China (Heyuan) |
| VpcUserId |
integer |
The ID of the user to which the VPC belongs. If this parameter is null, the VPC belongs to the current user. |
141339776561**** |
| RegionId |
string |
The ID of the region where the VPC is located. |
cn-heyuan |
| IsPtr |
boolean |
Indicates whether the zone is a reverse lookup zone. Valid values:
|
false |
| DnsGroup |
string |
The DNS group. Valid values:
|
FAST_ZONE |
| Creator |
string |
The creator of the zone. |
141339776561**** |
| CreatorType |
string |
The type of the creator. |
USER |
| DnsGroupChanging |
boolean |
The status of switching the DNS group for the zone. You can switch a zone between the regular and fast groups. Valid values:
|
false |
| BindEdgeDnsClusters |
object |
||
| EdgeDnsCluster |
array<object> |
||
|
object |
|||
| ClusterId |
string |
||
| ClusterName |
string |
||
| ClusterUserId |
integer |
Examples
Success response
JSON format
{
"RequestId": "F73F41A3-B6DD-42CA-A793-FFF93277835D",
"SlaveDns": false,
"ResourceGroupId": "rg-acfmykd63gt****",
"ZoneId": "df2d03865266bd9842306db586d3****",
"ProxyPattern": "ZONE",
"CreateTime": "2024-07-15T09:40Z",
"ZoneType": "AUTH_ZONE",
"Remark": "test",
"ZoneName": "zone-test.cn",
"ZoneTag": "pvtz",
"UpdateTime": "2024-07-22T09:39Z",
"UpdateTimestamp": 1721641148000,
"RecordCount": 5,
"CreateTimestamp": 1721036404000,
"BindVpcs": {
"Vpc": [
{
"VpcName": "vpc_test",
"VpcId": "vpc-f8zvrvr1payllgz38****",
"VpcType": "STANDARD",
"RegionName": "China (Heyuan)",
"VpcUserId": 0,
"RegionId": "cn-heyuan"
}
]
},
"IsPtr": false,
"DnsGroup": "FAST_ZONE",
"Creator": "141339776561****",
"CreatorType": "USER",
"DnsGroupChanging": false,
"BindEdgeDnsClusters": {
"EdgeDnsCluster": [
{
"ClusterId": "",
"ClusterName": "",
"ClusterUserId": 0
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified value parameter is not valid. | |
| 400 | IllegalUser | The user is illegal. | |
| 400 | Zone.Invalid.Name | Zone name is invalid. | |
| 400 | Zone.Invalid.Id | Zone id is invalid. | Zone id is invalid. |
| 400 | Zone.Invalid.UserId | Zone userid is invalid. | |
| 400 | Zone.NotExists | Zone is not exists | |
| 400 | Zone.VpcExists | Zone have vpc bound. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.