Skip to content

Latest commit

 

History

History
61 lines (50 loc) · 2.04 KB

backupschedule.html.md

File metadata and controls

61 lines (50 loc) · 2.04 KB
layout page_title sidebar_current description
gridscale
gridscale: storage backup schedule
docs-gridscale-datasource-backupschedule
Gets data of a storage backup schedule.

gridscale_backupschedule

Gets data of a storage backup schedule.

Example Usage

resource "gridscale_storage" "foo" {
  name   = "storage"
  capacity = 1
}
resource "gridscale_backupschedule" "foo" {
  name = "backupschedule"
  storage_uuid = gridscale_storage.foo.id
  keep_backups = 1
  run_interval = 60
  next_runtime = "2025-12-30 15:04:05"
  active       = true
}
data "gridscale_backupschedule" "foo" {
  resource_id   = gridscale_backupschedule.foo.id
  storage_uuid   = gridscale_storage.foo.id
}

Argument Reference

The following arguments are supported:

  • resource_id - (Required) UUID of the backup schedule.

  • storage_uuid - (Required) UUID of the storage that the backup schedule belongs to.

Attributes Reference

The following attributes are exported:

  • id - The UUID of the backup schedule.
  • storage_uuid - UUID of the storage that the backup schedule belongs to.
  • status - The status of the backup schedule.
  • active - The status of the schedule active or not.
  • backup_location_uuid - UUID of the location where your backup is stored.
  • backup_location_name - The human-readable name of backup location. It supports the full UTF-8 character set, with a maximum of 64 characters.
  • name - The human-readable name of the backup schedule.
  • next_runtime - The date and time that the backup schedule will be run.
  • keep_backups - The amount of Snapshots to keep before overwriting the last created Snapshot.
  • run_interval - The interval at which the schedule will run (in minutes).
  • create_time - The date and time the backup schedule was initially created.
  • change_time - The date and time of the last backup schedule change.
  • storage_backups - Related backups.
    • name - Name of the backup.
    • object_uuid - UUID of the backup.
    • create_time - The date and time the backup was initially created.