啟用非同步複製關係的反轉複寫方向功能。
介面說明
介面說明
非同步複製功能支援的地區請參見雲端硬碟非同步複製概述。
非同步複製關係必須處於故障切換完成(
failovered)狀態。您可以調用 FailoverDiskReplicaPair 啟用故障切換功能。非同步複製關係中,主盤必須從所屬的 ECS 執行個體上卸載,即處於未掛載的狀態。您可以調用 DetachDisk 卸載雲端硬碟。
啟用反轉複寫方向功能後,您還需要重新調用 StartDiskReplicaPair 啟動非同步複製功能,才可以將原從盤的資料複製到原主盤當中。
通過設定 ReverseReplicate 參數為 false,您可以進行取消故障切換完成(
failovered)狀態,恢複原來的複製方向。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ebs:ReprotectDiskReplicaPair |
update |
*DiskReplicaPair
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
非同步複製關係中從盤所屬的地區 ID。您可以調用 DescribeDiskReplicaPairs 查詢非同步複製關係中從盤的地區資訊。 說明
必須在從盤所屬地區下啟用反轉複寫方向功能。 |
cn-shanghai |
| ReplicaPairId |
string |
是 |
非同步複製關係的 ID。 |
pair-cn-dsa**** |
| ClientToken |
string |
否 |
保證請求等冪性。從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元,且不能超過 64 個字元。更多資訊,請參見如何保證等冪性。 |
123e4567-e89b-12d3-a456-42665544**** |
| ReverseReplicate |
boolean |
否 |
反轉複寫方向開關:false 代表恢複原方向,true 代表反轉複寫方向。預設值是 true。 |
true |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
C123F94F-4E38-19AE-942A-A8D6F44F**** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "C123F94F-4E38-19AE-942A-A8D6F44F****"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 403 | OperationDenied | The operation is not allowed. | |
| 403 | OperationDenied.InvalidStatus | The operation is not allowed in current status. | |
| 403 | OperationDenied.NoPairInGroup | The operation is not allowed because no pair in the group. | |
| 403 | OperationDenied.PairGroupAZoneConflict | The operation is not allowed due to pair and group having different RegionId or ZoneId. | |
| 403 | OperationDenied.PairGroupStatusConflict | The operation is not allowed due to pair and group status are not consistent. | |
| 403 | OperationDenied.PairNotInGroup | The operation is not allowed because pair is not in any group. | |
| 403 | OperationDenied.OperateNotAllowedForPrimary | Operation is not allowed on the primary site. | |
| 403 | OperationDenied.OperateNotAllowedForStandby | Operation is not allowed on the secondary site. | |
| 403 | Forbidden | User is not authorized to operate. | |
| 403 | Forbidden.Action | User is not authorized to operate this action. | |
| 404 | NoSuchResource | The specified resource does not exist. | |
| 504 | RequestTimeout | The request is timeout, please try again later. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。