Get a snapshot of a deployment
The snapshot with where it came from (repository, branch, commit, pull request and pusher), its review if a render guard held it, and a summary of its objects by kind. The objects themselves are read through the diff endpoints.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidsnapshotId*stringuuidThe snapshot.
application/json- response
lineage*array<>Where the snapshot came from, oldest first, ending with this deployment: each deployment it was promoted through. A snapshot made by a sync here has just this deployment.
appsChanged*integerHow many of its apps changed against the snapshot it followed.
secretsChanged*integerHow many secret references changed fingerprint against the snapshot it followed.
commits*The commits since the snapshot it followed, read from the git host. configured is false when no app's host can list them, as for a generic git server.
verdict*stringHow it fares in the stage its deployment sits in; unknown when no stage judges it.
"unknown""qualifying""qualified""rejected""superseded"release*|Shape only. The release that carries it; null until releases (M4).
stage*|The pipeline stage its deployment sits in; null when it is in none.
snapshot*provenance*Where a snapshot's content came from. The top-level fields describe the app whose push or pull request made it, or the deployment's first app; apps describes every app the snapshot covers.
review?Why a render was held back from being applied, and what a person decided.
kinds*array<>The objects of the snapshot counted by kind.
images?array<>The images the snapshot uses, by the digests they resolved to.
apps*array<>Every app's version in the snapshot, against the snapshot it followed. Unchanged apps are listed too.
running*booleanThe deployment runs this snapshot now.
wanted*booleanThe deployment wants this snapshot applied.
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/snapshots/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "lineage": [ { "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "deploymentName": "string", "environmentName": "string", "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861" } ], "appsChanged": 0, "secretsChanged": 0, "commits": { "configured": true, "count": 0, "prs": 0, "items": [ { "sha": "string", "message": "string", "appId": "28c365d5-df94-4a54-8217-3ce51d068868", "author": "string", "prNumber": 0 } ] }, "verdict": "unknown", "release": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "number": 0 }, "stage": { "name": "string" }, "snapshot": { "promotedFrom": { "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2" }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43", "origin": "sync", "commit": "string", "branch": "string", "sourceRepo": "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" } ] } ], "manifestDigest": "string", "contentId": "string", "resourceCount": 0, "totalBytes": 0, "createdBy": "string", "createdAt": "2019-08-24T14:15:22Z", "reviewState": "held" }, "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" } ] } ] }, "review": { "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "commit": "string", "state": "held", "reason": "empty", "message": "string", "objectsBefore": 0, "objectsAfter": 0, "objectsRemoved": 0, "heldAt": "2019-08-24T14:15:22Z", "decidedBy": "string", "decidedAt": "2019-08-24T14:15:22Z" }, "kinds": [ { "group": "string", "kind": "string", "objects": 0, "bytes": 0 } ], "images": [ { "ref": "string", "digest": "string" } ], "apps": [ { "appId": "28c365d5-df94-4a54-8217-3ce51d068868", "name": "string", "commit": "string", "previousCommit": "string", "change": "added", "resources": 0, "changedResources": 0, "kinds": { "image": true, "values": 0, "config": 0, "secrets": 0 }, "commits": 0 } ], "running": true, "wanted": true}List a deployment's snapshots GET
The snapshots of the deployment, newest first, each without its manifest. A snapshot a render guard held shows its review state.
Check what restoring a snapshot would run into GET
Runs the checks a restore runs first, and changes nothing. Blocking findings stop a restore unless it is bypassed; warnings do not.