Unikraft Cloud Sandbox Plugin API
This specification describes the Sandbox plugin API, a control API exposed by a sandbox instance running on Unikraft Cloud. It provides two services: the management of shell commands running inside the sandbox, and reading and writing files in the sandbox filesystem.
Every operation declares a single default response: the standard response
envelope, which carries the outcome of the request in status, the
human-readable reason for a failure in message and the HTTP status code in
errors. The HTTP status code itself distinguishes success from failure; the
status codes an operation can return are documented on the operation. The two
endpoints which stream bytes rather than JSON (the raw command log and the
raw file download) return their payload verbatim, unenveloped.
One endpoint is not an HTTP operation and so does not appear below:
GET /commands/{uuid}/ws upgrades to a WebSocket that streams a command's
output as it is produced and takes its input, eof, resize and signal
as frames. The frame contract is documented in the plugin's README.