Queries the image baseline risks that are detected by container image scan.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeImageBaselineCheckSummary

The operation that you want to perform. Set the value to DescribeImageBaselineCheckSummary.

RiskLevel String No high

The severity of the image baseline risk. Separate multiple severities with commas (,). Valid values:

  • high
  • medium
  • low
Criteria String No Identity authentication

The condition that is used to query the image baseline risk.

CriteriaType String No BaselineNameAlias

The type of the condition. Valid values:

  • BaselineNameAlias: baseline name
  • BaselineClassAlias: baseline category
PageSize Integer No 20

The number of entries to return on each page. Default value: 20.

CurrentPage Integer No 1

The number of the page to return. Pages start from page 1. Default value: 1.

Lang String No zh

The natural language of the request and response. Default value: zh. Valid values:

  • zh: Chinese
  • en: English

Response parameters

Parameter Type Example Description
BaselineResultSummary Array of BaselineResultSummary

The details of image baseline risks.

BaselineClassAlias String Unauthorized access

The category of the baseline.

BaselineClassKey String hc_image_exploit

The key of the baseline category.

BaselineNameAlias String Unauthorized access

The name of the baseline.

BaselineNameKey String hc_image_exploit

The key of the baseline name.

BaselineNameLevel String high

The severity of the image baseline risk. Valid values:

  • high
  • medium
  • low
FirstScanTime Long 1626628760000

The UNIX timestamp of when the first scan was performed. Unit: milliseconds.

HighRiskImage Integer 15

The number of affected images that are at high risk.

LastScanTime Long 1626628760000

The UNIX timestamp of when the last scan was performed. Unit: milliseconds.

LowRiskImage Integer 0

The number of affected images that are at low risk.

MiddleRiskImage Integer 0

The number of affected images that are at medium risk.

Status Integer 0

Indicates whether the image baseline risk is fixed. Valid values:

  • 0: unfixed
  • 1: fixed
  • 2: pending verification
  • 3: fix failed
PageInfo Struct

The pagination information.

Count Integer 3

The number of entries returned on the current page.

CurrentPage Integer 1

The page number of the current page.

PageSize Integer 20

The number of entries returned per page. Default value: 20.

TotalCount Integer 3

The total number of returned entries.

RequestId String 5BD95679-D63A-4151-97D0-188432F4A57

The ID of the request, which is used to locate and troubleshoot issues.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeImageBaselineCheckSummary
&<Common request parameters>

Sample success responses

XML format

<PageInfo>
    <TotalCount>3</TotalCount>
    <PageSize>20</PageSize>
    <CurrentPage>1</CurrentPage>
    <Count>3</Count>
</PageInfo>
<BaselineResultSummary>
    <Status>0</Status>
    <BaselineClassKey>hc_image_exploit</BaselineClassKey>
    <BaselineClassAlias>Unauthorized access</BaselineClassAlias>
    <LowRiskImage>0</LowRiskImage>
    <FirstScanTime>1615426849000</FirstScanTime>
    <BaselineNameAlias>Unauthorized access</BaselineNameAlias>
    <MiddleRiskImage>0</MiddleRiskImage>
    <HighRiskImage>289</HighRiskImage>
    <BaselineNameLevel>high</BaselineNameLevel>
    <LastScanTime>1626628760000</LastScanTime>
    <BaselineNameKey>hc_image_exploit</BaselineNameKey>
</BaselineResultSummary>
<BaselineResultSummary>
    <Status>0</Status>
    <BaselineClassKey>identification</BaselineClassKey>
    <BaselineClassAlias>Identity authentication</BaselineClassAlias>
    <LowRiskImage>0</LowRiskImage>
    <FirstScanTime>1611153063000</FirstScanTime>
    <BaselineNameAlias>Identity authentication</BaselineNameAlias>
    <MiddleRiskImage>0</MiddleRiskImage>
    <HighRiskImage>1872</HighRiskImage>
    <BaselineNameLevel>high</BaselineNameLevel>
    <LastScanTime>1626147646000</LastScanTime>
    <BaselineNameKey>identification</BaselineNameKey>
</BaselineResultSummary>
<BaselineResultSummary>
    <Status>0</Status>
    <BaselineClassKey>service_config</BaselineClassKey>
    <BaselineClassAlias>Service configuration</BaselineClassAlias>
    <LowRiskImage>0</LowRiskImage>
    <FirstScanTime>1616136480000</FirstScanTime>
    <BaselineNameAlias>Service configuration</BaselineNameAlias>
    <MiddleRiskImage>0</MiddleRiskImage>
    <HighRiskImage>52</HighRiskImage>
    <BaselineNameLevel>high</BaselineNameLevel>
    <LastScanTime>1626107236000</LastScanTime>
    <BaselineNameKey>service_config</BaselineNameKey>
</BaselineResultSummary>
<requestId>5BD95679-D63A-4151-97D0-188432F4A57</requestId>

JSON format

{
    "PageInfo": {
        "TotalCount": 3,
        "PageSize": 20,
        "CurrentPage": 1,
        "Count": 3
    },
    "BaselineResultSummary": [
        {
            "Status": 0,
            "BaselineClassKey": "hc_image_exploit",
            "BaselineClassAlias": "Unauthorized access",
            "LowRiskImage": 0,
            "FirstScanTime": 1615426849000,
            "BaselineNameAlias": "Unauthorized access",
            "MiddleRiskImage": 0,
            "HighRiskImage": 289,
            "BaselineNameLevel": "high",
            "LastScanTime": 1626628760000,
            "BaselineNameKey": "hc_image_exploit"
        },
        {
            "Status": 0,
            "BaselineClassKey": "identification",
            "BaselineClassAlias": "Identity authentication",
            "LowRiskImage": 0,
            "FirstScanTime": 1611153063000,
            "BaselineNameAlias": "Identity authentication",
            "MiddleRiskImage": 0,
            "HighRiskImage": 1872,
            "BaselineNameLevel": "high",
            "LastScanTime": 1626147646000,
            "BaselineNameKey": "identification"
        },
        {
            "Status": 0,
            "BaselineClassKey": "service_config",
            "BaselineClassAlias": "Service configuration",
            "LowRiskImage": 0,
            "FirstScanTime": 1616136480000,
            "BaselineNameAlias": "Service configuration",
            "MiddleRiskImage": 0,
            "HighRiskImage": 52,
            "BaselineNameLevel": "high",
            "LastScanTime": 1626107236000,
            "BaselineNameKey": "service_config"
        }
    ],
    "requestId": "5BD95679-D63A-4151-97D0-188432F4A57"
}

Error codes

For a list of error codes, visit the API Error Center.