全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

ksyun_volumes

最近更新时间: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=""
}

Argument Reference

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 - (可选)卷的状态。有效值为 creatingavailableattachingin-usedetachingextendingdeletingerrorrecycling

  • volume_type - (可选)卷的类型。有效值为 SSD 和 SATA。

  • output_file - (可选)执行terraform plan时存储数据源结果输出的文件名称。

文档导读
纯净模式常规模式

纯净模式

点击可全屏预览文档内容