hosting
DELETE /v1/sites/{siteId}/cdn/swap
Abandon a CDN move and put the site back.
Hitelesítés
Küldjön egy API-kulcsot bearer tokenként. A kulcsnak rendelkeznie kell a(z) hosting.cdn.manage jogosultsággal; az ezzel nem rendelkező kulcsok esetén a rendszer 403-as hibát ad vissza 404 helyett.
Ez a végpont nem fogad el szervezeti azonosítót. Az Ön kulcsa már azonosítja azt a szervezetet, amelyhez tartozik, és a válasz is erre vonatkozik.
Próbálja ki
Cserélje ki a hegyes zárójelek közötti részt a saját értékeivel, a kulcshelyőrzőt pedig a vezérlőpultján található kulccsal.
curl -X DELETE https://api.zinndigital.com/v1/sites/{siteId}/cdn/swap \
-H "Authorization: Bearer zdk_live_…"Be van jelentkezve? A vezérlőpultban lévő API-konzol kitölti a valós szervezetazonosítóját és a saját kulcsát, és a kérést az éles API-n futtatja, hogy láthassa a tényleges választ. Nyissa meg ezt a végpontot az API konzolban
Részletek
Rolls a move back and returns the site to the account it came from. ⭐ Exists because a move can wait on your registrar indefinitely, and that is the correct state rather than a failure — both edges serve the site throughout. Nothing rolls it back on a timer, because doing so would move a site that has been served happily from the destination for days. You say when. ⛔ Refused once the move has completed: the source zone has gone by then, so there is nothing to put the site back onto. ⛔ Also refused once the domain's nameservers have been changed or the new delegation has been seen (cancellable is false): the registry already points at the new zone, and undoing the move would take the site offline. Requires hosting.cdn.manage.
Paraméterek
| Név | Típus | Kötelező | Mi ez |
|---|---|---|---|
siteId (path) | Uuid | Igen | Site ID (UUIDv7). |
Válasz
| Név | Típus | Kötelező | Mi ez |
|---|---|---|---|
id | string | Igen | — |
site_id | string | Igen | — |
status | string<pending, creating, repointing, awaiting_delegation, completed, rolled_back, failed> | Igen | ⭐ awaiting_delegation is the state to render carefully: the move is complete on our side, both edges are serving the site, and it is waiting on your registrar. ⛔… |
from_kind | string | Igen | — |
from_label | string | Igen | — |
to_kind | string | Igen | — |
to_label | string | Igen | — |
to_account_id | object | Igen | — |
nameservers | string[] | Igen | The nameservers your domain must be delegated to. ⛔ The field this operation exists to deliver: without it the move never completes, and it does not fail either — it simply… |
nameservers_applied | boolean | Igen | Whether we set them (the domain is registered with us, or with a registrar you have connected) or you must. |
delegation_observed_at | object | Igen | When the new delegation was observed answering — never when it was requested. The source zone is not removed until this is set. |
old_zone_removed | boolean | Igen | An observation, not an intention. A source zone we could not delete leaves you being billed by that vendor for a site it no longer serves. |
records_copied | integer | Igen | How many of your OTHER DNS records were carried to the new zone. ⛔ Moving between two zone-owning CDNs re-delegates the whole domain, so your MX, SPF, DMARC and… |
records_source_read | boolean | Igen | Whether your existing records could be read at all. ⛔ Read this with records_copied, never instead of it: 0 is the truthful answer for a domain that has nothing but an… |
detail | string | Igen | — |
created_at | string | Igen | — |
completed_at | object | Igen | — |
in_flight | boolean | Igen | ⛔ awaiting_delegation counts as in flight. It is the state most likely to be read as finished — the site works, both edges serve it — and starting a second move from there would… |
cancellable | boolean | Igen | Whether DELETE can still put the site back. ⛔ Narrower than in_flight: false once the domain's nameservers have been changed or the new delegation has been seen answering,… |
Hibák, amelyeket ez a végpont visszaadhattatlan
401 · 403 · 404 · 422 · 429