cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1483
Views
10
Helpful
3
Replies

ISE 2.4 API : check if network device ip address already exist

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,

1 Accepted Solution

Accepted Solutions

paul
Level 10
Level 10

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>

 

View solution in original post

3 Replies 3

paul
Level 10
Level 10

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>

 

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

You can’t filter on any key. The SDK tells you per API call what if any filtering you can do.