Deletes a replication pair.

Description

  • The async replication feature is supported in the China (Shanghai), China (Beijing), China (Heyuan), and China (Chengdu) regions.
  • Only replication pairs in the Stopped (stopped), Invalid (invalid), or Recover (recover) state can be deleted. This operation deletes only replication pairs. Primary and secondary disks are retained.
  • To delete a replication pair, you must call this operation in the region where the primary disk is located. After the replication pair is deleted, the functionality limits are lifted from the primary and secondary disks. For example, you can attach the secondary disk, resize the disk, or read data from or write data to the disk.

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 DeleteDiskReplicaPair

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

RegionId String Yes cn-beijing

The region ID of the primary disk in the replication pair. You can call the DescribeDiskReplicaPairs operation to query the region information of replication pairs.

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 A37597A6-BB99-19B3-85EA-4C2B91F00123

The ID of the request.

Examples

Sample requests

https://ebs.cn-beijing.aliyuncs.com/?Action=DeleteDiskReplicaPair
&RegionId=cn-beijing
&ReplicaPairId=pair-cn-dsa****
&<Common request parameters>

Sample success responses

XML format

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

<DeleteDiskReplicaPairResponse>
    <RequestId>A37597A6-BB99-19B3-85EA-4C2B91F00123</RequestId>
</DeleteDiskReplicaPairResponse>

JSON format

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

{
  "RequestId" : "A37597A6-BB99-19B3-85EA-4C2B91F00123"
}

Error codes

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