Fetch Vulnerability Count for an Image

Shows the vulnerability count for an image.

GET/v1.3/images/{imageSha}/vuln/count

Input ParametersInput Parameters

Parameter

Mandatory/Optional

Data Type

Description

imageSha

Mandatory

string

Specify the SHA value of a specific image in the user’s scope.

SampleSample

API request

    curl -X GET 
"<qualys_base_url>/csapi/v1.3/images/5d556c82899c/vuln/count" --header "Authorization: Bearer <token>"

Response

    {
    "severity5Count": 0,
    "severity3Count": 0,
    "severity4Count": 0,
    "severity1Count": 0,
    "severity2Count": 2
}    

Error Response

The following error response is seen when the sub-users don't have permission to the specified image.

    {  
    "errorCode": "403 FORBIDDEN",  
    "message": "Request Forbidden",  
    "timestamp": 1700721586546
    }