调用DeleteImage删除一个自定义镜像。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:DeleteImage |
delete |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| 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. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?