cURL
curl --request POST \ --url https://api.gcore.com/cloud/v1/dbaas/postgres/validate_pg_conf/{project_id}/{region_id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "pg_conf": "<string>", "version": "<string>" } '
{ "errors": [ "<string>" ], "is_valid": true }
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef
apikey
apikey 1234$abcdef
Project identifier
Region identifier
PostgreSQL configuration
"\nlisten_addresses = 'localhost'\nport = 5432\nmax_connections = 100\nshared_buffers = 128MB\nlogging_collector = on"
PostgreSQL version
"15"
DBAAS PostgreSQL available configuration
Errors list
Validity of pg.conf file
true
false
Was this page helpful?