hosting

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

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

Барлық hosting соңғы нүктелері

Барлық әзірлеуші құжаттамасы

Аутентификация

API кілтін bearer токені ретінде жіберіңіз. Кілтте hosting.backup.manage рұқсаты болуы тиіс; онсыз кілтке 404 емес, 403 қатесі қайтарылады.

Бұл соңғы нүкте ұйым идентификаторын қабылдамайды. Сіздің кілтіңіз оның қай ұйымға тиесілі екенін өзі анықтайды және жауап соған шектеледі.

Әрекет етіп көру

Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.

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

Жүйеге кіргенсіз бе? Бақылау тақтасындағы API консолі ұйымыңыздың нақты идентификаторы мен жеке кілтіңізді автоматты түрде толтырады да, нақты жауапты көре алуыңыз үшін сұрауды тікелей жұмыс істеп тұрған API арқылы орындайды. Бұл соңғы нүктені API консолінде ашыңыз

Мәліметтер

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.

Параметрлер

АтыTүріМіндеттіМазмұны
siteId (path)UuidИәSite ID (UUIDv7).
cloneId (path)UuidИәThe id of a row from listSiteClones.

Жауап

АтыTүріМіндеттіМазмұны
idUuidИәUUIDv7 identifier — sortable by creation time (docs/02 §8).
blueprint_idUuidИәUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_idUuidИәUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_namestringИә
site_domainstringИә
site_statusstringИәThe new site's status, or deleted when it no longer exists.
stepSiteCloneStepИәcopying — 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.
messagestringИәWhy it failed, or what still needs attention. English; shown verbatim.
can_retrybooleanИәWhether retrySiteClone will accept this row.
created_atstringИә
finished_atobjectЖоқ

Бұл соңғы нүкте қайтара алатын қателер

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