All Products
Search
Document Center

:StartReplicaGroupDrill

更新時間:Dec 19, 2023

Starts a disaster recovery drill in a replication pair-consistent group 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 secondary disks, a pay-as-you-go drill disk is created in the zone where the secondary disk of each replication pair resides. The latest-recovery-point data is restored to the drill disks to verify the integrity and correctness of applications.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action String Yes StartReplicaGroupDrill

The operation that you want to perform. Set the value to StartReplicaGroupDrill.

RegionId String Yes cn-hangzhou

The ID of the region where the secondary site of the replication pair-consistent group is located. You can call the DescribeDiskReplicaGroups operation to query the region where the secondary site of the replication pair-consistent group is located.

Note You must enable the disaster recovery drill feature in the region to which the current secondary site belongs.
GroupId String Yes pg-xxxx

The ID of the replication pair-consistent group. You can call the DescribeDiskReplicaGroups operation to query a list of replication pair-consistent groups, including group 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 pg-drill-xxxx

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=StartReplicaGroupDrill
&RegionId=cn-hangzhou
&GroupId=pg-xxxx
&ClientToken=123e4567-e89b-12d3-a456-42665544****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<StartReplicaGroupDrillResponse>
    <DrillId>pg-drill-xxxx</DrillId>
    <RequestId>C123F94F-4E38-19AE-942A-A8D6F44F****</RequestId>
</StartReplicaGroupDrillResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "DrillId" : "pg-drill-xxxx",
  "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.