Skip to content

Latest commit

 

History

History
93 lines (73 loc) · 3.51 KB

File metadata and controls

93 lines (73 loc) · 3.51 KB
page_title seerr_user_notification_settings Resource - seerr
subcategory
description Manage per-user notification settings in Seerr via /api/v1/user/{userId}/settings/notifications.

seerr_user_notification_settings (Resource)

Manage per-user notification settings in Seerr via /api/v1/user/{userId}/settings/notifications.

Example Usage

resource "seerr_user_notification_settings" "example" {
  user_id         = 1
  email_enabled   = true
  discord_enabled = true
  discord_id      = "123456789"

  notification_types = {
    discord = 2
    email   = 4
  }
}

Schema

Required

  • user_id (Number) The numeric ID of the user whose notification settings to manage.

Optional

  • discord_enabled (Boolean) Whether Discord notifications are enabled for this user.
  • discord_id (String) Discord user ID for direct notification mentions.
  • email_enabled (Boolean) Whether email notifications are enabled for this user.
  • notification_types (Attributes) Per-user notification type bitmasks per agent. (see below for nested schema)
  • pgp_key (String) PGP public key for encrypted email notifications.
  • pushbullet_access_token (String, Sensitive) Per-user Pushbullet access token override.
  • pushover_application_token (String, Sensitive) Per-user Pushover application token override.
  • pushover_sound (String) Per-user Pushover notification sound override.
  • pushover_user_key (String, Sensitive) Per-user Pushover user key override.
  • telegram_bot_username (String) Telegram bot username for this user.
  • telegram_chat_id (String) Telegram chat ID for this user.
  • telegram_enabled (Boolean) Whether Telegram notifications are enabled for this user.
  • telegram_message_thread_id (String) Telegram message thread ID for topic-based group chats.
  • telegram_send_silently (Boolean) Whether Telegram notifications should be sent silently.
  • webpush_enabled (Boolean) Whether Web Push notifications are enabled for this user.

Read-Only

  • id (String) The ID of this resource (matches user_id).
  • response_json (String) Raw JSON response body from the latest operation.
  • status_code (Number) HTTP status code from the latest operation.

Nested Schema for notification_types

Optional:

  • discord (Number) Notification types bitmask for Discord.
  • email (Number) Notification types bitmask for Email.
  • gotify (Number) Notification types bitmask for Gotify.
  • ntfy (Number) Notification types bitmask for Ntfy.
  • pushbullet (Number) Notification types bitmask for Pushbullet.
  • pushover (Number) Notification types bitmask for Pushover.
  • slack (Number) Notification types bitmask for Slack.
  • telegram (Number) Notification types bitmask for Telegram.
  • webhook (Number) Notification types bitmask for Webhook.
  • webpush (Number) Notification types bitmask for Webpush.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# In Terraform 1.5.0 and later, use an import block to import seerr_user_notification_settings. For example:
#
# import {
#   to = seerr_user_notification_settings.example
#   id = "1"
# }

# The ID of the user.
# Otherwise, use the terraform import command:
terraform import seerr_user_notification_settings.example 1