Queries the security scan results of images.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ImageUuid | string | Yes | The UUID of the image. | a910053dd4710173ecc9e9d8931f**** |
| RiskLevel | string | No | The severity of the image baseline that you want to query. Separate multiple severities with commas (,). By default, all valid values are used. Valid values:
| high,medium,low |
| Criteria | string | No | The search condition for the image baseline. | ak_leak |
| 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. Default value: 1. | 1 |
| Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
| 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:
| image |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "24A20733-10A0-4AF6-BE6B-E3322413****",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 100,
"Count": 10
},
"BaselineResult": [
{
"Status": 1,
"LowRiskItemCount": 10,
"BaselineNameLevel": "high",
"LastScanTime": 1610304058301,
"MiddleRiskItemCount": 1,
"BaselineNameKey": "identification",
"BaselineItemCount": 5,
"BaselineNameAlias": "Identity authentication\n",
"BaselineClassAlias": "identification",
"FirstScanTime": 1610304058366,
"HighRiskItemCount": 1
}
]
}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 |
|---|---|---|
| 2024-09-24 | The Error code has changed | View Change Details |
