All Products
Search
Document Center

Direct Mail:DescDomain

Last Updated:Jun 10, 2026

Mengonfigurasi nama domain.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

dm:DescDomain

get

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

DomainId

integer

Yes

ID domain. Panggil QueryDomainByParam untuk mendapatkannya.

13464

RequireRealTimeDnsRecords

boolean

No

Apakah akan melakukan resolusi DNS real-time.

true

Elemen respons

Element

Type

Description

Example

object

The response parameters.

SpfRecord

string

The SPF record value from the Direct Mail console.

include:spf1.dm.aliyun.com

CnameConfirmStatus

string

Indicates if the CNAME host record has been modified. A value of 1 indicates a change, including reverting to the original value. A value of 0 indicates no change.

0

DefaultDomain

string

Indicates if this is the default domain name.

This parameter is deprecated and always returns 0 (No).

0

CreateTime

string

The time the domain name was created.

2025-03-19T12:49Z

CnameRecord

string

The CNAME host record.

dmtrace

CnameAuthStatus

string

The CNAME verification status. Valid values: 0 (Success), 1 (Failure).

1

IcpStatus

string

The ICP filing status. 1 indicates the filing is complete. 0 indicates no filing is found.

1

DnsTxt

string

The ownership record value resolved from public DNS.

0c40d5f125af4e42892a

DomainName

string

The domain name.

test.example.net

DomainId

string

The domain ID.

158910

DnsSpf

string

The SPF record value resolved from public DNS.

v=xxxx

SpfAuthStatus

string

The SPF verification status. Valid values: 0 (Success), 1 (Failure).

1

RequestId

string

The request ID.

51B74264-46B4-43C8-A9A0-6B8E8BC04F34

MxRecord

string

The MX record value from the Direct Mail console.

mx01.dm.aliyun.com

MxAuthStatus

string

The MX verification status. Valid values: 0 (Success), 1 (Failure).

1

DnsMx

string

The MX record value resolved from public DNS.

mx01.dm.aliyun.com

DomainStatus

string

The verification status of the domain name. Valid values:

  • 0: Available. The domain name is verified.

  • 1: Unavailable. The domain name failed verification.

1

TlDomainName

string

The root domain.

example.com

TracefRecord

string

The CNAME record value from the Direct Mail console.

tracedm.aliyuncs.com

DomainType

string

The required value for the domain ownership verification record, from the Direct Mail console.

0c40d5f125af4e42892a

SpfRecordV2

string

The complete SPF record. This parameter replaces SpfRecord. You can directly use the value of SpfRecordV2 without constructing it from the value of SpfRecord.

v=spf1 include:spf1.dm.aliyun.com -all

DkimRR

string

The DKIM host record.

aliyun-cn-hangzhou._domainkey.hangzhou26

DkimPublicKey

string

The public key for the DKIM record.

v=DKIM1; k=rsa; p=MIGfMA0GCSqGSI...

DkimAuthStatus

string

The DKIM verification status. Valid values: 0 (Verified), 1 (Not verified).

0

HostRecord

string

The host record for domain ownership verification.

xxx

DmarcRecord

string

The DMARC record value.

v=DMARC1;p=none;rua=mailto:dmarc_report@service.aliyun.com

DnsDmarc

string

The DMARC record value resolved from public DNS.

v=DMARC1;p=none;rua=mailto:dmarc_report@service.aliyun.com

DmarcAuthStatus

integer

The DMARC verification status. Valid values: 0 (Verified), 1 (Not verified).

1

DmarcHostRecord

string

The DMARC host record.

_dmarc.xxx

DkimRsaLength

integer

The length of the DKIM RSA key, such as 1024 or 2048.

1024

DomainVersion

integer

Contoh

Respons sukses

JSONformat

{
  "SpfRecord": "include:spf1.dm.aliyun.com",
  "CnameConfirmStatus": "0",
  "DefaultDomain": "0",
  "CreateTime": "2025-03-19T12:49Z",
  "CnameRecord": "dmtrace",
  "CnameAuthStatus": "1",
  "IcpStatus": "1",
  "DnsTxt": "0c40d5f125af4e42892a",
  "DomainName": "test.example.net",
  "DomainId": "158910",
  "DnsSpf": "v=xxxx",
  "SpfAuthStatus": "1",
  "RequestId": "51B74264-46B4-43C8-A9A0-6B8E8BC04F34",
  "MxRecord": "mx01.dm.aliyun.com",
  "MxAuthStatus": "1",
  "DnsMx": "mx01.dm.aliyun.com",
  "DomainStatus": "1",
  "TlDomainName": "example.com",
  "TracefRecord": "tracedm.aliyuncs.com",
  "DomainType": "0c40d5f125af4e42892a",
  "SpfRecordV2": "v=spf1 include:spf1.dm.aliyun.com -all",
  "DkimRR": "aliyun-cn-hangzhou._domainkey.hangzhou26",
  "DkimPublicKey": "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSI...",
  "DkimAuthStatus": "0",
  "HostRecord": "xxx",
  "DmarcRecord": "v=DMARC1;p=none;rua=mailto:dmarc_report@service.aliyun.com",
  "DnsDmarc": "v=DMARC1;p=none;rua=mailto:dmarc_report@service.aliyun.com",
  "DmarcAuthStatus": 1,
  "DmarcHostRecord": "_dmarc.xxx",
  "DkimRsaLength": 1024,
  "DomainVersion": 0
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.