Mengambil Rekaman DNS untuk domain root tertentu berdasarkan parameter input.
Deskripsi operasi
-
You can specify the domain name (DomainName), page number (PageNumber), and page size (PageSize) to retrieve a list of DNS records.
-
You can specify a keyword for the host record (RRKeyWord), record type (TypeKeyWord), or record value (ValueKeyWord) to query DNS records that contain the keyword.
-
By default, DNS records are sorted in descending order by the time they were added.
-
You can specify a domain group ID (GroupId) to query the DNS records in a specific group.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:DescribeDomainRecords |
get |
*Domain
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
Bahasa permintaan dan tanggapan. Nilai default: zh. Nilai valid:
|
en |
| DomainName |
string |
Yes |
Nama domain. Untuk informasi selengkapnya, lihat DescribeDomains.. |
example.com |
| PageNumber |
integer |
No |
Nomor halaman. Nilai dimulai dari 1. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan pada setiap halaman untuk kueri berhalaman. Nilai maksimum: 500. Nilai default: 20. |
20 |
| KeyWord |
string |
No |
Kata kunci. |
test |
| RRKeyWord |
string |
No |
Kata kunci untuk Catatan host. Pencarian menggunakan pola pencocokan kabur dan tidak peka huruf besar/kecil. |
www |
| TypeKeyWord |
string |
No |
Kata kunci untuk tipe catatan. Pencarian menggunakan pencocokan eksak dan tidak peka huruf besar/kecil. |
MX |
| ValueKeyWord |
string |
No |
Kata kunci untuk nilai catatan. Pencarian menggunakan pola pencocokan kabur dan tidak peka huruf besar/kecil. |
com |
| OrderBy |
string |
No |
Metode pengurutan. Catatan diurutkan dalam Pesanan menurun berdasarkan pengatur waktu penambahan. |
default |
| Direction |
string |
No |
Arah pengurutan. Nilai valid: DESC, ASC. Nilai default: DESC. |
DESC |
| SearchMode |
string |
No |
Mode pencarian. Nilai valid: LIKE, EXACT, ADVANCED, dan COMBINATION.
|
LIKE |
| GroupId |
integer |
No |
ID kelompok domain.
|
2**** |
| Type |
string |
No |
Tipe Rekaman DNS. Untuk informasi selengkapnya, lihat: |
A |
| Line |
string |
No |
Jalur resolusi DNS. Nilai default: default. Untuk informasi selengkapnya, lihat: . |
cn_mobile_anhui |
| Status |
string |
No |
Status Rekaman DNS. Nilai valid: Enable: Rekaman DNS diaktifkan. Disable: Rekaman DNS dijeda. |
Enable |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of DNS records. |
2 |
| PageSize |
integer |
The number of DNS records returned in this query. |
20 |
| RequestId |
string |
The request ID. |
536E9CAD-DB30-4647-AC87-AA5CC38C5382 |
| DomainRecords |
object |
||
| Record |
array<object> |
The list of DNS records. |
|
|
object |
|||
| Status |
string |
The status of the DNS record. |
Enable |
| Type |
string |
The type of the DNS record. |
MX |
| Remark |
string |
The description of the DNS record. |
备注 |
| TTL |
integer |
The time-to-live (TTL) of the cached DNS record. Unit: seconds. |
600 |
| RecordId |
string |
The ID of the DNS record. |
9******* |
| Priority |
integer |
The priority of the mail exchanger (MX) record. |
5 |
| RR |
string |
The hostname. |
www |
| DomainName |
string |
The domain name. |
example.com |
| Weight |
integer |
The weight of the DNS record. |
2 |
| Value |
string |
The record value. |
mail1.hichina.com |
| Line |
string |
The resolution line. |
default |
| Locked |
boolean |
Indicates whether the DNS record is locked. |
false |
| CreateTimestamp |
integer |
The time when the DNS record was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since 00:00:00 UTC on January 1, 1970. |
1666501957000 |
| UpdateTimestamp |
integer |
The time when the DNS record was updated. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since 00:00:00 UTC on January 1, 1970. |
1676872961000 |
| LbaStatus |
boolean |
true |
|
| PageNumber |
integer |
The current page number. |
1 |
Contoh
Respons sukses
JSONformat
{
"TotalCount": 2,
"PageSize": 20,
"RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
"DomainRecords": {
"Record": [
{
"Status": "Enable",
"Type": "MX",
"Remark": "备注",
"TTL": 600,
"RecordId": "9*******",
"Priority": 5,
"RR": "www",
"DomainName": "example.com",
"Weight": 2,
"Value": "mail1.hichina.com",
"Line": "default",
"Locked": false,
"CreateTimestamp": 1666501957000,
"UpdateTimestamp": 1676872961000,
"LbaStatus": true
}
]
},
"PageNumber": 1
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.