v1

latestSwagger 2.02026-08-04232286653.5 KB
CustomImages

Creates a custom image in the project and returns the async operation.

post/projects/{project_id}/compute/custom-images

Path parameters

project_idstring required

ID of the project that owns the custom image.

Request body

DiskIDstring required

ID of the disk to create the custom image from.

descriptionstring

Description for the new custom image.

namestring required

Name for the new custom image.

tagsstring[]

Tags to associate with the new custom image.

Example request

{
  "DiskID": "182d01c7-d3fe-424b-af13-8775aeead194",
  "description": "Ubuntu is the modern, open source operating system on Linux for ...",
  "name": "ubuntu"
}

Response

Example response

{
  "operation": {
    "completed_at": "2021-12-03T19:59:34Z",
    "metadata": "{}",
    "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
    "result": "{}",
    "started_at": "2021-12-03T19:58:34Z",
    "state": "IN_PROGRESS"
  }
}