| layout | cloudstack |
|---|---|
| page_title | Cloudstack: cloudstack_volume |
| sidebar_current | docs-cloudstack-cloudstack_volume |
| description | Gets information about cloudstack volume. |
Use this datasource to get information about a volume for use in other resources.
data "cloudstack_volume" "volume-data-source"{
filter{
name = "name"
value="TestVolume"
}
}filter- (Required) One or more name/value pairs to filter off of. You can apply filters on any exported attributes.
The following attributes are exported:
name- Name of the disk volume.disk_offering_id- ID of the disk offering.zone_id- ID of the availability zone.