Starts a disaster recovery drill to ensure the continued replication and clone the data from the last recovery point of the secondary disk to a new disk. This helps you verify the integrity and correctness of applications that are deployed at the disaster recovery site on a regular basis.
After the disaster recovery drill is complete on the secondary disk, a pay-as-you-go drill disk that has the same capacity and category as the secondary disk is created in the zone where the secondary disk resides. The drill disk contains last-recovery-point data that can be used to verify the integrity and correctness of applications.
Debugging
Request parameters
Parameter |
Type |
Required |
Example |
Description |
Action | String | Yes | StartPairDrill | The operation that you want to perform. Set the value to StartPairDrill. |
RegionId | String | Yes | cn-hangzhou | The region ID of the secondary disk in the replication pair. You can call the DescribeDiskReplicaPairs operation to query the region in which the secondary disk of the replication pair resides. Note You must enable the disaster recovery drill feature in the region to which the current secondary site belongs. |
PairId | String | Yes | pair-xxxx | The ID of the replication pair. You can call the DescribeDiskReplicaPairs operation to query a list of replication pairs, including replication pair IDs. |
ClientToken | String | No | 123e4567-e89b-12d3-a456-42665544**** | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. |
Response parameters
Parameter |
Type |
Example |
Description |
DrillId | String | drill-xxx | The ID of the drill. |
RequestId | String | C123F94F-4E38-19AE-942A-A8D6F44F**** | The ID of the request. |
Examples
Sample requests
http(s)://ebs.cn-hangzhou.aliyuncs.com/?Action=StartPairDrill
&RegionId=cn-hangzhou
&PairId=pair-xxxx
&ClientToken=123e4567-e89b-12d3-a456-42665544****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<StartPairDrillResponse>
<DrillId>drill-xxx</DrillId>
<RequestId>C123F94F-4E38-19AE-942A-A8D6F44F****</RequestId>
</StartPairDrillResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"DrillId" : "drill-xxx",
"RequestId" : "C123F94F-4E38-19AE-942A-A8D6F44F****"
}
Error codes
HTTP status code |
Error code |
Error message |
Description |
400 | InvalidParameter | The parameter %s is invalid. | Invalid parameter. |
400 | InvalidParameter.Conflict | The specified parameter %s and %s are not blank at the same time. | A parameter conflict has occurred. |
400 | InvalidParameter.Format | Specified parameter format is not valid. | Invalid parameter format. The correct response formats include XML and JSON. The default format is XML. |
400 | MissingParameter | The input parameter %s that is mandatory for processing this request is not supplied. | A required parameter is not specified. |
403 | Forbidden | User is not authorized to operate. | You do not have the permissions to perform this operation on the resource. Check the permissions of your account or contact your Alibaba Cloud account administrator. |
403 | Forbidden.Action | User is not authorized to operate this action. | You have no access to this operation. Check the permissions of your account or contact your Alibaba Cloud account administrator. |
403 | InvalidAccountStatus.NotEnoughBalance | Your account does not have enough balance. | Your account balance is insufficient. |
403 | LastTokenProcessing | The last token request is processing. | The ClientToken value is used in another request that is being processed. Try again later. |
403 | NoPermission.SLR | The RAM user does not have the permission to create service linked role: AliyunServiceLinkedRoleForEBS. | You do not have the permissions to create service-linked roles. |
403 | OperationDenied | The operation is not allowed. | The operation cannot be performed. |
403 | OperationDenied.RecoverPointNotFound | Recover point is not found. | No recovery points are available for the replication pair or replication pair-consistent group. |
403 | OperationDenied.StartDrillShouldOnDestRegion | Operation should be executed on the secondary region. | This operation must be performed at the secondary site. |
404 | InvalidApi.NotFound | Specified api is not found, please check your url and method. | The specified API operation is not found. Check the URL and method used to call this operation. The API operation that you called does not exist. Check whether the API name is correct and whether the letters are in the correct case. |
404 | NoSuchResource | The specified resource does not exist. | The specified resource does not exist. |
500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | An internal error occurred. |
504 | RequestTimeout | The request is timeout, please try again later. | The request timed out. Try again later. |
For a list of error codes, see Service error codes.