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 Eric,
The limit for devices per request is 300, but you can make multiple requests to get more than that. This limit is intended to balance ease of use and application performance -you don't want to have to make 10k, 25k, or 50k requests, but you also don't want to have to wait for an extended response for a request for 50k devices. It depends on how many devices you have, but I do recognize that a limit of 300 might seem a bit low if you have thousands of devices. While we don't have any immediate plans to change this limit, if you can provide us with more detail about your specific use case we can consider adding an increase to the roadmap. We can also add an example script to our API documentation for this case.
I'll additionally note that we are working on an SDK for our REST API, which will ideally make this easier - we will definitely consider adding the ability to get all devices.
Thanks,
Sarah