api.compute

terminals.get()

api.compute.terminals.get(id) → Promise<ComputeTerminal>

Get a terminal by ID and read its current state.

Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

const terminal = await api.compute.terminals.get("YOUR_TERMINAL_ID");
const output = await terminal.output({ since: 0 });
terminal = api.compute.terminals.get("YOUR_TERMINAL_ID")
output = terminal.output(since=0)
idstringrequired

ID returned by terminals.create(). The terminal must belong to the signed-in account.

A terminal record includes id, name, command, storageId, cwd, status, busy, exitCode, by, startedAt, port and url.