文档中心 资源编排 Terraform Provider参考 EBS Resources ksyun_volume

ksyun_volume

最近更新时间:2025-03-18 20:10:12

提供EBS卷资源。

使用示例

resource "ksyun_volume" "default" {
  volume_name="test"
  volume_type="SSD3.0"
  size=15
  charge_type="Daily"
  availability_zone="cn-shanghai-3a"
  volume_desc="test"
}

Argument Reference

The following arguments are supported:

  • volume_name - (Optional) The name of the volume, which contains 2 to 50 characters and supports only alphanumeric characters, hyphens (-), and underscores (_).

  • volume_type - (Required) The type of the volume to create. Valid values are SSD3.0 and EHDD.

  • size - (Required) The size of the volume in GB.

  • charge_type - (Required) The charging type of the volume. Valid values are Monthly, Daily, and HourlyInstantSettlement.

  • volume_desc - (Optional) The description of the volume.

参数参考

支持以下参数:

  • volume_name - (可选)卷的名称,包含2到50个字符,只支持字母数字字符、连字符(-)和下划线(_)。

  • volume_type - (必选)要创建的卷的类型。有效值为 SSD3.0 和 EHDD。

  • size - (必选)卷的大小,以GB为单位。

  • charge_type - (必选)卷的计费类型。有效值为 MonthlyDailyHourlyInstantSettlement

  • volume_desc - (可选)卷的描述。

上一篇:EBS Resources
下一篇:ksyun_volume_attach
以上内容是否对您有帮助?
有帮助
没帮助