Set up PostgreSQL WAL File Archiving disaster recovery
Request
HTTP Method: POST
Content Type: application/json
Parameters
Property | Type | Description | Default | Required |
---|---|---|---|---|
| integer(int64) | configuration ID (non-negative) |
| required |
| boolean | enable observer | true |
|
| integer(int32) | archive timeout in seconds | 300 |
|
| boolean | enable hot standby, allowing read-only connections to the standby cluster | true |
|
| string | directory for base backup on source host |
|
|
| string | directory for archived WAL files on source host |
|
|
| string | directory for base backup on standby host |
|
|
| string | directory for the standby cluster config files on standby host |
|
|
| string | directory for the standby cluster data files on standby host |
|
|
| string | directory for archived WAL files on standby host |
|
|
| string map | customize directory on standby for tablespaces |
|
|
{ "params": { "archive_timeout": 300, "configuration_id": 1, "hot_standby": true, "observer": true, "source_backup_dir": "string", "source_log_dir": "string", "standby_backup_dir": "string", "standby_conf_dir": "string", "standby_data_dir": "string", "standby_log_dir": "string", "tablespace_dir": { "table_space": "dir" } } }
Response
HTTP Status: 200
Content Type: application/json
Response
Property | Type | Description |
---|---|---|
| object of type | error response |
| object of type |
|
| boolean | response with error or not |
error_response
Property | Type | Description |
---|---|---|
| string | error message |
task_response
Property | Type | Description |
---|---|---|
| integer(int64) | task ID |
{ "error": { "message": "string" }, "result": { "task_id": 1 }, "successful": true }
HTTP Status: 400
Content Type: application/json
Response
Property | Type | Description |
---|---|---|
| object of type | error response |
| boolean | always false |
error_response
Property | Type | Description |
---|---|---|
| string | error message |
{ "error": { "message": "string" }, "successful": false }
Comments