datto_edr_agents_count
Count EDR agents matching filters such as online status, hostname, IP, or heartbeat time to answer how many agents are offline or stale.
Instructions
Count agents matching the same filters as datto_edr_agents_list (GET /api/Agents/count). Useful for "how many agents are offline" questions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | Exact IP address (ipstring) | |
| where | No | Extra LoopBack where filter, combined with AND, e.g. {"hostname":{"ilike":"%sql%"}}. Operators: eq, neq, gt, gte, lt, lte, between, inq, nin, like, ilike, and, or. Use datto_edr_api_models to see a model's properties. | |
| active | No | true = agent currently active/online | |
| hostname | No | Exact hostname | |
| authorized | No | true = agent approved/authorized | |
| last_seen_after | No | Only agents with a heartbeat at or after this ISO date/time | |
| last_seen_before | No | Only agents whose last heartbeat is at or before this ISO date/time (stale agents) | |
| hostname_contains | No | Case-insensitive hostname substring (LoopBack ilike) |