Fetch Vulnerability Count for a Container 

Shows vulnerability count for a container.

GET/v1.3/containers/{containerSha}/vuln/count

Input ParametersInput Parameters

Parameter

Mandatory/Optional

Data Type

Description

containerSha

Mandatory

string

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

SampleSample

API request

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

Response

    {
    "severity5Count": 0,
    "severity3Count": 3,
    "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 containerSha.

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