Skip to main content
PATCH
/
cloud
/
v1
/
dbaas
/
postgres
/
clusters
/
{project_id}
/
{region_id}
/
{cluster_name}
Patch DBAAS Postgres Cluster.
curl --request PATCH \
  --url https://api.gcore.com/cloud/v1/dbaas/postgres/clusters/{project_id}/{region_id}/{cluster_name} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "databases": [],
  "flavor": {
    "cpu": 2,
    "memory_gib": 2
  },
  "high_availability": {
    "replication_mode": "async"
  },
  "network": {
    "acl": [
      "<string>"
    ],
    "network_type": "<string>"
  },
  "pg_server_configuration": {
    "pg_conf": "\nlisten_addresses = 'localhost'\nport = 5432\nmax_connections = 100\nshared_buffers = 128MB\nlogging_collector = on",
    "pooler": null,
    "version": "15"
  },
  "storage": {
    "size_gib": 50
  },
  "users": []
}
EOF
{
  "tasks": [
    "<string>"
  ]
}

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 identifier

region_id
integer
required

Region identifier

cluster_name
string
required

Cluster name

Body

application/json
databases
Database · object[]
flavor
Flavor · object

New instance RAM and CPU

high_availability
HighAvailabilityOptions · object

New High Availability settings

network
PublicNetwork · object
pg_server_configuration
PatchPostgreSQLServerConfig · object

New PosgtreSQL cluster configuration

storage
StorageSize · object

New storage configuration

users
PgUser · object[]

Response

Created tasks

tasks
string[]
required

List of task IDs

Example:
["d478ae29-dedc-4869-82f0-96104425f565"]