8 years ago
API call, get ALL devices
Hi,
I have a teammate working on some API calls to help us manage our environment a bit better. One thing he noted is that LM doesn't allow us to make a single API call which returns all dev...
Hi Sarah,
I don't think LM is inherently alone in your thought process. LDAP for example only returns the first 1k results in a search, and both exchange and active directory powershell cmdlets also limit the default results returned. However, their parameters support a specific number of devices defined by the user or they support an "unlimited" parameter to return all results. That is what I'd like to see. Have a default of 300, but make a parameter where I can enter an integer of my choosing or "unlimited" to retrieve all devices. I as a user would know if I'm saying return all devices that it might take a while.
The use case is simply for auditing and comparisons. For example, I want to make sure all servers in my vmware system are monitored, or I want to make sure all systems in my active directory are monitored. The only other way to do that is loop through an array of devices and make individual queries, as opposed to comparing to arrays.
We have found a way to work around, seems you guys support a device count and you support an index location. So we've kind of kludged together a work around, but its not ideal.