From 6b7f4355c4520e115a388a2443adde85f3c69164 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Thu, 27 Nov 2025 10:37:48 +0800 Subject: [PATCH 1/2] add --- tencentcloud/provider.go | 4 ++-- tencentcloud/services/mongodb/extension_mongodb.go | 2 +- website/docs/r/mongodb_instance.html.markdown | 8 +++++++- website/docs/r/mongodb_readonly_instance.html.markdown | 8 +++++++- website/docs/r/mongodb_sharding_instance.html.markdown | 8 +++++++- 5 files changed, 24 insertions(+), 6 deletions(-) diff --git a/tencentcloud/provider.go b/tencentcloud/provider.go index 9d70a413a8..0024e1a502 100644 --- a/tencentcloud/provider.go +++ b/tencentcloud/provider.go @@ -1582,6 +1582,8 @@ func Provider() *schema.Provider { "tencentcloud_mongodb_instance_transparent_data_encryption": mongodb.ResourceTencentCloudMongodbInstanceTransparentDataEncryption(), "tencentcloud_mongodb_instance_backup_rule": mongodb.ResourceTencentCloudMongodbInstanceBackupRule(), "tencentcloud_mongodb_instance_params": mongodb.ResourceTencentCloudMongodbInstanceParams(), + "tencentcloud_mongodb_standby_instance": mongodb.ResourceTencentCloudMongodbStandbyInstance(), + "tencentcloud_mongodb_readonly_instance": mongodb.ResourceTencentCloudMongodbReadOnlyInstance(), "tencentcloud_dayu_cc_http_policy": dayu.ResourceTencentCloudDayuCCHttpPolicy(), "tencentcloud_dayu_cc_https_policy": dayu.ResourceTencentCloudDayuCCHttpsPolicy(), "tencentcloud_dayu_ddos_policy": dayu.ResourceTencentCloudDayuDdosPolicy(), @@ -1695,8 +1697,6 @@ func Provider() *schema.Provider { "tencentcloud_monitor_grafana_sso_cam_config": tcmg.ResourceTencentCloudMonitorGrafanaSsoCamConfig(), "tencentcloud_monitor_grafana_sso_config": tcmg.ResourceTencentCloudMonitorGrafanaSsoConfig(), "tencentcloud_monitor_grafana_version_upgrade": tcmg.ResourceTencentCloudMonitorGrafanaVersionUpgrade(), - "tencentcloud_mongodb_standby_instance": mongodb.ResourceTencentCloudMongodbStandbyInstance(), - "tencentcloud_mongodb_readonly_instance": mongodb.ResourceTencentCloudMongodbReadOnlyInstance(), "tencentcloud_elasticsearch_instance": es.ResourceTencentCloudElasticsearchInstance(), "tencentcloud_elasticsearch_security_group": es.ResourceTencentCloudElasticsearchSecurityGroup(), "tencentcloud_elasticsearch_logstash": es.ResourceTencentCloudElasticsearchLogstash(), diff --git a/tencentcloud/services/mongodb/extension_mongodb.go b/tencentcloud/services/mongodb/extension_mongodb.go index f59b6bf452..da46a59110 100644 --- a/tencentcloud/services/mongodb/extension_mongodb.go +++ b/tencentcloud/services/mongodb/extension_mongodb.go @@ -95,7 +95,7 @@ func TencentMongodbBasicInfo() map[string]*schema.Schema { Type: schema.TypeString, Required: true, ForceNew: true, - Description: "Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT` (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated.", + Description: "Refers to version information. The DescribeSpecInfo API can be called to obtain detailed information about the supported versions.\n- MONGO_40_WT: version of the MongoDB 4.0 WiredTiger storage engine.\n- MONGO_42_WT: version of the MongoDB 4.2 WiredTiger storage engine.\n- MONGO_44_WT: version of the MongoDB 4.4 WiredTiger storage engine.\n- MONGO_50_WT: version of the MongoDB 5.0 WiredTiger storage engine.\n- MONGO_60_WT: version of the MongoDB 6.0 WiredTiger storage engine.\n- MONGO_70_WT: version of the MongoDB 7.0 WiredTiger storage engine.", }, "machine_type": { Type: schema.TypeString, diff --git a/website/docs/r/mongodb_instance.html.markdown b/website/docs/r/mongodb_instance.html.markdown index f4e9d193bd..f0dfb11011 100644 --- a/website/docs/r/mongodb_instance.html.markdown +++ b/website/docs/r/mongodb_instance.html.markdown @@ -33,7 +33,13 @@ resource "tencentcloud_mongodb_instance" "mongodb" { The following arguments are supported: * `available_zone` - (Required, String, ForceNew) The available zone of the Mongodb. -* `engine_version` - (Required, String, ForceNew) Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT` (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated. +* `engine_version` - (Required, String, ForceNew) Refers to version information. The DescribeSpecInfo API can be called to obtain detailed information about the supported versions. +- MONGO_40_WT: version of the MongoDB 4.0 WiredTiger storage engine. +- MONGO_42_WT: version of the MongoDB 4.2 WiredTiger storage engine. +- MONGO_44_WT: version of the MongoDB 4.4 WiredTiger storage engine. +- MONGO_50_WT: version of the MongoDB 5.0 WiredTiger storage engine. +- MONGO_60_WT: version of the MongoDB 6.0 WiredTiger storage engine. +- MONGO_70_WT: version of the MongoDB 7.0 WiredTiger storage engine. * `instance_name` - (Required, String) Name of the Mongodb instance. * `machine_type` - (Required, String, ForceNew) Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated, represents high IO) and `HIO10G`(or `TGIO` which will be deprecated, represents 10-gigabit high IO). * `memory` - (Required, Int) Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously. diff --git a/website/docs/r/mongodb_readonly_instance.html.markdown b/website/docs/r/mongodb_readonly_instance.html.markdown index b929de28ae..53ebf0e8fc 100644 --- a/website/docs/r/mongodb_readonly_instance.html.markdown +++ b/website/docs/r/mongodb_readonly_instance.html.markdown @@ -62,7 +62,13 @@ The following arguments are supported: * `available_zone` - (Required, String, ForceNew) The available zone of the Mongodb. * `cluster_type` - (Required, String, ForceNew) Instance schema type. - REPLSET: Replset cluster; - SHARD: Shard cluster. -* `engine_version` - (Required, String, ForceNew) Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT` (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated. +* `engine_version` - (Required, String, ForceNew) Refers to version information. The DescribeSpecInfo API can be called to obtain detailed information about the supported versions. +- MONGO_40_WT: version of the MongoDB 4.0 WiredTiger storage engine. +- MONGO_42_WT: version of the MongoDB 4.2 WiredTiger storage engine. +- MONGO_44_WT: version of the MongoDB 4.4 WiredTiger storage engine. +- MONGO_50_WT: version of the MongoDB 5.0 WiredTiger storage engine. +- MONGO_60_WT: version of the MongoDB 6.0 WiredTiger storage engine. +- MONGO_70_WT: version of the MongoDB 7.0 WiredTiger storage engine. * `father_instance_id` - (Required, String, ForceNew) Indicates the main instance ID of readonly instances. * `father_instance_region` - (Required, String, ForceNew) Indicates the region of main instance. * `instance_name` - (Required, String) Name of the Mongodb instance. diff --git a/website/docs/r/mongodb_sharding_instance.html.markdown b/website/docs/r/mongodb_sharding_instance.html.markdown index 42545e4983..5deff09b01 100644 --- a/website/docs/r/mongodb_sharding_instance.html.markdown +++ b/website/docs/r/mongodb_sharding_instance.html.markdown @@ -38,7 +38,13 @@ resource "tencentcloud_mongodb_sharding_instance" "mongodb" { The following arguments are supported: * `available_zone` - (Required, String, ForceNew) The available zone of the Mongodb. -* `engine_version` - (Required, String, ForceNew) Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT` (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated. +* `engine_version` - (Required, String, ForceNew) Refers to version information. The DescribeSpecInfo API can be called to obtain detailed information about the supported versions. +- MONGO_40_WT: version of the MongoDB 4.0 WiredTiger storage engine. +- MONGO_42_WT: version of the MongoDB 4.2 WiredTiger storage engine. +- MONGO_44_WT: version of the MongoDB 4.4 WiredTiger storage engine. +- MONGO_50_WT: version of the MongoDB 5.0 WiredTiger storage engine. +- MONGO_60_WT: version of the MongoDB 6.0 WiredTiger storage engine. +- MONGO_70_WT: version of the MongoDB 7.0 WiredTiger storage engine. * `instance_name` - (Required, String) Name of the Mongodb instance. * `machine_type` - (Required, String, ForceNew) Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated, represents high IO) and `HIO10G`(or `TGIO` which will be deprecated, represents 10-gigabit high IO). * `memory` - (Required, Int) Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously. From a1c95d1fed3b510c675a02c941bd301132e8dac0 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Thu, 27 Nov 2025 10:39:34 +0800 Subject: [PATCH 2/2] add --- .changelog/3623.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/3623.txt diff --git a/.changelog/3623.txt b/.changelog/3623.txt new file mode 100644 index 0000000000..9a170aa275 --- /dev/null +++ b/.changelog/3623.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/tencentcloud_mongodb_instance: update doc +``` \ No newline at end of file