cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
752
Views
1
Helpful
3
Replies

To find the list of all the client connected to the DNA center

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

3 Replies 3

Torbjørn
Spotlight
Spotlight

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

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev

Gabriel Zapodeanu
Cisco Employee
Cisco Employee

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

 

Thanks for the replies @Gabriel Zapodeanu @Torbjørn