Queries the results of a security scan that is created for an image version.

Request information

Request line

GET /repos/RepoNamespace/RepoName/tags/Tag/scanResult 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 image version.
Page Query Integer No 200 1 The page number of the returned page.
PageSize Query Integer No 200 30 The number of entries to return on each page.
Severity Query String No 200 High The severity of detected vulnerabilities. Valid values: High, Medium, Low, and Unknown.

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/scanStatus 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":{
            "total":20,
            "vulnerabilities":[{
                    "severity":"High",
                    "feature":"glibc",
                    "cveLink":"https://security-tracker.debian.org/tracker/CVE-2014-***",
                    "cveName":"CVE-2014-***",
                    "addedBy":"sha256:1234567a16157bef859e9c99db9b820ab756c9bd68ee2dda8f2b2b9c62f6***",
                    "description":"description.",
                    "versionFormat":"dpkg",
                    "version":"1.1.0"
                }
            ],
            "pageSize":30,
            "page":1
        }
    },
    "requestId":"0be3e0bb15808902635677736e***",
    "successResponse":true
}