Actions60
- Agent Actions
- Alert Actions
- Box Actions
- Extension Actions
- Flag Actions
- Location Actions
- Organization Actions
- Policy Actions
- Quarantined File Actions
- Report Actions
- Suppression Rule Actions
- Target Actions
- User Actions
- Webhook Actions
Target → Count
AI-generatedSummary
Return the number of Datto EDR target groups, optionally narrowed by filter conditions on name or organization. Calls GET Targets/count with a LoopBack where clause.
Inputs
- Filters — Zero or more conditions, each with a Field (Name or Organization ID), an Operator (Equals, Not Equals, Contains, Greater/Less Than or Equal, In List comma-separated) and a Value. Conditions are combined into one where clause, so they act as AND. Conditions with an empty value are skipped. Eq/gt/gte/lt/lte values that look numeric are sent as numbers. Contains is sent as %value%. In List splits the value on commas. If two conditions use the same field, the later one overwrites the earlier one. With no conditions, all targets are counted.
Output shape
A single item containing the API's count response, which is typically an object like {"count": N}.
The exact response shape comes from the Datto EDR API and is not transformed by the node. API errors (401, 403, 404, 429) are raised as node errors, or returned as {error} items if Continue On Fail is enabled.
Examples
Example 1: Count all target groups in the account
Resource: Target, Operation: Count, no filters
Example 2: Count targets whose name contains 'Server'
Filters: Field=Name, Operator=Contains, Value=Server