3 years ago
Add device to a Collector Group
Hi Guys
Is it possible to add a device to a Collector Group directly?
I've been testing code to find a set of collectors that match a name and add to one of the specific collectors retr...
Devices cannot be added to Collector groups, only collectors can. Devices (including the device the collector is hosted on) can be added to resource/device groups.
When I add a device through the API, i find the collector group and just assign the preferredCollectorId to the first collector in that group. I don't define any collectors on resource groups.
This might be of interest: https://github.com/sweenig/lm/tree/main/LMAutomation/Devices_by_Collector_Auto_Groups