全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

删除镜像

请求参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数
参数名称
类型
必填
描述
Action String
公共参数,本接口取值:RemoveImages。
Version String
公共参数,本接口取值:2016-03-04。
ImageId String

待删除的镜像ID。 标准UUID格式,形如^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

返回参数

参数名称
类型
描述
ReturnSet Object[]
ImageId String
示例值:d9bb9d83-0c8f-47f9-b94e-07c80ae67
Return Boolean
示例值:true
RequestId String
示例值:26a493c3-39c5-458f-87cc-a7184da8006

请求示例

curl -X GET|POST
'http://kec.api.ksyun.com/?Action=RemoveImages&Version=2016-03-04'
-H 'authorization: xxx, SignedHeaders=content-type;host;x-amz-date, Signature=xxx'
-H 'cache-control: no-cache'
-H 'content-type: application/x-www-form-urlencoded'
-H 'host: kec.api.ksyun.com'
-H 'x-amz-date: 20170720T022802Z'
-d 'ImageId=xxx'

返回示例

JSON格式

{
"ReturnSet":[
{
"ImageId":"d9bb9d83-0c8f-47f9-b94e-07c80ae67",
"Return":true
}
],
"RequestId":"26a493c3-39c5-458f-87cc-a7184da8006"
}

错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码
错误信息
Http状态码
描述
UnauthorizedOperationThe Operation is unauthorized400操作未经授权
ExportIngImageCanNotDeleteThe image cannot be deleted when in the process of exporting.400镜像状态为导出中时,不支持删除
ImageHasSharedCanNotDeleteimage has share account can't delete.400镜像已经被共享不能删除.
纯净模式常规模式

纯净模式

点击可全屏预览文档内容
文档反馈