POST
/
project
/
{project_id}
/
location
/
{location}
/
postgres
/
{postgres_database_reference}
/
restart
curl --request POST \
  --url https://api.ubicloud.com/project/{project_id}/location/{location}/postgres/{postgres_database_reference}/restart \
  --header 'Authorization: Bearer <token>'
{
  "flavor": "<string>",
  "ha_type": "<string>",
  "id": "pgn30gjk1d1e2jj34v9x0dq4rp",
  "location": "<string>",
  "name": "<string>",
  "state": "<string>",
  "storage_size_gib": 123,
  "version": "<string>",
  "vm_size": "<string>",
  "ca_certificates": "<string>",
  "maintenance_window_start_at": 123,
  "read_replica": true,
  "parent": "<string>",
  "connection_string": "<string>",
  "earliest_restore_time": "<string>",
  "firewall_rules": [
    {
      "cidr": "<string>",
      "id": "pfmjgkgbktw62k53005jpx8tt7"
    }
  ],
  "latest_restore_time": "<string>",
  "primary": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required

ID of the project

Example:

"pjkkmx0f2vke4h36nk9cm8v8q0"

location
string
required

The Ubicloud location/region

Example:

"eu-central-h1"

postgres_database_reference
string
required

Postgres database ID or name

Response

200
application/json

A Postgres Database

The response is of type object.