int ctMemphisRestoreAvailGroup( pRCESJson request, ppRCESJson result )
Description:
Restore Availability Group to a previous primary replica that must be recovered. Each primary replica that has failed over, received a recover order (recoverOrder - previous primary replica index), this index must be used identify to which replica we should restore the primary. If the chosen replica is behind, which means, still in the recover process, it will fail.
HTTP URL: <baseURL>/ctMemphisRestoreAvailGroup/
HTTP Verb: POST
Constraints:
Parameters:
{
"id": 0, // Required - Availability Group identification
"recoverOrder": 0, // Required - Previous primary replica index
"primaryDBEngine": 1 // Optional - Set DBEngine as the primary
// If no "recoverOrder" or "primaryDBEngine" are provided,
it will assume current primary replica configuration
}
{
"success": true,
"error":
{
"errorCode": 0,
"message": "Success"
}
}
Return:
Error code