Zudoku
Unikraft Cloud noVNC Plugin API

Screen

Server

GET
http://localhost:8080
/screen

Get the size of the screen.

Responses

An unexpected error response.

The size of the screen. `400` is returned by a resize when the requested size is larger than the largest size the desktop supports.
status
​string · enum · required

The status of the response.

Enum values:
success
error
partial_success
​object · required

The response data for this request.

op_time_us
​integer · uint64 · required

The operation time in microseconds.

message
​string

An optional message providing additional information about the status.

A list of errors which may have occurred during the request.


PUT
http://localhost:8080
/screen

Resize the screen. The windows of the desktop stay open and connected VNC clients follow the new size.

Request Body

The request to resize the screen, in pixels.
width
​integer · uint32 · min: 1 · max: 2560 · required
height
​integer · uint32 · min: 1 · max: 1600 · required

Responses

An unexpected error response.

The size of the screen. `400` is returned by a resize when the requested size is larger than the largest size the desktop supports.
status
​string · enum · required

The status of the response.

Enum values:
success
error
partial_success
​object · required

The response data for this request.

op_time_us
​integer · uint64 · required

The operation time in microseconds.

message
​string

An optional message providing additional information about the status.

A list of errors which may have occurred during the request.