NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Devices → Count Devices for Domain

AI-generated

Summary

Count devices for a domain

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • GetDomainsByDevicesCount__path__domain (required) — Domain for which to count devices
  • GetDomainsByDevicesCount__pagination__returnAll — Whether to fetch all results by paging through the API
  • GetDomainsByDevicesCount__pagination__start — Start index for pagination
  • GetDomainsByDevicesCount__pagination__limit — Maximum number of results per page

Output shape

a single numeric count of devices for the selected domain

If pagination is disabled (returnAll true) the operation returns a single count value; with pagination enabled it may return a paginated list of domain entries with their counts.

Examples

Example 1: Count devices for domain example.com using default settings

Domain: example.com; refreshOptions: false; returnAll: true

Example 2: Count devices for a custom domain with explicit pagination

Domain: mycompany.com; start: 0; limit: 100; returnAll: false

Example 3: Force fresh dropdown cache before counting

Domain: test.com; refreshOptions: true

Links

Discussion