terraform-provider-stackitp.../docs/resources/server_update_schedule.md
a_nackov 100704c0f4
ref 635294: server update schedules (#607)
Signed-off-by: Adrian Nackov <adrian.nackov@mail.schwarz>
2024-12-12 17:20:29 +00:00

2 KiB

page_title subcategory description
stackit_server_update_schedule Resource - stackit Server update schedule resource schema. Must have a region specified in the provider configuration. ~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.

stackit_server_update_schedule (Resource)

Server update schedule resource schema. Must have a region specified in the provider configuration.

~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources.

Example Usage

resource "stackit_server_update_schedule" "example" {
  project_id         = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  server_id          = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  name               = "example_update_schedule_name"
  rrule              = "DTSTART;TZID=Europe/Sofia:20200803T023000 RRULE:FREQ=DAILY;INTERVAL=1"
  enabled            = true
  maintenance_window = 1
}

Schema

Required

  • enabled (Boolean) Is the update schedule enabled or disabled.
  • maintenance_window (Number) Maintenance window [1..24].
  • name (String) The schedule name.
  • project_id (String) STACKIT Project ID to which the server is associated.
  • rrule (String) Update schedule described in rrule (recurrence rule) format.
  • server_id (String) Server ID for the update schedule.

Read-Only

  • id (String) Terraform's internal resource identifier. It is structured as "project_id,server_id,update_schedule_id".
  • update_schedule_id (Number) Update schedule ID.