cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1788
Views
5
Helpful
2
Replies

ISE ERS API calls to get all the network devices with Group

xj.wang
Level 1
Level 1

we are running ISE 2.3. We are having issues to get all the network devices with grouplist. We can only get one page a time, and just ID and Name using Python script.

What we want:

1. get all the network devices

2. also the NetworkDeviceGroupList.

Thanks for your help!

1 Accepted Solution

Accepted Solutions

Craig Hyps
Level 10
Level 10

You can request all NADs (Get All) and iteratively request NAD details including NDG data. Example:

It should also be possible to fetch NADs with filter by type or location, but candidly I could not get this query to work so may be a defect.   Example: https://pan1.company.com:9060/ers/config/networkdevice?filter=location.ENDSW.Cleveland

Query for a specific NAD is single page. Query for all NADs can include multiples per query and page size can be added.

Craig

View solution in original post

2 Replies 2

Craig Hyps
Level 10
Level 10

You can request all NADs (Get All) and iteratively request NAD details including NDG data. Example:

It should also be possible to fetch NADs with filter by type or location, but candidly I could not get this query to work so may be a defect.   Example: https://pan1.company.com:9060/ers/config/networkdevice?filter=location.ENDSW.Cleveland

Query for a specific NAD is single page. Query for all NADs can include multiples per query and page size can be added.

Craig

Thanks for the suggestions.

We are trying to avoid doing that. There should be a simple way to query for (dump) all the devices.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: