ansible-collections / logicmonitor

Repo to house LogicMonitor Collection
BSD 3-Clause "New" or "Revised" License
7 stars 12 forks source link

How To append system.categories to a device not overwriting existing categories. #1

Closed DII-dsward closed 3 years ago

DII-dsward commented 3 years ago

I need to append a category to the existing list of properties in system.categories. Can action: add and action: update be used to overwrite system.categories or append as needed? Or should we submit a feature request to have an append: true capability?

lm-carlos-alvarenga commented 3 years ago

@DII-dsward Sorry about the late response, but we didn't have issues notifications properly enabled (now fixed). Actions add & update should properly append a category to any parent groups categories in the following way:

Update Device Playbook has the following field

properties: {
system.categories: "z"
}

Result:

Similarly, if device C under group A were being added with category "q", it would have two categories -> ["q", "x"]