Check what restoring a snapshot would run into
Runs the checks a restore runs first, and changes nothing. Blocking findings stop a restore unless it is bypassed; warnings do not.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidsnapshotId*stringuuidincidentId?stringAn incident to link, by id or number (INC-12), to see whether it lets the restore past the guardrails.
The findings.
application/json- response
rules*array<>Every requirement of the guardrails that govern restores, met or not.
breakGlass*Whether the incident linked to the restore lets it go past the guardrails.
snapshotId*stringuuidblocked*booleanAt least one finding is blocking.
findings*array<>apps*array<>What the restore changes, app by app, against the snapshot running. The whole snapshot is applied; the apps it holds as they run now do not move.
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/snapshots/497f6eca-6276-4993-bfeb-53cbbbba6f08/preflight'{ "rules": [ { "title": "string", "setBy": "string", "status": "met", "message": "string" } ], "breakGlass": { "incident": "string", "available": true, "reason": "string" }, "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "blocked": true, "findings": [ { "code": "image.unresolvable", "severity": "blocking", "message": "string", "subject": "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 } ]}Get a snapshot of a deployment GET
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.
Apply an earlier snapshot again POST
Makes the snapshot the one the deployment wants and applies it through the normal path, with jobs running their undo in place of their forward work. The preflight runs first and its findings come back. When it found something blocking and no bypass was given, nothing is applied and `status` is `bloc