hosting

GET /v1/sites/{siteId}/deploy

Get a site's deploy target and status.

Barcha hosting yakuniy nuqtalari

Autentifikatsiya

API kalitini bearer token sifatida yuboring. Kalit sites.view ruxsatiga ega boʻlishi shart; ruxsatsiz kalit 404 emas, balki 403 xatosi bilan rad etiladi.

Bu yakuniy nuqta hech qanday tashkilot identifikatorini qabul qilmaydi. Sizning kalitingiz unga tegishli tashkilotni allaqachon aniqlaydi va javob shunga qarab cheklanadi.

Sinab ko'rish

Qavslardagi har qanday narsani o'z qiymatlaringiz bilan, kalit pleysxolderini эsa boshqaruv panelingizdagi kalit bilan almashtiring.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/deploy \
  -H "Authorization: Bearer zdk_live_…"

Tizimga kirganmisiz? Boshqaruv panelingizdagi API konsoli haqiqiy tashkilot ID raqamingiz va shaxsiy kalitingizni avtomatik to'ldiradi hamda haqiqiy javobni ko'rishingiz uchun so'rovni jonli API orqali bajaradi. Ushbu yakuniy nuqtani API konsolida oching

Tafsilotlar

A site that has never been deployed reports status `idle` with null details — null means "nothing to show", never zero or an epoch. This is polled while a deploy is in flight, so it is a cheap database read and never calls a build provider. Requires `sites.view`.

Parametrlar

NomiTuriMajburiyNima bu
siteId (path)UuidHaSite ID (UUIDv7).

Javob

NomiTuriMajburiyNima bu
site_idUuidHaUUIDv7 identifier — sortable by creation time (docs/02 §8).
targetDeployTarget | nullHaNull when no target can be derived yet.
statusDeployStatusHa`idle` means the site has never been deployed. It is reported, never stored — a stored idle would be a second way to say "no deployments" that could contradict the first.
last_deployed_atobjectHaWhen the site last went live, or null if it never has. Null means nothing to show — never zero and never an epoch date.
live_urlobjectHaThe served URL once live, always https, else null. A non-HTTPS value is rejected server-side rather than returned.
repoobjectHaSource repository for the Pages targets, else null.
commitobjectHaThe deployed commit ref, else null.
messageobjectHaWhy the last deploy failed, else null. Rendered to the customer verbatim.
can_deploybooleanHaFalse while a deploy is in flight or the site cannot be deployed.

Ushbu yakuniy nuqta qaytarishi mumkin bo'lgan xatolar

401 · 403 · 404 · 429