/create-standby/sqlserver

/create-standby/sqlserver

Set up SQL Server 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

compress_backup

string

Introduced in 12.3

compress the initial backup sent to the standby (on, off). The instance's default will be used otherwise

 

 

compress_logs

string

Introduced in 12.3

compress log backups for this configuration (on, off, auto)
defaults to 'auto', which uses the instance's default setting

auto

 

auto_update

boolean

enable automated standby update

true

auto_update_interval

integer(int32)

interval for automated standby update in seconds (minimum: 60)

300

db_file_loc

string map

location for database files on standby host

source_backup_dir

string

directory for full database backup on source host

standby_backup_dir

string

directory for full database backup on standby host

{ "params": { "auto_update": true, "auto_update_interval": 300, "configuration_id": 1, "db_file_loc": { "file_name1": "loc1", "file_name2": "loc2" }, "observer": true, "compress_backup":"string", "compress_logs":"string", "source_backup_dir": "string", "standby_backup_dir": "string" } }

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 }