Let a snapshot through the guardrails that hold it
A guardrail can hold a snapshot: the protected-branch rule of a guarded environment, a window, a missing approval. Bypassing lets that one snapshot deploy anyway, once, with a reason that Activity records; the next snapshot meets the guardrails again. It is for people who hold the bypass duty. Other
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidsnapshotId*stringuuidIdempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
reason*string1 <= length <= 1000ruleIds?array<string>The guardrail rules the bypass skips, each one holding the snapshot now (409 bypass.rule_not_holding otherwise). Left out, it skips every rule that holds the snapshot. A rule it does not name still holds it.
The snapshot, now on its way to the cluster.
application/json- response
id*stringuuiddeploymentId*stringuuidparentId?|uuidorigin*string"sync""promotion""rollback""drift""restore""emergency""cutover"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.
resourceCount*integercreatedAt*stringdate-timecreatedBy*stringcurl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/snapshots/497f6eca-6276-4993-bfeb-53cbbbba6f08/bypass' \ -H 'Content-Type: application/json' \ -d '{ "reason": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43", "origin": "sync", "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" } ] } ] }, "resourceCount": 0, "createdAt": "2019-08-24T14:15:22Z", "createdBy": "string"}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
Get the approval request of a snapshot GET
The request for approvals a snapshot has at this deployment, with the approvals given so far, what the guardrails say now, and whether the caller may decide on it. A snapshot the guardrails never held for approvals has none: 404.