Queries the disaster recovery drills that were performed on the replication pair-consistent group whose secondary disks reside in a specific region.
Debugging
Request parameters
Parameter |
Type |
Required |
Example |
Description |
Action | String | Yes | DescribeReplicaGroupDrills | The operation that you want to perform. Set the value to DescribeReplicaGroupDrills. |
RegionId | String | Yes | cn-hangzhou | The region ID of the primary or secondary disks in the replication pair-consistent group. You can call the DescribeRegions operation to query the most recent list of regions in which async replication is supported. |
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. |
DrillId | String | No | pg-drill-xxxx | The ID of the drill. |
NextToken | String | No | AAAAAdDWBF2**** | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. If you specify NextToken, the PageSize and PageNumber request parameters do not take effect, and the TotalCount response parameter is invalid. |
MaxResults | Integer | No | 10 | The maximum number of entries to be returned. You can use this parameter together with NextToken. Valid values: 1 to 500. Default value: 10. |
PageSize | Integer | No | 10 | The number of entries per page. Valid values: 1 to 100. |
PageNumber | Integer | No | 5 | The page number. |
Response parameters
Parameter |
Type |
Example |
Description |
Drills | Array of Drill | The details of disaster recovery drills that were performed on the replication pair-consistent group. |
|
DrillId | String | pg-drill-xxx | The ID of the drill. |
GroupId | String | pg-xxx | The ID of the replication pair-consistent group. |
Status | String | executed | The status of the drill. Valid values:
|
PairsInfo | Array of PairInfo | The replication pairs. |
|
PairId | String | pair-xxx | The ID of the replication pair. |
DrillDiskId | String | d-xxx | The ID of the drill disk. |
DrillDiskStatus | String | created | The status of the drill disk. Valid values:
Note In addition to the drill disk status, you can view the error codes that were returned after the system failed to create or delete the drill disk. |
StartAt | Long | 1649750977 | The beginning time of the drill. The value of this parameter is a timestamp. Unit: seconds. 86,400 seconds is equivalent to 24 hours. |
RecoverPoint | Long | 1691114995 | The recovery point of the drill. The value of this parameter is a timestamp. Unit: seconds. 86,400 seconds is equivalent to 24 hours. |
StatusMessage | String | GROUP_SYNCPOINT_NOT_FOUND | The error message that was displayed if the drill failed to be executed. |
NextToken | String | AAAAAdDWBF2**** | A pagination token. It can be used in the next request to retrieve a new page of results. |
PageNumber | Integer | 1 | The page number. |
PageSize | Integer | 10 | The number of entries per page. |
TotalCount | Long | 1 | The total number of entries returned. |
RequestId | String | C123F94F-4E38-19AE-942A-A8D6F44F**** | The ID of the request. |
Examples
Sample requests
http(s)://ebs.cn-hangzhou.aliyuncs.com/?Action=DescribeReplicaGroupDrills
&RegionId=cn-hangzhou
&GroupId=pg-xxxx
&DrillId=pg-drill-xxxx
&NextToken=AAAAAdDWBF2****
&MaxResults=10
&PageSize=10
&PageNumber=5
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeReplicaGroupDrillsResponse>
<Drills>
<DrillId>pg-drill-xxx</DrillId>
<GroupId>pg-xxx</GroupId>
<Status>executed</Status>
<PairsInfo>
<PairId>pair-xxx</PairId>
<DrillDiskId>d-xxx</DrillDiskId>
<DrillDiskStatus>created</DrillDiskStatus>
</PairsInfo>
<StartAt>1649750977</StartAt>
<RecoverPoint>1691114995</RecoverPoint>
<StatusMessage>GROUP_SYNCPOINT_NOT_FOUND</StatusMessage>
</Drills>
<NextToken>AAAAAdDWBF2****
</NextToken>
<PageNumber>1</PageNumber>
<PageSize>10</PageSize>
<TotalCount>1</TotalCount>
<RequestId>C123F94F-4E38-19AE-942A-A8D6F44F****</RequestId>
</DescribeReplicaGroupDrillsResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Drills" : [ {
"DrillId" : "pg-drill-xxx",
"GroupId" : "pg-xxx",
"Status" : "executed",
"PairsInfo" : [ {
"PairId" : "pair-xxx",
"DrillDiskId" : "d-xxx",
"DrillDiskStatus" : "created"
} ],
"StartAt" : 1649750977,
"RecoverPoint" : 1691114995,
"StatusMessage" : "GROUP_SYNCPOINT_NOT_FOUND"
} ],
"NextToken" : "AAAAAdDWBF2****\n",
"PageNumber" : 1,
"PageSize" : 10,
"TotalCount" : 1,
"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. |
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.