v1

latestOpenAPI 3.0.3FortiCNAPP Use License2026-08-041754351.1 MB
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

returnsstring[]

Use this attribute to specify which top-level fields of the response schema you want to receive.

Response

No Error (List of Vulnerability Policies)