Policy Runs v2
policy_runs_v2List policy runs with time-range, policy name/type, and result status filters. Returns device outcome counts per run using the Policy History v2 API.
Instructions
List policy runs with time-range filtering, policy name/type filters, and result status filtering. Uses the Policy History v2 API for richer data than the standard policy execution timeline. Each run's device_outcomes (pending/success/failed/not_included/remediation_not_applicable/blocked) are DEVICE COUNTS per outcome for that run, not run statuses. result_status filters with any-device-with-this-outcome semantics: a run matches when AT LEAST ONE device had that outcome — it does NOT mean every device did (live-verified 2026-06-05: result_status='failed' returns runs with 1 failed device alongside 200+ not-failed). The same run can match multiple result_status values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| sort | No | ||
| limit | No | ||
| end_time | No | ||
| start_time | No | ||
| policy_name | No | ||
| policy_type | No | ||
| policy_uuid | No | ||
| output_format | No | json | |
| result_status | No |