Ask for a terminal in a pod
Checks everything a terminal needs and returns a session waiting for its WebSocket, with a ticket that opens it once, within 30 seconds, for the same person. A person who may manage the deployment may open one, unless its environment allows named people only (403 `exec.named_only`); so may anyone wh
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidclusterId*stringuuidpod*stringlength <= 253Idempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
container?stringEmpty means the pod's default container.
length <= 63command?array<>The program and its arguments. Absent runs /bin/sh with a TTY.
items <= 64tty?booleanfalsereason?stringWhy. Required, 10 characters or more, on a production-tier cluster; recorded in Activity.
length <= 500The session, waiting for its WebSocket, and its single-use ticket. The ticket is shown once.
application/json- response
session*ticket*stringOpens the session once. Send it as the subprotocol ticket.<ticket>.
expiresAt*stringdate-timestreamPath*stringThe WebSocket's path, under the API's base URL.
subprotocols*array<string>The subprotocols to offer, in order, ticket included.
curl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/pods/497f6eca-6276-4993-bfeb-53cbbbba6f08/string/exec-sessions' \ -H 'Content-Type: application/json' \ -d '{}'{ "session": { "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 }, "ticket": "string", "expiresAt": "2019-08-24T14:15:22Z", "streamPath": "string", "subprotocols": [ "string" ]}Test the Sentry connection POST
Makes real calls to Sentry with the stored token and says how long they took, the organization and how many projects are visible and mapped. It changes nothing. Needs `integration:manage`.
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