Skip to content

exportPolicyViolationsCsv

Trigger an asynchronous CSV export of policy violations matching the provided filters. Returns an identifier that can be used to poll for export status and retrieve the final download link.

Arguments

Argument Type Description
input (required) ExportPolicyViolationsCsvInput! Filters and column selection for the CSV export.

Returns

ExportPolicyViolationsCsvReply!

Sample

mutation ExportPolicyViolationsCsv($input: ExportPolicyViolationsCsvInput!) {
  exportPolicyViolationsCsv(input: $input) {
    downloadId
  }
}
{
  "input": {
    "policyTypes": [
      "POLICY_TYPE_CROWDSTRIKE"
    ]
  }
}
{
  "data": {
    "exportPolicyViolationsCsv": {
      "downloadId": 0
    }
  }
}