Skip to content

Commit

Permalink
feat: add notification join resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Dec 9, 2022
1 parent 30cd267 commit 56062d3
Show file tree
Hide file tree
Showing 6 changed files with 520 additions and 0 deletions.
73 changes: 73 additions & 0 deletions docs/resources/notification_join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "radarr_notification_join Resource - terraform-provider-radarr"
subcategory: "Notifications"
description: |-
Notification Join resource.
For more information refer to Notification https://wiki.servarr.com/radarr/settings#connect and Join https://wiki.servarr.com/radarr/supported#join.
---

# radarr_notification_join (Resource)

<!-- subcategory:Notifications -->Notification Join resource.
For more information refer to [Notification](https://wiki.servarr.com/radarr/settings#connect) and [Join](https://wiki.servarr.com/radarr/supported#join).

## Example Usage

```terraform
resource "radarr_notification_join" "example" {
on_grab = false
on_download = true
on_upgrade = true
on_movie_added = false
on_movie_delete = false
on_movie_file_delete = false
on_movie_file_delete_for_upgrade = true
on_health_issue = false
on_application_update = false
include_health_warnings = false
name = "Example"
device_names = "device1,device2"
api_key = "Key"
priority = 2
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) NotificationJoin name.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_delete` (Boolean) On movie delete flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_upgrade` (Boolean) On upgrade flag.

### Optional

- `api_key` (String, Sensitive) API key.
- `device_names` (String) Device names. Comma separated list.
- `priority` (Number) Priority. `-2` Silent, `-1` Quiet, `0` Normal, `1` High, `2` Emergency.
- `tags` (Set of Number) List of associated tags.

### Read-Only

- `id` (Number) Notification ID.

## Import

Import is supported using the following syntax:

```shell
# import using the API/UI ID
terraform import radarr_notification_join.example 1
```
2 changes: 2 additions & 0 deletions examples/resources/radarr_notification_join/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# import using the API/UI ID
terraform import radarr_notification_join.example 1
18 changes: 18 additions & 0 deletions examples/resources/radarr_notification_join/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
resource "radarr_notification_join" "example" {
on_grab = false
on_download = true
on_upgrade = true
on_movie_added = false
on_movie_delete = false
on_movie_file_delete = false
on_movie_file_delete_for_upgrade = true
on_health_issue = false
on_application_update = false

include_health_warnings = false
name = "Example"

device_names = "device1,device2"
api_key = "Key"
priority = 2
}
Loading

0 comments on commit 56062d3

Please sign in to comment.