Uptimeify Docs
Resources

uptimeify_status_page_audience_groups

The audience groups of one status page (one resource per page): a component listed in a group is shown only to visitors signed in with a verified email address of one of the group's domains, and to editors of the page; components in no group stay visible to everyone who may view the page. A page with groups has no badge, widget, feeds or subscriptions. Destroying the resource removes all groups. Import with the numeric status page id.

The audience groups of one status page (one resource per page): a component listed in a group is shown only to visitors signed in with a verified email address of one of the group's domains, and to editors of the page; components in no group stay visible to everyone who may view the page. A page with groups has no badge, widget, feeds or subscriptions. Destroying the resource removes all groups. Import with the numeric status page id.

Example Usage

resource "uptimeify_status_page_component" "billing" {
  status_page_id = tonumber(uptimeify_status_page.acme.id)
  source_kind    = "manual"
  name           = "Billing backend"
}

# "Billing backend" is shown only to visitors signed in with a verified acme.com address
# (and to editors of the page); every other component stays visible to all visitors.
resource "uptimeify_status_page_audience_groups" "acme" {
  status_page_id = tonumber(uptimeify_status_page.acme.id)
  groups = [{
    name          = "ACME staff"
    email_domains = ["acme.com"]
    component_ids = [uptimeify_status_page_component.billing.component_id]
  }]
}

Schema

Required

  • groups (Attributes List) At most 20 groups, in this order; [] = none. (see below for nested schema)
  • status_page_id (Number) Numeric status page id. Changing it replaces the resource.

Read-Only

  • id (String) Same as status_page_id.

Nested Schema for groups

Required:

  • component_ids (Set of Number) 1 to 100 numeric component ids of this page (uptimeify_status_page_component.<name>.component_id).
  • email_domains (Set of String) 1 to 20 domains, lowercase, e.g. acme.com; visitors with a verified email of one of them see the components.
  • name (String) 1 to 80 characters, no surrounding whitespace.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Numeric status page id
terraform import uptimeify_status_page_audience_groups.acme 42

On this page