12-20-2023 11:48 AM
Hello,
I was wondering, whether it is possible to pull also the IP address in addition to hostname, pltaformID, sofwareType, and Version
Excerpt URL:
url = "https://{}/dna/intent/api/v1/network-device/4501/500".format(dnac['host'])
Please advise.
Thanks
Solved! Go to Solution.
12-21-2023 03:44 PM
Ok, I was able to solve my problem.
All, it needs to be done is to add the parameter "managementIpAddress", which is already part of the DNAC OpertionID getDeviceList.
source: https://developer.cisco.com/docs/dna-center/#!get-device-list
Extract:
dnac_devices = PrettyTable(['Hostname', 'managementIpAddress', 'Platform Id','Software Type','Software Version', 'Up Time' ])
12-21-2023 03:44 PM
Ok, I was able to solve my problem.
All, it needs to be done is to add the parameter "managementIpAddress", which is already part of the DNAC OpertionID getDeviceList.
source: https://developer.cisco.com/docs/dna-center/#!get-device-list
Extract:
dnac_devices = PrettyTable(['Hostname', 'managementIpAddress', 'Platform Id','Software Type','Software Version', 'Up Time' ])
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