Queries the malicious files of a scan task by page.
Operation description
Before you call this operation, use a Security Center scan engine to scan the image.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| cr:ListScanMaliciousFile | get | *Instance acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId} |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| InstanceId | string | No | The instance ID. | cri-gu94qynvpwk***** |
| PageNo | integer | No | The page number. | 1 |
| PageSize | integer | No | The number of entries per page. Maximum value: 100. If you specify a value greater than 100 for this parameter, the system reports a parameter error or uses 100 as the maximum value. | 30 |
| Level | string | No | The severity of the malicious file. | High |
| RepoId | string | No | The image repository ID. | crr-h1y4l279wb8***** |
| Tag | string | No | The image tag. | V6.11 |
| Digest | string | No | The image digest. | sha256:aa4bffff6406785e930dab1f94c9a1297ba22xxxx71d71504a015764********* |
| ScanTaskId | string | No | The ID of the image scan task. | 79ee6bc2-3288-4c56-b967-********** |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "52AE49C8-B91A-5C1A-821F-C34324B42F7C",
"Code": 0,
"PageNo": 1,
"IsSuccess": true,
"PageSize": 30,
"TotalCount": 13,
"ScanMaliciousFiles": [
{
"ScanTaskId": "fe2d8980-de45-4f55-b57d-e438e6d2e972",
"MaliciousName": "Suspected to contain Webshell code",
"MaliciousMd5": "e76c9759783cbbc9be0ff91ca3xxxxxx",
"FirstScanTime": 0,
"Level": "remind",
"FilePath": "tenant/0000000000000000/",
"CreateTime": 0,
"UpdateTime": 0
}
]
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
