diff --git a/.changelog/3193.txt b/.changelog/3193.txt new file mode 100644 index 0000000000..bf2482487f --- /dev/null +++ b/.changelog/3193.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/tencentcloud_mysql_instance: update `device_type` description +``` \ No newline at end of file diff --git a/tencentcloud/services/cdb/resource_tc_mysql_instance.go b/tencentcloud/services/cdb/resource_tc_mysql_instance.go index 953b552af2..3e63360066 100644 --- a/tencentcloud/services/cdb/resource_tc_mysql_instance.go +++ b/tencentcloud/services/cdb/resource_tc_mysql_instance.go @@ -152,10 +152,16 @@ func TencentMsyqlBasicInfo() map[string]*schema.Schema { Description: "Specify whether to enable fast upgrade when upgrade instance spec, available value: `1` - enabled, `0` - disabled.", }, "device_type": { - Type: schema.TypeString, - Optional: true, - Computed: true, - Description: "Specify device type, available values: `UNIVERSAL` (default), `EXCLUSIVE`, `BASIC`.", + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Specify device type, available values:\n" + + " - `UNIVERSAL` (default): universal instance,\n" + + " - `EXCLUSIVE`: exclusive instance,\n" + + " - `BASIC_V2`: ONTKE single-node instance,\n" + + " - `CLOUD_NATIVE_CLUSTER`: cluster version standard type,\n" + + " - `CLOUD_NATIVE_CLUSTER_EXCLUSIVE`: cluster version enhanced type.\n" + + "If it is not specified, it defaults to a universal instance.", }, "tags": { Type: schema.TypeMap, diff --git a/tencentcloud/services/cdb/resource_tc_mysql_instance.md b/tencentcloud/services/cdb/resource_tc_mysql_instance.md index ab9f95b790..a678bca2f8 100644 --- a/tencentcloud/services/cdb/resource_tc_mysql_instance.md +++ b/tencentcloud/services/cdb/resource_tc_mysql_instance.md @@ -32,6 +32,7 @@ resource "tencentcloud_security_group" "security_group" { } resource "tencentcloud_mysql_instance" "example" { + device_type = "BASIC_V2" internet_service = 1 engine_version = "5.7" charge_type = "POSTPAID" diff --git a/website/docs/r/mysql_instance.html.markdown b/website/docs/r/mysql_instance.html.markdown index f6b5646a6a..c03c0b580a 100644 --- a/website/docs/r/mysql_instance.html.markdown +++ b/website/docs/r/mysql_instance.html.markdown @@ -43,6 +43,7 @@ resource "tencentcloud_security_group" "security_group" { } resource "tencentcloud_mysql_instance" "example" { + device_type = "BASIC_V2" internet_service = 1 engine_version = "5.7" charge_type = "POSTPAID" @@ -143,7 +144,13 @@ The following arguments are supported: * `availability_zone` - (Optional, String) Indicates which availability zone will be used. * `charge_type` - (Optional, String, ForceNew) Pay type of instance. Valid values:`PREPAID`, `POSTPAID`. Default is `POSTPAID`. * `cpu` - (Optional, Int) CPU cores. -* `device_type` - (Optional, String) Specify device type, available values: `UNIVERSAL` (default), `EXCLUSIVE`, `BASIC`. +* `device_type` - (Optional, String) Specify device type, available values: + - `UNIVERSAL` (default): universal instance, + - `EXCLUSIVE`: exclusive instance, + - `BASIC_V2`: ONTKE single-node instance, + - `CLOUD_NATIVE_CLUSTER`: cluster version standard type, + - `CLOUD_NATIVE_CLUSTER_EXCLUSIVE`: cluster version enhanced type. +If it is not specified, it defaults to a universal instance. * `engine_type` - (Optional, String) Instance engine type. The default value is `InnoDB`. Supported values include `InnoDB` and `RocksDB`. * `engine_version` - (Optional, String) The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0, and default is 5.7. Upgrade the instance engine version to support 5.6/5.7 and switch immediately. * `fast_upgrade` - (Optional, Int) Specify whether to enable fast upgrade when upgrade instance spec, available value: `1` - enabled, `0` - disabled. diff --git a/website/docs/r/mysql_readonly_instance.html.markdown b/website/docs/r/mysql_readonly_instance.html.markdown index 5956ed594d..7714d29ec1 100644 --- a/website/docs/r/mysql_readonly_instance.html.markdown +++ b/website/docs/r/mysql_readonly_instance.html.markdown @@ -92,7 +92,13 @@ The following arguments are supported: * `auto_renew_flag` - (Optional, Int) Auto renew flag. NOTES: Only supported prepaid instance. * `charge_type` - (Optional, String, ForceNew) Pay type of instance. Valid values:`PREPAID`, `POSTPAID`. Default is `POSTPAID`. * `cpu` - (Optional, Int) CPU cores. -* `device_type` - (Optional, String) Specify device type, available values: `UNIVERSAL` (default), `EXCLUSIVE`, `BASIC`. +* `device_type` - (Optional, String) Specify device type, available values: + - `UNIVERSAL` (default): universal instance, + - `EXCLUSIVE`: exclusive instance, + - `BASIC_V2`: ONTKE single-node instance, + - `CLOUD_NATIVE_CLUSTER`: cluster version standard type, + - `CLOUD_NATIVE_CLUSTER_EXCLUSIVE`: cluster version enhanced type. +If it is not specified, it defaults to a universal instance. * `fast_upgrade` - (Optional, Int) Specify whether to enable fast upgrade when upgrade instance spec, available value: `1` - enabled, `0` - disabled. * `force_delete` - (Optional, Bool) Indicate whether to delete instance directly or not. Default is `false`. If set true, the instance will be deleted instead of staying recycle bin. Note: only works for `PREPAID` instance. When the main mysql instance set true, this para of the readonly mysql instance will not take effect. * `intranet_port` - (Optional, Int) Public access port. Valid value ranges: [1024~65535]. The default value is `3306`.