---
title: "uptimeify_status_page_audience_groups"
description: "Ressource uptimeify_status_page_audience_groups: Beispiel, alle Attribute, Import."
---

<Callout>Die Beschreibungen auf dieser Seite kommen direkt aus dem Provider-Schema und sind deshalb englisch.</Callout>

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.

## Beispiel

```terraform
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

### Pflichtfelder

- `groups` (Attributes List) At most 20 groups, in this order; `[]` = none. (siehe [verschachteltes Schema](#verschachteltes-schema-für-groups))
- `status_page_id` (Number) Numeric status page id. Changing it replaces the resource.

### Nur lesbar

- `id` (String) Same as `status_page_id`.

### Verschachteltes Schema für `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 geht so:

Mit [`tofu import` bzw. `terraform import`](https://developer.hashicorp.com/terraform/cli/commands/import), zum Beispiel:

```shell
# Numeric status page id
terraform import uptimeify_status_page_audience_groups.acme 42
```
