呼叫 DeleteImage 刪除一個自訂映像。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ens:DeleteImage |
delete |
*Image
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ImageId |
string |
是 |
映像 ID,僅支援傳入單個 ID。 僅支援自訂映像。 |
m-5taesrgwpo9zqj9cjqu792**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Code |
integer |
業務碼,成功返回 0。 |
0 |
| RequestId |
string |
請求 ID。 |
0D94920B-0349-5097-A57F-31876405F2E5 |
樣本
正常返回樣本
JSON格式
{
"Code": 0,
"RequestId": "0D94920B-0349-5097-A57F-31876405F2E5"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | MissingParameter | The input parameters that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | Forbidden.DelerrorteImage | The image cannot be deleted when used by instance. | |
| 400 | Error.DeleteImage | The image cannot be deleted when used by instance. | |
| 400 | IncorrectStatus.Image | The current status of the image does not support this operation. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。