Queries baseline vulnerabilities of a cloud security scan task by paging.
Operation description
Before calling this operation, scan the image by using the cloud security engine.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:ListScanBaseline |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The instance ID. |
cri-*********** |
| PageNo |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The page size. |
30 |
| Level |
string |
No |
The level. |
High |
| RepoId |
string |
No |
The repository ID. |
crr-************** |
| Tag |
string |
No |
The image version. |
1.1.36 |
| Digest |
string |
No |
The image digest value. |
sha256:1c89806cfaf66d2990e2cf1131ebd56ff24b133745a33abf1228************* |
| ScanTaskId |
string |
No |
The image scan task ID. |
3e526d7e-4b45-4703-b046-*********** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
5259118F-79E2-57E9-9AEA-551586F4FAED |
| Code |
integer |
The return code. |
success |
| PageNo |
integer |
The page number. |
1 |
| IsSuccess |
boolean |
Indicates whether the API call is successful. Valid values:
|
true |
| PageSize |
integer |
The number of entries per page. |
30 |
| TotalCount |
integer |
The total number of entries. |
2 |
| ScanBaselines |
array<object> |
The baseline list. |
|
|
object |
The baseline list. |
||
| ScanTaskId |
string |
The image scan task ID. |
2328fcaa-f28a-405d-a357-asdvfrew23 |
| BaselineClassAlias |
string |
The baseline check category. |
Service Configuration |
| BaselineNameAlias |
string |
The baseline check name. |
Service Configuration |
| BaselineNameLevel |
string |
The baseline check risk level. |
high |
| LowRiskItemCount |
integer |
The number of low-risk items. |
1 |
| MiddleRiskItemCount |
integer |
The number of medium-risk items. |
1 |
| HighRiskItemCount |
integer |
The number of high-risk items. |
1 |
| BaselineItemCount |
integer |
The number of baseline check items. |
1 |
| BaselineNameKey |
string |
The baseline name key. |
ak_leak |
| FirstScanTime |
integer |
The time of the first scan. |
2024-04-10 15:33:26 |
| BaselineDetailDescription |
string |
The baseline description. |
Access Key stored in plaintext |
| BaselineDetailPrompt |
string |
The baseline check path and content. |
usr/local/www/project/environments/dev/common/config/paramsxxx |
| BaselineDetailAdvice |
string |
The baseline check remediation suggestion. |
Obfuscate and encrypt the AccessKey to prevent exploitation |
| CreateTime |
integer |
The creation time, in UNIX timestamp format. Unit: milliseconds. |
1695090008000 |
| UpdateTime |
integer |
The update time, in UNIX timestamp format. Unit: milliseconds. |
1684220824226 |
Examples
Success response
JSON format
{
"RequestId": "5259118F-79E2-57E9-9AEA-551586F4FAED",
"Code": 0,
"PageNo": 1,
"IsSuccess": true,
"PageSize": 30,
"TotalCount": 2,
"ScanBaselines": [
{
"ScanTaskId": "2328fcaa-f28a-405d-a357-asdvfrew23",
"BaselineClassAlias": "服务配置",
"BaselineNameAlias": "服务配置",
"BaselineNameLevel": "high",
"LowRiskItemCount": 1,
"MiddleRiskItemCount": 1,
"HighRiskItemCount": 1,
"BaselineItemCount": 1,
"BaselineNameKey": "ak_leak",
"FirstScanTime": 0,
"BaselineDetailDescription": "Access Key明文存储",
"BaselineDetailPrompt": "usr/local/www/project/environments/dev/common/config/paramsxxx",
"BaselineDetailAdvice": "建议对ak混淆加密,避免被利用",
"CreateTime": 1695090008000,
"UpdateTime": 1684220824226
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.