Count the devices a script run would reach
Scripts
Count the devices a script run would reach
Return how many devices a run with this target and these platforms would resolve to, using exactly the same resolution as runScript. Nothing is executed. Call this before runScript to check the blast radius, especially with target.type = "all".
POST
Count the devices a script run would reach
Key: Read
Scope: Company
Authorizations
Use your Primo API key in the Authorization header as Bearer <API_KEY>.
Body
application/json
Which devices to run on, intersected with platforms. Resolved once at trigger time — devices joining a group later are not included.
- Option 1
- Option 2
- Option 3
Platforms to run on. The target is intersected with this list, and a saved script must support them.
Minimum array length:
1Available options:
macos, windows, linux Response
default - application/json
Number of devices a run with this target and these platforms would reach.