Read how a deployment is shared, who holds it and who waits
Returns the shared-use settings, the claim that holds the deployment now (absent when nobody does), the requests waiting for it, oldest first, and what the caller may do. A deployment that is not shared answers with `settings.enabled` false. Needs `deployment:read`.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidThe sharing of the deployment.
application/json- response
settings*claim?requests*array<>The people waiting for the deployment, oldest first.
viewer*problems*array<>What is wrong with the deployment now, worst first. Empty when a claim has nothing wrong or nobody holds it.
waiting?A snapshot the claimed deployment holds back until its claim ends.
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/share'{ "settings": { "enabled": true, "claimTeamIds": [ "string" ], "maxClaimMinutes": 15, "onEnd": "main", "defaultBranch": "string", "keepOtherPushes": true, "takeOverByAdmins": true, "handover": { "jobs": [ { "name": "string", "when": "before_next_holder", "job": {}, "failure": "stop" } ], "migration": { "mode": "off", "folder": "string", "job": {} } } }, "claim": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "holder": { "id": "string", "name": "string" }, "branch": "string", "note": "string", "claimedAt": "2019-08-24T14:15:22Z", "until": "2019-08-24T14:15:22Z", "minutes": 0, "extended": true, "state": "active", "endedAt": "2019-08-24T14:15:22Z", "endReason": "released", "endedBy": { "id": "string", "name": "string" }, "reason": "string", "resetFirst": true, "migration": { "state": "not_checked", "apps": [ { "appId": "string", "appName": "string", "state": "not_checked", "folder": "string", "onlyRunning": [ "string" ], "onlyIncoming": [ "string" ], "reason": "string" } ], "jobs": [ "string" ], "statusJob": true, "reason": "string" }, "migrationKept": true, "handoverJobs": [ { "name": "string", "succeeded": true } ] }, "requests": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "claimId": "88057929-7728-4a26-8396-f965dcc8b947", "by": { "id": "string", "name": "string" }, "branch": "string", "minutes": 0, "note": "string", "state": "waiting", "declineReason": "string", "createdAt": "2019-08-24T14:15:22Z", "decidedAt": "2019-08-24T14:15:22Z" } ], "viewer": { "holder": true, "mayClaim": true, "mayTakeOver": true, "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6" }, "problems": [ { "kind": "handover_failed", "title": "string", "detail": "string", "job": "string", "giveBackTo": { "id": "string", "name": "string" }, "actions": [ "open_logs" ], "at": "2019-08-24T14:15:22Z" } ], "waiting": { "kind": "push", "snapshotId": "string", "branch": "string", "pusher": "string", "commit": "string", "reason": "string", "createdAt": "2019-08-24T14:15:22Z" }}Apply the deployment's snapshot again POST
Queues the snapshot the deployment wants, or the one it runs when it wants none, through the normal delivery path for its cluster or for every cluster of its environment. Use it to retry a failed apply. Answers 409 while an apply is queued or under way. Writes an Activity entry. Needs `deployment:sy
What to know before taking a shared deployment GET
Read-only checks for a person about to claim or ask for the deployment with `branch`: what runs now and whose it is, how many apps would move to other commits, whether the branch differs in database migration files from what runs (compared by file names in git, and by the names of the jobs that run;