Terminal
Preview

Attach to a terminal (WebSocket)

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

GET
/deployments/{deploymentId}/pods/{clusterId}/{pod}/exec-sessions/{sessionId}/stream
cookiebetter-auth.session_token<token>

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

deploymentId*string
Formatuuid
clusterId*string
Formatuuid
pod*string
Lengthlength <= 253
sessionId*string
Formatuuid

Response Body

Switching to the WebSocket protocol.

Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/pods/497f6eca-6276-4993-bfeb-53cbbbba6f08/string/exec-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/stream'
Example Response
Empty