» 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
-
id- ID of the volume. -
name- Name of the volume. -
with_selector- Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation. -
with_status- (Optional, list) List only volumes with the specified status, could containcreatingoravailable.