hosting

GET /v1/sites/{siteId}/deploy

Get a site's deploy target and status.

Dukkan hosting wuraren ƙarshe

Tabbatar da Asali

Aika maɓallin API azaman alamar ɗauka (bearer token). Dole ne maɓallin ya kasance yana da izinin sites.view; idan babu shi, za a ƙi amfani da maɓallin tare da lambar 403, ba 404 ba.

Wannan wurin ƙarewa ba ya buƙatar ID na ƙungiya. Maɓallin ku ya riga ya gano ƙungiyar da yake ciki, kuma an iyakance amsa a kanta.

Gwada

May gurbin komai da ke cikin kusurwa da ƙimar ka, kuma may gurbin maballi da maballi daga allon sarrafa ka.

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

An shiga? Na'urar sarrafa API da ke cikin sashin kulawarka tana cika ainihin lambar ƙungiyarka da maɓallinka naka, sannan tana gudanar da buƙatar a kan ainihin API don haka zaka iya ganin amsar gaske. Buɗe wannan tashar a cikin na'urar kula da API

Bayani

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`.

Sigogi

SunaNau'iAna buƙataAbin da yake
siteId (path)UuidEhSite ID (UUIDv7).

Martani

SunaNau'iAna buƙataAbin da yake
site_idUuidEhUUIDv7 identifier — sortable by creation time (docs/02 §8).
targetDeployTarget | nullEhNull when no target can be derived yet.
statusDeployStatusEh`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_atobjectEhWhen the site last went live, or null if it never has. Null means nothing to show — never zero and never an epoch date.
live_urlobjectEhThe served URL once live, always https, else null. A non-HTTPS value is rejected server-side rather than returned.
repoobjectEhSource repository for the Pages targets, else null.
commitobjectEhThe deployed commit ref, else null.
messageobjectEhWhy the last deploy failed, else null. Rendered to the customer verbatim.
can_deploybooleanEhFalse while a deploy is in flight or the site cannot be deployed.

Kuskuren da wannan matsaya za ta iya maido wa

401 · 403 · 404 · 429