By default, LogicMonitor’s API will return a max of 1000 responses for any query made. For example, if a request is made to get device information, you will only receive the first 1000 devices back with the fields requested as parameters.
Considering the above limitation, how would you retrieve properties for more than 1000 devices? To accomplish this, you’ll need to edit the query parameters of the script, which will apply to any programming language.
To return display name and ID for 2000 devices, the size and offset parameters are necessary, as shown next:
The above edited query will now additionally return the next 1000 devices. The size parameter can be changed as to limit the number of responses that are given at a time. For example, you could return the first 30 results instead of 1000 by setting size=30 in your request.
Michael Tarbet (Global VP of Sales, MSP) and Steve Kahn (Area VP, Channel Sales, North America) would LogicMonitor would like to exclusively invite you to watch the Arizona Diamondbacks vs Los Angeles Dodgers from a premium suite at Chase Field in Phoenix May 26.
Join LogicMonitor for drinks and industry insights as we discuss the observability problems modern enterprises are facing.
Join LogicMonitor for a CiscoLive Dinner @ SushiSamba - June 14th, 2022