Retrieves a list of file detection results from an archive.
Operation description
Use this API to retrieve detection results for files within a compressed file that has been submitted for detection. The system retains detection results for 5 hours, during which you can query them multiple times. To submit a file for detection, use the CreateFileDetect API. To retrieve the detection result for the compressed file itself, use the GetFileDetectResult API.
All file detection APIs include the HashKey parameter, which is the unique file identifier.
For malicious file detection (when Type is 0), you must provide the MD5 or SHA-256 hash of the complete file content. Calculate this value before you call the API.
For Skill compressed file detection (when Type is 6), obtain the HashKey from the return value of the CreateFileDetect API.
Note: You must use the same HashKey for the submission and query requests for a single detection. Otherwise, you cannot correctly submit the file for detection or retrieve its results.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListCompressFileDetectResult |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the request. |
27.9.XX.XX |
| HashKey |
string |
No |
The unique identifier for the file. |
0a212417e65c26ff133cfff28f6c**** |
| CurrentPage |
integer |
Yes |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
Yes |
The number of entries per page. Default value: 20. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID of the request, generated by Alibaba Cloud. Use this ID for troubleshooting. |
E10BAF1C-A6C5-51E2-866C-76D5922E**** |
| PageInfo |
object |
The pagination information. |
|
| CurrentPage |
integer |
The current page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
20 |
| TotalCount |
integer |
The total number of entries. |
55 |
| ResultList |
array<object> |
A list of detection results for the files in the archive. |
|
|
object |
The details of a file detection result. |
||
| HashKey |
string |
The unique identifier for the file. |
0a212417e65c26ff133cfff28f6c**** |
| Result |
integer |
The detection result of the file. Valid values:
|
0 |
| Score |
integer |
The detection score for the file. The following list describes the score ranges and corresponding risk levels:
Important A higher score indicates a greater risk. Note
This parameter is not returned when |
100 |
| VirusType |
string |
The threat type. Valid values:
Note
This parameter is not returned when |
WebShell |
| Ext |
string |
Additional information about the detection result. |
{ "HighLight": [ [ 23245, 23212 ] ], "FileLabel": [ "PE32", "Zip", "SFX", "encrypted" ] } |
| Path |
string |
The file path within the archive. |
/root/1.zip/test**** |
Examples
Success response
JSON format
{
"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****"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. | The file type is not supported. |
| 500 | ServerError | ServerError | |
| 500 | SystemBusy | System busy, please try again later. | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.