Skip to main content
POST
/
cloud
/
v1
/
bmimages
/
{project_id}
/
{region_id}
Create image
curl --request POST \
  --url https://api.gcore.com/cloud/v1/bmimages/{project_id}/{region_id} \
  --header 'Authorization: <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

Authorization
string
header
required

Path Parameters

project_id
integer
required
region_id
integer
required

Body

application/json
name
string
required
Examples:
volume_id
string<uuid4>
required
Examples:
architecture
enum<string>
Available options:
aarch64,
x86_64
hw_firmware_type
enum<string> | null
Available options:
bios,
uefi
Examples:
hw_machine_type
enum<string> | null
Available options:
pc,
q35
Examples:
is_baremetal
boolean
default:false
Examples:
os_type
enum<string>
Available options:
linux,
windows
source
string
default:volume
Allowed value: "volume"
Examples:
ssh_key
enum<string>
Available options:
allow,
deny,
required
tags
object

Response

200 - application/json
tasks
string[]
required
Examples: