Queries risk information about container images.

Security Center can scan for security risks and collect statistics only for instances of the Container Registry Enterprise edition.

Note Security Center cannot scan for security risks or collect statistics for default Container Registry instances.

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 DescribeImageStatistics

The operation that you want to perform.

Set the value to DescribeImageStatistics.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
InstanceCount Integer 5

The number of container images in your assets. Only instances of the Container Registry Enterprise edition are calculated.

RequestId String 4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D

The ID of the request.

RiskInstanceCount Integer 2

The number of container images that have security risks. Only instances of the Container Registry Enterprise edition are calculated.

Examples

Sample requests

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

Sample success responses

XML format

<DescribeImageStatisticsResponse>
      <InstanceCount>5</InstanceCount>
      <RequestId>4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D</RequestId>
      <RiskInstanceCount>2</RiskInstanceCount>
</DescribeImageStatisticsResponse>

JSON format

{
    "InstanceCount": "5",
    "RequestId": "4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D",
    "RiskInstanceCount": "2"
}

Error codes

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