cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2552
Views
6
Helpful
7
Replies

How to retrieve client detail by IP address using DNAC v1.2.8 API?

yoongseong
Level 1
Level 1

Hello, I can see there is API /dna/intent/api/v1/client-detail to retrieve client detail. However this API call only accept macAddress as its filter, but not IP address. I couldn't find any other API that can translate client IP address to mac address. Could anyone advise how can we retrieve a client information based on IP address instead of using MAC address? The previous version of DNAC can support API call api/v1/host which supports IP address as filter, but this API has been deprecated in the latest version 1.2.8.

7 Replies 7

Serpent2010
Level 1
Level 1

Did you figure that?

I see no reply for this  since while ago.

I saw in other thread, 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

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

Thank you for your help in this.

Is there a method to upload a custom template for the API? 

Can you describe what you mean when you say custom template?

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

such as upload custom Json file to DNAC box to be used for API REST for particular parameter e.g. client IP. 

As far as i recall (this isn’t an area I am an expert in fyi) dnac doesn't directly support uploading custom JSON files to be used for API calls with specific parameters like client IP through templates. You would need to use the API calls to achieve your desired configuration through code instead of relying on a JSON file upload.

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

hamdkhan455
Level 1
Level 1

hope it help you 

To retrieve client details by IP address using DNAC v1.2.8 API:

  1. Authenticate with necessary credentials.
  2. Use the appropriate API endpoint.
  3. Make a GET request with the IP address as a parameter.
  4. Handle the JSON response to extract client details.