Skip to content

Commit e4e3682

Browse files
tongyimingmikatong
and
mikatong
authored
fix(cdb): [121134437] update mysql doc (#3193)
* update doc * add changelog --------- Co-authored-by: mikatong <[email protected]>
1 parent b0dab9c commit e4e3682

File tree

5 files changed

+29
-6
lines changed

5 files changed

+29
-6
lines changed

.changelog/3193.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_mysql_instance: update `device_type` description
3+
```

tencentcloud/services/cdb/resource_tc_mysql_instance.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,16 @@ func TencentMsyqlBasicInfo() map[string]*schema.Schema {
152152
Description: "Specify whether to enable fast upgrade when upgrade instance spec, available value: `1` - enabled, `0` - disabled.",
153153
},
154154
"device_type": {
155-
Type: schema.TypeString,
156-
Optional: true,
157-
Computed: true,
158-
Description: "Specify device type, available values: `UNIVERSAL` (default), `EXCLUSIVE`, `BASIC`.",
155+
Type: schema.TypeString,
156+
Optional: true,
157+
Computed: true,
158+
Description: "Specify device type, available values:\n" +
159+
" - `UNIVERSAL` (default): universal instance,\n" +
160+
" - `EXCLUSIVE`: exclusive instance,\n" +
161+
" - `BASIC_V2`: ONTKE single-node instance,\n" +
162+
" - `CLOUD_NATIVE_CLUSTER`: cluster version standard type,\n" +
163+
" - `CLOUD_NATIVE_CLUSTER_EXCLUSIVE`: cluster version enhanced type.\n" +
164+
"If it is not specified, it defaults to a universal instance.",
159165
},
160166
"tags": {
161167
Type: schema.TypeMap,

tencentcloud/services/cdb/resource_tc_mysql_instance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ resource "tencentcloud_security_group" "security_group" {
3232
}
3333
3434
resource "tencentcloud_mysql_instance" "example" {
35+
device_type = "BASIC_V2"
3536
internet_service = 1
3637
engine_version = "5.7"
3738
charge_type = "POSTPAID"

website/docs/r/mysql_instance.html.markdown

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ resource "tencentcloud_security_group" "security_group" {
4343
}
4444
4545
resource "tencentcloud_mysql_instance" "example" {
46+
device_type = "BASIC_V2"
4647
internet_service = 1
4748
engine_version = "5.7"
4849
charge_type = "POSTPAID"
@@ -143,7 +144,13 @@ The following arguments are supported:
143144
* `availability_zone` - (Optional, String) Indicates which availability zone will be used.
144145
* `charge_type` - (Optional, String, ForceNew) Pay type of instance. Valid values:`PREPAID`, `POSTPAID`. Default is `POSTPAID`.
145146
* `cpu` - (Optional, Int) CPU cores.
146-
* `device_type` - (Optional, String) Specify device type, available values: `UNIVERSAL` (default), `EXCLUSIVE`, `BASIC`.
147+
* `device_type` - (Optional, String) Specify device type, available values:
148+
- `UNIVERSAL` (default): universal instance,
149+
- `EXCLUSIVE`: exclusive instance,
150+
- `BASIC_V2`: ONTKE single-node instance,
151+
- `CLOUD_NATIVE_CLUSTER`: cluster version standard type,
152+
- `CLOUD_NATIVE_CLUSTER_EXCLUSIVE`: cluster version enhanced type.
153+
If it is not specified, it defaults to a universal instance.
147154
* `engine_type` - (Optional, String) Instance engine type. The default value is `InnoDB`. Supported values include `InnoDB` and `RocksDB`.
148155
* `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.
149156
* `fast_upgrade` - (Optional, Int) Specify whether to enable fast upgrade when upgrade instance spec, available value: `1` - enabled, `0` - disabled.

website/docs/r/mysql_readonly_instance.html.markdown

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ The following arguments are supported:
9292
* `auto_renew_flag` - (Optional, Int) Auto renew flag. NOTES: Only supported prepaid instance.
9393
* `charge_type` - (Optional, String, ForceNew) Pay type of instance. Valid values:`PREPAID`, `POSTPAID`. Default is `POSTPAID`.
9494
* `cpu` - (Optional, Int) CPU cores.
95-
* `device_type` - (Optional, String) Specify device type, available values: `UNIVERSAL` (default), `EXCLUSIVE`, `BASIC`.
95+
* `device_type` - (Optional, String) Specify device type, available values:
96+
- `UNIVERSAL` (default): universal instance,
97+
- `EXCLUSIVE`: exclusive instance,
98+
- `BASIC_V2`: ONTKE single-node instance,
99+
- `CLOUD_NATIVE_CLUSTER`: cluster version standard type,
100+
- `CLOUD_NATIVE_CLUSTER_EXCLUSIVE`: cluster version enhanced type.
101+
If it is not specified, it defaults to a universal instance.
96102
* `fast_upgrade` - (Optional, Int) Specify whether to enable fast upgrade when upgrade instance spec, available value: `1` - enabled, `0` - disabled.
97103
* `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.
98104
* `intranet_port` - (Optional, Int) Public access port. Valid value ranges: [1024~65535]. The default value is `3306`.

0 commit comments

Comments
 (0)