Get computer group
getComputerGroupRetrieve a computer group's criteria in evaluation order with and/or logic, plus member count. Flags regex that may behave unexpectedly (contains vs equals).
Instructions
Read a computer group's criteria in evaluation order, with parentheses and and/or joins preserved, plus a member count. Flags criteria that will not do what they appear to: an unanchored "matches regex" tests whether a value CONTAINS a match rather than equals one, which turns "has failures" into "is not blank". Accepts a group id or a name substring; an ambiguous name returns candidates. Members are NOT included unless asked for, since the roster carries serials and MAC addresses and is rarely the question.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | Yes | Group id, or a substring of the group name | |
| memberLimit | No | Cap on members returned when includeMembers is true. Defaults to 200. | |
| includeMembers | No | Include the member list. Defaults to false; a count is always returned. |