Skip to content

feat(fcs): add --all auto-pagination to list commands - #55

Merged
redhatrises merged 1 commit into
CrowdStrike:mainfrom
redhatrises:feat/auto-pagination
Dec 3, 2026
Merged

redhatrises merged 1 commit into
CrowdStrike:mainfrom
redhatrises:feat/auto-pagination

Conversation

@redhatrises

Copy link
Copy Markdown
Contributor

List commands only fetched one page, so getting a full inventory meant looping over --offset by hand, and entities lookups sent every ID in one request regardless of the endpoint's cap.

Add --all to the 14 list commands that take --limit/--offset. With --all, --limit is the page size (default and ceiling: the API maximum) and --offset is rejected. Generic helpers in cmdutil page offset-style APIs by reported total, page token-style APIs (assets, iom) by the after cursor, and fetch details in ordered batches of 100 with bounded concurrency that cancels on the first error. Client-side --grep/--sort-by run on the combined results. Container security endpoints stop at their 10,000 offset ceiling with a warning instead of failing.

Also enable gofalcon's built-in retry with backoff for 429, 5xx and network errors, sized to fit inside the 30s per-request timeout.

List commands only fetched one page, so getting a full inventory meant
looping over --offset by hand, and entities lookups sent every ID in one
request regardless of the endpoint's cap.

Add --all to the 14 list commands that take --limit/--offset. With --all,
--limit is the page size (default and ceiling: the API maximum) and
--offset is rejected. Generic helpers in cmdutil page offset-style APIs by
reported total, page token-style APIs (assets, iom) by the after cursor,
and fetch details in ordered batches of 100 with bounded concurrency that
cancels on the first error. Client-side --grep/--sort-by run on the
combined results. Container security endpoints stop at their 10,000 offset
ceiling with a warning instead of failing.

Also enable gofalcon's built-in retry with backoff for 429, 5xx and
network errors, sized to fit inside the 30s per-request timeout.
@redhatrises
redhatrises merged commit f179374 into CrowdStrike:main Dec 3, 2026
7 checks passed
@redhatrises
redhatrises deleted the feat/auto-pagination branch December 3, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants