How to find pagination tokens when using commands? #493
Replies: 1 comment 3 replies
-
|
When running a command without any additional parameters, you'll be provided the first set of results returned from the relevant API. Some APIs return 100 results by default and others return more. Using the PSFalcon generally removes result pagination as a concept with the intent to provide a command-line style experience to accessing data from the CrowdStrike APIs. If you'd like to attempt to retrieve all of the available results (or the first 10,000, if limited by the API, which is common), you can use the Get-FalconConfigAssessment -Filter "updated_timestamp:>'2025-09-15T20:36:35Z'+finding.status:!'inactive'" -AllUsing Each of these parameters are detailed when using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description of your question
When using the
Get-FalconConfigAssessmentfunction, theAllparameter is great and most of the time we use this. But when pulling large datasets in an environment where memory usage is a concern, the ability to manually step through pages of results would be beneficial. Maybe I'm overlooking something but the-Afterparameter seems to be able to take the token for the next page of data, but there doesn't seem to be a way for the function to return that code. Maybe the right question is, how would one go about getting the initial Pagination token to then use in subsequent calls in the-Afterparameter?To Reproduce
A command like
$assessments = Get-FalconConfigAssessment -Filter "updated_timestamp:>'2025-09-15T20:36:35Z'+finding.status:!'inactive'" -Limit 500provides the first page of 500 results. But I haven't yet found a way in the module to get the initial pagination token.Expected behavior
I would like to be able to retrieve the pagination token when using the
-Limitparameter so that I could use it in subsequent API calls in the-Afterparameter.Environment (please complete the following information):
Additional context
I now see there is a v2.2.9 of the module, which I have not yet tested, but reviewing the release notes and commits it doesn't look like there were any changes to Get-FalconConfigAssessment from v2.2.8.
Beta Was this translation helpful? Give feedback.
All reactions