Deployments
Preview

List the jobs that run around a deployment's applies

Each job from the deployment's settings with the app it belongs to, when it runs, its image, what a failure does, and its last run.

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

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

deploymentId*string
Formatuuid
appId?string

Only what belongs to this app of the deployment.

Formatuuid

Response Body

OK.

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/jobs'
Example Response
{  "items": [    {      "name": "string",      "origin": "app",      "sourceName": "string",      "appId": "28c365d5-df94-4a54-8217-3ce51d068868",      "appName": "string",      "when": "before",      "image": "string",      "onFailure": "stop",      "timeoutSeconds": 0,      "lastRun": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string",        "appId": "28c365d5-df94-4a54-8217-3ce51d068868",        "phase": "before",        "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",        "clusterId": "a3d24843-7014-4490-bdd3-b7cb39b400c8",        "status": "succeeded",        "error": "string",        "logTail": "string",        "startedAt": "2019-08-24T14:15:22Z",        "finishedAt": "2019-08-24T14:15:22Z"      }    }  ]}