Addigy icon

Addigy

Interact with Addigy API for Apple device management

Device → Count

AI-generated

Summary

Count devices in an Addigy environment, optionally filtered by policy, search text, or fact criteria.

Inputs

  • countFilters — Optional collection of filters such as policy ID, search text, and fact filters to narrow the count.

Output shape

object containing a numeric total field and an optional metadata object representing API response metadata

Returns a single item; if no filters are applied it returns the total count of all devices.

Examples

Example 1: Count devices in a specific policy

Set countFilters.policyId to the desired policy name or ID; leave other filters empty.

Example 2: Count devices matching a search term

Set countFilters.searchAny to the text you want to search across device fields.

Example 3: Count devices with a specific fact value

Add a fact filter: factName set to the fact key (e.g., "os_version"), operator "equals", value to the desired version, and optionally set type.

Links

Discussion