hosting

DELETE /v1/sites/{siteId}/cdn/swap

Abandon a CDN move and put the site back.

Minden hosting végpont

Az összes fejlesztői dokumentáció

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évTípusKötelezőMi ez
siteId (path)UuidIgenSite ID (UUIDv7).

Válasz

NévTípusKötelezőMi ez
idstringIgen
site_idstringIgen
statusstring<pending, creating, repointing, awaiting_delegation, completed, rolled_back, failed>Igenawaiting_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_kindstringIgen
from_labelstringIgen
to_kindstringIgen
to_labelstringIgen
to_account_idobjectIgen
nameserversstring[]IgenThe 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_appliedbooleanIgenWhether we set them (the domain is registered with us, or with a registrar you have connected) or you must.
delegation_observed_atobjectIgenWhen the new delegation was observed answering — never when it was requested. The source zone is not removed until this is set.
old_zone_removedbooleanIgenAn 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_copiedintegerIgenHow 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_readbooleanIgenWhether 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…
detailstringIgen
created_atstringIgen
completed_atobjectIgen
in_flightbooleanIgenawaiting_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…
cancellablebooleanIgenWhether 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