Skip to main content
PATCH
/
project
/
{project_id}
/
location
/
{location}
/
postgres
/
{postgres_database_reference}
Update a Postgres Database in a specific location of a project
curl --request PATCH \
  --url https://api.ubicloud.com/project/{project_id}/location/{location}/postgres/{postgres_database_reference} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ha_type": "<string>",
  "size": "<string>",
  "storage_size": 123,
  "tags": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ]
}'
{
  "flavor": "<string>",
  "ha_type": "<string>",
  "id": "pgn30gjk1d1e2jj34v9x0dq4rp",
  "location": "<string>",
  "name": "<string>",
  "state": "<string>",
  "storage_size_gib": 123,
  "target_storage_size_gib": 123,
  "version": "<string>",
  "target_version": "<string>",
  "vm_size": "<string>",
  "target_vm_size": "<string>",
  "ca_certificates": "<string>",
  "maintenance_window_start_at": 123,
  "read_replica": true,
  "parent": "<string>",
  "tags": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "connection_string": "<string>",
  "username": "<string>",
  "password": "<string>",
  "hostname": "<string>",
  "earliest_restore_time": "<string>",
  "firewall_rules": [
    {
      "cidr": "<string>",
      "description": "<string>",
      "id": "frmjgkgbktw62k53005jpx8tt7",
      "port": 123
    }
  ],
  "latest_restore_time": "<string>",
  "primary": true
}

Authorizations

Authorization
string
header
required

Path Parameters

project_id
string
required
Example:
location
string
required
Example:
postgres_database_reference
string
required

Body

application/json
ha_type
string
size
string
storage_size
integer
tags
object[]

Response

flavor
string
required
ha_type
string
required
id
string
required
Example:
location
string
required
name
string
required
state
string
required
storage_size_gib
integer
required
version
string
required
target_version
string
required
vm_size
string
required
maintenance_window_start_at
integer
required
read_replica
boolean
required
tags
object[]
required
connection_string
string | null
required
username
string | null
required
password
string | null
required
hostname
string | null
required
earliest_restore_time
string | null
required
firewall_rules
object[]
required
latest_restore_time
string
required
primary
boolean
required
target_storage_size_gib
integer
target_vm_size
string
ca_certificates
string | null
parent
string | null