domains
GET /v1/domains/{domainId}/settings
Get a domain's registrar settings.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/domains/{domainId}/settings \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
Auto-renew, registrar transfer lock, DNSSEC and WHOIS privacy for an owned domain. Served from our mirror of the registrar's state rather than a live vendor round-trip, so a detail screen never waits on a third party. Requires sites.view. 422 also covers a refusal that will never succeed. A domain registered through the Cloudflare route has no API-writable transfer lock or WHOIS privacy — Cloudflare exposes neither for a registration made through its registrations endpoint — so the answer names the Cloudflare dashboard and offers support rather than 503 try again, which is a sentence a customer would act on for ever.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
domainId (path) | Uuid | Да | The domain's id. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
registrar | string | Да | The registrar driver holding this domain (a driver name, never a vendor id). |
auto_renew | boolean | Да | Whether we renew it before expiry. Ours, not the registrar's. |
transfer_lock | boolean | Да | Registrar transfer lock (clientTransferProhibited) — blocks an outbound transfer. |
dnssec_enabled | boolean | Да | — |
privacy_enabled | boolean | Да | WHOIS privacy / registrant redaction, where the TLD supports it. |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 422 · 429