Get Fixed Vulnerabilities List

Use this API to fetch the count of successfully installed patches and successfully fixed vulnerabilities. 

POST/pm/v1/deploymentjobresults/successfullyFixedQids

Input ParametersInput Parameters

Parameter

Mandatory/Optional

Data Type

Description

sessionId

Mandatory

string

Provide the session ID.
Example:QualysSession=26dda90859ac0e8a2bfe6b4d2e6b3dfd

 

Note: To generate the session id, refer to the Session Login section from the Qualys API (VM, PC) User Guide.

Sample - Get the Fixed Vulnerabilities ListSample - Get the Fixed Vulnerabilities List

API request

    
  curl -X 'POST' \
  '<qualys_base_url>/pm/v1/deploymentjobresults/successfullyFixedQids' \
  -H 'accept: application/json' \
  -H 'sessionId: QualysSession=26dda90859ac0e8a2bfe6b4d2e6b3dfd' \
  -H 'Authorization: Bearer <<jwt token>>' \ 
  -H 'Content-Type: application/json' \
  -d '{
  "includeTags": [],
  "excludeTags": [],
  "includeMatchType": "ANY",
  "excludeMatchType": "ANY",
  "startDate": "2023-01-01T05:35:32.351Z",
  "endDate": "2024-01-03T07:35:32.351Z",
  "offset": "+05:30"
}'

Request Body - Specify the following details to get the fixed vulnerabilities list

    
{
  "includeTags": [],
  "excludeTags": [],
  "includeMatchType": "Any",
  "excludeMatchType": "Any",
  "startDate": "2023-01-01T05:35:32.351Z",
  "endDate": "2024-01-03T07:35:32.351Z",
  "offset": "+05:30"
}
    

Response

    
 [
  {
    "data": [
      {
        "type": "Patches Installed",
        "count": 8
      },
      {
        "type": "Vulnerabilities Fixed",
        "count": 0
      }
    ],
    "count": 0,
    "platform": "Linux"
  },
  {
    "data": [
      {
        "type": "Patches Installed",
        "count": 1
      },
      {
        "type": "Vulnerabilities Fixed",
        "count": 0
      }
    ],
    "count": 0,
    "platform": "Windows"
  },
  {
    "data": [
      {
        "type": "Patches Installed",
        "count": 2
      },
      {
        "type": "Vulnerabilities Fixed",
        "count": 0
      }
    ],
    "count": 0,
    "platform": "Mac"
  }
]