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,
)
Returns JSON Raises HttpResponseError

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_id string required

The unique ID of the MicroVM.

rows integer optional

The initial number of terminal rows.

Min: 1

Max: 65535

Default: 24

cols integer optional

The initial number of terminal columns.

Min: 1

Max: 65535

Default: 80

More Information

See /v2/microvms/{microvm_id}/console in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.