» Data Source: hcloud_volume

Provides details about a Hetzner Cloud volume. This resource is useful if you want to use a non-terraform managed volume.

» Example Usage

data "hcloud_volume" "volume_1" {
  id = "1234"
}
data "hcloud_volume" "volume_2" {
  name = "my-volume"
}
data "hcloud_volume" "volume_3" {
  with_selector = "key=value"
}

» Argument Reference

» Attributes Reference

  • id - Unique ID of the volume.
  • name - Name of the volume.
  • size - Size of the volume.