Queries the sensitive files of an image.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeImageSensitiveFileByKey |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SensitiveFileKey |
string |
No |
The sensitive file alerting type. Valid values:
|
google_oauth_key |
| ImageUuid |
string |
No |
The UUID of the image. |
0083a31ccf7c10367a6e783e8601**** |
| 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 of the page to return. Default value: 1. |
1 |
| PageSize |
integer |
No |
The maximum number of entries per page in paging query. Default value: 20. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response for querying sensitive files of an image. |
||
| SensitiveFileList |
array<object> |
The list of sensitive files in the image. |
|
|
object |
The sensitive file information. |
||
| FilePath |
string |
The file path. |
/usr/lib/abc.txt |
| LayerDigest |
string |
The digest of the image layer. |
0083a31cc0083a31ccf7c10367a6e783e8601e290f7c10367a6e783e860**** |
| Promt |
string |
The sensitive content. |
AKPIDteow289f9s************ |
| Advice |
string |
The suggestion. |
Assess risks based on business conditions, remove risky content, and rebuild image |
| RiskLevel |
string |
The risk level. Valid values:
|
low |
| SensitiveFileKey |
string |
The sensitive file alerting type. Valid values:
|
google_oauth_key |
| SensitiveFileName |
string |
The name of the sensitive file alerting type. |
Google OAuth Key |
| FirstScanTime |
integer |
The timestamp of the first scan. Unit: milliseconds. |
1663321552000 |
| LastScanTime |
integer |
The timestamp of the most recent scan. Unit: milliseconds. |
1663691592000 |
| Description |
string |
The description of the sensitive file. |
Verify the validity of the leaked AK. |
| Md5 |
string |
The MD5 hash value of the sensitive file. |
b484b0dff093f358897486b58266**** |
| PageInfo |
object |
The pagination information of the query result. |
|
| CurrentPage |
integer |
The page number of the current page in the paging query. |
1 |
| PageSize |
integer |
The maximum number of entries per page in the paging query. |
20 |
| TotalCount |
integer |
The total number of entries returned. |
100 |
| Count |
integer |
The number of entries on the current page. |
2 |
| LastRowKey |
string |
The key of the last entry. |
CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAGYXFWIAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM1Mzc3Njc4MzA2ODY5NmI2YTY1Nzg2NTcxNjE2NDc4NjE= |
| Success |
boolean |
The status of the query result. Valid values:
|
true |
| Code |
string |
The service status code. A value of 200 indicates that the request was successful. |
200 |
| Message |
string |
The detailed information about the error code. |
successful |
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
CE500770-42D3-442E-9DDD-156E0F9F3B45 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
Examples
Success response
JSON format
{
"SensitiveFileList": [
{
"FilePath": "/usr/lib/abc.txt",
"LayerDigest": "0083a31cc0083a31ccf7c10367a6e783e8601e290f7c10367a6e783e860****",
"Promt": "AKPIDteow289f9s************",
"Advice": "Assess risks based on business conditions, remove risky content, and rebuild image",
"RiskLevel": "low",
"SensitiveFileKey": "google_oauth_key",
"SensitiveFileName": "Google OAuth Key",
"FirstScanTime": 1663321552000,
"LastScanTime": 1663691592000,
"Description": "Verify the validity of the leaked AK.",
"Md5": "b484b0dff093f358897486b58266****"
}
],
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 100,
"Count": 2,
"LastRowKey": "CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAGYXFWIAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM1Mzc3Njc4MzA2ODY5NmI2YTY1Nzg2NTcxNjE2NDc4NjE="
},
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "CE500770-42D3-442E-9DDD-156E0F9F3B45",
"HttpStatusCode": 200
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.