VulnerabilityPolicies
Search Vulnerability Policies
Search vulnerability policies by invoking the following endpoint:
POST https://YourAccount.lacework.net/api/v2/VulnerabilityPolicies/search
To limit the returned result, optionally specify one or more filters in the request body. For more information about using filters, see the Simple & Advanced Search section.
In the request body, optionally specify the list of fields to return in the response by specifying the list in the returns array. Here are some example body payloads:
- { "filters": [ { "field": "policyType", "expression": "eq", "value": "DockerFile" } ] }
- { "filters": [ { "field": "PolicyType", "expression": "eq", "value": "CVE" },
{ "field": "createdTime", "expression": "gt", "value": "2021-01-01" } ],
"returns": [ "name", "policyType", "createdTime" ] }
post/api/v2/VulnerabilityPolicies/search
Headers
Authorizationstring required
Bearer Access Token. For example, "Bearer {YourAPIToken}"
Content-Typestring required
application/json
Request body
Response
No Error (List of Vulnerability Policies)