04-18-2019 07:57 AM
I am running ISE 2.4 (Tacacs Feature) Patches 1 to 5.
I am using the ISE ERS API to add a Network Device. Is there a way to check if the ip address already exist before trying to add the device? I know how to check if a device already exists, but I cannot check if the ip address is already assigned to another device.
I found a post 'Get Endpoint details by IP address using Cisco ERS API) where someone wanted to get something similar but i don't know where to find the keywords.
The command that he was using is : https://ers-username:ers-password@isemnt.domain.com/admin/API/mnt/Session/EndPointIPAddress/10.213.193.133
Is there the same kind of commands for the Network devices ?
Thanks
Regards,
Solved! Go to Solution.
04-18-2019 08:05 AM
The ERS SDK tells you what filters can be applied to each API call. The network device Get-All call allows for IP address filtering. So you would call:
https://<Admin Node IP>:9060/ers/config/networkdevice?filter=ipaddress.EQ.<Network Device IP>
04-18-2019 08:05 AM
The ERS SDK tells you what filters can be applied to each API call. The network device Get-All call allows for IP address filtering. So you would call:
https://<Admin Node IP>:9060/ers/config/networkdevice?filter=ipaddress.EQ.<Network Device IP>
04-18-2019 09:16 AM
Thanks a lot Paul,
I was using the filter to check a hostname but I didn't know that it was also possible to filter on any key.
Great
Gilles
04-18-2019 10:06 AM
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