Skip to content

FQL does not work correctly with wildcards #973

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

You must be logged in to vote

Hi @zjuka -

This seems a little counter-intuitive, but add another asterisk before your first single quote to hint that you are passing a wildcard.

response = falcon.query_hosts(filter=f"hostname:*'{hostname}*'")['body']

Thank you for pointing out this documentation gap! I'll make sure our FQL page gets updated to properly reflect this usage quirk. 😄

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zjuka
Comment options

Answer selected by zjuka
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 Discover Discover or Discover for Cloud issues and questions
2 participants