GET
/
cloud
/
v3
/
gpu
/
baremetal
/
{project_id}
/
{region_id}
/
flavors
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_baremetal_flavor_list = client.cloud.gpu_baremetal_clusters.flavors.list(
    project_id=1,
    region_id=7,
)
print(gpu_baremetal_flavor_list.count)
{
  "count": 1,
  "results": [
    {
      "architecture": "x86_64",
      "capacity": 1,
      "disabled": false,
      "hardware_description": {
        "cpu": "1x Intel Xeon 4C/8T 3.7 GHz",
        "disk": "2x 250GiB SSD",
        "gpu": "1x NVIDIA 11GB",
        "network": "1x 500Mbps",
        "ram": "32 GiB"
      },
      "hardware_properties": {
        "gpu_count": 123,
        "gpu_manufacturer": "<string>",
        "gpu_model": "<string>"
      },
      "name": "g1-gpu-1-2-1"
    }
  ]
}

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

Query Parameters

hide_disabled
boolean
default:false

Set to true to remove the disabled flavors from the response.

Examples:

true

include_prices
boolean
default:false

Set to true if the response should include flavor prices.

Examples:

true

Response

200 - application/json

OK

The response is of type object.