--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "immich_libraries Data Source - immich" subcategory: "" description: |- Retrieves a list of all Immich libraries. --- # immich_libraries (Data Source) Retrieves a list of all Immich libraries. ## Example Usage ```terraform data "immich_libraries" "all" {} output "library_names" { value = data.immich_libraries.all.libraries[*].name } output "external_libraries" { value = [for l in data.immich_libraries.all.libraries : l if l.type == "EXTERNAL"] } ``` ## Schema ### Read-Only - `libraries` (Attributes List) List of libraries. (see [below for nested schema](#nestedatt--libraries)) ### Nested Schema for `libraries` Read-Only: - `asset_count` (Number) Number of assets in the library. - `id` (String) Unique identifier for the library. - `name` (String) Display name of the library. - `owner_id` (String) Unique identifier of the library owner. - `type` (String) Type of the library (UPLOAD or EXTERNAL).