最近更新时间:2023.07.07 10:54:52
首次发布时间:2022.07.01 09:23:23
调用 DeleteImages 接口删除已导入的自定义镜像。
名称 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DeleteImages | 要执行的操作,取值:DeleteImages |
Version | String | 是 | 2020-04-01 | 接口的版本,取值:2020-04-01。 |
ImageIds.N | String | 是 | ImageIds.1=image-ebgy1og99tfct0******&ImageIds.2=image-2asdv4n6ay3vj0****** | 自定义镜像ID,最多支持100个ID。您可以调用DescribeImages接口并传入
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
OperationDetails | Array of struct | - | 自定义镜像操作详情,具体请参见“ ImageOperationResult 结构 ”。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
ImageId | String | image-ebgy1og99tfct0****** | 镜像ID。 |
Error | Struct | - | 某个镜像删除失败的错误信息。具体请参见“ Error 结构 ”。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | String | InvalidImage.NotFound | 批量请求处理中,单个请求操作失败的错误码,具体请参见下表“错误码(批量操作时具体单个请求失败的异常)”。 |
Message | String | The specified image does not exist. | 批量请求处理中,单个请求的异常信息。具体请参见下表“错误码(批量操作时具体单个请求失败的异常)”中的错误信息。 |
错误码 | 错误信息 | 描述 |
---|---|---|
InvalidImage.NotFound | The specified image does not exist. | 指定的镜像不存在。 |
InvalidImageStatus | The specified image is not in the correct status for the request. | 当前镜像状态不支持此操作。 |
InvalidImage.Shared | The specified image has already been shared and may be in use by other users. | 指定的镜像已被共享给其他用户。 |
OperationDenied.ImageIsCopying | The specified operation is denied as your image is copying. | 指定的操作被拒绝,因为该镜像正在复制。 |
OperationDenied.ImageIsExporting | The specified operation is denied as your image is exporting. | 指定的操作被拒绝,因为该镜像正在导出。 |
InternalError | An internal error has occurred. | 内部错误,请重试。如果多次尝试失败,请提交工单。 |
GET /?Action=DeleteImages&Version=2020-04-01&ImageIds.1=image-ebgy1og99tfct0****** HTTP/1.1 Host: open.volcengineapi.com Region: cn-beijing Service: ecs
{ "ResponseMetadata": { "RequestId": "20210611144510010225243100005******", "Action": "DeleteImages", "Version": "2020-04-01", "Service": "ecs", "Region": "cn-beijing" }, "Result": { "OperationDetails": [ { "ImageId": "image-ebgy1og99tfct0******", "Error": { "Code": "InvalidImage.NotFound", "Message": "The specified image does not exist." } } ] } }
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MissingParameter.ImageId | The required parameter ImageId is not supplied. | 镜像ID不能为空。 |
400 | InvalidArgument | The specified argument is invalid. | 指定的参数不合法。 |
400 | LimitExceeded.MaximumImageIds | You've reached the limit on the number of ImageIds that you can set. | 指定的镜像ID数量超过限制。 |
500 | InternalError | An internal error has occurred. | 内部错误,请重试。如果多次尝试失败,请提交工单。 |