» logicmonitor_device_group

Provides a LogicMonitor device group resource. This can be used to create and manage LogicMonitor device groups

» Example Usage

# Create a new LogicMonitor device group
resource "logicmonitor_device_group" "group" {
    name = "NewTestGroup"
    description = "new test group"
    properties = {
     "group" = "test"
     "system.categories" = "a,b,c,d"
    }
}
# Create a new LogicMonitor dynamic device group
resource "logicmonitor_device_group" "group1" {
    name = "NewDynamicGroup"
    description = "new dynamic group"
    applies_to = "system.displayname =~ \"Prod\""
}

» Argument Reference

The following arguments are supported:

  • name - (Required) Name of device group
  • description - (Optional) Description of device group
  • parent_id - (Optional) The id of the parent group for this device group (the root device group has an Id of 1)
  • applies_to - (Optional) The Applies to custom query for this group. Setting this field will make this a dynamic group.
  • disable_alerting - (Optional) Indicates whether alerting is disabled (true) or enabled (false) for this device group
  • properties - (Optional) The properties associated with this device group. Any string value pair will work (see example).

» Import

Device Groups can be imported using their group id or full path

$ terraform import logicmonitor_device_group.group1 451
$ terraform import logicmonitor_device_group.group1 Production/SBA/Linux