GET
/
cloud
/
v1
/
images
/
{project_id}
/
{region_id}
/
{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
)
image = client.cloud.instances.images.get(
    image_id="image_id",
    project_id=0,
    region_id=0,
)
print(image.id)
{
  "architecture": "x86_64",
  "created_at": "2024-05-05T14:51:26.570866",
  "creator_task_id": "b10dd116-07f5-4225-abb7-f42da5cb78fb",
  "description": "string",
  "disk_format": "raw",
  "display_order": 2010,
  "hw_firmware_type": "bios",
  "hw_machine_type": "q35",
  "id": "44e136a7-15c1-4b5f-a086-20b7b3237d40",
  "is_baremetal": false,
  "min_disk": 3,
  "min_ram": 0,
  "name": "ubuntu-20.10-x64",
  "os_distro": "ubuntu",
  "os_type": "linux",
  "os_version": "20.10",
  "project_id": 1337,
  "region": "Luxembourg 1",
  "region_id": 7,
  "size": 2361393152,
  "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

region_id
integer
required

Region ID

image_id
string
required

Image ID

Query Parameters

include_prices
boolean

Show price

Response

200 - application/json

Returned image

The response is of type object.