获取压缩包内文件检测结果列表。
接口说明
推送过检测并且被识别为压缩包的文件才能通过此接口获取文件检测结果列表,检测结果将保留 5 小时,5 小时内可重复查询。推送检测请参考接口 CreateFileDetect。获压缩包文件本身检测结果请参考接口 GetFileDetectResult。
文件检测相关接口均包含 HashKey 参数,表示文件唯一标识。
在恶意文件检测场景下(Type 为 0),仅支持传入文件完整内容的 MD5 或 SHA-256,请在调用接口前计算该值。
在 Skill 压缩包检测场景下(Type 为 6),请通过 CreateFileDetect 接口的返回值获取。
注意,一次检测的推送和查询接口必须使用同一个 HashKey,否则无法正确推送检测和查询结果。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:ListCompressFileDetectResult |
list |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| SourceIp |
string |
否 |
访问源 IP 地址。 |
27.9.XX.XX |
| HashKey |
string |
否 |
文件唯一标识。 |
0a212417e65c26ff133cfff28f6c**** |
| CurrentPage |
integer |
是 |
分页查询时,显示的当前页的页码。默认值为 1。 |
1 |
| PageSize |
integer |
是 |
分页查询时,显示的每页数据的最大条数。默认值为 20。 |
20 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
E10BAF1C-A6C5-51E2-866C-76D5922E**** |
| PageInfo |
object |
分页信息。 |
|
| CurrentPage |
integer |
分页查询时,显示的当前页的页码。 |
1 |
| PageSize |
integer |
分页查询时,每页最多显示的数据条数。 |
20 |
| TotalCount |
integer |
数据的总条数。 |
55 |
| ResultList |
array<object> |
压缩包内文件检测结果列表。 |
|
|
object |
文件检测结果信息。 |
||
| HashKey |
string |
文件标识。 |
0a212417e65c26ff133cfff28f6c**** |
| Result |
integer |
文件检测结果。取值:
|
0 |
| Score |
integer |
文件检测分数。分数区间及危险等级的对应关系如下:
重要 分数越高,文件越可疑。 说明
Type 为 6 时不支持此参数。 |
100 |
| VirusType |
string |
病毒类型。取值:
说明
Result 为 0 或 3 时此参数无效。 |
WebShell |
| Ext |
string |
检测结果扩展信息。 |
{ "HighLight": [ [ 23245, 23212 ] ], "FileLabel": [ "PE32", "Zip", "SFX", "encrypted" ] } |
| Path |
string |
文件在压缩包内的路径。 |
/root/1.zip/test**** |
示例
正常返回示例
JSON格式
{
"RequestId": "E10BAF1C-A6C5-51E2-866C-76D5922E****",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 55
},
"ResultList": [
{
"HashKey": "0a212417e65c26ff133cfff28f6c****",
"Result": 0,
"Score": 100,
"VirusType": "WebShell",
"Ext": "{\n \"HighLight\":\n [\n [\n 23245,\n 23212\n ]\n ],\n \"FileLabel\":\n [\n \"PE32\",\n \"Zip\",\n \"SFX\",\n \"encrypted\"\n ]\n}",
"Path": "/root/1.zip/test****"
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | RequestTooFrequently | Request too frequently, please try again later | 请求太频繁,请稍后再试 |
| 400 | GetResultFail | Get result fail, found no detect record for this file or result has been expired | 获取结果失败,未找到文件推送记录或者检测结果已过期。 |
| 400 | InvalidApiDetectType | Unsupported Api Detect Type. | 不支持的文件类型。 |
| 500 | ServerError | ServerError | 服务故障,请稍后重试! |
| 500 | SystemBusy | System busy, please try again later. | 系统繁忙,请稍后重试。 |
| 403 | NoPermission | caller has no permission | 当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。