Skip to main content
GET
/
cloud
/
v3
/
gpu
/
virtual
/
{project_id}
/
{region_id}
/
flavors
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_virtual_flavor_list = client.cloud.gpu_virtual_clusters.flavors.list(
    project_id=1,
    region_id=7,
)
print(gpu_virtual_flavor_list.count)
{
  "count": 1,
  "results": [
    {
      "architecture": "x86_64",
      "capacity": 123,
      "disabled": true,
      "hardware_description": {
        "gpu": "1x NVIDIA 11GB",
        "local_storage": 3000,
        "ram": 2048,
        "vcpus": 1
      },
      "hardware_properties": {
        "gpu_count": 123,
        "gpu_manufacturer": "<string>",
        "gpu_model": "<string>",
        "nic_eth": "2x100;2x25",
        "nic_ib": "8x400"
      },
      "name": "<string>",
      "supported_features": {
        "security_groups": true
      }
    }
  ]
}

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

Query Parameters

hide_disabled
boolean
default:false

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

include_prices
boolean
default:false

Set to true if the response should include flavor prices.

Response

200 - application/json

OK

count
integer
required

Number of objects

Required range: x >= 0
results
(Virtual GPU flavors chema without price · object | Virtual GPU flavors chema with price · object)[]
required

Objects

  • Virtual GPU flavors chema without price
  • Virtual GPU flavors chema with price