01-13-2023 06:29 AM
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.
01-13-2023 08:53 AM
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?
01-13-2023 10:12 AM
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.
01-13-2023 10:45 AM
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.
01-13-2023 10:48 AM
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.
01-13-2023 10:58 AM
Try opening a TAC case. If it's not supported, then can submit an enhancement request.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide