tabordl
Contributor II
4 months agoDynamic device group automation with GQL
I have a script that manages devices groups. The groups are simple, using a single rule, custom attribute SiteID = xxxx. Because the legacy API does not allow for the creation/application of the rules, I was directly manipulating the DB.
We are moving to SAS - no more direct DB access. I need some GQL magic to create/apply a rule to a group.
Device Group management is fairly limited in functionality via GQL in only supporting modification of existing Device Groups to add static devices. The creation of new device groups, adding device groups as a child to device group, and creating or editing dynamic rules are not supported GQL mutations for device groups at this time.