ā01-22-2019
01:08 AM
- last edited on
ā04-12-2023
03:20 PM
by
Paul Zimmerman
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.
ā03-06-2024 07:51 PM
Did you figure that?
I see no reply for this since while ago.
ā03-07-2024 01:56 AM
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
ā03-11-2024 11:51 AM
Thank you for your help in this.
Is there a method to upload a custom template for the API?
ā03-11-2024 12:07 PM
Can you describe what you mean when you say custom template?
ā03-11-2024 12:32 PM - edited ā03-11-2024 12:35 PM
such as upload custom Json file to DNAC box to be used for API REST for particular parameter e.g. client IP.
ā03-11-2024 12:47 PM
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.
ā03-11-2024 01:34 PM
hope it help you
To retrieve client details by IP address using DNAC v1.2.8 API:
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