List clusters
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
limit?integerPage size. Defaults to 50, at most 200.
1 <= value <= 20050cursor?stringOpaque cursor from a previous page's nextCursor.
environmentId?stringOnly the clusters of this environment.
uuidunassigned?booleanOnly clusters that belong to no environment.
state?stringOnly 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.
"connected""upgrade""disconnected"tier?stringOnly clusters of this tier.
"production""staging""development"q?stringOnly clusters whose name, cloud, region or a label contains this text, ignoring case.
1 <= length <= 100A page of clusters, by name.
application/json- response
items*array<>nextCursor?stringcurl -X GET 'https://wardn.example.com/api/v1/clusters'{ "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"}Live events
Follow changes in your organization as they happen with a server-sent event stream, and resume after a dropped connection without missing any.
Register a cluster POST
The caller becomes the cluster's owner. Naming an environment also takes the right to manage that environment. With none named, an environment whose selector matches the cluster's labels may place it.