Queries the number of vulnerabilities at each severity detected in a security scan task.

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 GetRepoTagScanSummary

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

InstanceId String Yes cri-2j88dtld8yelxp6i

The ID of the Container Registry Enterprise Edition instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

RepoId String Yes crr-uf082u9dg8dorp5f

The ID of the image repository.

Tag String Yes 1

The tag of the images scanned in the image repository.

ScanTaskId String No 6b0b094f-8a90-4f8f-b660-2427aed0d1fa

The ID of the security scan task.

Response parameters

Parameter Type Example Description
Code String success

The code returned for the request.

HighSeverity Integer 22

The number of vulnerabilities at the high severity.

IsSuccess Boolean true

Indicates whether the request is successful.

LowSeverity Integer 89

The number of vulnerabilities at the low severity.

MediumSeverity Integer 81

The number of vulnerabilities at the medium severity.

RequestId String 9FD778B0-6D62-4B36-AD30-D0B0D99916B3

The ID of the request.

TotalSeverity Integer 196

The total number of vulnerabilities detected on images.

UnknownSeverity Integer 4

The number of vulnerabilities at the unknown severity.

Examples

Sample requests

http(s)://[Endpoint]/? Action=GetRepoTagScanSummary
&InstanceId=cri-2j88dtld8yelxp6i
&RegionId=cn-shanghai
&RepoId=crr-uf082u9dg8dorp5f
&Tag=1
&<Common request parameters>

Sample success responses

XML format

<code>200</code>
<data>
    <IsSuccess>true</IsSuccess>
    <RequestId>9FD778B0-6D62-4B36-AD30-D0B0D99916B3</RequestId>
    <LowSeverity>89</LowSeverity>
    <MediumSeverity>81</MediumSeverity>
    <HighSeverity>22</HighSeverity>
    <UnknownSeverity>4</UnknownSeverity>
    <Code>success</Code>
    <TotalSeverity>196</TotalSeverity>
</data>
<requestId>9FD778B0-6D62-4B36-AD30-D0B0D99916B3</requestId>
<successResponse>true</successResponse>

JSON format

{
    "code":"200",
    "data":{
        "IsSuccess":true,
        "RequestId":"9FD778B0-6D62-4B36-AD30-D0B0D99916B3",
        "LowSeverity":89,
        "MediumSeverity":81,
        "HighSeverity":22,
        "UnknownSeverity":4,
        "Code":"success",
        "TotalSeverity":196
    },
    "requestId":"9FD778B0-6D62-4B36-AD30-D0B0D99916B3",
    "successResponse":true
}

Error codes

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