hosting
GET /v1/sites/{siteId}/edge-domains/{hostname}/dns
What this domain actually resolves to right now.
Autentikasi
Kirim kunci API sebagai token bearer. Kunci tersebut harus memiliki izin sites.view; kunci tanpa izin tersebut akan ditolak dengan status 403, bukan 404.
Endpoint ini tidak memerlukan id organisasi. Kunci Anda telah mengidentifikasi organisasi tempatnya berafiliasi, dan respons akan dibatasi untuk organisasi tersebut.
Coba
Ganti apa pun di dalam tanda kurung sudut dengan nilai Anda sendiri, dan placeholder kunci dengan kunci dari dasbor Anda.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/edge-domains/{hostname}/dns \
-H "Authorization: Bearer zdk_live_…"Sudah masuk? Konsol API di dasbor Anda akan mengisi ID organisasi asli dan kunci Anda sendiri, serta menjalankan permintaan terhadap API langsung sehingga Anda dapat melihat respons aktualnya. Buka titik akhir ini di konsol API
Detail
Resolves every wanted record from a public resolver and reports what came back. Writes no DNS. `resolves` and each check's `observed` are three-valued on purpose — `null` means the resolver did not answer, which is *unknown* and not *no*; rendering it as a failure puts a red mark on a working domain during a resolver hiccup. Requires `sites.view`.
Parameter
| Nama | Jenis | Wajib | Tentang apa ini |
|---|---|---|---|
siteId (path) | Uuid | Ya | Site ID (UUIDv7). |
hostname (path) | string | Ya | The bound hostname, lower-cased and without a trailing dot. |
Tanggapan
| Nama | Jenis | Wajib | Tentang apa ini |
|---|---|---|---|
hostname | string | Ya | — |
mode | string<unknown, our_zone, byo_dns, nameservers, manual> | Ya | — |
zone | string | Ya | — |
vendor | string | Ya | — |
detail | string | Ya | — |
nameservers | string[] | Ya | Populated only in `nameservers` mode — the zone is built and the records are in it, and setting these at the registrar is the one thing left to do. |
records | DnsRecordPlan[] | Ya | — |
checks | DnsRecordCheck[] | Ya | — |
resolves | boolean | Ya | — |
Kesalahan yang dapat dikembalikan oleh titik akhir ini
401 · 403 · 404 · 429