Files

47 lines
1.1 KiB
Markdown

---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "immich_notifications Data Source - immich"
subcategory: ""
description: |-
Retrieves a list of notifications for the current user.
---
# immich_notifications (Data Source)
Retrieves a list of notifications for the current user.
## Example Usage
```terraform
data "immich_notifications" "my_unread" {
unread_only = true
}
output "unread_notifications" {
value = data.immich_notifications.my_unread.notifications
}
```
<!-- schema generated by tfplugindocs -->
## Schema
### Optional
- `unread_only` (Boolean) Filter for only unread notifications.
### Read-Only
- `notifications` (Attributes List) List of notifications. (see [below for nested schema](#nestedatt--notifications))
<a id="nestedatt--notifications"></a>
### Nested Schema for `notifications`
Read-Only:
- `created_at` (String) Timestamp when the notification was created.
- `description` (String) Notification message body.
- `id` (String) Unique identifier for the notification.
- `level` (String) Severity level.
- `title` (String) Notification title.
- `type` (String) Type of notification.