POST
/
cloud
/
v1
/
dbaas
/
postgres
/
validate_pg_conf
/
{project_id}
/
{region_id}
curl --request POST \
  --url https://api.gcore.com/cloud/v1/dbaas/postgres/validate_pg_conf/{project_id}/{region_id} \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "pg_conf": "\nlisten_addresses = '\''localhost'\''\nport = 5432\nmax_connections = 100\nshared_buffers = 128MB\nlogging_collector = on",
  "version": "15"
}'
{
  "errors": [
    "<string>"
  ],
  "is_valid": true
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project identifier

region_id
integer
required

Region identifier

Body

application/json

Response

200
application/json

DBAAS PostgreSQL available configuration

The response is of type object.