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

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

An Incident Management status page rule: incidents of `team_id` at `min_severity` or worse set the status page to `target_state`. Needs team-admin rights on the team (or organization admin). Manual overrides (`POST /api/im/statuspage-rules/override`) are an incident-time action and not managed by Terraform. Import with the numeric id.

## Beispiel

```terraform
# sev1 incidents of the on-call team set the ACME status page to degraded,
# and reset it when the incident resolves.
resource "uptimeify_im_statuspage_rule" "acme" {
  team_id        = tonumber(uptimeify_im_team.oncall.id)
  status_page_id = tonumber(uptimeify_status_page.acme.id)
  min_severity   = "sev1"
  target_state   = "degraded"
  auto_resolve   = true
}
```

## Schema

### Pflichtfelder

- `status_page_id` (Number) Numeric status page id of your organization.
- `team_id` (Number) Incident Management team of your organization.

### Optional

- `auto_resolve` (Boolean) Reset the page when the incident resolves. Default `true`.
- `min_severity` (String) `sev1` (most severe) to `sev4`. Default `sev2`.
- `target_state` (String) `warning` or `degraded` (default).

### Nur lesbar

- `created_at` (String)
- `id` (String) Numeric rule id.
- `organization_id` (Number)
- `updated_at` (String)

## Import

Import geht so:

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

```shell
terraform import uptimeify_im_statuspage_rule.acme 17
```
