v1

latestOpenAPI 3.0.3FortiCNAPP Use License2026-08-041754351.1 MB
Queries

Create Queries

Create a FortiCNAPP Query Language (LQL) query by specifying parameters in the request body when invoking the following endpoint:

POST https://YourAccount.lacework.net/api/v2/Queries

This creates the LQL query in your FortiCNAPP instance so you can use it in an LQL custom policy and view it in the FortiCNAPP Console. You can get the unique identifiers for the LQL queries (queryIdList) array by invoking the GET /api/v2/Queries endpoint.

For information on creating queries, including information on specifying data sources, filtering, and returning data with the DISTINCT operator, see LQL Overview.

post/api/v2/Queries

Headers

Authorizationstring required

Bearer Access Token. For example, "Bearer {YourAPIToken}"

Content-Typestring required

application/json

Request body

queryTextstring required

When sending a request, provide a human-readable text syntax for specifying selection, filtering, and manipulation of data.

queryIdstring required

Identifier of the query that executes while running the policy.

Response

No Error