Skip to content

Can't run queryHostGroups using a filter with name #978

Answered by jshcodes
budachst asked this question in Q&A
Discussion options

You must be logged in to vote

Well that's interesting...

The FQL rule for an exact match says your filter should be property:['string'] instead of property:'string'. My testing produces the same behavior you have identified; both variations of this syntax produce zero results when provided to the queryHostGroups and queryCombinedHostGroups operations.

I'll investigate for more detail regarding the preferred exact match syntax for these two operations. In the interim, I have a workaround that I think should work for most scenarios.

Hint that you're wildcarding, but don't actually provide a wildcard.
import os
from falconpy import HostGroup

groups = HostGroup(client_id=os.getenv("CLIENT_ID"), client_secret=os.getenv("C…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jshcodes
Comment options

You must be logged in to vote
3 replies
@jshcodes
Comment options

@budachst
Comment options

@jshcodes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
API usage General API usage issues and questions hosts Hosts or Host Groups issues and questions
2 participants