Deployments
Preview

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.

GET
/deployments/{deploymentId}/snapshots/{snapshotId}/preflight
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

deploymentId*string
Formatuuid
snapshotId*string
Formatuuid
incidentId?string

An incident to link, by id or number (INC-12), to see whether it lets the restore past the guardrails.

Response Body

The findings.

application/json
  1. 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*string
Formatuuid
blocked*boolean

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

Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/snapshots/497f6eca-6276-4993-bfeb-53cbbbba6f08/preflight'
Example Response
{  "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    }  ]}