Skip to content

Commit

Permalink
feat: add import list radarr resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Jan 26, 2023
1 parent f53606e commit c138d40
Show file tree
Hide file tree
Showing 6 changed files with 484 additions and 0 deletions.
67 changes: 67 additions & 0 deletions docs/resources/import_list_radarr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "radarr_import_list_radarr Resource - terraform-provider-radarr"
subcategory: "Import Lists"
description: |-
Import List Radarr resource.
For more information refer to Import List https://wiki.servarr.com/radarr/settings#import-lists and Radarr https://wiki.servarr.com/radarr/supported#radarrimport.
---

# radarr_import_list_radarr (Resource)

<!-- subcategory:Import Lists -->Import List Radarr resource.
For more information refer to [Import List](https://wiki.servarr.com/radarr/settings#import-lists) and [Radarr](https://wiki.servarr.com/radarr/supported#radarrimport).

## Example Usage

```terraform
resource "radarr_import_list_radarr" "example" {
enabled = true
enable_auto = false
search_on_add = false
root_folder_path = "/config"
monitor = "none"
minimum_availability = "tba"
quality_profile_id = 1
name = "Example"
api_key = "ExampleAPIKey"
tag_ids = [1, 2]
profile_ids = [1]
}
```

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

### Required

- `api_key` (String, Sensitive) API key.
- `base_url` (String) Base URL.
- `minimum_availability` (String) Minimum availability.
- `monitor` (String) Should monitor.
- `name` (String) Import List name.
- `quality_profile_id` (Number) Quality profile ID.
- `root_folder_path` (String) Root folder path.

### Optional

- `enable_auto` (Boolean) Enable automatic add flag.
- `enabled` (Boolean) Enabled flag.
- `list_order` (Number) List order.
- `profile_ids` (Set of Number) Profile IDs.
- `search_on_add` (Boolean) Search on add flag.
- `tag_ids` (Set of Number) Tag IDs.
- `tags` (Set of Number) List of associated tags.

### Read-Only

- `id` (Number) Import List ID.

## Import

Import is supported using the following syntax:

```shell
# import using the API/UI ID
terraform import radarr_import_list_radarr.example 1
```
2 changes: 2 additions & 0 deletions examples/resources/radarr_import_list_radarr/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_import_list_radarr.example 1
13 changes: 13 additions & 0 deletions examples/resources/radarr_import_list_radarr/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
resource "radarr_import_list_radarr" "example" {
enabled = true
enable_auto = false
search_on_add = false
root_folder_path = "/config"
monitor = "none"
minimum_availability = "tba"
quality_profile_id = 1
name = "Example"
api_key = "ExampleAPIKey"
tag_ids = [1, 2]
profile_ids = [1]
}
Loading

0 comments on commit c138d40

Please sign in to comment.