02-23-2023 07:43 PM - last edited on 04-01-2024 02:59 PM by Mercedes_O
I am currently trying to get all software on our assets using 'softwareListWithCursor', but I'm having issues with getting past the pagination limit on the response. It seems that I'm limited to 500 results per request, and in order to get the next page I have to change the 'cursor' value in the query. This would be fine for manual request, but we have quite a few results and I'd like to have this run on a schedule to track changes over time.
Any advice? Ideally, I'd be able to get a response including all information without a limit, but it seems that pagination is forced with this request. I'm currently making the requests in python using the 'gql' module. I am willing to supply information regarding my code, the scope of my project, etc., if it would help create a solution.
Any help is appreciated. Thanks!
02-27-2023 07:07 PM
Hi seandtms,
If I understand your usecase well you want get all assets with all (or selected) software. If I am right you can use bulk export features and in GraphQL you can specify a that you want software. Little bit more about bulk export. https://docs.lansweeper.com/docs/api/getting-data#bulk-export-mechanism
You can get whole big file with all data as zipped JSON file.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now