GET
/
cloud
/
v1
/
bmflavors
/
{project_id}
/
{region_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
)
baremetal_flavor_list = client.cloud.baremetal.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,
      "reserved_in_stock": 1,
      "resource_class": "bm1-ai-small",
      "vcpus": 1
    }
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

region_id
integer
required

Region ID

Query Parameters

disabled
boolean

Flag for filtering disabled flavors in the region. Defaults to true

exclude_linux
boolean

Set to true to exclude flavors dedicated to linux images. Default False

exclude_windows
boolean

Set to true to exclude flavors dedicated to windows images. Default False

include_capacity
boolean

Set to true if the response should include flavor capacity

include_prices
boolean

Set to true if the response should include flavor prices

include_reservation_stock
boolean

Optional. Set to true if flavor listing should include count of reserved resources in stock.

Response

200 - application/json

List of bare metal flavors

The response is of type object.