最近更新时间: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"
}
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
- (必选)卷的计费类型。有效值为 Monthly
、Daily
和 HourlyInstantSettlement
。
volume_desc
- (可选)卷的描述。
纯净模式