Terminal
PreviewList terminal sessions
Terminal sessions of the organization, newest first. `live=true` keeps those not ended, so an admin can see who is in a pod now and end any of them. Needs `audit:read`.
GET
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
live?booleanDefault
falsedeploymentId?stringFormat
uuiduserId?stringLength
length <= 128limit?integerPage size. Defaults to 50, at most 200.
Range
1 <= value <= 200Default
50cursor?stringOpaque cursor from a previous page's nextCursor.
A page of sessions.
application/json- response
items*array<>nextCursor?stringcurl -X GET 'https://wardn.example.com/api/v1/exec-sessions'Example Response
{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "deploymentName": "string", "clusterId": "a3d24843-7014-4490-bdd3-b7cb39b400c8", "userId": "string", "namespace": "string", "pod": "string", "container": "string", "command": [ "string" ], "tty": true, "reason": "string", "production": true, "recorded": true, "state": "pending", "idleTimeoutSeconds": 0, "maxDurationSeconds": 0, "createdAt": "2019-08-24T14:15:22Z", "startedAt": "2019-08-24T14:15:22Z", "endedAt": "2019-08-24T14:15:22Z", "endReason": "exited", "exitCode": 0, "terminatedBy": "string", "recordingBytes": 0 } ], "nextCursor": "string"}Attach to a terminal (WebSocket) GET
A WebSocket upgrade. Authenticated by the session cookie or token like every request; the `Origin` must be one the API allows; the ticket goes in `Sec-WebSocket-Protocol` as two subprotocols, `wardn.exec.v1` and `ticket.<ticket>`, never in the URL. The server answers with the subprotocol `wardn.exec
Read a terminal session GET
Next Page