hosting

GET /v1/sites/{siteId}/deploy

Get a site's deploy target and status.

Όλα τα τελικά σημεία hosting

Πισtoποίηση

Στείλτε ένα κλειδί API ως διακριτικό φορέα (bearer token). Το κλειδί πρέπει να διαθέτει το δικαίωμα sites.view· ένα κλειδί που δεν το διαθέτει απορρίπτεται με 403, όχι 404.

Αυτό το τελικό σημείο δεν δέχεται αναγνωριστικό οργανισμού. Το κλειδί σας προσδιορίζει ήδη τον οργανισμό στον οποίο ανήκει, και η απάντηση περιορίζεται σε αυτόν.

Δοκιμάστε το

Ατικatastήstε ό,τι βρίskεtai μέσα σe γώniaδeς μe τis δikές sas timές, kai to placeholder klεidioύ μe éna klεidi apó ton pinaka ελέgchou sas.

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

Συνδεθήκατε; Η κονσόλα API στον πίνακα ελέγχου σας συμπληρώνει το πραγματικό αναγνωριστικό του οργανισμού σας και το δικό σας κλειδί, και εκτελεί το αίτημα στο ζωντανό API, ώστε να μπορείτε να δείτε την πραγματική απόκριση. Ανοίξτε αυτό το τελικό σημείο στην κονσόλα API

Λεπτομέρειες

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

Παράμετροι

ΌνομαΤύpοςΥποχρεωτικόΤι είναι
siteId (path)UuidΝαιSite ID (UUIDv7).

Απάντηση

ΌνομαΤύpοςΥποχρεωτικόΤι είναι
site_idUuidΝαιUUIDv7 identifier — sortable by creation time (docs/02 §8).
targetDeployTarget | nullΝαιNull when no target can be derived yet.
statusDeployStatusΝαι`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_atobjectΝαιWhen the site last went live, or null if it never has. Null means nothing to show — never zero and never an epoch date.
live_urlobjectΝαιThe served URL once live, always https, else null. A non-HTTPS value is rejected server-side rather than returned.
repoobjectΝαιSource repository for the Pages targets, else null.
commitobjectΝαιThe deployed commit ref, else null.
messageobjectΝαιWhy the last deploy failed, else null. Rendered to the customer verbatim.
can_deploybooleanΝαιFalse while a deploy is in flight or the site cannot be deployed.

Σφάλματα που μπορεί να επιστρέψει αυτό το τελικό σημείο

401 · 403 · 404 · 429