Skip to content

Commit

Permalink
feat: add indexer newznab resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Nov 15, 2022
1 parent b6db72e commit b5e20e6
Show file tree
Hide file tree
Showing 6 changed files with 500 additions and 0 deletions.
62 changes: 62 additions & 0 deletions docs/resources/indexer_newznab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "radarr_indexer_newznab Resource - terraform-provider-radarr"
subcategory: "Indexers"
description: |-
Indexer Newznab resource.
For more information refer to Indexer https://wiki.servarr.com/radarr/settings#indexers and Newznab https://wiki.servarr.com/radarr/supported#newznab.
---

# radarr_indexer_newznab (Resource)

<!-- subcategory:Indexers -->Indexer Newznab resource.
For more information refer to [Indexer](https://wiki.servarr.com/radarr/settings#indexers) and [Newznab](https://wiki.servarr.com/radarr/supported#newznab).

## Example Usage

```terraform
resource "radarr_indexer_newznab" "example" {
enable_automatic_search = true
name = "Test"
base_url = "https://lolo.sickbeard.com"
api_path = "/api"
categories = [8000, 5000]
tags = [1, 2]
}
```

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

### Required

- `name` (String) IndexerNewznab name.

### Optional

- `additional_parameters` (String) Additional parameters.
- `api_key` (String) API key.
- `api_path` (String) API path.
- `base_url` (String) Base URL.
- `categories` (Set of Number) Series list.
- `download_client_id` (Number) Download client ID.
- `enable_automatic_search` (Boolean) Enable automatic search flag.
- `enable_interactive_search` (Boolean) Enable interactive search flag.
- `enable_rss` (Boolean) Enable RSS flag.
- `multi_languages` (Set of Number) Multi languages.
- `priority` (Number) Priority.
- `remove_year` (Boolean) Remove year.
- `tags` (Set of Number) List of associated tags.

### Read-Only

- `id` (Number) IndexerNewznab ID.

## Import

Import is supported using the following syntax:

```shell
# import using the API/UI ID
terraform import radarr_indexer_newznab.example 1
```
2 changes: 2 additions & 0 deletions examples/resources/radarr_indexer_newznab/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_indexer_newznab.example 1
8 changes: 8 additions & 0 deletions examples/resources/radarr_indexer_newznab/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resource "radarr_indexer_newznab" "example" {
enable_automatic_search = true
name = "Test"
base_url = "https://lolo.sickbeard.com"
api_path = "/api"
categories = [8000, 5000]
tags = [1, 2]
}
Loading

0 comments on commit b5e20e6

Please sign in to comment.