Ressourcen
uptimeify_status_page_design
Ressource uptimeify_status_page_design: Beispiel, alle Attribute, Import.
Die Beschreibungen auf dieser Seite kommen direkt aus dem Provider-Schema und sind deshalb englisch.
The design of one status page (one per page). Unset arguments keep their current value; removing an argument from the configuration does not reset it. Destroying the resource resets the whole design to the defaults. Every option with examples: Status page design. Import with the numeric status page id.
Beispiel
resource "uptimeify_status_page_design" "acme" {
status_page_id = tonumber(uptimeify_status_page.acme.id)
layout = "statusboard"
color_scheme = "auto"
accent_color = "#0f766e"
custom_title = "ACME Status"
show_powered_by = false
history_days = 90
incident_limit = 10
# Own texts for the states; states left out show the default text.
status_labels = {
operational = "All systems go"
major_outage = "We are on it"
}
}Schema
Pflichtfelder
status_page_id(Number) Numeric status page id. Changing it replaces the resource.
Optional
accent_color(String) 6-digit hex color, e.g.#6366f1(default).card_radius(String)none,md(default) orxl.color_scheme(String)light,darkorauto(default).custom_css(String) Own CSS for the public page only, at most 20000 bytes; empty string = none (default). Nourl(),@import,@font-faceor other resource loads; a rejected stylesheet fails the apply. Kept as written in state; the server's regenerated form iscustom_css_stored.custom_subtitle(String) Up to 200 characters.custom_title(String) Visible page title, up to 120 characters. Empty = the page name.font_family(String)system(default) ormono.header_style(String)simple(default),centeredorhero.history_days(Number) Window of the availability bars, 1 to 3650 days. Default30.incident_days(Number) 1 to 3650 days. Default30.incident_limit(Number) 1 to 50 incidents. Default5.layout(String) Layout preset, with its name and caption in the design editor:classic(Classic, card and list),cards(Cards, service grid),minimal(Minimal, clean lines),sleek(Sleek, dark with glow),board(Board, color rows),split(Split, two columns),timeline(Timeline, event feed),compact(Compact, dense table) orstatusboard(Statusboard, uptime bars; the default). All show the same data. Descriptions and screenshots: Status page design.maintenance_days(Number) How far back past maintenance is shown, 1 to 3650 days. Default30.maintenance_limit(Number) 1 to 50 maintenance windows. Default5.page_width(String)sm,md,lg(default) orxl.show_history(Boolean) Show availability bars. Defaulttrue.show_incidents(Boolean) Defaulttrue. Same switch asshow_recent_incidentsof the page API.show_last_checked(Boolean) Defaultfalse.show_maintenance(Boolean) Defaulttrue.show_powered_by(Boolean) Defaulttrue.show_service_urls(Boolean) Show monitor URLs. Defaultfalse.show_uptime_stats(Boolean) Defaulttrue.status_labels(Map of String) Own public texts per state, used by every layout, the badge and the widget. Keys:operational,degraded,partial_outage,major_outage,maintenance; values 1 to 40 characters, no surrounding whitespace. When set, the map is the complete list: a state left out shows its default text.
Nur lesbar
custom_css_stored(String)custom_cssas the server stored it (regenerated and minified). A change made outside Terraform shows up here and incustom_css.id(String) Same asstatus_page_id.seo_title(String)<title>override; not settable through the API.
Import
Import geht so:
Mit tofu import bzw. terraform import, zum Beispiel:
# Numeric status page id
terraform import uptimeify_status_page_design.acme 42