hosting

POST /v1/sites/{siteId}/clones/{cloneId}/retry

Finish a copy that failed, onto the same new site.

Tüm hosting uç noktaları

Tüm geliştirici belgeleri

Kimlik Doğrulama

Bearer token olarak bir API anahtarı gönderin. Anahtar hosting.backup.manage iznine sahip olmalıdır; bu izne sahip olmayan bir anahtar 404 ile değil, 403 ile reddedilir.

Bu uç nokta hiçbir organizasyon kimliği almaz. Anahtarınız zaten ait olduğu organizasyonu tanımlar ve yanıt bu organizasyonla sınırlandırılır.

Dene

Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.

curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/clones/{cloneId}/retry \
  -H "Authorization: Bearer zdk_live_…"

Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın

Ayrıntılar

Recovery goes to the step that failed: when the copy of this site was never made a new one is taken, and when it was it is reused. Either way it is restored onto the SAME new site, so a half-built site never has to be deleted to try again. 409 when the copy has not failed; 422 when its new site has been deleted. Requires hosting.backup.manage, because it overwrites the new site's content.

Parametreler

AdTürZorunluNe olduğu
siteId (path)UuidEvetSite ID (UUIDv7).
cloneId (path)UuidEvetThe id of a row from listSiteClones.

Yanıt

AdTürZorunluNe olduğu
idUuidEvetUUIDv7 identifier — sortable by creation time (docs/02 §8).
blueprint_idUuidEvetUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_idUuidEvetUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_namestringEvet
site_domainstringEvet
site_statusstringEvetThe new site's status, or deleted when it no longer exists.
stepSiteCloneStepEvetcopying — the copy of the original is being taken; waiting — the new site is still being built; restoring — the copy is being put onto it; done; failed.
messagestringEvetWhy it failed, or what still needs attention. English; shown verbatim.
can_retrybooleanEvetWhether retrySiteClone will accept this row.
created_atstringEvet
finished_atobjectHayır

Bu uç noktanın dönderebileceği hatalar

401 · 403 · 404 · 409 · 422 · 429 · 503