Skip to content

Commit

Permalink
feat: add indexer nyaa resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Dec 8, 2022
1 parent 05cc40a commit 4c83f9b
Show file tree
Hide file tree
Showing 6 changed files with 476 additions and 0 deletions.
61 changes: 61 additions & 0 deletions docs/resources/indexer_nyaa.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "radarr_indexer_nyaa Resource - terraform-provider-radarr"
subcategory: "Indexers"
description: |-
Indexer Nyaa resource.
For more information refer to Indexer https://wiki.servarr.com/radarr/settings#indexers and Nyaa https://wiki.servarr.com/radarr/supported#nyaa.
---

# radarr_indexer_nyaa (Resource)

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

## Example Usage

```terraform
resource "radarr_indexer_nyaa" "example" {
enable_automatic_search = true
name = "Example"
base_url = "https://nyaa.io"
additional_parameters = "&cats=1_0&filter=1"
minimum_seeders = 1
}
```

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

### Required

- `base_url` (String) Base URL.
- `name` (String) IndexerNyaa name.

### Optional

- `additional_parameters` (String) Additional parameters.
- `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.
- `minimum_seeders` (Number) Minimum seeders.
- `multi_languages` (Set of Number) Languages list.
- `priority` (Number) Priority.
- `required_flags` (Set of Number) Flag list.
- `seed_ratio` (Number) Seed ratio.
- `seed_time` (Number) Seed time.
- `tags` (Set of Number) List of associated tags.

### Read-Only

- `id` (Number) IndexerNyaa ID.

## Import

Import is supported using the following syntax:

```shell
# import using the API/UI ID
terraform import radarr_indexer_nyaa.example 1
```
2 changes: 2 additions & 0 deletions examples/resources/radarr_indexer_nyaa/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_nyaa.example 1
7 changes: 7 additions & 0 deletions examples/resources/radarr_indexer_nyaa/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resource "radarr_indexer_nyaa" "example" {
enable_automatic_search = true
name = "Example"
base_url = "https://nyaa.io"
additional_parameters = "&cats=1_0&filter=1"
minimum_seeders = 1
}
Loading

0 comments on commit 4c83f9b

Please sign in to comment.