Get a deployment's current state
What the deployment tracks, the snapshot it runs, the snapshot it wants when that is newer, and its sync, health and drift status.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidThe deployment's state.
application/json- response
deploymentId*stringuuidclusters*array<>The state on each cluster the deployment is applied to, by cluster name. A deployment on an environment is applied to every cluster in it; its own state is their roll-up (applied when every cluster has, health the worst of theirs).
tracking*snapshotId?stringThe snapshot running. Absent before the first apply.
uuiddesiredSnapshotId?stringThe snapshot wanted, when it is newer than the one running.
uuidsnapshotContentId?stringThe 7-character content id of the snapshot running. Absent before the first apply.
desiredSnapshotContentId?stringThe 7-character content id of the snapshot wanted, when there is one.
provenance?Where the snapshot wanted came from, when there is one.
desiredProvenance?Where the snapshot wanted came from, when there is one.
sync*SyncStatusHow the snapshot running compares with the one wanted. Used by every state, list, timeline and Activity entry.
"synced""out_of_sync""applying""failed"syncMessage*stringWhy the last apply failed.
renderFailure?Why the newest render failed. Absent when it did not, or a render has worked since.
health*HealthStateThe worst health the operators report. Used by every state, list, timeline and Activity entry.
"healthy""progressing""degraded""unknown"healthMessage*stringThe operator's reason for the worst object when health is not good. Empty when there is none.
drift*syncChangedAt*stringdate-timehealthChangedAt*stringdate-timedriftChangedAt*stringdate-timeupdatedAt*stringdate-timecurl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/state'{ "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "clusters": [ { "clusterId": "a3d24843-7014-4490-bdd3-b7cb39b400c8", "clusterName": "string", "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "sync": "synced", "syncMessage": "string", "health": "healthy", "healthMessage": "string", "updatedAt": "2019-08-24T14:15:22Z" } ], "tracking": { "kind": "branch", "ref": "string" }, "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "desiredSnapshotId": "772358de-4331-409a-8836-5e8987492b85", "snapshotContentId": "string", "desiredSnapshotContentId": "string", "provenance": { "sourceRepo": "string", "branch": "string", "commit": "string", "branchProtected": true, "prNumber": 0, "pusher": "string", "commitSubject": "string", "commitAuthor": "string", "committedAt": "2019-08-24T14:15:22Z", "apps": [ { "appId": "28c365d5-df94-4a54-8217-3ce51d068868", "name": "string", "sourceRepo": "string", "sourcePath": "string", "renderType": "string", "commit": "string", "branch": "string", "branchProtected": true, "prNumber": 0, "pusher": "string", "commitSubject": "string", "commitAuthor": "string", "committedAt": "2019-08-24T14:15:22Z", "refKind": "branch", "refName": "string", "commitsSince": 0, "commitRange": [ { "sha": "string", "subject": "string", "author": "string" } ] } ] }, "desiredProvenance": { "sourceRepo": "string", "branch": "string", "commit": "string", "branchProtected": true, "prNumber": 0, "pusher": "string", "commitSubject": "string", "commitAuthor": "string", "committedAt": "2019-08-24T14:15:22Z", "apps": [ { "appId": "28c365d5-df94-4a54-8217-3ce51d068868", "name": "string", "sourceRepo": "string", "sourcePath": "string", "renderType": "string", "commit": "string", "branch": "string", "branchProtected": true, "prNumber": 0, "pusher": "string", "commitSubject": "string", "commitAuthor": "string", "committedAt": "2019-08-24T14:15:22Z", "refKind": "branch", "refName": "string", "commitsSince": 0, "commitRange": [ { "sha": "string", "subject": "string", "author": "string" } ] } ] }, "sync": "synced", "syncMessage": "string", "renderFailure": { "code": "string", "message": "string", "commit": "string", "occurredAt": "2019-08-24T14:15:22Z" }, "health": "healthy", "healthMessage": "string", "drift": { "status": "none", "count": 0 }, "syncChangedAt": "2019-08-24T14:15:22Z", "healthChangedAt": "2019-08-24T14:15:22Z", "driftChangedAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}List a deployment's pull request previews GET
The previews that exist now, newest pull request first. There are at most as many as the deployment's cap, so the list is not paged.
Get where a deployment is reached GET
The address the deployment's last render came out with, `https` when it has a certificate. `url` is absent when there is none, and `note` says why, such as `No public address`. A deployment whose apps cannot be reached has neither.