openstack_blockstorage_volume_v3
openstack_blockstorage_volume_v3
For your information
This instruction is a copy of the official OpenStack Terraform provider's OpenStack Terraform documentation in the Terraform Registry.
Use this data source to get information about an existing volume.
Example Usage
data "openstack_blockstorage_volume_v3" "volume_1" {
name = "volume_1"
}
Argument Reference
-
region
— (Optional) The region in which to obtain the V3 Block Storage client. If omitted, theregion
argument of the provider is used. -
name
— (Optional) The name of the volume. -
status
— (Optional) The status of the volume. -
metadata
— (Optional) Metadata key/value pairs associated with the volume.
Attributes Reference
id
is set to the ID of the found volume. In addition, the following attributes
are exported:
region
— See Argument Reference above.name
— See Argument Reference above.status
— See Argument Reference above.metadata
— See Argument Reference above.volume_type
— The type of the volume.bootable
— Indicates if the volume is bootable.size
— The size of the volume in GBs.source_volume_id
— The ID of the volume from which the current volume was created.multiattach
— Indicates if the volume can be attached to more than then one server.host
— The OpenStack host on which the volume is located.