For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI ReferenceRelease notes
DocumentationAPI ReferenceRelease notes
  • Introduction
    • Overview
    • Authentication
  • Guides
    • Integration API routes
    • Operations Manager search APIs
    • Search API
    • URL query parameters
    • Use query parameters in API requests
  • Reference
        • GETGet device count history
        • POSTRefresh device count history
LogoLogo
Open sourceSupportFAQsDocs Home
ReferenceDevice Counts

Get device count history

GET
http://localhost:3000/device-counts
GET
/device-counts
$curl http://localhost:3000/device-counts \
> -u "<username>:<password>"
1{
2 "results": {
3 "timestamp": "2023-02-14T20:06:50.569Z",
4 "serverId": "string",
5 "counts": {}
6 },
7 "total": 1
8}
Returns device count history.
Was this page helpful?
Previous

Refresh device count history

Next
Built with

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Query parameters

skipintegerOptional>=0Defaults to 0
skip
limitintegerOptional>=0Defaults to 25
limit
orderenumOptionalDefaults to newest
order
Allowed values:
serverIdstringOptional
The server ID where the device counts came from
beforeintegerOptional
The timestamp in milliseconds used as an upper range. Should be higher than the after value.
afterintegerOptional
The timestamp in milliseconds used as a lower range. Should be lower than the after value.

Response

The device counts matching the specified query.
resultsobject
This is the schema for an IAP device count stored in Mongo
totalinteger>=0
The total number of documents

Errors

500
Internal Server Error