Skip to content

fix(cdb): [121134437] update mysql doc #3193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/3193.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_mysql_instance: update `device_type` description
```
14 changes: 10 additions & 4 deletions tencentcloud/services/cdb/resource_tc_mysql_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions tencentcloud/services/cdb/resource_tc_mysql_instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 8 additions & 1 deletion website/docs/r/mysql_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
Expand Down
8 changes: 7 additions & 1 deletion website/docs/r/mysql_readonly_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
Loading