GET
/
cloud
/
v1
/
lbflavors
/
{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
)
load_balancer_flavor_list = client.cloud.load_balancers.flavors.list(
    project_id=0,
    region_id=0,
)
print(load_balancer_flavor_list.count)
{
  "count": 1,
  "results": [
    {
      "currency_code": "USD",
      "flavor_id": "g2-standard-32-64",
      "flavor_name": "g2-standard-32-64",
      "hardware_description": {
        "gpu": "1x NVIDIA 11GB"
      },
      "price_per_hour": 1,
      "price_per_month": 720,
      "price_status": "show",
      "ram": 2048,
      "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

include_prices
boolean

Set to true if the response should include flavor prices

Response

200 - application/json

List of load balancer flavors

The response is of type object.