Queries the details of malicious image samples.
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:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is 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 |
---|---|---|---|---|
yundun-sas:DescribeAffectedMaliciousFileImages | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
MaliciousMd5 | string | No | The MD5 hash value of the malicious image sample. Note
You can call the DescribeGroupedMaliciousFiles operation to query the MD5 hash values of malicious image samples.
| d836968041f7683b5459**** |
CurrentPage | integer | Yes | The number of the page to return. Pages start from page 1. Default value: 1. | 1 |
PageSize | string | Yes | The number of entries to return on each page. Default value: 20. | 20 |
Lang | string | No | The language of the content within the request and the response. Valid values:
| zh |
RepoRegionId | string | No | The region ID of the image repository. Valid values:
| cn-hangzhou |
RepoInstanceId | string | No | The ID of the container image. Note
You can call the ListRepository operation to query the IDs of container images from the value of the InstanceId response parameter.
| cri-datvailb**** |
RepoId | string | No | The ID of the image repository. Note
You can call the ListRepository operation to query the IDs of image repositories from the value of the RepoId response parameter.
| crr-vridcl4**** |
RepoName | string | No | The name of the image repository. Note
Fuzzy match is supported.
| centos |
RepoNamespace | string | No | The namespace to which the image repository belongs. Note
Fuzzy match is supported.
| hanghai-namespace |
ImageTag | string | No | The tag that is added to the image. | 0.2 |
ImageDigest | string | No | The image digest. | 6a5e103187b31a94592a47a5858617f7a179ead61df7606**** |
ImageLayer | string | No | The image layer. | 27213ad375b53628dd152a5ca**** |
ClusterId | string | No | The ID of the container cluster. Note
You can call the DescribeGroupedContainerInstances operation to query the IDs of container clusters.
| c60b77fe62093480db6164a3c2fa5**** |
ScanRange | array | No | The types of the assets that you want to scan. | |
string | No | The type of the asset that you want to scan. Valid values:
| image | |
ClusterName | string | No | The name of the cluster. | minikube |
ContainerId | string | No | The ID of the container. | cc20a1024011c44b6a8710d6f8b**** |
Pod | string | No | The pod. | 22222-7xsqq |
Namespace | string | No | The namespace. | test-002 |
Image | string | No | The name of the container image. | registry.cn-wulanchabu.aliyuncs.com/sas_test/huxin-test-001:nuxeo6-**** |
Levels | string | No | The severity level of the malicious image sample. Separate multiple severity levels with commas (,). Valid values:
| serious,suspicious |
Status | string | No | The status of the malicious image sample. Valid values:
| 0 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "ACF97412-FD09-4D1F-994F-34DF12BREF20",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 2,
"Count": 2
},
"AffectedMaliciousFileImagesResponse": [
{
"Status": 1,
"Digest": "6a5e1031a5858617f7d8a179ead6****",
"LatestVerifyTimestamp": 1596522711000,
"RepoInstanceId": "cri-datvail3m****",
"Namespace": "hanghai-namespace",
"Tag": "0.2",
"RepoRegionId": "cn-shanghai",
"ImageUuid": "e05c0de798217637868ef4****",
"FirstScanTimestamp": 1594907349000,
"MaliciousMd5": "d836968041f768300d9605a****",
"FilePath": "/d836968041f7683b5605a****",
"RepoId": "crr-vridcl4****",
"Layer": "27213ad3447f0209dd152a5cadea****",
"LatestScanTimestamp": 1596522785000,
"RepoName": "centos",
"Level": "serious",
"DownloadUrl": "https://aegis-metadata-file.oss-cn-shanghai.aliyuncs.com/",
"HighLight": "{\"ruleVersion\":\"highlight_20210908\",\"ruleId\":600106,\"events\":[[2,54]]}",
"ContainerId": "04d20e98c8e2c93b7b864372084320a15a58c8671e53c972ce3a71d9c163****",
"Image": "registry.cn-wulanchabu.aliyuncs.com/sas_test/huxin-test-001:nuxeo6-conta****",
"Pod": "22222-7xsqq",
"ClusterId": "c08d5fc1a329a4b88950a253d082f1****",
"ClusterName": "docker-law",
"InstanceName": "sql-test-001",
"InternetIp": "47.101.XX.XX",
"IntranetIp": "172.22.XX.XX",
"TargetId": "m-bp17m0pc0xprzbwo****",
"TargetName": "source-test-obj-9LaLJ",
"TargetType": "ECS_IMAGE",
"Uuid": "48a473c4-1650-4931-a822-7e6c2c28****",
"Id": 1000040
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-07-02 | The response structure of the API has changed | View Change Details |
2023-10-17 | The request parameters of the API has changed | View Change Details |
2022-09-19 | The response structure of the API has changed | View Change Details |