back
terraform {
required_providers {
gridscale = ">= 1.8.4"
}
}
top
module "gridscale_backup_list" {
source = "./modules/gridscale/d/gridscale_backup_list"
# storage_uuid - (required) is a type of string
storage_uuid = null
}
top
variable "storage_uuid" {
description = "(required) - UUID of the storage"
type = string
}
top
data "gridscale_backup_list" "this" {
# storage_uuid - (required) is a type of string
storage_uuid = var.storage_uuid
}
top
output "id" {
description = "returns a string"
value = data.gridscale_backup_list.this.id
}
output "storage_backups" {
description = "returns a list of object"
value = data.gridscale_backup_list.this.storage_backups
}
output "this" {
value = gridscale_backup_list.this
}
top