64 lines
1.2 KiB
Markdown
64 lines
1.2 KiB
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "immich_workflow Resource - 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.
|