Blog Post
Michael_Baker
10 months agoNeophyte
It took me a while to figure out what you’re doing. You are posting to /functions and the response contains the list of devices that match. You do this so that you can target a list of devices using an AppliesTo expression rather than a filter.
You can accomplish the same thing without doing an additional API call and not have to use an unsupported endpoint by using advanced filtering.
Much easier than using filters when you have multiple teams… ./do-thing.py -f ‘getPropValue(“….”) && getPropValue(“wmi.user”) =~ “” && getPropValue(“..”) && (thing | that)”
Much easier than writing advanced filters ;) especially when that output is then used in opther monkey patched calls..