Skip to content
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
4 changes: 2 additions & 2 deletions tencentcloud/extension_mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TencentMongodbBasicInfo() map[string]*schema.Schema {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "Version of the Mongodb, and available values include `MONGO_3_WT`, `MONGO_3_ROCKS`, `MONGO_36_WT` and `MONGO_40_WT`.",
Description: "Version of the Mongodb, and available values include `MONGO_3_WT` (represents MongoDB 3.2 WiredTiger Edition), `MONGO_3_ROCKS` (represents MongoDB 3.2 RocksDB Edition), `MONGO_36_WT` (represents MongoDB 3.6 WiredTiger Edition) and `MONGO_40_WT` (represents MongoDB 4.0 WiredTiger Edition).",
},
"machine_type": {
Type: schema.TypeString,
Expand All @@ -105,7 +105,7 @@ func TencentMongodbBasicInfo() map[string]*schema.Schema {
}
return olds == news
},
Description: "Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated) and `HIO10G`(or `TGIO` which will be deprecated).",
Description: "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).",
},
"available_zone": {
Type: schema.TypeString,
Expand Down
12 changes: 6 additions & 6 deletions tencentcloud/resource_tc_mongodb_standby_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,30 +75,30 @@ func resourceTencentCloudMongodbStandbyInstance() *schema.Resource {
Type: schema.TypeString,
ForceNew: true,
Required: true,
Description: "Indicates the region of father instance.",
Description: "Indicates the region of main instance.",
},
"father_instance_id": {
Type: schema.TypeString,
ForceNew: true,
Required: true,
Description: "Indicates the master instance ID of standby instances.",
Description: "Indicates the main instance ID of standby instances.",
},
"available_zone": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "The available zone of the Mongodb standby instance. NOTE: must not same with father instance's.",
Description: "The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.",
},
// computed form master instance
// computed from father instance
"engine_version": {
Type: schema.TypeString,
Computed: true,
Description: "Version of the Mongodb and must be same as the master's.",
Description: "Version of the standby Mongodb instance and must be same as the version of main instance.",
},
"machine_type": {
Type: schema.TypeString,
Computed: true,
Description: "Type of Mongodb instance and must be same as the master's.",
Description: "Type of standby Mongodb instance and must be same as the type of main instance.",
},
}
basic := TencentMongodbBasicInfo()
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/mongodb_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ resource "tencentcloud_mongodb_instance" "mongodb" {
The following arguments are supported:

* `available_zone` - (Required, ForceNew) The available zone of the Mongodb.
* `engine_version` - (Required, ForceNew) Version of the Mongodb, and available values include `MONGO_3_WT`, `MONGO_3_ROCKS`, `MONGO_36_WT` and `MONGO_40_WT`.
* `engine_version` - (Required, ForceNew) Version of the Mongodb, and available values include `MONGO_3_WT` (represents MongoDB 3.2 WiredTiger Edition), `MONGO_3_ROCKS` (represents MongoDB 3.2 RocksDB Edition), `MONGO_36_WT` (represents MongoDB 3.6 WiredTiger Edition) and `MONGO_40_WT` (represents MongoDB 4.0 WiredTiger Edition).
* `instance_name` - (Required) Name of the Mongodb instance.
* `machine_type` - (Required, ForceNew) Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated) and `HIO10G`(or `TGIO` which will be deprecated).
* `machine_type` - (Required, 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) Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
* `password` - (Required) Password of this Mongodb account.
* `volume` - (Required) Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/mongodb_sharding_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ resource "tencentcloud_mongodb_sharding_instance" "mongodb" {
The following arguments are supported:

* `available_zone` - (Required, ForceNew) The available zone of the Mongodb.
* `engine_version` - (Required, ForceNew) Version of the Mongodb, and available values include `MONGO_3_WT`, `MONGO_3_ROCKS`, `MONGO_36_WT` and `MONGO_40_WT`.
* `engine_version` - (Required, ForceNew) Version of the Mongodb, and available values include `MONGO_3_WT` (represents MongoDB 3.2 WiredTiger Edition), `MONGO_3_ROCKS` (represents MongoDB 3.2 RocksDB Edition), `MONGO_36_WT` (represents MongoDB 3.6 WiredTiger Edition) and `MONGO_40_WT` (represents MongoDB 4.0 WiredTiger Edition).
* `instance_name` - (Required) Name of the Mongodb instance.
* `machine_type` - (Required, ForceNew) Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated) and `HIO10G`(or `TGIO` which will be deprecated).
* `machine_type` - (Required, 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) Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
* `nodes_per_shard` - (Required, ForceNew) Number of nodes per shard, at least 3(one master and two slaves).
* `password` - (Required) Password of this Mongodb account.
Expand Down
10 changes: 5 additions & 5 deletions website/docs/r/mongodb_standby_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ resource "tencentcloud_mongodb_standby_instance" "mongodb" {

The following arguments are supported:

* `available_zone` - (Required, ForceNew) The available zone of the Mongodb standby instance. NOTE: must not same with father instance's.
* `father_instance_id` - (Required, ForceNew) Indicates the master instance ID of standby instances.
* `father_instance_region` - (Required, ForceNew) Indicates the region of father instance.
* `available_zone` - (Required, ForceNew) The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
* `father_instance_id` - (Required, ForceNew) Indicates the main instance ID of standby instances.
* `father_instance_region` - (Required, ForceNew) Indicates the region of main instance.
* `instance_name` - (Required) Name of the Mongodb instance.
* `memory` - (Required) Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
* `volume` - (Required) Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
Expand All @@ -79,8 +79,8 @@ In addition to all arguments above, the following attributes are exported:

* `id` - ID of the resource.
* `create_time` - Creation time of the Mongodb instance.
* `engine_version` - Version of the Mongodb and must be same as the master's.
* `machine_type` - Type of Mongodb instance and must be same as the master's.
* `engine_version` - Version of the standby Mongodb instance and must be same as the version of main instance.
* `machine_type` - Type of standby Mongodb instance and must be same as the type of main instance.
* `status` - Status of the Mongodb instance, and available values include pending initialization(expressed with 0), processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).
* `vip` - IP of the Mongodb instance.
* `vport` - IP port of the Mongodb instance.
Expand Down