Queries the details of one or more replication pair-consistent groups in a region.

Usage notes

To perform a paged query, specify MaxResults and NextToken.

During a paged query, when you call the DescribeDiskReplicaGroups operation to retrieve the first page of results, set MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which can be used in the next call to retrieve a new page of results. When you call the DescribeDiskReplicaGroups operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and set MaxResults to specify the maximum number of entries to return in this call.

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

ParameterTypeRequiredExampleDescription
ActionStringYesDescribeDiskReplicaGroups

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

RegionIdStringYescn-beijing

The region ID of the replication pair-consistent group.

MaxResultsLongNo10

The maximum number of entries per page. Valid values: 1 to 500.

Default value: 10.

NextTokenStringNoAAAAAdDWBF2****

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. When NextToken is specified, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.

GroupIdsStringNoAAAAAdDWBF2****

The IDs of replication pair-consistent groups. You can specify the IDs of up to 100 replication pair-consistent groups. Separate the IDs with commas (,).

This parameter is empty by default, which indicates that all replication pair-consistent groups in the specified region are queried.

SiteStringNoproduction

The type of the site from which the information of replication pair-consistent groups is retrieved. This parameter is used for scenarios where data is replicated across zones in replication pairs.

  • If this parameter is not specified, information such as the status of replication pair-consistent groups at the primary site is queried and returned.
  • If this parameter is specified, information such as the status of replication pair-consistent groups at the site specified by this parameter is queried and returned. Valid values:
    • production: primary site
    • backup: secondary site
PageNumberIntegerNo5

The page number.

PageSizeIntegerNo10

The number of entries per page.

Valid values: 1 to 100.

ResourceGroupIdStringNorg-aekz*****

The ID of the resource group to which the replication pair-consistent group belongs.

Tag.N.KeyStringNotag-key

The key of tag N of the replication pair-consistent group.

Tag.N.ValueStringNotag-value

The value of tag N of the replication pair-consistent group.

Response parameters

ParameterTypeExampleDescription
RequestIdStringAAA478A0-BEE6-1D42-BEB6-A9CFEAD6****

The request ID.

NextTokenStringAAAAAdDWBF2****

A pagination token. It can be used in the next request to retrieve a new page of results.

ReplicaGroupsArray of ReplicaGroup

The information about the replication pair-consistent groups.

ReplicaGroupIdStringpg-myreplica****

The ID of the replication pair-consistent group.

SourceRegionIdStringcn-beijing

The region ID of the primary site.

SourceZoneIdStringcn-beijing-f

The zone ID of the primary site.

DestinationRegionIdStringcn-shanghai

The region ID of the secondary site.

DestinationZoneIdStringcn-shanghai-e

The zone ID of the secondary site.

GroupNameStringmyreplicagrouptest

The name of the replication pair-consistent group.

DescriptionStringThis is description.

The description of the replication pair-consistent group.

StatusStringcreated

The state of the replication pair-consistent group. Valid values:

  • invalid: The replication pair-consistent group is invalid, which indicates that abnormal replication pairs are present in the replication pair-consistent group.
  • creating: The replication pair-consistent group is being created.
  • created: The replication pair-consistent group is created.
  • create_failed: The replication pair-consistent group cannot be created.
  • manual_syncing: Data is being manually synchronized between the disks in the replication pair-consistent group. The first time data is being manually synchronized between the disks in a replication pair-consistent group, the replication pair-consistent group is in this state.
  • syncing: Data is being synchronized between the disks in the replication pair-consistent group. When data is being asynchronously replicated from the primary disks to the secondary disks not for the first time, the replication pair-consistent group is in this state.
  • normal: The replication pair-consistent group works as expected. When the system finishes replicating data from the primary disks to the secondary disks within the current replication cycle, the replication pair-consistent group enters this state.
  • stopping: The replication pair-consistent group is being stopped.
  • stopped: The replication pair-consistent group is stopped.
  • stop_failed: The replication pair-consistent group cannot be stopped.
  • failovering: A failover is being performed.
  • failovered: A failover is performed.
  • failover_failed: A failover cannot be performed.
  • reprotecting: A reverse replication is being performed.
  • reprotect_failed: A reverse replication cannot be performed.
  • deleting: The replication pair-consistent group is being deleted.
  • delete_failed: The replication pair-consistent group cannot be deleted.
  • deleted: The replication pair-consistent group is deleted.
RPOLong180

The recovery point objective (RPO) of the replication pair-consistent group. Unit: seconds.

LastRecoverPointLong1637835114

The time when data was last replicated from the primary disks to the secondary disks in the replication pair-consistent group. The value of this parameter is a timestamp. Unit: seconds.

SiteStringproduction

The type of the site from which the information of the replication pair and replication pair-consistent group is obtained. Valid values:

  • production: primary site
  • backup: secondary site
PairIdsArray of Stringpair-cn-dsa****,pair-cn-asd****

The IDs of the replications pairs that belong to the replication pair-consistent group.

PairNumberLong2

The number of replications pairs that belong to the replication pair-consistent group.

PrimaryRegionStringcn-beijing

The initial source region (primary region) of the replication pair-consistent group.

StandbyRegionStringcn-shanghai

The initial destination region (secondary region) of the replication pair-consistent group.

PrimaryZoneStringcn-beijing-h

The initial source zone (primary zone) of the replication pair-consistent group.

StandbyZoneStringcn-shanghai-e

The initial destination zone (secondary zone) of the replication pair-consistent group.

BandwidthLong0

The bandwidth value. Unit: Mbit/s. This parameter is not publicly available and has a system-preset value.

ResourceGroupIdStringrg-aek2a*******

The ID of the resource group to which the replication pair-consistent group belongs.

TagsArray of Tag

The tags of the replication pair-consistent group.

TagKeyStringtestKey

The tag key of the replication pair-consistent group.

TagValueStringtestValue

The tag value of the replication pair-consistent group.

PageNumberInteger1

The page number.

PageSizeInteger10

The number of entries per page.

TotalCountLong60

The total number of entries returned.

Examples

Sample requests

http(s)://ecs.aliyuncs.com/?Action=DescribeDiskReplicaGroups
&RegionId=cn-beijing
&MaxResults=10
&NextToken=AAAAAdDWBF2****
&GroupIds=AAAAAdDWBF2****
&Site=production
&<Common request parameters>

Sample success responses

XML format

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

<DescribeDiskReplicaGroupsResponse>
    <RequestId>AAA478A0-BEE6-1D42-BEB6-A9CFEAD6****</RequestId>
    <NextToken>AAAAAdDWBF2****</NextToken>
    <ReplicaGroups>
        <ReplicaGroupId>pg-myreplica****</ReplicaGroupId>
        <SourceRegionId>cn-beijing</SourceRegionId>
        <SourceZoneId>cn-beijing-f</SourceZoneId>
        <DestinationRegionId>cn-shanghai</DestinationRegionId>
        <DestinationZoneId>cn-shanghai-e</DestinationZoneId>
        <GroupName>myreplicagrouptest</GroupName>
        <Description>This is description.</Description>
        <Status>created</Status>
        <RPO>180</RPO>
        <LastRecoverPoint>1637835114</LastRecoverPoint>
        <Site>production</Site>
        <PairIds>pair-cn-dsa****,pair-cn-asd****</PairIds>
        <PairNumber>2</PairNumber>
    </ReplicaGroups>
</DescribeDiskReplicaGroupsResponse>

JSON format

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

{
  "RequestId" : "AAA478A0-BEE6-1D42-BEB6-A9CFEAD6****",
  "NextToken" : "AAAAAdDWBF2****",
  "ReplicaGroups" : [ {
    "ReplicaGroupId" : "pg-myreplica****",
    "SourceRegionId" : "cn-beijing",
    "SourceZoneId" : "cn-beijing-f",
    "DestinationRegionId" : "cn-shanghai",
    "DestinationZoneId" : "cn-shanghai-e",
    "GroupName" : "myreplicagrouptest",
    "Description" : "This is description.",
    "Status" : "created",
    "RPO" : 180,
    "LastRecoverPoint" : 1637835114,
    "Site" : "production",
    "PairIds" : [ "pair-cn-dsa****,pair-cn-asd****" ],
    "PairNumber" : 2
  } ]
}

Error codes

HTTP status codeError codeError messageDescription
403OperationDeniedThe operation is not allowed.This operation cannot be performed.
403OperationDenied.InvalidStatusThe operation is not allowed in current status.This operation cannot be performed on the replication pair-consistent group in the current state.
403ForbiddenUser is not authorized to operate.You do not have the permissions to manage the resource. Check the permissions of your account or contact your Alibaba Cloud account administrator.
403Forbidden.ActionUser 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.
404NoSuchResourceThe specified resource does not exist.The specified resource is not found.
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.An internal error occurred.
504RequestTimeoutThe request is timeout, please try again later.The request timed out. Try again later.

For a list of error codes, see Service error codes.