Python
from gcore import Gcore client = Gcore( api_key="My API Key", ) postgres_configuration = client.cloud.databases.postgres.configurations.get( project_id=0, region_id=0, ) print(postgres_configuration.flavors)
{ "flavors": [ { "cpu": 1, "memory_gib": 1, "pg_conf": "\nlisten_addresses = 'localhost'\nport = 5432\nmax_connections = 100\nshared_buffers = 128MB\nlogging_collector = on" } ], "storage_classes": [ { "name": "ssd-hiiops" } ], "versions": [ "14", "15" ] }
Get all available PostgreSQL configurations for the specified region.
Show child attributes
Was this page helpful?