Disaster Recovery Demote Active

Disaster Recovery Demote Active

Demotes the current VCO from active to zombie. No input parameters are required. The active server is expected to be in the drState FAILURE_GET_STANDBY_STATUS or FAILURE_MYSQL_ACTIVE_STATUS, meaning that DR protection had been engaged (with the last successful replication status observed at lastDRProtectedTime) but that active failed a health check since that time. If the active server is in the drState STANDBY_RUNNING, meaning that it has detected no problems in interacting with the standby server, the operator can force demotion of the active using the optional force parameter passed with value of true; in this case, the operator must ensure that the standby server has already been successfully promoted.

Privileges required:

CREATE REPLICATION

Request
URI
POST
https://{api_host}/portal/rest/disasterRecovery/demoteActive
COPY
Request Body
{
    "force": false
}
boolean
force
Optional

force

Responses
200

Request was successfully processed

Returns disaster_recovery_demote_active_result of type(s) application/json
This response body class contains all of the following: Inlinedisaster_recovery_demote_active_result0
{
    "rows": 1
}

400
Returns generic_400 of type(s) application/json
Operation doesn't return any data structure

500
Returns generic_500 of type(s) application/json
Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/portal/rest/disasterRecovery/demoteActive