-
When attempting to search for hosts using a filter with a wildcard (*), Get-FalconHost returns an error "400: Invalid filter expression supplied"
Using the same filter in the uri with Invoke-RestMethod returns agent ids as expected.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Filters, and the Falcon Query Language, work differently for each API. This issue is not specific to PSFalcon. PSFalcon passes the filter value you provide to the API, so the error The API that is used by the command
To search for an exact hostname, you have to explicitly define the exact search format (which is also case sensitive):
If the filter does not wildcard by default, generally you can use the following expression (or sometimes you can include the wildcard like you did in your original example):
|
Beta Was this translation helpful? Give feedback.
Filters, and the Falcon Query Language, work differently for each API. This issue is not specific to PSFalcon. PSFalcon passes the filter value you provide to the API, so the error
400: Invalid filter expression supplied
is coming from the API itself--that's not how wildcards work with this API.The API that is used by the command
Get-FalconHost
uses wildcards by default with thehostname
property. To search for a hostname that starts withvp-
, you can use this filter:To search for an exact hostname, you have to explicitly define the exact search format (which is also case sensitive):
If the filter…