API call to count networks under an Org

MartinS
Building a reputation

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
3 Replies 3
sungod
Kind of a big deal

Assuming Python, can't you just do len() on the return object from getOrganizationNetworks to get a count?

 

MartinS
Building a reputation

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:

 

MartinS_0-1721812819532.png

 

---
COO
Highlight - Service Observability Platform
www.highlight.net
MartinS
Building a reputation

Woops, we just realised the getOrganizationNetworks call allow a page of up to 100,000, default of 1000. That'll do!

 

MartinS_0-1721828559233.png

 

---
COO
Highlight - Service Observability Platform
www.highlight.net
Get notified when there are additional replies to this discussion.