Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 2.32 KB

File metadata and controls

67 lines (50 loc) · 2.32 KB
page_title subcategory description
stackit_server_backup_schedule Resource - stackit
Server backup schedule resource schema. Must have a region specified in the provider configuration.

stackit_server_backup_schedule (Resource)

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

Example Usage

resource "stackit_server_backup_schedule" "example" {
  project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  server_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  name       = "example_backup_schedule_name"
  rrule      = "DTSTART;TZID=Europe/Sofia:20200803T023000 RRULE:FREQ=DAILY;INTERVAL=1"
  enabled    = true
  backup_properties = {
    name             = "example_backup_name"
    retention_period = 14
    volume_ids       = null
  }
}

# Only use the import statement, if you want to import an existing server backup schedule
import {
  to = stackit_server_backup_schedule.import-example
  id = "${var.project_id},${var.region},${var.server_id},${var.server_backup_schedule_id}"
}

Schema

Required

  • backup_properties (Attributes) Backup schedule details for the backups. (see below for nested schema)
  • enabled (Boolean) Is the backup schedule enabled or disabled.
  • name (String) The schedule name.
  • project_id (String) STACKIT Project ID to which the server is associated.
  • rrule (String) An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates.
  • server_id (String) Server ID for the backup schedule.

Optional

  • region (String) The resource region. If not defined, the provider region is used.

Read-Only

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

Nested Schema for backup_properties

Required:

  • name (String)
  • retention_period (Number)

Optional:

  • volume_ids (List of String)