docs: add examples and generate documentation for all new resources
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
---
|
||||
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
||||
page_title: "immich_workflow Resource - terraform-provider-immich"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
Manages an Immich workflow (Experimental).
|
||||
---
|
||||
|
||||
# immich_workflow (Resource)
|
||||
|
||||
Manages an Immich workflow (Experimental).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```terraform
|
||||
resource "immich_workflow" "example" {
|
||||
name = "Auto-Tag Video"
|
||||
enabled = true
|
||||
|
||||
triggers = jsonencode([
|
||||
{
|
||||
"type": "asset.upload",
|
||||
"options": {}
|
||||
}
|
||||
])
|
||||
|
||||
filters = jsonencode([
|
||||
{
|
||||
"type": "asset.type",
|
||||
"options": {
|
||||
"type": "video"
|
||||
}
|
||||
}
|
||||
])
|
||||
|
||||
actions = jsonencode([
|
||||
{
|
||||
"type": "asset.tag",
|
||||
"options": {
|
||||
"tagId": "your-tag-uuid"
|
||||
}
|
||||
}
|
||||
])
|
||||
}
|
||||
```
|
||||
|
||||
<!-- schema generated by tfplugindocs -->
|
||||
## Schema
|
||||
|
||||
### Required
|
||||
|
||||
- `actions` (String) JSON string representing the workflow actions.
|
||||
- `name` (String) Name of the workflow.
|
||||
- `triggers` (String) JSON string representing the workflow triggers.
|
||||
|
||||
### Optional
|
||||
|
||||
- `enabled` (Boolean) Whether the workflow is enabled.
|
||||
- `filters` (String) JSON string representing the workflow filters.
|
||||
|
||||
### Read-Only
|
||||
|
||||
- `id` (String) Unique identifier for the workflow.
|
||||
Reference in New Issue
Block a user