最近更新时间:2019-12-20 17:36:18
This data source provides a list of volume resources based on the availability zone.
# Get volumes
data "ksyun_volumes" "default" {
output_file="output_result"
ids=[]
volume_category=""
volume_status=""
volume_type=""
availability_zone=""
}
The following arguments are supported:
ids - (Optional) A list of volume IDs. If this parameter is not provided, all volumes are queried.volume_category - (Optional) The category of volumes. Valid values are system (system disk) and data (data disk).volume_status - (Optional) The status of volumes. Valid values are creating, available,attaching, in-use, detaching, extending, deleting, error, and recycling.volume_type - (Optional) The type of volumes. Valid values are SSD and SATA.output_file - (Optional) The name of the file to store data source results output by executing terraform plan.纯净模式
