Machine Image

Create a machine image from a stopped VM

post/project/{project_id}/location/{location}/machine-image/{machine_image_reference}

Path parameters

machine_image_referencestring required

Name for a new machine image (UBID format not allowed)

Request body

vmstring required

UBID of the source VM

versionstring

Version label (default is a timestamp)

destroy_sourceboolean

Destroy the source VM after capture

Response

A machine image

idstring required

ID of the machine image

namestring required

Name of the machine image

locationstring required

Location of the machine image

arch'x64' | 'arm64' required

Architecture

latest_versionstring nullable

Latest version label

created_atstring date-time required

Creation timestamp

Example response

{
  "id": "m1n30gjk1d1e2jj34v9x0dq4rp",
  "name": "my-image",
  "location": "eu-central-h1"
}