barracuda-cloudgen-access / access-cli

Allows to access all CloudGen Access Enterprise Console APIs from the command line.
Apache License 2.0
10 stars 4 forks source link

Allow for retrieving only some pages of paginated resources #6

Closed gbl08ma closed 5 years ago

gbl08ma commented 5 years ago

Right now, the client always retrieves all pages of paginated resources. Let users select what page(s) to retrieve (and how many items per page) with command line flags (e.g. --per-page, --page-start, --page-end) and/or abstract from the pages and operate on record numbers (e.g. --record-start, --record-end).

The current pagination helper function can be modified to support this (it should take care of flag parsing to make it as transparent and simple as possible for command implementations).

(Continuation of #2)