blob: 5a933365fd5942462a900548c8c5c9ed11959b95 [file]
---
layout: "cloudstack"
page_title: "Cloudstack: cloudstack_volume"
sidebar_current: "docs-cloudstack-cloudstack_volume"
description: |-
Gets information about cloudstack volume.
---
# cloudstack_volume
Use this datasource to get information about a volume for use in other resources.
### Example Usage
```hcl
data "cloudstack_volume" "volume-data-source"{
filter{
name = "name"
value="TestVolume"
}
}
```
### Argument Reference
* `filter` - (Required) One or more name/value pairs to filter off of. You can apply filters on any exported attributes.
## Attributes Reference
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.