Queries information about one or more replication pair-consistent groups in a specified region.
Operation description
Description
To perform a paged query, you can use the MaxResults and NextToken parameters.
When you query the first page, set MaxResults to specify the number of entries to return. The NextToken value in the response is the token used to query subsequent pages. To query a subsequent page, set NextToken to the value from the previous response and set MaxResults to specify the number of entries for the current page.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ebs:DescribeDiskReplicaGroups |
list |
*DiskReplicaGroup
*DiskReplicaGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the replication pair-consistent group. |
cn-beijing |
| MaxResults |
integer |
No |
The maximum number of entries to return on a single page. You can use this parameter with NextToken. Valid values: 1 to 500. Default value: 10. |
10 |
| NextToken |
string |
No |
The query token. Set this parameter to the NextToken value returned from the previous call to this operation. You do not need to set this parameter for the first call. If you set NextToken, the PageSize and PageNumber parameters are ignored, and the TotalCount in the response is invalid. |
AAAAAdDWBF2**** |
| GroupIds |
string |
No |
The IDs of the replication pair-consistent groups. You can specify one or more group IDs. Separate multiple IDs with a comma (,). If you do not specify this parameter, all replication pair-consistent groups in the current region are queried. You can specify up to 100 group IDs. |
AAAAAdDWBF2**** |
| Site |
string |
No |
The site to query. This parameter is used when replication pairs are deployed across zones.
|
production |
| PageNumber |
integer |
No |
The page number. |
5 |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 1 to 100. |
10 |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the replication pair-consistent group belongs. |
rg-aekz***** |
| Name |
string |
No |
The name of the replication group. Fuzzy search is supported. |
pg-name*** |
| Tag |
array<object> |
No |
The tags. The list can contain up to 20 tags. |
|
|
object |
No |
The information about the tag. |
||
| Value |
string |
No |
The value of the tag of the replication pair-consistent group. |
tag-value |
| Key |
string |
No |
The key of the tag of the replication pair-consistent group. |
tag-key |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
AAA478A0-BEE6-1D42-BEB6-A9CFEAD6**** |
| NextToken |
string |
The query token returned in this call. |
AAAAAdDWBF2**** |
| ReplicaGroups |
array<object> |
The information about the replication pair-consistent groups. |
|
|
array<object> |
|||
| GroupName |
string |
The name of the replication pair-consistent group. |
myreplicagrouptest |
| Site |
string |
The site of the replication pair and the replication pair-consistent group. Valid values:
|
production |
| Description |
string |
The description of the replication pair-consistent group. |
This is description. |
| StandbyZone |
string |
The initial destination zone of the replication group. |
cn-shanghai-e |
| ResourceGroupId |
string |
The ID of the resource group to which the replication group belongs. |
rg-aek2a******* |
| LastRecoverPoint |
integer |
The time when the last asynchronous replication was completed for the replication pair-consistent group. This parameter is a UNIX timestamp. Unit: seconds. |
1637835114 |
| ReplicaGroupId |
string |
The ID of the replication pair-consistent group. |
pg-myreplica**** |
| RPO |
integer |
The recovery point objective (RPO) of the replication pair-consistent group. Unit: seconds. |
180 |
| SourceRegionId |
string |
The region ID of the production site. |
cn-beijing |
| DestinationRegionId |
string |
The region ID of the disaster recovery site. |
cn-shanghai |
| Bandwidth |
integer |
The bandwidth. Unit: Kbit/s. This parameter is not yet available. The return value is preset by the system. |
0 |
| PrimaryZone |
string |
The initial source zone of the replication group. |
cn-beijing-h |
| SourceZoneId |
string |
The zone ID of the production site. |
cn-beijing-f |
| Tags |
array<object> |
The tags of the replication group. |
|
|
object |
|||
| TagKey |
string |
The key of the tag of the replication group. |
testKey |
| TagValue |
string |
The value of the tag of the replication group. |
testValue |
| Status |
string |
The status of the replication pair-consistent group. Valid values:
|
created |
| PairNumber |
integer |
The number of replication pairs in the replication pair-consistent group. |
2 |
| PrimaryRegion |
string |
The initial source region of the replication group. |
cn-beijing |
| PairIds |
array |
The list of replication pair IDs in the replication pair-consistent group. |
|
|
string |
The IDs of the replication pairs in the replication pair-consistent group. |
pair-cn-dsa****,pair-cn-asd**** |
|
| EnableRtc |
boolean |
Specifies whether to enable replication time control (RTC). Valid values:
Note
If you set this parameter to true, RTC is enabled for the replication pair-consistent group and all asynchronous replication pairs that are added to the group. |
true |
| DestinationZoneId |
string |
The zone ID of the disaster recovery site. |
cn-shanghai-e |
| StandbyRegion |
string |
The initial destination region of the replication group. |
cn-shanghai |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| TotalCount |
integer |
The total number of entries returned. |
60 |
Examples
Success response
JSON format
{
"RequestId": "AAA478A0-BEE6-1D42-BEB6-A9CFEAD6****",
"NextToken": "AAAAAdDWBF2****",
"ReplicaGroups": [
{
"GroupName": "myreplicagrouptest",
"Site": "production",
"Description": "This is description.",
"StandbyZone": "cn-shanghai-e",
"ResourceGroupId": "rg-aek2a*******",
"LastRecoverPoint": 1637835114,
"ReplicaGroupId": "pg-myreplica****",
"RPO": 180,
"SourceRegionId": "cn-beijing",
"DestinationRegionId": "cn-shanghai",
"Bandwidth": 0,
"PrimaryZone": "cn-beijing-h",
"SourceZoneId": "cn-beijing-f",
"Tags": [
{
"TagKey": "testKey",
"TagValue": "testValue"
}
],
"Status": "created",
"PairNumber": 2,
"PrimaryRegion": "cn-beijing",
"PairIds": [
"pair-cn-dsa****,pair-cn-asd****"
],
"EnableRtc": true,
"DestinationZoneId": "cn-shanghai-e",
"StandbyRegion": "cn-shanghai\n"
}
],
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 60
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | An internal error has occurred. |
| 403 | OperationDenied | The operation is not allowed. | The operation is not supported. |
| 403 | OperationDenied.InvalidStatus | The operation is not allowed in current status. | The operation is not supported in the current state. |
| 403 | Forbidden | User is not authorized to operate. | You are not authorized to manage the resource. Check the account permissions or contact the Alibaba Cloud account. |
| 403 | Forbidden.Action | User is not authorized to operate this action. | You are not authorized to perform this operation. Check the account permissions or contact the Alibaba Cloud account. |
| 404 | NoSuchResource | The specified resource does not exist. | The specified resource does not exist. |
| 504 | RequestTimeout | The request is timeout, please try again later. | The request has timed out. Try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.