Skip to content

Commit 83bed84

Browse files
authored
Merge pull request #187 from oliverpei/master
update cvm data disk size limit
2 parents f823ded + 4fc39df commit 83bed84

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tencentcloud/resource_tc_cbs_storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func resourceTencentCloudCbsStorage() *schema.Resource {
6161
Type: schema.TypeInt,
6262
Required: true,
6363
ValidateFunc: validateIntegerInRange(10, 16000),
64-
Description: "Volume of CBS.",
64+
Description: "Volume of CBS, and unit is GB. If storage type is `CLOUD_SSD`, the size range is [100, 16000], and the others are [10-16000].",
6565
},
6666
"period": {
6767
Type: schema.TypeInt,

tencentcloud/resource_tc_instance.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ func resourceTencentCloudInstance() *schema.Resource {
263263
"data_disk_size": {
264264
Type: schema.TypeInt,
265265
Required: true,
266-
ValidateFunc: validateIntegerInRange(50, 16000),
267-
Description: "Size of the system disk. Value range: [50, 16000], and unit is GB.",
266+
ValidateFunc: validateIntegerInRange(10, 16000),
267+
Description: "Size of the data disk, and unit is GB. If disk type is `CLOUD_SSD`, the size range is [100, 16000], and the others are [10-16000].",
268268
},
269269
"data_disk_id": {
270270
Type: schema.TypeString,

website/docs/r/cbs_storage.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The following arguments are supported:
3333

3434
* `availability_zone` - (Required, ForceNew) The available zone that the CBS instance locates at.
3535
* `storage_name` - (Required) Name of CBS. The maximum length can not exceed 60 bytes.
36-
* `storage_size` - (Required) Volume of CBS.
36+
* `storage_size` - (Required) Volume of CBS, and unit is GB. If storage type is `CLOUD_SSD`, the size range is [100, 16000], and the others are [10-16000].
3737
* `storage_type` - (Required, ForceNew) Type of CBS medium, and available values include CLOUD_BASIC, CLOUD_PREMIUM and CLOUD_SSD.
3838
* `encrypt` - (Optional, ForceNew) Indicates whether CBS is encrypted.
3939
* `period` - (Optional) The purchased usage period of CBS, and value range [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36].

website/docs/r/instance.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ The following arguments are supported:
113113

114114
The `data_disks` object supports the following:
115115

116-
* `data_disk_size` - (Required) Size of the system disk. Value range: [50, 16000], and unit is GB.
116+
* `data_disk_size` - (Required) Size of the data disk, and unit is GB. If disk type is `CLOUD_SSD`, the size range is [100, 16000], and the others are [10-16000].
117117
* `data_disk_type` - (Required) Type of the data disk. Valid values are `LOCAL_BASIC`, `LOCAL_SSD`, `CLOUD_BASIC`, `CLOUD_SSD` and `CLOUD_PREMIUM`. NOTE: `LOCAL_BASIC` and `LOCAL_SSD` are deprecated.
118118
* `data_disk_id` - (Optional) Data disk snapshot ID used to initialize the data disk. When data disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk id is not supported.
119119
* `delete_with_instance` - (Optional) Decides whether the disk is deleted with instance(only applied to cloud disk), default to true.

0 commit comments

Comments
 (0)