Queries information about one or more replication pairs in a specified region.
Operation description
Description
-
For information about the regions that support asynchronous replication, see Overview of asynchronous replication for disks.
-
If the primary or secondary disk of a replication pair is in the specified region, the query returns information about that replication pair.
-
To perform a paged query, use the MaxResults and NextToken parameters. For the first page, set MaxResults to limit the number of entries returned. The
NextTokenvalue in the response is the token for the next page. For subsequent pages, setNextTokento the value from the previous response and setMaxResultsto limit the number of entries.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the primary or secondary disk of the replication pair resides. You can call the DescribeRegions operation to query the regions that support asynchronous replication. |
cn-beijing |
| MaxResults |
integer |
No |
The maximum number of entries to return on each page. You can use this parameter with NextToken. Valid values: 1 to 500. Default value: 10. |
1 |
| 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 value in the response is invalid. |
AAAAAdDWBF2**** |
| PairIds |
string |
No |
The IDs of replication pairs. You can specify one or more replication pair IDs. The IDs must be in the If you leave this parameter empty, all replication pairs in the current region are queried. You can specify up to 100 replication pair IDs. |
pair-cn-dsa**** |
| Site |
string |
No |
The site from which to query data. You can query data from the production site or the disaster recovery site. Valid values:
Default value: production. |
production |
| ReplicaGroupId |
string |
No |
The ID of the replication pair-consistent group. You can specify the ID of a replication pair-consistent group to query the replication pairs in the group. The ID must be in the If you leave this parameter empty, all replication pairs in the current region are queried. Note
If you set this parameter to |
pg-**** |
| 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 belongs. |
rg-acfmvs****** |
| Name |
string |
No |
The name of the replication pair. Fuzzy matching is supported. |
name*** |
| Tag |
array<object> |
No |
The tags. You can specify up to 20 tags. |
|
|
object |
No |
The tag. |
||
| Value |
string |
No |
The value of the tag. |
TestValue |
| Key |
string |
No |
The key of the tag. |
TestKey |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
AAA478A0-BEE6-1D42-BEB6-A9CFEAD6**** |
| NextToken |
string |
The query token returned from this call. |
AAAAAdDWBF2**** |
| ReplicaPairs |
array<object> |
The replication pairs. |
|
|
object |
|||
| Site |
string |
The site type of the replication pair or replication pair-consistent group. Valid values:
|
production |
| DestinationDiskId |
string |
The ID of the secondary disk. |
d-asdfjl2342kj2l3k4**** |
| Description |
string |
The description of the replication pair. |
This is description. |
| StandbyZone |
string |
The initial destination zone of the replication pair. |
cn-shanghai-b |
| ResourceGroupId |
string |
The ID of the resource group to which the replication pair belongs. |
rg-acfmvs***** |
| DestinationRegion |
string |
The region of the secondary disk. |
cn-shanghai |
| ReplicaPairId |
string |
The ID of the replication pair. |
pair-cn-dsa**** |
| LastRecoverPoint |
integer |
The time when the last asynchronous replication was completed. This value is a UNIX timestamp. Unit: seconds. |
1649751977 |
| ReplicaGroupId |
string |
The ID of the replication pair-consistent group to which the replication pair belongs. |
pg-xxxx**** |
| SourceDiskId |
string |
The ID of the primary disk. |
d-bp131n0q38u3a4zi**** |
| RPO |
integer |
The recovery point objective (RPO) of the replication pair. Unit: seconds. |
900 |
| PairName |
string |
The name of the replication pair. |
TestReplicaPair |
| Bandwidth |
integer |
The bandwidth used for asynchronous replication. Unit: Kbit/s. |
10240 |
| ExpiredTime |
integer |
The expiration time of the replication pair. This value is a UNIX timestamp. Unit: seconds. |
1649750977 |
| PrimaryZone |
string |
The initial source zone of the replication pair. |
cn-beijing-a |
| SourceZoneId |
string |
The zone of the primary disk. |
cn-beijing-a |
| Tags |
array<object> |
The tags of the replication pair. |
|
|
object |
The tag. |
||
| TagKey |
string |
The key of the tag. |
testKey |
| TagValue |
string |
The value of the tag. |
testValue |
| Status |
string |
The status of the replication pair. Valid values:
|
created |
| PrimaryRegion |
string |
The initial source region of the replication pair. |
cn-beijing |
| CreateTime |
integer |
The creation time. This value is a UNIX timestamp. Unit: seconds. |
1649750977 |
| SourceRegion |
string |
The region of the primary disk. |
cn-beijing |
| StatusMessage |
string |
The status message of the replication pair. This parameter is returned when the Status is
|
PrePayOrderExpired |
| EnableRtc |
boolean |
Indicates whether real-time replication control (RTC) is enabled. If the replication pair is in a replication pair-consistent group, the value of this parameter is the same as that of the group. |
false |
| ChargeType |
string |
The billing method of the replication pair. Valid values:
|
PREPAY |
| DestinationZoneId |
string |
The zone of the secondary disk. |
cn-shanghai-b |
| ReplicaGroupName |
string |
The name of the replication pair-consistent group to which the replication pair belongs. |
pg-name**** |
| StandbyRegion |
string |
The initial destination region of the replication pair. |
cn-shanghai |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| TotalCount |
integer |
The total number of entries. |
60 |
Examples
Success response
JSON format
{
"RequestId": "AAA478A0-BEE6-1D42-BEB6-A9CFEAD6****",
"NextToken": "AAAAAdDWBF2****",
"ReplicaPairs": [
{
"Site": "production",
"DestinationDiskId": "d-asdfjl2342kj2l3k4****",
"Description": "This is description.",
"StandbyZone": "cn-shanghai-b",
"ResourceGroupId": "rg-acfmvs*****",
"DestinationRegion": "cn-shanghai",
"ReplicaPairId": "pair-cn-dsa****",
"LastRecoverPoint": 1649751977,
"ReplicaGroupId": "pg-xxxx****",
"SourceDiskId": "d-bp131n0q38u3a4zi****",
"RPO": 900,
"PairName": "TestReplicaPair",
"Bandwidth": 10240,
"ExpiredTime": 1649750977,
"PrimaryZone": "cn-beijing-a",
"SourceZoneId": "cn-beijing-a",
"Tags": [
{
"TagKey": "testKey",
"TagValue": "testValue"
}
],
"Status": "created",
"PrimaryRegion": "cn-beijing",
"CreateTime": 1649750977,
"SourceRegion": "cn-beijing",
"StatusMessage": "PrePayOrderExpired",
"EnableRtc": false,
"ChargeType": "PREPAY",
"DestinationZoneId": "cn-shanghai-b",
"ReplicaGroupName": "pg-name****",
"StandbyRegion": "cn-shanghai"
}
],
"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.