Queries security risk information about container images.

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

Note Security Center cannot scan for security risks or collect statistics for instances of Container Registry Default Instance Edition.

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.

Response parameters

Parameter Type Example Description
InstanceCount Integer 5

The number of container images in your assets. Only instances of Container Registry Enterprise Edition count.

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 Container Registry Enterprise Edition count.

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.