- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
API call to count networks under an Org
Hi, hopefully a fairly simple one this, but is anyone aware of a API call that will produce a simple count of networks under an Org please? We have some MSPs and customers with a very large number of networks, and for one particular function where we just want a quick count, we want to avoid paging through a very long list from getOrganizationNetworks.
Best
Martin
COO
Highlight - Service Observability Platform
www.highlight.net
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Assuming Python, can't you just do len() on the return object from getOrganizationNetworks to get a count?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes and that's the method we use today, but it's on an interactive element of our UI and on big orgs it takes over 30 seconds to get through all the pages of results. I was hoping there is a simple count somewhere as there is on the Global Overview table:
COO
Highlight - Service Observability Platform
www.highlight.net
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Woops, we just realised the getOrganizationNetworks call allow a page of up to 100,000, default of 1000. That'll do!
COO
Highlight - Service Observability Platform
www.highlight.net
