hosting
GET /v1/sites/{siteId}/edge-domains/{hostname}/dns
What this domain actually resolves to right now.
Authentifizierung
Senden Sie einen API-Schlüssel als Bearer-Token. Der Schlüssel muss über die Berechtigung sites.view verfügen; ein Schlüssel ohne diese wird mit 403 statt 404 abgelehnt.
Dieser Endpunkt erfordert keine Organisations-ID. Ihr Schlüssel identifiziert bereits die zugehörige Organisation, und die Antwort ist entsprechend eingeschränkt.
Ausprobieren
Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem Dashboard.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/edge-domains/{hostname}/dns \
-H "Authorization: Bearer zdk_live_…"Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole
Details
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
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
siteId (path) | Uuid | Ja | Site ID (UUIDv7). |
hostname (path) | string | Ja | The bound hostname, lower-cased and without a trailing dot. |
Antwort
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
hostname | string | Ja | — |
mode | string<unknown, our_zone, byo_dns, nameservers, manual> | Ja | — |
zone | string | Ja | — |
vendor | string | Ja | — |
detail | string | Ja | — |
nameservers | string[] | Ja | 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[] | Ja | — |
checks | DnsRecordCheck[] | Ja | — |
resolves | boolean | Ja | — |
Fehler, die dieser Endpunkt zurückgeben kann
401 · 403 · 404 · 429