Deployments
Preview

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

GET
/deployments/{deploymentId}/share
cookiebetter-auth.session_token<token>

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

deploymentId*string
Formatuuid

Response Body

The sharing of the deployment.

application/json
  1. 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.

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