hosting

GET /v1/sites/{siteId}/deploy

Get a site's deploy target and status.

Vituo vyote vya hosting

Uthibitishaji

Tuma ufunguo wa API kama tokeni ya kubeba. Ufunguo lazima uwe na ruhusa ya sites.view; ufunguo usio nayo unakataliwa kwa 403, si 404.

Endpoint hii haichukui kitambulisho cha shirika. Ufunguo wako tayari unalitambua shirika linalohusika, na jibu limewekewa kikomo kwa shirika hilo pekee.

Jaribu

Badilisha chochote kilicho ndani ya mabano ya pembe na maadili yako mwenyewe, na kishikiliaji cha ufunguo na ufunguo kutoka kwa dashibodi yako.

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

Umeingia kwenye akaunti? Dashibodi yako ya kiweko cha API inajaza kitambulisho chako halisi cha shirika na ufunguo wako mwenyewe, na kuendesha ombi dhidi ya API ya moja kwa moja ili uweze kuona jibu halisi. Fungua sehemu hii ya mwisho (endpoint) kwenye konsole ya API

Maelezo

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

Vigezo

JinaAinaInayohitajikaKilicho hiki
siteId (path)UuidNdiyoSite ID (UUIDv7).

Majibu

JinaAinaInayohitajikaKilicho hiki
site_idUuidNdiyoUUIDv7 identifier — sortable by creation time (docs/02 §8).
targetDeployTarget | nullNdiyoNull when no target can be derived yet.
statusDeployStatusNdiyo`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_atobjectNdiyoWhen the site last went live, or null if it never has. Null means nothing to show — never zero and never an epoch date.
live_urlobjectNdiyoThe served URL once live, always https, else null. A non-HTTPS value is rejected server-side rather than returned.
repoobjectNdiyoSource repository for the Pages targets, else null.
commitobjectNdiyoThe deployed commit ref, else null.
messageobjectNdiyoWhy the last deploy failed, else null. Rendered to the customer verbatim.
can_deploybooleanNdiyoFalse while a deploy is in flight or the site cannot be deployed.

Hitilafu ambazo mwisho huu unaweza kurudisha

401 · 403 · 404 · 429