Queries images that contain 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 |
No |
The type of the sensitive file. Valid values:
|
sshpasswd |
| ScanRange |
array |
No |
The scan scope. Valid values:
|
|
|
string |
No |
The scan scope. Valid values:
|
image |
|
| Lang |
string |
No |
The language of the content in the request and response. Default value: zh. Valid values:
|
zh |
| CurrentPage |
integer |
No |
The page number. Pages start from page 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. 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 image repository instance. Note
You can call the ListRepository operation of Container Registry to query the IDs of image repository instances. The ID is displayed in the InstanceId response parameter. |
i-qewqrqcsadf**** |
| RepoName |
string |
No |
The name of the image repository. Note
Fuzzy search is supported. |
harbor-image-v001 |
| RepoNamespace |
string |
No |
The namespace to which the image repository belongs. Note
Fuzzy search is supported. |
libssh2 |
| ImageDigest |
string |
No |
The digest of the image. Note
Fuzzy search is supported. |
v005 |
| Status |
string |
No |
The status of the sensitive file. Valid values:
|
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Information about the affected images. |
||
| ImageInfos |
array<object> |
An array of images. |
|
|
object |
The information about the image. |
||
| Uuid |
string |
The unique identifier of the image. |
f58681174f944623345379e23b7b**** |
| RegionId |
string |
The ID of the region in which the image resides. |
cn-hangzhou |
| InstanceId |
string |
The ID of the image instance. |
cri-a595qp31knh9**** |
| RepoNamespace |
string |
The namespace of the image repository. |
libssh2 |
| RepoName |
string |
The name of the image repository. |
opa-test |
| Digest |
string |
The digest of the image. |
v005 |
| Tag |
string |
The tag of the image. |
nuxeo6 |
| FirstScanTime |
integer |
The timestamp of the first scan. Unit: milliseconds. |
1649814050000 |
| LastScanTime |
integer |
The timestamp of the last scan. Unit: milliseconds. |
1649814050000 |
| RiskLevel |
string |
The risk level of the image. Valid values:
|
low |
| Status |
string |
The status of the sensitive file. Valid values:
|
0 |
| InstanceName |
string |
The name of the instance. |
sec-NessusSc |
| PageInfo |
object |
The pagination information. |
|
| CurrentPage |
integer |
The page number of the returned page. |
1 |
| PageSize |
integer |
The number of entries per page. Default value: 20. |
20 |
| TotalCount |
integer |
The total number of entries. |
83 |
| Count |
integer |
The number of entries returned on the current page. |
4 |
| LastRowKey |
string |
The key of the last entry on the current page. |
CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAGYXFWIAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM1Mzc3Njc4MzA2ODY5NmI2YTY1Nzg2NTcxNjE2NDc4NjE= |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Code |
string |
The result code. The value 200 indicates that the request was successful. For more information about other error codes, see the "Error codes" section of this topic. |
200 |
| Message |
string |
The returned message. |
successful |
| RequestId |
string |
The ID of the request, which is used to locate and troubleshoot issues. |
E0C5C07F-1576-509A-AE44-1C36B8445B37 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
Examples
Success response
JSON format
{
"ImageInfos": [
{
"Uuid": "f58681174f944623345379e23b7b****",
"RegionId": "cn-hangzhou",
"InstanceId": "cri-a595qp31knh9****",
"RepoNamespace": "libssh2",
"RepoName": "opa-test",
"Digest": "v005",
"Tag": "nuxeo6",
"FirstScanTime": 1649814050000,
"LastScanTime": 1649814050000,
"RiskLevel": "low",
"Status": "0",
"InstanceName": "sec-NessusSc"
}
],
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 83,
"Count": 4,
"LastRowKey": "CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAGYXFWIAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM1Mzc3Njc4MzA2ODY5NmI2YTY1Nzg2NTcxNjE2NDc4NjE="
},
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "E0C5C07F-1576-509A-AE44-1C36B8445B37",
"HttpStatusCode": 200
}
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.