1 Resources banners_config
Forgejo Actions edited this page 2026-11-26 06:34:52 +00:00

openwebui_banners_config (Resource)

Manages the announcement banners Open WebUI shows above the chat to every user.

This resource owns the whole list. Each write replaces it, so a banner added in the web UI is removed on the next apply, and taking a banner out of banners is how you retire it.

Example Usage

resource "openwebui_banners_config" "example" {
  banners = [
    {
      id          = "maintenance-2024"
      type        = "warning"
      title       = "Scheduled Maintenance"
      content     = "The system will be unavailable Saturday 2 AM to 4 AM UTC."
      dismissible = true
      timestamp   = 1700000000
    },
  ]
}

Schema

Required

Read-Only

  • id (String) Identifier of this singleton resource. Always banners.

Nested Schema for banners

Required:

  • content (String) Full body text of the banner.
  • dismissible (Boolean) Whether users can dismiss the banner.
  • id (String) Identifier of this banner, unique within the list. You choose it, Open WebUI does not.
  • timestamp (Number) Unix timestamp stored with the banner, in seconds. Any integer is accepted.
  • type (String) Visual style of the banner: info, warning, or error.

Optional:

  • title (String) Short headline shown in the banner.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# The banner list is a single configuration block, so this resource is a
# singleton. Import it under its fixed id, and the whole list comes with it.
terraform import openwebui_banners_config.example banners