cloudstack-cloudmonkey icon indicating copy to clipboard operation
cloudstack-cloudmonkey copied to clipboard

feature/featch all pages from api request

Open damonb123 opened this issue 1 year ago • 3 comments

It would be great to have a param or setting to tell cmk to fetch all pages from api. It does allow setting params, like page and pagesize, but requires calling cmk multiple times.

damonb123 avatar Jul 16 '24 16:07 damonb123

@damonb123 isn't this possible to achieve with some scripting? I'll check if it works with a new parameter.

shwstppr avatar Jul 24 '25 07:07 shwstppr

@shwstppr would this require service changes for some APIs ? I recall the cap of 500 being an issue in the UI as well.

DaanHoogland avatar Aug 12 '25 12:08 DaanHoogland

@DaanHoogland I don't think so. I think one way to it can be done at cmk level itself. We keep fetching and storing in memory (not print) till count returned by API response is more than fetched items count. At the end we print all

shwstppr avatar Aug 12 '25 13:08 shwstppr