Skip to main content
GET
/
cloud
/
v3
/
gpu
/
baremetal
/
{project_id}
/
{region_id}
/
images
/
{image_id}
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
gpu_image = client.cloud.gpu_baremetal_clusters.images.get(
    image_id="8cab6f28-09ca-4201-b3f7-23c7893f4bd6",
    project_id=1,
    region_id=7,
)
print(gpu_image.id)
{
  "created_at": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "min_disk": 123,
  "min_ram": 123,
  "name": "<string>",
  "status": "<string>",
  "tags": [
    {
      "key": "<string>",
      "read_only": true,
      "value": "<string>"
    }
  ],
  "updated_at": "2023-11-07T05:31:56Z",
  "visibility": "<string>",
  "architecture": "x86_64",
  "gpu_driver": "nvidia",
  "gpu_driver_type": "open",
  "gpu_driver_version": "570.148.08",
  "os_distro": "ubuntu",
  "os_type": "linux",
  "os_version": "19.04",
  "size": 0,
  "ssh_key": "allow",
  "task_id": null
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

region_id
integer
required

Region ID

image_id
string
required

Image ID

Response

200 - application/json

OK

created_at
string<date-time>
required

Datetime when the image was created

id
string<uuid4>
required

Image ID

min_disk
integer
required

Minimal boot volume required

min_ram
integer
required

Minimal VM RAM required

name
string
required

Image name

status
string
required

Image status

tags
TagSerializer · object[]
required

List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.

updated_at
string<date-time>
required

Datetime when the image was updated

visibility
string
required

Image visibility. Globally visible images are public

architecture
string | null

Image architecture type

Example:

"x86_64"

gpu_driver
string | null

Name of the GPU driver vendor

Example:

"nvidia"

gpu_driver_type
string | null

Type of the GPU driver

Example:

"open"

gpu_driver_version
string | null

Version of the installed GPU driver

Example:

"570.148.08"

os_distro
string | null

OS Distribution

Example:

"ubuntu"

os_type
string | null

The operating system installed on the image

Example:

"linux"

os_version
string | null

OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian

Example:

"19.04"

size
integer
default:0

Image size in bytes.

ssh_key
string | null

Whether the image supports SSH key or not

Example:

"allow"

task_id
string | null

The UUID of the active task that currently holds a lock on the resource. This lock prevents concurrent modifications to ensure consistency. If null, the resource is not locked.

Example:

null