pydo.microvms.get_console()
Generated on 13 Nov 2026
from pydo version
v0.46.0
Usage
client.microvms.get_console(
microvm_id="01a0ef1a-d873-793d-ae6a-5dd6239be62a",
rows=24,
cols=80,
)Description
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.
Parameters
microvm_idstring requiredThe unique ID of the MicroVM.
rowsinteger optionalThe initial number of terminal rows.
colsinteger optionalThe initial number of terminal columns.
More Information
See /v2/microvms/{microvm_id}/console in the API reference for additional detail on responses, headers, parameters, and more.