Get a script run
Return one script run: the script as executed (including its source), the resolved target, and the count of executions in each status. This is the endpoint to poll after runScript to follow progress.
For the per-device outcomes, use getScriptRunExecutions.
Executions are reconciled with FleetDM by a background sweep that runs every 15 minutes, so a freshly created run reads back as pending until the next sweep. Poll no more often than that.
Authorizations
Use your Primo API key in the Authorization header as Bearer <API_KEY>.
Path Parameters
Response
The target as recorded, with group and device names resolved.
- Option 1
- Option 2
- Option 3
macos, windows, linux Who triggered the run — a user name, or the name of the API key that called this endpoint.
Number of executions in each status.
Number of devices the run resolved to.
Overall state, derived from the executions: running while any is still pending.
running, success, failed, cancelled ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Full source of the script as executed, kept even if the script later changes.