刪除快照一致性群組。
介面說明
如果快照一致性群組中的雲端硬碟快照已經用於建立自訂映像,則快照一致性群組刪除時相關的雲端硬碟快照不會被刪除。您如果需要刪除相關的雲端硬碟快照,請先刪除已建立的自訂映像( DeleteImage ),再刪除相關的雲端硬碟快照( DeleteSnapshot )。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ecs:DeleteSnapshotGroup |
delete |
*SnapshotGroup
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
快照一致性群組所屬的地域 ID。您可以呼叫 DescribeRegions 查看最新的阿里雲地域清單。 |
cn-hangzhou |
| SnapshotGroupId |
string |
是 |
快照一致性群組 ID。您可以呼叫 DescribeSnapshotGroups 查詢快照一致性群組 ID。 |
ssg-j6c9lpuyxo2uxxny**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
6EDE885A-FDC1-4FAE-BC44-6EACAEA6CC6E |
| OperationProgressSet |
object |
||
| OperationProgress |
array<object> |
刪除快照一致性群組時操作狀態資訊合集。 |
|
|
array<object> |
|||
| ErrorMsg |
string |
錯誤資訊。刪除成功時返回空值。 錯誤碼和錯誤資訊,請參見錯誤中心。 |
testErrorMsg |
| ErrorCode |
string |
錯誤碼。刪除成功時返回空值。 錯誤碼和錯誤資訊,請參見錯誤中心。 |
400 |
| OperationStatus |
string |
操作是否成功。成功返回 Success,失敗返回 ErrorCode 和 ErrorMsg 資訊。 |
Success |
| RelatedItemSet |
object |
||
| RelatedItem |
array<object> |
資源資訊。 |
|
|
object |
|||
| Name |
string |
資源名稱。 |
SnapshotId |
| Value |
string |
資源 ID。 |
s-j6c9lpuyxo2uxxnx**** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "6EDE885A-FDC1-4FAE-BC44-6EACAEA6CC6E",
"OperationProgressSet": {
"OperationProgress": [
{
"ErrorMsg": "testErrorMsg",
"ErrorCode": "400",
"OperationStatus": "Success",
"RelatedItemSet": {
"RelatedItem": [
{
"Name": "SnapshotId",
"Value": "s-j6c9lpuyxo2uxxnx****"
}
]
}
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to an internal error and you may retry later or contact support with the request ID. | |
| 403 | SnapshotCreatedImage | The snapshot has been used to create user defined image(s). | 如果快照已經被用於建立自訂映像,將不能執行刪除操作。您需要先刪除已建立的自訂映像(DeleteImage),才能繼續刪除快照。 |
| 403 | Operation.Forbidden | The operation is not permitted. | 當前子帳號沒有權限進行此次操作。 |
| 403 | SnapshotCreatedDisk | The snapshot that you are trying to delete is in use by one or more Disks. | 您目前試圖刪除的快照已被用於建立一個或者多個磁碟。 |
| 403 | InvalidOperation.ResourceManagedByCloudProduct | The current operation is not supported because the resource is managed by a cloud product. Please contact the relevant cloud product to confirm the reason. | 此次操作不支援,因為資源被雲端產品託管。請聯繫對應的雲端產品確認原因。 |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | 地域資訊錯誤。 |
| 404 | InvalidSnapshotGroup.NotFound | The SnapshotGroupId provided does not exist in our records. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。