hosting

GET /v1/sites/{siteId}/deployments/{deploymentId}

One deploy, with its build log.

Lahat ng hosting endpoint

Pagpapatotoo

Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na sites.view; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.

Ang endpoint na ito ay hindi nangangailangan ng id ng organisasyon. Natutukoy na ng iyong key ang organisasyong kinabibilangan nito, at nakatuon ang tugon dito.

Subukan ito

Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.

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

Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API

Mga Detalye

The log is written line by line as the build runs rather than at the end, so it is readable while a deploy is in flight and present on one that hangs. Requires `sites.view`.

Mga Parameter

PangalanUriKailanganAno ito
siteId (path)UuidOoSite ID (UUIDv7).
deploymentId (path)UuidOoDeployment ID (UUIDv7).

Tugon

PangalanUriKailanganAno ito
idUuidOoUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_idUuidOoUUIDv7 identifier — sortable by creation time (docs/02 §8).
targetDeployTargetOoWhere the site is published from. `fleet` is our own managed fleet; the rest are managed edge hosts, deployed to from a pooled account of ours or the customer's own connected on…
statusDeployStatusOo`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.
triggerDeployTriggerOoWhat caused the deploy. Stored because `requested_by` cannot answer it for a push — the actor there is a webhook delivery, not a person.
repoobjectOo
branchobjectOo
commitobjectOo
commit_messageobjectOo
live_urlobjectOo
messageobjectOoWhy it failed, else null. Rendered to the customer verbatim.
requested_bystringOo
created_atstringOo
started_atobjectOo
finished_atobjectOo
logstringOoThe build log, one timestamped line per step. Truncated from the FRONT when long — the end of a build log is where the failure is.

Mga error na maibabalik ng endpoint na ito

401 · 403 · 404 · 429