cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
148
Views
1
Helpful
2
Replies

Getting Last Endpoint Connection From DNAC API?

malcomx
Level 1
Level 1

I currently have a Python function that will grab an endpoint's last wireless connection using Prime's API. The issue I'm running into is the client-detail API call will only give inactive connection info for about 24 hours before. Does anybody know a DNAC API call that will give last given connection information without having to provide timestamps?

1 Accepted Solution

Accepted Solutions

Ruben Cocheno
Spotlight
Spotlight

@malcomx 

There is a new API call to provide that info, i recommended to look into the docs

Tag me to follow up.
Please mark it as Helpful and/or Solution Accepted if that is the case. Thanks for making Engineering easy again.
Connect with me for more on Linkedin https://www.linkedin.com/in/rubencocheno/

View solution in original post

2 Replies 2

Limited knowledge here, but if i recall  there isn't a single Catalyst Center API call that provides the last ever connection information for an endpoint without specifying a timeframe, this is due to data retention (unless /dna/intent/api/v2/wireless/client-detail does?) . Catalyst Center likely stores endpoint connection data for a set period (like around 24 hours as you mentioned with Prime). which i believe to manage storage space and focus on recent activity.

You could use a webhook, where the API sends notifications/updates to a configured endpoint whenever a relevant event occurs (e.g., client connection or disconnection). You could then use the notifications to update your local cache or database with the latest connection information.

Hope this helps.

 

 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Ruben Cocheno
Spotlight
Spotlight

@malcomx 

There is a new API call to provide that info, i recommended to look into the docs

Tag me to follow up.
Please mark it as Helpful and/or Solution Accepted if that is the case. Thanks for making Engineering easy again.
Connect with me for more on Linkedin https://www.linkedin.com/in/rubencocheno/