cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
484
Views
0
Helpful
5
Replies

DNA Spaces API clients/count seems to cap at 100 entires

I am working with the DNA spaces REST API and trying to use clients/count with groupBy, but it is returning only 100 entries, from what I can tell. Is there any way to get around this limit? My only other option, from what I have found, would be to get the clients using the /clients endpoint and search by specific building IDs or mac addresses which would be a lot of different calls.

5 Replies 5

Preston Chilcote
Cisco Employee
Cisco Employee

This reminds me of https://community.cisco.com/t5/cisco-digital-network-architecture-dna/dna-center-api-500-record-limit/td-p/4125116  which was fixed with the "offset" keyword.  I'd hope that all APIs use consistent keywords.  Can you try that?

I tried adding the offset filter like so https://XXXXXXXXXXX/api/location/v1/clients/count?groupBy=buildingId&associated=true&offset=300 but was still returning the same data as without having offset there. 

Oh wait, this is for DNA Spaces.  That's a totally different product than Cisco DNA where you posted this question.  Try using the page=2 parameter, or limit=500 to see if it can return more results per page.

I apologize, I posted the same question in a different forum because I couldn't seem to find anything for DNA spaces specifically, and they sent me here. I have tried it with page and limit following the same idea as what I did above but neither worked, unfortunately.

Try opening a TAC case.  If it's not supported, then can submit an enhancement request.