/v2/microvms/{microvm_id}/consoleOpen a console in a MicroVM
To open an interactive /bin/sh console in a MicroVM's workload container, open a
WebSocket connection to wss://api.digitalocean.com/v2/microvms/{microvm_id}/console.
Send the API token in the Authorization header of the handshake. Browsers cannot set this
header, so you cannot open the console from browser JavaScript. The image must include
/bin/sh. A MicroVM can have four consoles open at a time. If the MicroVM is paused and
auto-resume is on, opening a console resumes it.
One documented failure
PERMISSION_DENIEDpermission denied
One documented failure
NOT_FOUNDMicroVM not found
A 401 is returned: Authentication failed due to invalid credentials. A 403 is returned: The token does not have the required scope, or your team has reached a limit. A 404 is returned: The MicroVM or checkpoint does not exist, or it belongs to another team. A 429 is returned: The API rate limit has been exceeded. A 500 is returned: There was a server error. Any other status is an error: There was an unexpected error.