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 asstatus_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 42uptimeify_status_page
A status page of one customer, or of the whole organization without customer_id. It shows its explicit components (uptimeify_status_page_component, the allowlist) and, only with include_customer_monitors, also every monitor of the customer except hidden_monitors. Design, audience groups, custom domain and IM rules are separate resources (uptimeify_status_page_design, uptimeify_status_page_audience_groups, uptimeify_status_page_domain, uptimeify_im_statuspage_rule). Deleting the page also deletes its custom domain. Import with the numeric id or the public id.
uptimeify_status_page_component
One component (row) of a status page: a monitor, a manually set status, or a third-party provider (dependency) whose published status it follows. At most 100 per page. Import with <status_page_id>/<component_id>.