/read-only-mode/remove-schedule/sqlserver
Remove READ ONLY mode schedule
Request
HTTP Method: POST
Content Type: application/json
Parameters
Property | Type | Description | Required |
---|---|---|---|
| integer(int64) | configuration ID (non-negative) | required |
| string | READ ONLY mode schedule ID to remove | required |
{
"params": {
"configuration_id": 1,
"schedule_id": "string"
}
}
Response
HTTP Status: 200
Content Type: application/json
Response
Property | Type | Description |
---|---|---|
| object of type | error response |
| object of type | read-only-mode/enable-schedule-function/sqlserver response |
| boolean | response with error or not |
error_response
Property | Type | Description |
---|---|---|
| string | error message |
read_only_mode_enable_schedule_function_sqlserver_response
Property | Type | Description |
---|---|---|
| boolean | whether the scheduled READ ONLY mode feature is enabled |
| array of read_only_mode_schedule | list of READ ONLY mode schedules |
| string | directory in which to create standby file |
read_only_mode_schedule
Property | Type | Description |
---|---|---|
| string | cron expression specifying when to activate READ ONLY mode |
| integer | duration of READ ONLY mode, in minutes |
| boolean | whether the schedule is active |
| string | READ ONLY mode schedule ID |
| string | name of schedule |
{
"error": {
"message": "string"
},
"result": {
"enabled": false,
"schedules": [
{
"cron_expression": "string",
"duration_in_minutes": 123,
"is_active": false,
"schedule_id": "string",
"schedule_name": "string"
}
],
"standby_file_directory": "string"
},
"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
}