Queries the number of vulnerabilities for each severity level. These vulnerabilities are detected in a security scan that is created for an image version.

Request information

Request line

GET /repos/RepoNamespace/RepoName/tags/Tag/scanCount HTTP/1.1

Request line parameters

Parameter Parameter location Type Required Sequence Example Description
RegionId Host String No 200 cn-shanghai The ID of the region.
RepoNamespace Path String Yes 200 ns1 The name of the namespace.
RepoName Path String Yes 200 repo1 The name of the image repository.
Tag Path String Yes 200 1 The name of the image version.

Operation-specific request headers

None.

Request body

None.

Request body parameters

None.

Response information

Response line

HTTP/1.1 200 OK

Operation-specific response headers

None.

Response body

{
    "code":"",
    "data": {},
    "requestId":"",
    "successResponse":""
}

Examples

Sample requests

GET /repos/RepoNamespace/RepoName/tags/Tag/scanCount HTTP/1.1 
Common request header { "RepoName": "repo1" "RepoNamespace": "ns1" "Tag": "1" }

Sample responses

HTTP/1.1 200 OK
<Common response headers>
{
    "code":"200",
    "data":{
        "data":{
            "totalSeverity":106,
            "highSeverity":20,
            "lowSeverity":39,
            "unknownSeverity":2,
            "mediumSeverity":45
        }
    },
    "requestId":"0be3e0cb15808896462096998e****",
    "successResponse":true
}