You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[ BUG ] Get-FalconAsset -All ==> offset 10000 and limit 100 are invalid #487
Describe the bug
The "-All" parameter is very useful most of the time, as it allows to retrieve all the objects with a single call. However, using the "Get-FalconAsset -All", the output is as follows :
Write-Result: C:\Users\myuser\Documents\PowerShell\Modules\PSFalcon\2.2.7\private\Private.ps1:687
Line |687|Write-Result$Object| ~~~~~~~~~~~~~~~~~~~~
| {"code":400,"message":"offset 10000 and limit 100 are invalid; offset + limit must be less than or equal to 10000"}
The same command with the "-Detailed" flag works as expected :
The majority of the CrowdStrike APIs are limited to 10,000 total results returned, even if there are more than 10,000 results listed in the pagination.total (i.e. what you see when you use -Total). The error you provided is consistent with a typical CrowdStrike API and is an expected result.
The -All parameter in PSFalcon is designed to continue to supply pagination information to the relevant API until either all results are returned, or the API stops producing results.
There are specific APIs that allow more than 10,000 results to be returned. In the case of Get-FalconAsset, both types of APIs are used:
Get-FalconAsset -All uses GET /discover/queries/hosts/v1 which is limited to 10,000 results
Get-FalconAsset -Detailed -All uses GET /discover/combined/hosts/v1 which is not limited to 10,000 results
When using an API that is limited to 10,000 results, you must use Filter to group large result sets into <10,000 results and retrieve each group to reach the total count.
Activity
bk-cs commentedon Sep 17, 2025
The majority of the CrowdStrike APIs are limited to 10,000 total results returned, even if there are more than 10,000 results listed in the
pagination.total(i.e. what you see when you use-Total). The error you provided is consistent with a typical CrowdStrike API and is an expected result.The
-Allparameter in PSFalcon is designed to continue to supply pagination information to the relevant API until either all results are returned, or the API stops producing results.There are specific APIs that allow more than 10,000 results to be returned. In the case of
Get-FalconAsset, both types of APIs are used:Get-FalconAsset -AllusesGET /discover/queries/hosts/v1which is limited to 10,000 resultsGet-FalconAsset -Detailed -AllusesGET /discover/combined/hosts/v1which is not limited to 10,000 resultsWhen using an API that is limited to 10,000 results, you must use
Filterto group large result sets into <10,000 results and retrieve each group to reach the total count.