GET
/
cloud
/
v3
/
gpu
/
baremetal
/
{project_id}
/
{region_id}
/
images
/
{image_id}
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)
{
  "architecture": "x86_64",
  "created_at": "2024-05-05T14:51:26.570866",
  "id": "44e136a7-15c1-4b5f-a086-20b7b3237d40",
  "min_disk": 1,
  "min_ram": 0,
  "name": "ubuntu-23.10-x64",
  "os_distro": "ubuntu",
  "os_type": "linux",
  "os_version": "19.04",
  "size": 3758096384,
  "ssh_key": "allow",
  "status": "active",
  "tags": [
    {
      "key": "my-tag",
      "read_only": false,
      "value": "my-tag-value"
    }
  ],
  "task_id": null,
  "updated_at": "2024-05-05T14:51:26.570866",
  "visibility": "public"
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

Examples:

1

region_id
integer
required

Region ID

Examples:

7

image_id
string
required

Image ID

Examples:

"8cab6f28-09ca-4201-b3f7-23c7893f4bd6"

Response

200 - application/json

OK

The response is of type object.