Enables the reverse replication sub-feature for a replication pair. After reverse replication is enabled for the replication pair, data is replicated from the original secondary disk to the original primary disk.


  • The async replication feature is supported in the China (Shanghai), China (Beijing), China (Heyuan), and China (Chengdu) regions.
  • The replication pair for which you want to enable reverse replication must be in the Failovered (failovered) state. You can call the FailoverDiskReplicaPair operation to enable failover.
  • The primary disk must be detached from its associated Elastic Compute Service (ECS) instance and is in the Unattached state. You can call the DetachDisk operation to detach the disk.
  • After you enable reverse replication, you must call the StartDiskReplicaPair operation again to activate the replication pair before data can be replicated from the original secondary disk to the original primary disk.


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 ReprotectDiskReplicaPair

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

RegionId String Yes cn-shanghai

The region ID of the secondary disk in the replication pair. You can call the DescribeDiskReplicaPairs operation to query region IDs of secondary disks in replication pairs.

Note The reverse replication sub-feature must be enabled from the region where the secondary disk is located.
ReplicaPairId String Yes pair-cn-dsa****

The ID of the replication pair.

ClientToken String No 123e4567-e89b-12d3-a456-426655440000

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it 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.

Response parameters

Parameter Type Example Description
RequestId String C123F94F-4E38-19AE-942A-A8D6F44F0450

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "C123F94F-4E38-19AE-942A-A8D6F44F0450"

Error codes

For a list of error codes, visit the API Error Center.