You need to enable JavaScript to run this app.
文档中心
云服务器

云服务器

复制全文
下载 pdf
镜像
DetectImage - 检测镜像
复制全文
下载 pdf
DetectImage - 检测镜像
调用 DetectImage 接口,发起镜像检测流程。​
注意事项​
使用本功能的前提条件及注意事项,可查看镜像检测概述。​
请求说明​
检测结果请使用DescribeImages接口,并传入目标镜像的ImageId查询获取。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:DetectImage​
要执行的操作,取值:DetectImage。​
​
Version string 必选 示例值:2020-04-01​
API的版本,取值:2020-04-01。​
​
ImageId string 必选 示例值:image-yczf9rotssgh*****​
镜像ID。您可以调用DescribeImages接口查询获取。​
​
​
​
返回参数​
本接口无特有的返回参数。更多信息请见返回结构。​
请求示例​
​
GET /?Action=DetectImage&Version=2020-04-01&ImageId=image-yczf9rotssgh***** HTTP/1.1​
Host: ecs.cn-beijing.volcengineapi.com​
Region: cn-beijing​
ServiceName: ecs​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2022061517394001022514606307*****",​
"Action": "DetectImage",​
"Version": "2020-04-01",​
"Service": "ecs",​
"Region": "cn-beijing"​
},​
"Result": {}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidImageStatus​
The specified image is not in the correct status for the request.​
当前镜像的状态不支持此操作。​
400​
InvalidPlatformForDetect.UnSupported​
The specified image platform cannot be used for detect.​
指定的镜像平台不支持检测。​
400​
MissingParameter.ImageId​
The required parameter ImageId is not supplied.​
镜像ID不能为空。​
404​
InvalidImage.NotFound​
The specified image does not exist.​
指定的镜像不存在。​
412​
OperationDenied.ImageIsDetecting​
The specified operation is denied as your image is detecting.​
指定的操作被拒绝,因为该镜像正在检测。​
500​
InternalError​
An internal error has occurred.​
内部错误,请重试。如果多次尝试失败,请提交工单。​
​
​
最近更新时间:2025.09.04 16:02:54
这个页面对您有帮助吗?
有用
有用
无用
无用