/cluster-info/postgresql

Display information about a PostgreSQL cluster

Request

HTTP Method: POST
Content Type: application/json

Parameters

Property

Type

Description

Required

Property

Type

Description

Required

configuration_id

integer(int64)

configuration ID (non-negative)

required

role

string

cluster to display info for (primary or standby) (possible values: 'primary' and 'standby')

required

{ "params": { "configuration_id": 1, "role": "primary" } }

Response

HTTP Status: 200

Content Type: application/json

Response

Property

Type

Description

Property

Type

Description

error

object of type error_response

error response

result

object of type cluster_info_postgresql_response

cluster-info/postgresql response

successful

boolean

response with error or not

cluster_info_postgresql_response

Property

Type

Description

Property

Type

Description

cluster_name

string

name of cluster

config_directory

string

directory for the cluster config files

data_directory

string

directory for the cluster data files

databases

array of database

databases in the cluster

host

string

host running cluster

port

integer

port number of cluster

status

string

cluster status (possible values: 'ONLINE', 'HOT STANDBY', 'WARM STANDBY', 'DOWN', 'ERROR' and 'NOT PRESENT')

tablespaces

array of tablespace

tablespaces in the cluster

error_response

Property

Type

Description

Property

Type

Description

message

string

error message

database

Property

Type

Description

Property

Type

Description

name

string

name of database

size

integer

size of database in bytes

tablespace

Property

Type

Description

Property

Type

Description

location

string

location of tablespace

name

string

name of tablespace

size

integer

size of tablespace in bytes

{ "error": { "message": "string" }, "result": { "cluster_name": "string", "config_directory": "string", "data_directory": "string", "databases": [ { "name": "string", "size": 123 } ], "host": "string", "port": 123, "status": "ONLINE", "tablespaces": [ { "location": "string", "name": "string", "size": 123 } ] }, "successful": true }

HTTP Status: 400

Content Type: application/json

Response

Property

Type

Description

Property

Type

Description

error

object of type error_response

error response

successful

boolean

always false

error_response

Property

Type

Description

Property

Type

Description

message

string

error message

{ "error": { "message": "string" }, "successful": false }