---
title: "Get a VM's serial console log, fetching it first if it has never been fetched"
method: GET
path: "/project/{project_id}/location/{location}/vm/{vm_reference}/serial-log"
tags: ["Virtual Machine"]
---

# Get a VM's serial console log, fetching it first if it has never been fetched

`GET /project/{project_id}/location/{location}/vm/{vm_reference}/serial-log`

## Query parameters

- `refresh` boolean

## Response `200`

The status/output of a VM run command

- RunCommand
  - `status` 'created' | 'succeeded' | 'failed', required — Status of the run command
  - `output` string, nullable, required — Output of the run command, truncated to the last 64KB. Null unless status is succeeded.
  - `timestamp` string, date-time, required — Time the run command was last updated to its current status

## Other responses

- `202` — The status/output of a VM run command
- `default` — An error response

## Changes

- **2026-08-26** `c54e37d06b3d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ubicloud/apis/clover-api/changes/project/:project_id/location/:location/vm/:vm_reference/serial-log/get.md)

---

[API](https://skmtc.dev/ubicloud/apis/clover-api.md) · [All operations](https://skmtc.dev/ubicloud/apis/clover-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ubicloud/clover-api/revisions/ae229e5ccaee/schema)
