NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Devices → Count Devices for User

AI-generated

Summary

Count devices for a given user and domain.

Inputs

  • refreshOptions — Bypass cached dropdown values and fetch fresh options
  • CountDevices__path__domain (required) — Domain to query, e.g., example.com
  • CountDevices__path__user (required) — User identifier, e.g., 1001
  • CountDevices__pagination__returnAll — Whether to fetch all results by paging through the API
  • CountDevices__pagination__start — Start index for pagination (only used when returnAll is false)
  • CountDevices__pagination__limit — Page size limit (only used when returnAll is false)

Output shape

a single numeric count

Returns the total number of devices; when pagination is used the count reflects the fetched page(s) and may be limited by start and limit parameters.

Examples

Example 1: Count devices for user 1001 in domain example.com, returning all results

Set User to 1001, Domain to example.com, enable Return All Results

Example 2: Count devices with custom pagination

Set User to 1001, Domain to example.com, disable Return All Results, set Start to 0, Limit to 100

Example 3: Refresh dropdown cache before counting

Enable Refresh Dropdown Cache, then specify User and Domain

Links

Discussion