删除镜像
更新时间:
DeleteImage
描述
删除已经在BatchCompute服务上创建的镜像。
请求语法
请求行:
DELETE /images/{id} HTTP/1.1请求方法为 DELETE ,请求资源为 images ,属性说明如下:
属性名称  | 类型  | 是否必须  | 描述  | 
Id  | String  | 是  | 镜像标识符。  | 
返回信息
成功
状态行:
HTTP/1.1 204 No Content无响应数据。
错误
状态码  | 错误码  | 错误信息  | 语义  | 
400  | InvalidRoleArn  | Specified parameter RoleArn is not valid. AliyunBatchComputeDefaultRole don’t have access to share image.  | AliyunBatchComputeDefaultRole角色没有共享镜像的权限  | 
400  | InvalidEcsImageId  | Specified parameter EcsImageId is not valid. The image is not available.  | Ecs镜像当前状态不正确  | 
404  | InvalidResource.NotFound  | Specified resource is not found.  | 用户请求的资源不存在  | 
该文章对您有帮助吗?