1 Data sources files
Forgejo Actions edited this page 2026-11-26 06:34:52 +00:00

openwebui_files (Data Source)

Returns a filtered list of files uploaded to Open WebUI.

Example Usage

data "openwebui_files" "all" {}

# The extracted text of every file arrives in data_json by default, which makes
# for a large state file when the documents are large. Set content = false to
# read the file records without it.
data "openwebui_files" "manuals" {
  filename = "manual"
  content  = false
  limit    = 20
}

Schema

Optional

  • content (Boolean) Whether Open WebUI includes each file's extracted text, which arrives inside data_json. Defaults to true. Set it to false to keep the text of large documents out of Terraform state.
  • filename (String) Filename substring to filter by. Returns all files if omitted.
  • limit (Number) Maximum number of results to return.
  • skip (Number) Number of results to skip for pagination.

Read-Only

Nested Schema for files

Read-Only:

  • created_at (Number) Unix timestamp of when the file was uploaded.
  • data_json (String) JSON data blob associated with the file. It carries the file's extracted text while content is true.
  • filename (String) Original filename as stored by Open WebUI.
  • hash (String) SHA-256 hash of the file content.
  • id (String) UUID of the file.
  • meta_json (String) JSON metadata blob associated with the file.
  • updated_at (Number) Unix timestamp of when the file record was last updated.
  • user_id (String) UUID of the Open WebUI account that owns this object.