Skip to content

Commit a17eb93

Browse files
authored
add disk type (#2189)
* add disk type * add more disk type
1 parent 988f70b commit a17eb93

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.changelog/2189.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_instance: Add more data disk types
3+
```

tencentcloud/extension_cvm.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const (
3232
CVM_DISK_TYPE_CLOUD_PREMIUM = "CLOUD_PREMIUM"
3333
CVM_DISK_TYPE_CLOUD_BSSD = "CLOUD_BSSD"
3434
CVM_DISK_TYPE_CLOUD_HSSD = "CLOUD_HSSD"
35+
CVM_DISK_TYPE_CLOUD_TSSD = "CLOUD_TSSD"
3536

3637
CVM_PLACEMENT_GROUP_TYPE_HOST = "HOST"
3738
CVM_PLACEMENT_GROUP_TYPE_SW = "SW"
@@ -102,6 +103,8 @@ var CVM_DISK_TYPE = []string{
102103
CVM_DISK_TYPE_CLOUD_SSD,
103104
CVM_DISK_TYPE_CLOUD_PREMIUM,
104105
CVM_DISK_TYPE_CLOUD_BSSD,
106+
CVM_DISK_TYPE_CLOUD_HSSD,
107+
CVM_DISK_TYPE_CLOUD_TSSD,
105108
}
106109

107110
var CVM_PLACEMENT_GROUP_TYPE = []string{

tencentcloud/resource_tc_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func resourceTencentCloudInstance() *schema.Resource {
316316
Optional: true,
317317
Default: CVM_DISK_TYPE_CLOUD_PREMIUM,
318318
ValidateFunc: validateAllowedStringValue(CVM_DISK_TYPE),
319-
Description: "System disk type. For more information on limits of system disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk, `LOCAL_SSD`: local SSD disk, `CLOUD_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage, `CLOUD_BSSD`: Basic SSD. NOTE: If modified, the instance may force stop.",
319+
Description: "System disk type. For more information on limits of system disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk, `LOCAL_SSD`: local SSD disk, `CLOUD_BASIC`: cloud disk, `CLOUD_SSD`: cloud SSD disk, `CLOUD_PREMIUM`: Premium Cloud Storage, `CLOUD_BSSD`: Basic SSD, `CLOUD_HSSD`: Enhanced SSD, `CLOUD_TSSD`: Tremendous SSD. NOTE: If modified, the instance may force stop.",
320320
},
321321
"system_disk_size": {
322322
Type: schema.TypeInt,

website/docs/r/instance.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ The following arguments are supported:
141141
* `subnet_id` - (Optional, String) The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
142142
* `system_disk_id` - (Optional, String) System disk snapshot ID used to initialize the system disk. When system disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk id is not supported.
143143
* `system_disk_size` - (Optional, Int) Size of the system disk. unit is GB, Default is 50GB. If modified, the instance may force stop.
144-
* `system_disk_type` - (Optional, String) System disk type. For more information on limits of system disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk, `LOCAL_SSD`: local SSD disk, `CLOUD_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage, `CLOUD_BSSD`: Basic SSD. NOTE: If modified, the instance may force stop.
144+
* `system_disk_type` - (Optional, String) System disk type. For more information on limits of system disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk, `LOCAL_SSD`: local SSD disk, `CLOUD_BASIC`: cloud disk, `CLOUD_SSD`: cloud SSD disk, `CLOUD_PREMIUM`: Premium Cloud Storage, `CLOUD_BSSD`: Basic SSD, `CLOUD_HSSD`: Enhanced SSD, `CLOUD_TSSD`: Tremendous SSD. NOTE: If modified, the instance may force stop.
145145
* `tags` - (Optional, Map) A mapping of tags to assign to the resource. For tag limits, please refer to [Use Limits](https://intl.cloud.tencent.com/document/product/651/13354).
146146
* `user_data_raw` - (Optional, String, ForceNew) The user data to be injected into this instance, in plain text. Conflicts with `user_data`. Up to 16 KB after base64 encoded.
147147
* `user_data` - (Optional, String, ForceNew) The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.

0 commit comments

Comments
 (0)