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

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

A tag that groups monitors. Import with the numeric id or the public id.

## Beispiel

```terraform
resource "uptimeify_tag" "production" {
  name  = "production"
  color = "red"
}

# Scoped to one customer instead of the whole organization.
resource "uptimeify_tag" "customer" {
  name        = "eu-shop"
  customer_id = 12
}
```

## Schema

### Pflichtfelder

- `name` (String) Tag name, 1 to 24 characters.

### Optional

- `color` (String) Palette key: `slate`, `red`, `amber`, `green`, `teal`, `blue`, `indigo`, `violet`, `pink`, `gray`. Defaults to `slate`.
- `customer_id` (Number) Scope the tag to this customer. Unset = organization-wide. Customer tokens must set it.

### Nur lesbar

- `created_at` (String)
- `id` (String) Numeric tag id.
- `public_id` (String) Public UUID of the tag.
- `updated_at` (String)

## Import

Import geht so:

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

```shell
# Numeric id or public id
terraform import uptimeify_tag.production 42
```
