Skip to content

Open a VM VNC WebSocket

GET
/vnc/{port}
curl --request GET \
--url 'https://sylve.lan:8181/api/vnc/1?auth=example'

Validate the requested VM-owned VNC port and upgrade to the existing authenticated WebSocket relay. This documents the HTTP handshake, not WebSocket frames.

port
required
integer
>= 1 <= 65535

VM-owned VNC port

auth
required
string

Opaque hex-encoded WebSocket authentication payload

overtake
boolean

Take over an existing VNC session

Switching Protocols

string

Bad Request

object
data
error
string
message
string
status
string

Unauthorized

object
data
error
string
message
string
status
string

Forbidden

object
data
error
string
message
string
status
string

VNC Port Not Found

object
data
error
string
message
string
status
string

Internal Server Error

object
data
error
string
message
string
status
string

Bad Gateway

object
data
error
string
message
string
status
string

Service Unavailable

object
data
error
string
message
string
status
string