Sensor Download - filtering for different operating systems #1245
-
Describe the bug To Reproduce {'status_code': 400, 'headers': {'Server': 'nginx', 'Date': 'Wed, 30 Oct 2024 18:12:09 GMT', 'Content-Type': 'application/json', 'Content-Length': '227', 'Connection': 'keep-alive', 'Content-Encoding': 'gzip', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains', 'X-Cs-Region': 'us-2', 'X-Cs-Traceid': 'e4af534f-a6d3-44cd-87eb-519a7d486e02', 'X-Ratelimit-Limit': '6000', 'X-Ratelimit-Remaining': '5997'}, 'body': {'meta': {'query_time': 0.01448715, 'powered_by': 'binserv', 'trace_id': 'e4af534f-a6d3-44cd-87eb-519a7d486e02'}, 'errors': [{'code': 400, 'message': "Failed to parse filter expression. ['os' is an unknown property]"}], 'resources': None}} Expected behavior Environment (please complete the following information):
os: Windows
I'm attempting to download a filtered list by operating system using the sha256 value. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @mobious999 - Here are a couple of filter examples for you to try: Filter for all platforms except
|
Beta Was this translation helpful? Give feedback.
-
hi @jshcodes is there any way that a json payload can be used as a filter? I have been trying various payloads so for example from the payload that I got back from the api
I'm just looking to be more granular with the filters. @jshcodes thanks for the sample queries I'll try them out. |
Beta Was this translation helpful? Give feedback.
The
filter
keyword (which ultimately becomes thefilter
query string parameter when the request to the API is made) only supports FQL formatted strings.You can use compound filters which might get you to what you're trying to return.
Example: