Skip to main content
GET
/
cloud
/
v1
/
lbflavors
/
{project_id}
/
{region_id}
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
)
load_balancer_flavor_list = client.cloud.load_balancers.flavors.list(
    project_id=1,
    region_id=7,
)
print(load_balancer_flavor_list.count)
{
  "count": 1,
  "results": [
    {
      "flavor_id": "<string>",
      "flavor_name": "<string>",
      "ram": 123,
      "vcpus": 123
    }
  ]
}

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

Example:

1

region_id
integer
required

Region ID

Example:

7

Query Parameters

include_prices
boolean
default:false

Set to true if the response should include flavor prices

Examples:

true

false

Response

200 - application/json

OK

count
integer
required

Number of objects

Required range: x >= 0
Example:

1

results
(LbFlavorSerializer · object | Optional price schema · object)[]
required

Objects