/
/create-standby/streaming/postgresql

/create-standby/streaming/postgresql

Set up PostgreSQL WAL Streaming disaster recovery

Request

HTTP Method: POST
Content Type: application/json

Parameters

Property

Type

Description

Default

Required

Property

Type

Description

Default

Required

configuration_id

integer(int64)

configuration ID (non-negative)

required

observer

boolean

enable observer

true

hot_standby

boolean

enable hot standby, allowing read-only connections to the standby cluster

true

standby_conf_dir

string

directory for the standby cluster config files on standby host

standby_data_dir

string

directory for the standby cluster data files on standby host

streaming_password

string

password to use for the replication connection to the primary cluster

streaming_username

string

username to use for the replication connection to the primary cluster

tablespace_dir

string map

customize directory on standby for tablespaces

{ "params": { "configuration_id": 1, "hot_standby": true, "observer": true, "standby_conf_dir": "string", "standby_data_dir": "string", "streaming_password": "string", "streaming_username": "string", "tablespace_dir": { "table_space": "dir" } } }

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 task_response

successful

boolean

response with error or not

error_response

Property

Type

Description

Property

Type

Description

message

string

error message

task_response

Property

Type

Description

Property

Type

Description

task_id

integer(int64)

task ID

{ "error": { "message": "string" }, "result": { "task_id": 1 }, "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 }

Related content

/create-standby/archiving/postgresql
/create-standby/archiving/postgresql
More like this
Create DR Cluster for PostgreSQL
Create DR Cluster for PostgreSQL
More like this
PostgreSQL Cluster Activation
PostgreSQL Cluster Activation
More like this
PostgreSQL Cascade Configuration
PostgreSQL Cascade Configuration
More like this