Queries the check results of image baselines that are included in an image scan task.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RiskLevel | string | No | The severity of the image baseline that you want to query. Separate multiple severities with commas (,). Valid values:
| high |
Criteria | string | No | The search condition for the image baseline. | Unauthorized access |
CriteriaType | string | No | The type of the search condition. Valid values:
| BaselineNameAlias |
PageSize | integer | No | The number of entries to return on each page. Default value: 20. | 20 |
CurrentPage | integer | No | The number of the page to return. Pages start from page 1. Default value: 1. | 1 |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
ClusterId | string | No | The ID of the specified container cluster. Note
You can call the DescribeGroupedContainerInstances operation to query the ID of the container cluster.
| 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:
| container |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "5BD95679-D63A-4151-97D0-188432F4A57",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 3,
"Count": 3
},
"BaselineResultSummary": [
{
"Status": 0,
"MiddleRiskImage": 0,
"BaselineNameLevel": "high",
"LastScanTime": 1626628760000,
"HighRiskImage": 15,
"BaselineNameKey": "hc_image_exploit",
"BaselineClassKey": "hc_image_exploit",
"BaselineNameAlias": "Unauthorized access",
"BaselineClassAlias": "Unauthorized access",
"FirstScanTime": 1626628760000,
"LowRiskImage": 0
}
]
}
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 |
---|---|---|
2022-09-16 | The request parameters of the API has changed | View Change Details |
2022-09-16 | The request parameters of the API has changed | View Change Details |
2022-01-18 | Add Operation | View Change Details |