You can call DescribeZoneRecords to query DNS records for a zone.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pvtz:DescribeZoneRecords |
get |
*Zone
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Valid values:
Default value: en. |
en |
| Keyword |
string |
No |
The keyword for the hostname. The search is not case-sensitive. Use the SearchMode parameter to switch between a fuzzy search and an exact search. The default is an exact search. |
test |
| ZoneId |
string |
Yes |
The unique ID of the zone. |
a96d70eb4ab8ef01503dc5486914**** |
| PageNumber |
integer |
No |
The page number. Pages start from 1. The default value is 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. The maximum value is 100. The default value is 20. |
20 |
| UserClientIp |
string |
No |
The client IP address of the user. |
127.0.XX.XX |
| Tag |
string |
No |
The tag. Valid values:
|
ecs |
| SearchMode |
string |
No |
The search mode. Valid values:
This parameter is used with the Keyword parameter. |
EXACT |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries returned on each page. |
100 |
| RequestId |
string |
The request ID. |
7B07FBC3-3A53-4939-A3C6-2BDFE407BAB2 |
| PageNumber |
integer |
The page number. |
1 |
| TotalPages |
integer |
The total number of pages. |
1 |
| TotalItems |
integer |
The total number of DNS records. |
100 |
| Records |
object |
||
| Record |
array<object> |
The DNS records. |
|
|
object |
The details of a DNS record. |
||
| Status |
string |
The status of the DNS record. Valid values:
|
ENABLE |
| Type |
string |
The type of the DNS record. Valid values:
|
A |
| Value |
string |
The record value. |
127.0.XX.XX |
| Ttl |
integer |
The time-to-live (TTL) value. |
60 |
| Remark |
string |
The remarks. |
test |
| RecordId |
integer |
The ID of the DNS record. |
246959**** |
| Rr |
string |
The hostname. |
www |
| Priority |
integer |
The priority of the MX record. |
10 |
| Line |
string |
The DNS resolution line. |
default |
| Weight |
integer |
The weight of the record. Valid values: 1 to 100. The default value is 1. DNS requests are distributed to the IP addresses of records based on their weights. |
1 |
| CreateTime |
string |
The time when the DNS record was created. |
2019-03-14T03:47Z |
| UpdateTime |
string |
The time when the DNS record was last updated. |
2023-05-08T02:31Z |
| CreateTimestamp |
integer |
The timestamp that indicates when the DNS record was created. |
1672740294000 |
| UpdateTimestamp |
integer |
The timestamp that indicates when the DNS record was last updated. |
1654777678000 |
| ZoneId |
string |
The zone ID. |
a49f55537f3b0b1e6e43add0bf5f**** |
Examples
Success response
JSON format
{
"PageSize": 100,
"RequestId": "7B07FBC3-3A53-4939-A3C6-2BDFE407BAB2",
"PageNumber": 1,
"TotalPages": 1,
"TotalItems": 100,
"Records": {
"Record": [
{
"Status": "ENABLE",
"Type": "A",
"Value": "127.0.XX.XX",
"Ttl": 60,
"Remark": "test",
"RecordId": 0,
"Rr": "www",
"Priority": 10,
"Line": "default",
"Weight": 1,
"CreateTime": "2019-03-14T03:47Z",
"UpdateTime": "2023-05-08T02:31Z",
"CreateTimestamp": 1672740294000,
"UpdateTimestamp": 1654777678000,
"ZoneId": "a49f55537f3b0b1e6e43add0bf5f****"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.