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

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

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

## Beispiel

```terraform
# A monitor of the page's customer
resource "uptimeify_status_page_component" "shop" {
  status_page_id = tonumber(uptimeify_status_page.acme.id)
  source_kind    = "monitor"
  monitor_type   = "http"
  monitor_id     = tonumber(uptimeify_website.shop.id)
  group_id       = uptimeify_status_page_component_group.core.group_id
}

# A status you set yourself
resource "uptimeify_status_page_component" "support" {
  status_page_id = tonumber(uptimeify_status_page.acme.id)
  source_kind    = "manual"
  name           = "Phone support"
  manual_status  = "operational"
}

# A third-party provider; follows its published status
resource "uptimeify_status_page_component" "github" {
  status_page_id  = tonumber(uptimeify_status_page.acme.id)
  source_kind     = "dependency"
  dependency_slug = "github"
}
```

## Schema

### Pflichtfelder

- `source_kind` (String) `monitor`, `manual` or `dependency`. Changing it replaces the component.
- `status_page_id` (Number) Numeric status page id. Changing it replaces the component.

### Optional

- `dependency_slug` (String) With `source_kind = "dependency"`: provider slug from `GET /api/public/dependencies`, e.g. `github`. One component per provider and page.
- `description` (String) Up to 1000 characters.
- `group_id` (Number) Numeric id of an `uptimeify_status_page_component_group` of the same page. Unset = no group.
- `manual_status` (String) With `source_kind = "manual"` only: `operational` (default), `degraded`, `partial_outage`, `major_outage` or `maintenance`.
- `monitor_id` (Number) With `source_kind = "monitor"`: numeric monitor id, a monitor of the page's customer. One component per monitor and page.
- `monitor_type` (String) With `source_kind = "monitor"`: `http` (website), `dns`, `icmp`, `smtp`, `ssh`, `tcp`, `ftp` or `imap_pop`.
- `name` (String) 1 to 120 characters. Required for `manual`; defaults to the monitor or provider name.
- `show_uptime` (Boolean) Default `true`.
- `sort` (Number) Position, ascending, 0 to 100000. Unset = after the last component at creation.

### Nur lesbar

- `component_id` (Number) Numeric component id.
- `created_at` (String)
- `id` (String) `<status_page_id>/<component_id>`.
- `public_id` (String)

## Import

Import geht so:

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

```shell
# <status_page_id>/<component_id>
terraform import uptimeify_status_page_component.support 42/15
```
