Skip to main content
GET
/
cloud
/
v1
/
k8s
/
{project_id}
/
{region_id}
/
flavors
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
baremetal_flavor_list = client.cloud.k8s.flavors.list(
    project_id=0,
    region_id=0,
)
print(baremetal_flavor_list.count)
{
  "count": 1,
  "results": [
    {
      "architecture": "x86_64",
      "capacity": 1,
      "currency_code": "USD",
      "disabled": false,
      "flavor_id": "g2-standard-32-64",
      "flavor_name": "g2-standard-32-64",
      "hardware_description": {},
      "os_type": "linux",
      "price_per_hour": 1,
      "price_per_month": 720,
      "price_status": "show",
      "ram": 2048,
      "resource_class": "bm1-ai-small",
      "vcpus": 1
    }
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

project_id
integer
required
region_id
integer
required

Query Parameters

exclude_gpu
boolean
include_prices
boolean

Response

200 - application/json
count
integer
required
Required range: x >= 0
Examples:
results
Bare metal flavor schema · object[]
required