import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
postgres_configuration = client.cloud.databases.postgres.configurations.get(
project_id=0,
region_id=0,
)
print(postgres_configuration.flavors)
Get all available PostgreSQL configurations for the specified region.
GET
/
cloud
/
v1
/
dbaas
/
postgres
/
configuration
/
{project_id}
/
{region_id}
Python
Copy
Ask AI
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
postgres_configuration = client.cloud.databases.postgres.configurations.get(
project_id=0,
region_id=0,
)
print(postgres_configuration.flavors)