Auto-close vulnerabilities API
The Auto-close vulnerabilities API can be applied to vulnerabilities imported by using the following methods:
- Manually imported scan files
- Imported by using the following external scanner connectors:
The scan policies generated by using these external scanner connectors automatically close the vulnerabilities.
- Imported by using the following Vulnerability scan APIs:
- Run the POST/api/v2/policies/vulnerability-scans API to create a new vulnerability scan policy.
- Next, run the POST/api/v2/policies/vulnerability-scans/{policy_id}/vulnerabilities API to generate the list of vulnerabilities for the specified vulnerability scan policy.
If the API from step 2 generates the header SKIP-RECONCILE = true, run the
POST
/api/v2/policies/{policy_id}/reconcile API for post-processing of Vulnerability Asset Records.
To use the Auto-close vulnerabilities API
POST/api/v3/violations/close/auto-closure/vats
Description | Closes the vulnerabilities for assets based on the Last Observed Date. |
---|---|
Type of call | POST |
Request Body | { |
Important considerations |
|
Activity status
get/automation-console/api/v1/activities/{id}
Description | Returns the activity status details. | ||||||
---|---|---|---|---|---|---|---|
Request Parameters | Specify the Task ID {id}. | ||||||
Request Body | None | ||||||
Execution response | The following table lists the responses returned by the API:
|
Limitations
Make sure that the Vulnerability Asset Records do not overlap across policies so that vulnerabilities are not auto-closed incorrectly across policies.