POST
/
cloud
/
v1
/
bmimages
/
{project_id}
/
{region_id}
curl --request POST \
  --url https://api.gcore.com/cloud/v1/bmimages/{project_id}/{region_id} \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "architecture": "x86_64",
  "hw_firmware_type": "bios",
  "hw_machine_type": "q35",
  "is_baremetal": false,
  "name": "my-image",
  "os_type": "linux",
  "source": "volume",
  "ssh_key": "allow",
  "tags": {
    "my-tag": "my-tag-value"
  },
  "volume_id": "d478ae29-dedc-4869-82f0-96104425f565"
}'
{
  "tasks": [
    "d478ae29-dedc-4869-82f0-96104425f565"
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

region_id
integer
required

Region ID

Body

application/json

Response

200 - application/json

List of created tasks

The response is of type object.