Skip to main content
GET
/
cloud
/
v3
/
gpu
/
virtual
/
{project_id}
/
{region_id}
/
images
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_list = client.cloud.gpu_virtual_clusters.images.list(
    project_id=1,
    region_id=7,
)
print(gpu_image_list.count)
{
  "count": 1,
  "results": [
    {
      "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

Response

200 - application/json

OK

count
integer
required

Number of objects

Required range: x >= 0
results
GpuImageSerializer · object[]
required

Objects