Dave_Lee
2 years agoAdvisor
API Filtering
Hi all I’m hoping someone might be able to steer me in the right direction! I’m trying to put together a filter to pull back devices that have: system.azure.tag.environment = production system....
No, i mean, separate your filter into two filters. Instead of pulling back everything and filtering locally, use the filters, but instead of making one call with a really complex, non-working filter, make one call to grab just the objects that match criteria1, then another call to grab the objects that match criteria2, etc. That way you are only calling what you want. Your API calls should be in a function that handles the pagination.