Deletes a custom image.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DeleteImage |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ImageId |
string |
Yes |
The ID of the image. You can specify only one image ID. You can delete only custom images that you created. |
m-5taesrgwpo9zqj9cjqu792**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The returned service code. A value of 0 indicates that the operation was successful. |
0 |
| RequestId |
string |
The ID of the request. |
0D94920B-0349-5097-A57F-31876405F2E5 |
Examples
Success response
JSON format
{
"Code": 0,
"RequestId": "0D94920B-0349-5097-A57F-31876405F2E5"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. | The specified image has been used to create an instance and cannot be deleted. |
| 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. | The current image state does not support this operation. |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.