-
Is there a possibility to search hosts by tags? I mainly see the "plain" host attributes as filter parameters in the API documentation, but not tags. |
Beta Was this translation helpful? Give feedback.
Answered by
jshcodes
Jun 29, 2023
Replies: 1 comment 4 replies
-
You should be able to do a wildcard search as follows: from falconpy import hosts
hosts = Hosts(client_id=CLIENT_ID, client_secret=CLIENT_SECRET)
search_string = "whatever"
result = hosts.query_devices_by_filter_scroll(filter=f"tags:*'*{search_string}*'") You can also adjust this to perform an exact match: result = hosts.query_devices_by_filter_scroll(filter=f"tags:['{search_string}']") |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
budachst
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to do a wildcard search as follows:
You can also adjust this to perform an exact match: