Clusters
Preview

List clusters

GET
/clusters
cookiebetter-auth.session_token<token>

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

limit?integer

Page size. Defaults to 50, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous page's nextCursor.

environmentId?string

Only the clusters of this environment.

Formatuuid
unassigned?boolean

Only clusters that belong to no environment.

state?string

Only clusters in this state. connected includes one whose operator needs an upgrade, as the list's Connected filter does; upgrade is only those; disconnected is a cluster whose link was ended or whose operator went quiet. One that never connected is in none of them.

Value in"connected""upgrade""disconnected"
tier?string

Only clusters of this tier.

Value in"production""staging""development"
q?string

Only clusters whose name, cloud, region or a label contains this text, ignoring case.

Length1 <= length <= 100

Response Body

A page of clusters, by name.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -X GET 'https://wardn.example.com/api/v1/clusters'
Example Response
{  "items": [    {      "view": "full",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "cloud": "aws",      "region": "eu-west-1",      "cloudDetected": true,      "regionDetected": true,      "tier": "production",      "labels": {        "property1": "string",        "property2": "string"      },      "paused": true,      "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",      "owners": [        "string"      ],      "ownerTeam": {        "id": "string",        "name": "string"      },      "operator": {        "version": "1.4.2",        "protocolVersion": 0,        "online": true,        "lastHeartbeatAt": "2019-08-24T14:15:22Z",        "firstConnectedAt": "2019-08-24T14:15:22Z",        "connectedAt": "2019-08-24T14:15:22Z",        "lastDisconnect": {          "at": "2019-08-24T14:15:22Z",          "reason": "string",          "durationSeconds": 0        },        "refused": {          "reason": "revoked",          "since": "2019-08-24T14:15:22Z",          "lastAt": "2019-08-24T14:15:22Z"        },        "upgrade": {          "needed": true,          "reason": "current"        }      },      "reconciler": {        "driftCheckSeconds": 0,        "driftFound": 0,        "applying": 0,        "queued": 0,        "appliedToday": {          "succeeded": 0,          "failed": 0        },        "current": {          "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",          "since": "2019-08-24T14:15:22Z"        },        "lastApply": {          "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",          "outcome": "succeeded",          "at": "2019-08-24T14:15:22Z"        }      },      "connection": {        "state": "active",        "changedAt": "2019-08-24T14:15:22Z"      },      "health": "healthy",      "usage": {        "nodesTotal": 0,        "nodesReady": 0,        "cpuCapacityMillis": 0,        "cpuUsedMillis": 0,        "memoryCapacityBytes": 0,        "memoryUsedBytes": 0,        "podsCapacity": 0,        "podsRunning": 0,        "kubernetesVersion": "string",        "reportedAt": "2019-08-24T14:15:22Z"      },      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}