Terminal
Preview

List 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
/exec-sessions
cookiebetter-auth.session_token<token>

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

live?boolean
Defaultfalse
deploymentId?string
Formatuuid
userId?string
Lengthlength <= 128
limit?integer

Page size. Defaults to 50, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous page's nextCursor.

Response Body

A page of sessions.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -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"}