Skip to content
Start here

Monitor Groups

resource cloudflare_load_balancer_monitor_group

required Expand Collapse
account_id: String

Identifier.

description: String

A short description of the monitor group

members: Set[Attributes]

List of monitors in this group

enabled: Bool

Whether this monitor is enabled in the group

monitor_id: String

The ID of the Monitor to use for checking the health of origins within this pool.

monitoring_only: Bool

Whether this monitor is used for monitoring only (does not affect pool health)

must_be_healthy: Bool

Whether this monitor must be healthy for the pool to be considered healthy

created_at: Time

The timestamp of when the monitor was added to the group

updated_at: Time

The timestamp of when the monitor group member was last updated

computed Expand Collapse
id: String

The ID of the Monitor Group to use for checking the health of origins within this pool.

created_on: Time

The timestamp of when the monitor group was created

modified_on: Time

The timestamp of when the monitor group was last updated

cloudflare_load_balancer_monitor_group

resource "cloudflare_load_balancer_monitor_group" "example_load_balancer_monitor_group" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  description = "Primary datacenter monitors"
  members = [{
    enabled = true
    monitor_id = "monitor_id"
    monitoring_only = false
    must_be_healthy = true
  }]
}

data cloudflare_load_balancer_monitor_group

required Expand Collapse
monitor_group_id: String
account_id: String

Identifier.

computed Expand Collapse
id: String
created_on: Time

The timestamp of when the monitor group was created

description: String

A short description of the monitor group

modified_on: Time

The timestamp of when the monitor group was last updated

members: Set[Attributes]

List of monitors in this group

enabled: Bool

Whether this monitor is enabled in the group

monitor_id: String

The ID of the Monitor to use for checking the health of origins within this pool.

monitoring_only: Bool

Whether this monitor is used for monitoring only (does not affect pool health)

must_be_healthy: Bool

Whether this monitor must be healthy for the pool to be considered healthy

created_at: Time

The timestamp of when the monitor was added to the group

updated_at: Time

The timestamp of when the monitor group member was last updated

cloudflare_load_balancer_monitor_group

data "cloudflare_load_balancer_monitor_group" "example_load_balancer_monitor_group" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  monitor_group_id = "17b5962d775c646f3f9725cbc7a53df4"
}

data cloudflare_load_balancer_monitor_groups

required Expand Collapse
account_id: String

Identifier.

optional Expand Collapse
max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

The ID of the Monitor Group to use for checking the health of origins within this pool.

description: String

A short description of the monitor group

members: Set[Attributes]

List of monitors in this group

enabled: Bool

Whether this monitor is enabled in the group

monitor_id: String

The ID of the Monitor to use for checking the health of origins within this pool.

monitoring_only: Bool

Whether this monitor is used for monitoring only (does not affect pool health)

must_be_healthy: Bool

Whether this monitor must be healthy for the pool to be considered healthy

created_at: Time

The timestamp of when the monitor was added to the group

updated_at: Time

The timestamp of when the monitor group member was last updated

created_on: Time

The timestamp of when the monitor group was created

modified_on: Time

The timestamp of when the monitor group was last updated

cloudflare_load_balancer_monitor_groups

data "cloudflare_load_balancer_monitor_groups" "example_load_balancer_monitor_groups" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}