Reports
Get a specific report by invoking the following endpoint:
GET https://YourAccount.lacework.net/api/v2/Reports?primaryQueryId={primaryQueryId}&secondaryQueryId={secondaryQueryId}&format={format}&reportType={reportType}&severity={severity}&status={status}
Examples:
GET https://YourAccount.lacework.net/api/v2/Reports?primaryQueryId=343523252&format=json&reportType=HIPAA&severity=critical,high,medium&status=Compliant,NonCompliant
Query parameters
The primary ID that is used to fetch the report; for example, AWS Account ID or Azure Tenant ID.
Note: For GCP, use the secondaryQueryId attribute to provide your GCP Project ID.
The secondary ID that is used to fetch the report; for example, GCP Project ID or Azure Subscription ID.
Note: For AWS, this parameter is not required.
Use the GCP Projects or Azure Subscriptions endpoints in the Configurations API to get the IDs to use. Be sure to provide only the ID as this parameter value, excluding the project or subscription alias. That is, use "81A2D8F9-F8B6-3A5D-B3C7-99680EF0B89F", not "81A2D8F9-F8B6-3A5D-B3C7-99680EF0B89F (Pay-As-You-Go)".
The report's format.
The name of the report type in API format, for example, AZURE_NIST_CSF_CIS_1_5. See Compliance Frameworks for a list of available reports.
Note: Use reportName to get the report by the report definition's name instead.
Severities to filter the report on, e.g. severity=critical,high,medium.
Statuses to filter the report on, e.g. status=Compliant,NonCompliant.
Headers
Bearer Access Token. For example, "Bearer {YourAPIToken}"
application/json
Response
No Error (List of Reports)