01-22-2024 04:51 AM
Hi
I am a beginner user of CISCO DNA center.I would like to retrieve the list of clients connected to the DNA center.
At the moment, i am able to get the details of a single client device using the API
"https://XXXXXXXXXXXXXXXXX//dna/intent/api/v1/client-detail?macAddress=xx:xx:xx:xx:74:3C
Could someone please help to get the complete list of clients.
Thank you
01-23-2024 10:31 AM - edited 01-26-2024 05:20 AM
Are you looking for the complete list of clients that are currently connected, or all clients that has been connected at some point? You should be able to use the /api/assurance/v1/host endpoint for this, it is however not documented. You can see an example here: https://github.com/CiscoDevNet/DNAC-Assurance/blob/master/all_clients.py
01-23-2024 12:04 PM
The only option using APIs is to use the reporting APIs. You may find here an example for Client Report generated via APIs: https://github.com/cisco-en-programmability/dnacenter_reports_operations
01-25-2024 02:39 AM - edited 01-26-2024 01:16 AM
Thanks for the replies @Gabriel Zapodeanu @Torbjørn
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