06-28-2023 10:17 PM
How do I use the Cisco DNA Centre API to find the site / location for a specific AP?
I have tried the following API end points, but they don't return the AP site / location:
If I know the location I can get a list of APs in it using /dna/intent/api/v1/site?name=.*location-name.*
Using my browser developer tools to snoop on the DNAC GUI I can see that it uses /dna/intent/api/v1/graphql to retrieve the site / location. Whenever I try to use graphql from my script it always returns no results - {'response': []}. This may be because I don't know what to use for the X-CSRF-TOKEN cookie.
Solved! Go to Solution.