功能介紹
將指定的復(fù)制對從指定的保護(hù)實(shí)例上卸載。
接口約束
保護(hù)組的狀態(tài)為available、protected、failed-over、error-starting、error-stopping、error-reversing、error-failing-over。保護(hù)實(shí)例狀態(tài)為available、protected、failed-over、error-starting、error-stopping、error-reversing、error-failing-over、error-deleting、error-reprotecting、error-resizing、invalid、fault。 復(fù)制對狀態(tài)為available、protected、failed-over、error-attaching、error-detaching、error-starting、error-stopping、error-reversing、error-failing-over、error-deleting、error-reprotecting、error-extending、invalid、fault。 復(fù)制對已被掛載。
調(diào)試
您可以在API Explorer中調(diào)試該接口。
URI
DELETE /v1/{project_id}/protected-instances/{protected_instance_id}/detachreplication/{replication_id}
|
參數(shù) |
是否必選 |
參數(shù)類型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
項(xiàng)目ID。 |
|
protected_instance_id |
是 |
String |
保護(hù)實(shí)例的ID。 |
|
replication_id |
是 |
String |
復(fù)制對的ID。 |
請求參數(shù)
|
參數(shù) |
是否必選 |
參數(shù)類型 |
描述 |
|---|---|---|---|
|
X-Auth-Token |
是 |
String |
用戶Token。通過調(diào)用 IAM 服務(wù)獲取用戶Token接口獲取(響應(yīng)消息頭中X-Subject-Token的值) |
響應(yīng)參數(shù)
狀態(tài)碼: 200
|
參數(shù) |
參數(shù)類型 |
描述 |
|---|---|---|
|
job_id |
String |
成功返回jobId信息 |
狀態(tài)碼: 400
狀態(tài)碼: 401
狀態(tài)碼: 403
狀態(tài)碼: 404
狀態(tài)碼: 405
狀態(tài)碼: 406
狀態(tài)碼: 407
狀態(tài)碼: 408
狀態(tài)碼: 409
狀態(tài)碼: 500
狀態(tài)碼: 501
狀態(tài)碼: 502
狀態(tài)碼: 503
狀態(tài)碼: 504
請求示例
DELETE http://{Endpoint}/v1/{project_id}/protected-instances/
00000000632302f501632305f63c000e/detachreplication/6568f7c4-0510-4f39-929d-8ffccbd4fd47
響應(yīng)示例
狀態(tài)碼: 200
OK
{
"job_id" : "0000000062db92d70162db921dgf00bb"
}
狀態(tài)碼
|
狀態(tài)碼 |
描述 |
|---|---|
|
200 |
OK |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
405 |
Method Not Allowed |
|
406 |
Not Acceptable |
|
407 |
Proxy Authentication Required |
|
408 |
Request Timeout |
|
409 |
Conflict |
|
500 |
Internal Server Error |
|
501 |
Not Implemented |
|
502 |
Bad Gateway |
|
503 |
Service Unavailable |
|
504 |
Gateway Timeout |
錯誤碼
請參見錯誤碼。
