47 lines
1.1 KiB
Markdown
47 lines
1.1 KiB
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "immich_activity Resource - terraform-provider-immich"
|
|
subcategory: ""
|
|
description: |-
|
|
Manages an Immich activity (comment or like).
|
|
---
|
|
|
|
# immich_activity (Resource)
|
|
|
|
Manages an Immich activity (comment or like).
|
|
|
|
## Example Usage
|
|
|
|
```terraform
|
|
resource "immich_activity" "album_comment" {
|
|
album_id = "your-album-uuid"
|
|
type = "comment"
|
|
comment = "This is a great album!"
|
|
}
|
|
|
|
resource "immich_activity" "asset_like" {
|
|
album_id = "your-album-uuid"
|
|
asset_id = "your-asset-uuid"
|
|
type = "like"
|
|
}
|
|
```
|
|
|
|
<!-- schema generated by tfplugindocs -->
|
|
## Schema
|
|
|
|
### Required
|
|
|
|
- `album_id` (String) ID of the album.
|
|
- `type` (String) Type of activity (comment or like).
|
|
|
|
### Optional
|
|
|
|
- `asset_id` (String) ID of the asset.
|
|
- `comment` (String) Comment text (required for type 'comment').
|
|
|
|
### Read-Only
|
|
|
|
- `created_at` (String) Timestamp when the activity was created.
|
|
- `id` (String) Unique identifier for the activity.
|
|
- `user_id` (String) ID of the user who performed the activity.
|