All Products
Search
Document Center

:CreateDiskReplicaGroup

最終更新日:Dec 20, 2023

Creates a replication pair-consistent group.

Usage notes

The replication pair-consistent group feature allows you to batch manage multiple disks in disaster recovery scenarios. You can restore the data of all disks in the same replication pair-consistent group to the same point in time to allow for disaster recovery of one or more instances.

Take note of the following items:

  • For information about the regions in which the replication pair-consistent group feature is available, see Overview.
  • Replication pair-consistent groups can be used to implement disaster recovery across zones within the same region and disaster recovery across regions.
  • A replication pair and a replication pair-consistent group replicate in the same direction if they have the same primary region (production region), primary zone (production zone), secondary region (disaster recovery region), and secondary zone (disaster recovery zone). A replication pair can be added to only a replication pair-consistent group that replicates in the same direction as the replication pair.
  • After replication pairs are added to a replication pair-consistent group, the recovery point objective (RPO) of the group takes effect on the pairs in place of their original RPOs.

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 CreateDiskReplicaGroup

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

RegionId String Yes cn-beijing

The ID of the region in which to create the replication pair-consistent group. The primary site is deployed in the region.

SourceZoneId String Yes cn-beijing-f

The zone ID of the primary site.

DestinationRegionId String Yes cn-shanghai

The ID of the region on which the secondary site is deployed.

DestinationZoneId String Yes cn-shanghai-e

The ID of the zone on which the secondary site is deployed.

GroupName String No myreplicagrouptest

The name of the replication pair-consistent group. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).

Description String No This is description.

The description of the replication pair-consistent group. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

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.

RPO Long No 900

The RPO of the replication pair-consistent group. Unit: seconds. Set the value to 900.

Bandwidth Long No 5

The bandwidth value. Unit: Kbit/s.

Note This parameter is not publicly available.
ResourceGroupId String No rg-acfmvs*******

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

Tag.N.Key String No tag-key

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

Tag.N.Value String No tag-value

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

Response parameters

Parameter

Type

Example

Description

RequestId String C123F94F-4E38-19AE-942A-A8D6F44F****

The ID of the request.

ReplicaGroupId String pg-xxxxxxx

The ID of the replication pair-consistent group.

Examples

Sample requests

http(s)://ecs.aliyuncs.com/?Action=CreateDiskReplicaGroup
&RegionId=cn-beijing
&SourceZoneId=cn-beijing-f
&DestinationRegionId=cn-shanghai
&DestinationZoneId=cn-shanghai-e
&GroupName=myreplicagrouptest
&Description=This is description.
&ClientToken=123e4567-e89b-12d3-a456-42665544****
&RPO=900
&<Common request parameters>

Sample success responses

XML format

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

<CreateDiskReplicaGroupResponse>
    <RequestId>C123F94F-4E38-19AE-942A-A8D6F44F****</RequestId>
    <ReplicaGroupId>pg-xxxxxxx</ReplicaGroupId>
</CreateDiskReplicaGroupResponse>

JSON format

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

{
  "RequestId" : "C123F94F-4E38-19AE-942A-A8D6F44F****",
  "ReplicaGroupId" : "pg-xxxxxxx"
}

Error codes

HTTP status code

Error code

Error message

Description

403 OperationDenied The operation is not allowed. The operation cannot be performed.
403 OperationDenied.InvalidStatus The operation is not allowed in current status. You cannot perform this operation on the resource in the current state.
403 OperationDenied.QuotaExceed The operation is not allowed due to quota exceed. The quota has been exhausted.
403 OperationDenied.TooMuchEmptyGroup Operation failed because of too many empty groups. You have created excessive empty replication pair-consistent groups.
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.
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.