Deployments
Preview

List the resources of each app of a deployment

The objects of the snapshot the deployment runs, by app, with what the clusters report of each: its health, whether it is in sync, whether it is a hook job, where the last apply left it and its pods for a workload. An app the running snapshot does not hold yet is listed with no resources.

GET
/deployments/{deploymentId}/resources
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
snapshotId*|

The snapshot running, whose objects are listed. Null when none runs.

Formatuuid
apps*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/resources'
Example Response
{  "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",  "apps": [    {      "appId": "28c365d5-df94-4a54-8217-3ce51d068868",      "appName": "string",      "summary": {        "health": "healthy",        "podsReady": 0,        "podsTotal": 0,        "resources": 0,        "jobs": 0,        "restarts24h": 0      },      "resources": [        {          "group": "string",          "version": "string",          "kind": "string",          "namespace": "string",          "name": "string",          "category": "workload",          "health": "healthy",          "healthMessage": "string",          "sync": "synced",          "hookPhase": "none",          "clusters": 0,          "presentOn": 0,          "podsReady": 0,          "podsTotal": 0,          "createdAt": "2019-08-24T14:15:22Z",          "selector": {            "property1": "string",            "property2": "string"          },          "podLabels": {            "property1": "string",            "property2": "string"          },          "serviceAccount": "string",          "configRefs": [            "string"          ]        }      ]    }  ]}