Report/dashboard which contains groups that do not contain a specific resource?
It is possible to create a report/dashboard that contains groups that do not contain a specific resource?
For example, I need to find all groups that do not contain resources starting with sw0.
Stephen Cavernelis
Posted 2 years ago·Last reply 2 years ago
4 comments
LM User
·2 years agoAh, i can't edit. line four needs to be:
Stephen Cavernelis
OP2 years agoThanks Stuart. Unfortunately, there are definately more than 1000 groups, but nore more than 1000 devices per group. I think the pattern would need to be set as below though seeing as I am looking for devices starting with that.
How intense do you think this would be though? We have a number of scripts doing API calls pretty frequently. If I can have this output to CSV once a day it would probably be sufficient...
LM User
·2 years agoIt's not a regex match (i originally was going to, but decided against it). Look at line 9. That takes care of making sure it starts with sw0.
By intense, i mean long running. It has to make an API call for every group. You won't run into any limits though because the endpoint path is different for every call, so different rate limit buckets. You'd probably be fine running this once a day (and switching to CSV output).
Pagination added:
LM User
·2 years agoI can't think of a way to do this without resorting to the API/SDK. Would likely be pretty intense because you'd need to grab every group ID then grab the members of each group. This should work:
Uses my lmwrapper which relies on the sdk.