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 :
PS C:\Users\myuser> $assets = Get-FalconAsset -All -Detailed
PS C:\Users\myuser> $assets.count
33398
To Reproduce
1 - You might need to have more than 10001 assets in your environment
2 - Execute "Get-FalconAsset -All"
Expected behavior
Command executes without pagination/offset issues
Environment (please complete the following information):
- OS: Windows 11
- PowerShell: 7.4.11
- PSFalcon: 2.2.7 (but also happens in 2.2.9)
Additional context
You might need to have more than 10001 assets in your environment
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 :
The same command with the "-Detailed" flag works as expected :
To Reproduce
1 - You might need to have more than 10001 assets in your environment
2 - Execute "Get-FalconAsset -All"
Expected behavior
Command executes without pagination/offset issues
Environment (please complete the following information):
Additional context
You might need to have more than 10001 assets in your environment