最近更新时间:2025-03-18 20:10:12
此数据源提供基于可用区的卷资源列表。
# 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
.
支持以下参数:
ids
- (可选)卷ID列表。如果未提供此参数,将查询所有卷。
volume_category
- (可选)卷的分类。有效值为 system
(系统盘)和 data
(数据盘)。
volume_status
- (可选)卷的状态。有效值为 creating
、available
、attaching
、in-use
、detaching
、extending
、deleting
、error
和 recycling
。
volume_type
- (可选)卷的类型。有效值为 SSD 和 SATA。
output_file
- (可选)执行terraform plan时存储数据源结果输出的文件名称。
纯净模式