layout | page_title | sidebar_current | description |
---|---|---|---|
cloudstack |
Cloudstack: cloudstack_volume |
docs-cloudstack-cloudstack_volume |
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.