You can call this operation to stop a replication relationship.

Description

Only replication relationships in the Active (active) state can be stopped. When a replication relationship is stopped, the relationship enters the Paused (paused) state. The data on the secondary disk reverts to the state that the data was in when the last replication was complete.

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 StopDiskReplicaPair

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

RegionId String Yes cn-beijing

The region ID of the primary disk. You can call the DescribeRegions operation to query the most recent region list.

ReplicaPairId String Yes rp-dsaf233kj23j2j35****

The ID of the replication relationship. You can call the DescribeDiskReplicaPairs operation to query IDs of replication relationships.

Response parameters

Parameter Type Example Description
RequestId String 20758A-585D-4A41-A9B2-28DA8F4F534F

The ID of the request.

Examples

Sample requests

https://ecs.aliyuncs.com/?Action=StopDiskReplicaPair
&RegionId=cn-beijing
&ReplicaPairId=rp-dsaf233kj23j2j35****
&<Common request parameters>

Sample success responses

XML format

<StopDiskReplicaPairResponse>
        <RequestId>E69EF3CC-94CD-42E7-8926-F133B86387C0</RequestId>
</StopDiskReplicaPairResponse>

JSON format

{
    "RequestId": "E69EF3CC-94CD-42E7-8926-F133B86387C0"
}

Error codes

HTTP status code Error code Error message Description
500 InternalError The request processing has failed due to some unknown error. The error message returned because an internal error has occurred. Try again later. If the problem persists, submit a ticket.
400 InvalidRegionId.MalFormed The specified parameter RegionId is not valid. The error message returned because the specified RegionId parameter is invalid.

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