Skip to content

Commit

Permalink
feat: add indexer torrent rss resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Dec 8, 2022
1 parent fc7dff4 commit a948496
Show file tree
Hide file tree
Showing 6 changed files with 464 additions and 0 deletions.
60 changes: 60 additions & 0 deletions docs/resources/indexer_torrent_rss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "radarr_indexer_torrent_rss Resource - terraform-provider-radarr"
subcategory: "Indexers"
description: |-
Indexer Torrent RSS resource.
For more information refer to Indexer https://wiki.servarr.com/radarr/settings#indexers and Torrent RSS https://wiki.servarr.com/radarr/supported#torrentrssindexer.
---

# radarr_indexer_torrent_rss (Resource)

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

## Example Usage

```terraform
resource "radarr_indexer_torrent_rss" "example" {
enable_automatic_search = true
name = "Example"
base_url = "https://rss.io"
allow_zero_size = true
minimum_seeders = 1
}
```

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

### Required

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

### Optional

- `allow_zero_size` (Boolean) Allow zero size files.
- `cookie` (String) Cookie.
- `download_client_id` (Number) Download client ID.
- `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) IndexerTorrentRss ID.

## Import

Import is supported using the following syntax:

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

0 comments on commit a948496

Please sign in to comment.