cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2516
Views
0
Helpful
2
Replies

Pulling only active network devices from ISE, via REST API?

pn2020
Level 1
Level 1

 

Is there a field in ISE that indicates a network device (under Administration->Network Resources->Network Devices) is active or not?

 

Right now, I am pulling the complete list of network devices, via REST API get's.  Blindly, meaning everything under Network Devices is pulled, with multiple gets (due to limit per page).  It would be nice to pull just active devices, if that is even possible.

 

Thanks,

 

Peter

1 Accepted Solution

Accepted Solutions

Mike.Cifelli
VIP Alumni
VIP Alumni

AFAIK there is no API to grab only active NADs. However, to aide you in the multiple get call issue due to limits, try appending this:
Add this to the end of string '&size=100' to get more results returned with your get call;
For example: "...." --request GET https://<ise pan>:9060/ers/config/endpoint?filter=groupId.EQ.a1649530-6840-11e9-aa97-0242f38bcc8a&size=100

Lastly, see these links for more on filters:

https://developer.cisco.com/docs/identity-services-engine/#!searching-a-resource/paging

https://www.cisco.com/c/en/us/td/docs/security/ise/2-4/api_ref_guide/api_ref_book/ise_api_ref_ers1.html
HTH!

View solution in original post

2 Replies 2

Mike.Cifelli
VIP Alumni
VIP Alumni

AFAIK there is no API to grab only active NADs. However, to aide you in the multiple get call issue due to limits, try appending this:
Add this to the end of string '&size=100' to get more results returned with your get call;
For example: "...." --request GET https://<ise pan>:9060/ers/config/endpoint?filter=groupId.EQ.a1649530-6840-11e9-aa97-0242f38bcc8a&size=100

Lastly, see these links for more on filters:

https://developer.cisco.com/docs/identity-services-engine/#!searching-a-resource/paging

https://www.cisco.com/c/en/us/td/docs/security/ise/2-4/api_ref_guide/api_ref_book/ise_api_ref_ers1.html
HTH!

Thanks Mike.

 

Right now, I have the following added to the url, for my get requests.

 

'config/networkdevice?size=100&page=1'