DescribeImageListBySensitiveFile
Queries the details of images affected by sensitive files.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeImageListBySensitiveFile |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SensitiveFileKey |
string |
Yes |
The alert type for sensitive files. Valid values:
Note
This parameter is required. If you do not specify this parameter, the API returns an HTTP 400 error with the error code -101. |
sshpasswd |
| ScanRange |
array |
No |
The scan scope. Valid values:
|
|
|
string |
No |
The scan scope. Valid values:
|
image |
|
| Lang |
string |
No |
The language of the request and response. Default value: zh. Valid values:
|
zh |
| CurrentPage |
integer |
No |
The page number of the returned page. Pages start from 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The maximum number of entries to return on each page during paging in a paged query. Default value: 20. |
20 |
| RiskLevel |
string |
No |
The risk level of the file. Separate multiple risk levels with commas (,). Valid values:
|
high |
| RepoInstanceId |
string |
No |
The ID of the container image instance. Note
You can call the ListRepository operation of Container Registry to obtain the container image instance ID from the InstanceId response parameter. |
i-qewqrqcsadf**** |
| RepoName |
string |
No |
The name of the image repository. Note
Fuzzy match is supported. |
harbor-image-v001 |
| RepoNamespace |
string |
No |
The name of the namespace of the image repository. Note
Fuzzy match is supported. |
libssh2 |
| ImageDigest |
string |
No |
The image digest. Note
Fuzzy match is supported. |
v005 |
| Status |
string |
No |
The status of the sensitive file. Valid values:
|
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned results of affected images. |
||
| Code |
string |
The result code. A value of 200 indicates success, whereas other values indicate failure. You can use this field to identify the cause of the failure. |
200 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| ImageInfos |
array<object> |
The list of image information. |
|
|
object |
The image information. |
||
| Digest |
string |
The image digest. |
v005 |
| FirstScanTime |
integer |
The timestamp of the first scan. Unit: milliseconds. |
1649814050000 |
| InstanceId |
string |
The ID of the image instance. |
cri-a595qp31knh9**** |
| InstanceName |
string |
The instance name. |
sec-NessusSc |
| LastScanTime |
integer |
The timestamp of the latest scan. Unit: milliseconds. |
1649814050000 |
| RegionId |
string |
The region ID of the image instance. |
cn-hangzhou |
| RepoName |
string |
The name of the image repository. |
opa-test |
| RepoNamespace |
string |
The namespace of the image repository. |
libssh2 |
| RiskLevel |
string |
The risk level. Valid values:
|
low |
| Status |
string |
The status of the sensitive file. Valid values:
|
0 |
| Tag |
string |
The image tag. |
nuxeo6 |
| Uuid |
string |
The unique identifier of the image. |
f58681174f944623345379e23b7b**** |
| Message |
string |
The error message. |
successful |
| PageInfo |
object |
The pagination information. |
|
| Count |
integer |
The number of entries displayed on the current page during paging in a paged query. |
4 |
| CurrentPage |
integer |
The page number of the current page during paging in a paged query. |
1 |
| LastRowKey |
string |
The key of the last entry. |
CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAGYXFWIAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM1Mzc3Njc4MzA2ODY5NmI2YTY1Nzg2NTcxNjE2NDc4NjE= |
| PageSize |
integer |
The number of alerting events displayed on each page during paging in a paged query. Default value: 20, which indicates that 20 alerting events are displayed on each page. |
20 |
| TotalCount |
integer |
The total number of entries. |
83 |
| RequestId |
string |
The ID of the request. The ID is generated by Alibaba Cloud and can be used to troubleshoot issues. |
E0C5C07F-1576-509A-AE44-1C36B8445B37 |
| Success |
boolean |
The status of the API call. Valid values:
|
true |
Examples
Success response
JSON format
{
"Code": "200",
"HttpStatusCode": 200,
"ImageInfos": [
{
"Digest": "v005",
"FirstScanTime": 1649814050000,
"InstanceId": "cri-a595qp31knh9****",
"InstanceName": "sec-NessusSc",
"LastScanTime": 1649814050000,
"RegionId": "cn-hangzhou",
"RepoName": "opa-test",
"RepoNamespace": "libssh2",
"RiskLevel": "low",
"Status": "0",
"Tag": "nuxeo6",
"Uuid": "f58681174f944623345379e23b7b****"
}
],
"Message": "successful",
"PageInfo": {
"Count": 4,
"CurrentPage": 1,
"LastRowKey": "CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAGYXFWIAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM1Mzc3Njc4MzA2ODY5NmI2YTY1Nzg2NTcxNjE2NDc4NjE=",
"PageSize": 20,
"TotalCount": 83
},
"RequestId": "E0C5C07F-1576-509A-AE44-1C36B8445B37",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 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.