tencentcloud.MongodbInstance
Explore with Pulumi AI
Provide a resource to create a Mongodb instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const mongodb = new tencentcloud.MongodbInstance("mongodb", {
availableZone: "ap-guangzhou-2",
engineVersion: "MONGO_36_WT",
instanceName: "mongodb",
machineType: "HIO10G",
memory: 4,
password: "password1234",
projectId: 0,
subnetId: "subnet-xxxxxx",
volume: 100,
vpcId: "vpc-xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
mongodb = tencentcloud.MongodbInstance("mongodb",
available_zone="ap-guangzhou-2",
engine_version="MONGO_36_WT",
instance_name="mongodb",
machine_type="HIO10G",
memory=4,
password="password1234",
project_id=0,
subnet_id="subnet-xxxxxx",
volume=100,
vpc_id="vpc-xxxxxx")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewMongodbInstance(ctx, "mongodb", &tencentcloud.MongodbInstanceArgs{
AvailableZone: pulumi.String("ap-guangzhou-2"),
EngineVersion: pulumi.String("MONGO_36_WT"),
InstanceName: pulumi.String("mongodb"),
MachineType: pulumi.String("HIO10G"),
Memory: pulumi.Float64(4),
Password: pulumi.String("password1234"),
ProjectId: pulumi.Float64(0),
SubnetId: pulumi.String("subnet-xxxxxx"),
Volume: pulumi.Float64(100),
VpcId: pulumi.String("vpc-xxxxxx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var mongodb = new Tencentcloud.MongodbInstance("mongodb", new()
{
AvailableZone = "ap-guangzhou-2",
EngineVersion = "MONGO_36_WT",
InstanceName = "mongodb",
MachineType = "HIO10G",
Memory = 4,
Password = "password1234",
ProjectId = 0,
SubnetId = "subnet-xxxxxx",
Volume = 100,
VpcId = "vpc-xxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MongodbInstance;
import com.pulumi.tencentcloud.MongodbInstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var mongodb = new MongodbInstance("mongodb", MongodbInstanceArgs.builder()
.availableZone("ap-guangzhou-2")
.engineVersion("MONGO_36_WT")
.instanceName("mongodb")
.machineType("HIO10G")
.memory(4)
.password("password1234")
.projectId(0)
.subnetId("subnet-xxxxxx")
.volume(100)
.vpcId("vpc-xxxxxx")
.build());
}
}
resources:
mongodb:
type: tencentcloud:MongodbInstance
properties:
availableZone: ap-guangzhou-2
engineVersion: MONGO_36_WT
instanceName: mongodb
machineType: HIO10G
memory: 4
password: password1234
projectId: 0
subnetId: subnet-xxxxxx
volume: 100
vpcId: vpc-xxxxxx
Create MongodbInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MongodbInstance(name: string, args: MongodbInstanceArgs, opts?: CustomResourceOptions);
@overload
def MongodbInstance(resource_name: str,
args: MongodbInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MongodbInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_name: Optional[str] = None,
volume: Optional[float] = None,
memory: Optional[float] = None,
available_zone: Optional[str] = None,
machine_type: Optional[str] = None,
engine_version: Optional[str] = None,
hidden_zone: Optional[str] = None,
password: Optional[str] = None,
add_node_lists: Optional[Sequence[MongodbInstanceAddNodeListArgs]] = None,
charge_type: Optional[str] = None,
maintenance_end: Optional[str] = None,
maintenance_start: Optional[str] = None,
availability_zone_lists: Optional[Sequence[str]] = None,
mongodb_instance_id: Optional[str] = None,
node_num: Optional[float] = None,
in_maintenance: Optional[float] = None,
prepaid_period: Optional[float] = None,
project_id: Optional[float] = None,
remove_node_lists: Optional[Sequence[MongodbInstanceRemoveNodeListArgs]] = None,
security_groups: Optional[Sequence[str]] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
auto_renew_flag: Optional[float] = None,
vpc_id: Optional[str] = None)
func NewMongodbInstance(ctx *Context, name string, args MongodbInstanceArgs, opts ...ResourceOption) (*MongodbInstance, error)
public MongodbInstance(string name, MongodbInstanceArgs args, CustomResourceOptions? opts = null)
public MongodbInstance(String name, MongodbInstanceArgs args)
public MongodbInstance(String name, MongodbInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:MongodbInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MongodbInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MongodbInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MongodbInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MongodbInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MongodbInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MongodbInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MongodbInstance resource accepts the following input properties:
- Available
Zone string - The available zone of the Mongodb.
- Engine
Version string - Version of the Mongodb, and available values include
MONGO_36_WT
(MongoDB 3.6 WiredTiger Edition),MONGO_40_WT
(MongoDB 4.0 WiredTiger Edition) andMONGO_42_WT
(MongoDB 4.2 WiredTiger Edition). NOTE:MONGO_3_WT
(MongoDB 3.2 WiredTiger Edition) andMONGO_3_ROCKS
(MongoDB 3.2 RocksDB Edition) will deprecated. - Instance
Name string - Name of the Mongodb instance.
- Machine
Type string - Type of Mongodb instance, and available values include
HIO
(orGIO
which will be deprecated, represents high IO) andHIO10G
(orTGIO
which will be deprecated, represents 10-gigabit high IO). - Memory double
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- Volume double
- Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- Add
Node List<MongodbLists Instance Add Node List> - Add node attribute list.
- Auto
Renew doubleFlag - Auto renew flag. Valid values are
0
(NOTIFY_AND_MANUAL_RENEW),1
(NOTIFY_AND_AUTO_RENEW) and2
(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is0
. Note: only works for PREPAID instance. Only supports0
and1
for creation. - Availability
Zone List<string>Lists - If cloud database instances are deployed in multiple availability zones, specify a list of multiple availability zones.
- To deploy an instance with multiple availability zones, the parameter Zone specifies the primary availability zone information of the instance; Availability ZoneList specifies all availability zone information, including the primary availability zone. The input format is as follows: [ap-Guangzhou-2,ap-Guangzhou-3,ap-Guangzhou-4].
- You can obtain availability zone information planned in different regions of the cloud database through the interface DescribeSpecInfo, so as to specify effective availability zones.
- Multiple availability zone deployment nodes can only be deployed in 3 different availability zones. Deploying most nodes of a cluster in the same availability zone is not supported. For example, a 3-node cluster does not support 2 nodes deployed in the same zone.
- Charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
. Caution that update operation on this field will delete old instances and create new one with new charge type. - string
- The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
- In
Maintenance double - Switch time for instance configuration changes.
- 0: When the adjustment is completed, perform the configuration task immediately. Default is 0.
- 1: Perform reconfiguration tasks within the maintenance time window. Note: Adjusting the number of nodes and slices does not support changes within the maintenance window.
- Maintenance
End string - Maintenance window end time.
- The value range is any full point or half point from
00:00-23:00
, and the maintenance time duration is at least 30 minutes and at most 3 hours. - The end time must be based on the start time backwards.
- The value range is any full point or half point from
- Maintenance
Start string - Maintenance window start time. The value range is any full point or half point from
00:00-23:00
, such as 00:00 or 00:30. - Mongodb
Instance stringId - ID of the resource.
- Node
Num double - The number of nodes in each replica set. Default value: 3.
- Password string
- Password of this Mongodb account.
- Prepaid
Period double - The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to
PREPAID
. - Project
Id double - ID of the project which the instance belongs.
- Remove
Node List<MongodbLists Instance Remove Node List> - Add node attribute list.
- Security
Groups List<string> - ID of the security group.
- Subnet
Id string - ID of the subnet within this VPC. The value is required if
vpc_id
is set. - Dictionary<string, string>
- The tags of the Mongodb. Key name
project
is system reserved and can't be used. - Vpc
Id string - ID of the VPC.
- Available
Zone string - The available zone of the Mongodb.
- Engine
Version string - Version of the Mongodb, and available values include
MONGO_36_WT
(MongoDB 3.6 WiredTiger Edition),MONGO_40_WT
(MongoDB 4.0 WiredTiger Edition) andMONGO_42_WT
(MongoDB 4.2 WiredTiger Edition). NOTE:MONGO_3_WT
(MongoDB 3.2 WiredTiger Edition) andMONGO_3_ROCKS
(MongoDB 3.2 RocksDB Edition) will deprecated. - Instance
Name string - Name of the Mongodb instance.
- Machine
Type string - Type of Mongodb instance, and available values include
HIO
(orGIO
which will be deprecated, represents high IO) andHIO10G
(orTGIO
which will be deprecated, represents 10-gigabit high IO). - Memory float64
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- Volume float64
- Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- Add
Node []MongodbLists Instance Add Node List Args - Add node attribute list.
- Auto
Renew float64Flag - Auto renew flag. Valid values are
0
(NOTIFY_AND_MANUAL_RENEW),1
(NOTIFY_AND_AUTO_RENEW) and2
(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is0
. Note: only works for PREPAID instance. Only supports0
and1
for creation. - Availability
Zone []stringLists - If cloud database instances are deployed in multiple availability zones, specify a list of multiple availability zones.
- To deploy an instance with multiple availability zones, the parameter Zone specifies the primary availability zone information of the instance; Availability ZoneList specifies all availability zone information, including the primary availability zone. The input format is as follows: [ap-Guangzhou-2,ap-Guangzhou-3,ap-Guangzhou-4].
- You can obtain availability zone information planned in different regions of the cloud database through the interface DescribeSpecInfo, so as to specify effective availability zones.
- Multiple availability zone deployment nodes can only be deployed in 3 different availability zones. Deploying most nodes of a cluster in the same availability zone is not supported. For example, a 3-node cluster does not support 2 nodes deployed in the same zone.
- Charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
. Caution that update operation on this field will delete old instances and create new one with new charge type. - string
- The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
- In
Maintenance float64 - Switch time for instance configuration changes.
- 0: When the adjustment is completed, perform the configuration task immediately. Default is 0.
- 1: Perform reconfiguration tasks within the maintenance time window. Note: Adjusting the number of nodes and slices does not support changes within the maintenance window.
- Maintenance
End string - Maintenance window end time.
- The value range is any full point or half point from
00:00-23:00
, and the maintenance time duration is at least 30 minutes and at most 3 hours. - The end time must be based on the start time backwards.
- The value range is any full point or half point from
- Maintenance
Start string - Maintenance window start time. The value range is any full point or half point from
00:00-23:00
, such as 00:00 or 00:30. - Mongodb
Instance stringId - ID of the resource.
- Node
Num float64 - The number of nodes in each replica set. Default value: 3.
- Password string
- Password of this Mongodb account.
- Prepaid
Period float64 - The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to
PREPAID
. - Project
Id float64 - ID of the project which the instance belongs.
- Remove
Node []MongodbLists Instance Remove Node List Args - Add node attribute list.
- Security
Groups []string - ID of the security group.
- Subnet
Id string - ID of the subnet within this VPC. The value is required if
vpc_id
is set. - map[string]string
- The tags of the Mongodb. Key name
project
is system reserved and can't be used. - Vpc
Id string - ID of the VPC.
- available
Zone String - The available zone of the Mongodb.
- engine
Version String - Version of the Mongodb, and available values include
MONGO_36_WT
(MongoDB 3.6 WiredTiger Edition),MONGO_40_WT
(MongoDB 4.0 WiredTiger Edition) andMONGO_42_WT
(MongoDB 4.2 WiredTiger Edition). NOTE:MONGO_3_WT
(MongoDB 3.2 WiredTiger Edition) andMONGO_3_ROCKS
(MongoDB 3.2 RocksDB Edition) will deprecated. - instance
Name String - Name of the Mongodb instance.
- machine
Type String - Type of Mongodb instance, and available values include
HIO
(orGIO
which will be deprecated, represents high IO) andHIO10G
(orTGIO
which will be deprecated, represents 10-gigabit high IO). - memory Double
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- volume Double
- Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- add
Node List<MongodbLists Instance Add Node List> - Add node attribute list.
- auto
Renew DoubleFlag - Auto renew flag. Valid values are
0
(NOTIFY_AND_MANUAL_RENEW),1
(NOTIFY_AND_AUTO_RENEW) and2
(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is0
. Note: only works for PREPAID instance. Only supports0
and1
for creation. - availability
Zone List<String>Lists - If cloud database instances are deployed in multiple availability zones, specify a list of multiple availability zones.
- To deploy an instance with multiple availability zones, the parameter Zone specifies the primary availability zone information of the instance; Availability ZoneList specifies all availability zone information, including the primary availability zone. The input format is as follows: [ap-Guangzhou-2,ap-Guangzhou-3,ap-Guangzhou-4].
- You can obtain availability zone information planned in different regions of the cloud database through the interface DescribeSpecInfo, so as to specify effective availability zones.
- Multiple availability zone deployment nodes can only be deployed in 3 different availability zones. Deploying most nodes of a cluster in the same availability zone is not supported. For example, a 3-node cluster does not support 2 nodes deployed in the same zone.
- charge
Type String - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
. Caution that update operation on this field will delete old instances and create new one with new charge type. - String
- The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
- in
Maintenance Double - Switch time for instance configuration changes.
- 0: When the adjustment is completed, perform the configuration task immediately. Default is 0.
- 1: Perform reconfiguration tasks within the maintenance time window. Note: Adjusting the number of nodes and slices does not support changes within the maintenance window.
- maintenance
End String - Maintenance window end time.
- The value range is any full point or half point from
00:00-23:00
, and the maintenance time duration is at least 30 minutes and at most 3 hours. - The end time must be based on the start time backwards.
- The value range is any full point or half point from
- maintenance
Start String - Maintenance window start time. The value range is any full point or half point from
00:00-23:00
, such as 00:00 or 00:30. - mongodb
Instance StringId - ID of the resource.
- node
Num Double - The number of nodes in each replica set. Default value: 3.
- password String
- Password of this Mongodb account.
- prepaid
Period Double - The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to
PREPAID
. - project
Id Double - ID of the project which the instance belongs.
- remove
Node List<MongodbLists Instance Remove Node List> - Add node attribute list.
- security
Groups List<String> - ID of the security group.
- subnet
Id String - ID of the subnet within this VPC. The value is required if
vpc_id
is set. - Map<String,String>
- The tags of the Mongodb. Key name
project
is system reserved and can't be used. - vpc
Id String - ID of the VPC.
- available
Zone string - The available zone of the Mongodb.
- engine
Version string - Version of the Mongodb, and available values include
MONGO_36_WT
(MongoDB 3.6 WiredTiger Edition),MONGO_40_WT
(MongoDB 4.0 WiredTiger Edition) andMONGO_42_WT
(MongoDB 4.2 WiredTiger Edition). NOTE:MONGO_3_WT
(MongoDB 3.2 WiredTiger Edition) andMONGO_3_ROCKS
(MongoDB 3.2 RocksDB Edition) will deprecated. - instance
Name string - Name of the Mongodb instance.
- machine
Type string - Type of Mongodb instance, and available values include
HIO
(orGIO
which will be deprecated, represents high IO) andHIO10G
(orTGIO
which will be deprecated, represents 10-gigabit high IO). - memory number
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- volume number
- Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- add
Node MongodbLists Instance Add Node List[] - Add node attribute list.
- auto
Renew numberFlag - Auto renew flag. Valid values are
0
(NOTIFY_AND_MANUAL_RENEW),1
(NOTIFY_AND_AUTO_RENEW) and2
(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is0
. Note: only works for PREPAID instance. Only supports0
and1
for creation. - availability
Zone string[]Lists - If cloud database instances are deployed in multiple availability zones, specify a list of multiple availability zones.
- To deploy an instance with multiple availability zones, the parameter Zone specifies the primary availability zone information of the instance; Availability ZoneList specifies all availability zone information, including the primary availability zone. The input format is as follows: [ap-Guangzhou-2,ap-Guangzhou-3,ap-Guangzhou-4].
- You can obtain availability zone information planned in different regions of the cloud database through the interface DescribeSpecInfo, so as to specify effective availability zones.
- Multiple availability zone deployment nodes can only be deployed in 3 different availability zones. Deploying most nodes of a cluster in the same availability zone is not supported. For example, a 3-node cluster does not support 2 nodes deployed in the same zone.
- charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
. Caution that update operation on this field will delete old instances and create new one with new charge type. - string
- The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
- in
Maintenance number - Switch time for instance configuration changes.
- 0: When the adjustment is completed, perform the configuration task immediately. Default is 0.
- 1: Perform reconfiguration tasks within the maintenance time window. Note: Adjusting the number of nodes and slices does not support changes within the maintenance window.
- maintenance
End string - Maintenance window end time.
- The value range is any full point or half point from
00:00-23:00
, and the maintenance time duration is at least 30 minutes and at most 3 hours. - The end time must be based on the start time backwards.
- The value range is any full point or half point from
- maintenance
Start string - Maintenance window start time. The value range is any full point or half point from
00:00-23:00
, such as 00:00 or 00:30. - mongodb
Instance stringId - ID of the resource.
- node
Num number - The number of nodes in each replica set. Default value: 3.
- password string
- Password of this Mongodb account.
- prepaid
Period number - The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to
PREPAID
. - project
Id number - ID of the project which the instance belongs.
- remove
Node MongodbLists Instance Remove Node List[] - Add node attribute list.
- security
Groups string[] - ID of the security group.
- subnet
Id string - ID of the subnet within this VPC. The value is required if
vpc_id
is set. - {[key: string]: string}
- The tags of the Mongodb. Key name
project
is system reserved and can't be used. - vpc
Id string - ID of the VPC.
- available_
zone str - The available zone of the Mongodb.
- engine_
version str - Version of the Mongodb, and available values include
MONGO_36_WT
(MongoDB 3.6 WiredTiger Edition),MONGO_40_WT
(MongoDB 4.0 WiredTiger Edition) andMONGO_42_WT
(MongoDB 4.2 WiredTiger Edition). NOTE:MONGO_3_WT
(MongoDB 3.2 WiredTiger Edition) andMONGO_3_ROCKS
(MongoDB 3.2 RocksDB Edition) will deprecated. - instance_
name str - Name of the Mongodb instance.
- machine_
type str - Type of Mongodb instance, and available values include
HIO
(orGIO
which will be deprecated, represents high IO) andHIO10G
(orTGIO
which will be deprecated, represents 10-gigabit high IO). - memory float
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- volume float
- Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- add_
node_ Sequence[Mongodblists Instance Add Node List Args] - Add node attribute list.
- auto_
renew_ floatflag - Auto renew flag. Valid values are
0
(NOTIFY_AND_MANUAL_RENEW),1
(NOTIFY_AND_AUTO_RENEW) and2
(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is0
. Note: only works for PREPAID instance. Only supports0
and1
for creation. - availability_
zone_ Sequence[str]lists - If cloud database instances are deployed in multiple availability zones, specify a list of multiple availability zones.
- To deploy an instance with multiple availability zones, the parameter Zone specifies the primary availability zone information of the instance; Availability ZoneList specifies all availability zone information, including the primary availability zone. The input format is as follows: [ap-Guangzhou-2,ap-Guangzhou-3,ap-Guangzhou-4].
- You can obtain availability zone information planned in different regions of the cloud database through the interface DescribeSpecInfo, so as to specify effective availability zones.
- Multiple availability zone deployment nodes can only be deployed in 3 different availability zones. Deploying most nodes of a cluster in the same availability zone is not supported. For example, a 3-node cluster does not support 2 nodes deployed in the same zone.
- charge_
type str - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
. Caution that update operation on this field will delete old instances and create new one with new charge type. - str
- The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
- in_
maintenance float - Switch time for instance configuration changes.
- 0: When the adjustment is completed, perform the configuration task immediately. Default is 0.
- 1: Perform reconfiguration tasks within the maintenance time window. Note: Adjusting the number of nodes and slices does not support changes within the maintenance window.
- maintenance_
end str - Maintenance window end time.
- The value range is any full point or half point from
00:00-23:00
, and the maintenance time duration is at least 30 minutes and at most 3 hours. - The end time must be based on the start time backwards.
- The value range is any full point or half point from
- maintenance_
start str - Maintenance window start time. The value range is any full point or half point from
00:00-23:00
, such as 00:00 or 00:30. - mongodb_
instance_ strid - ID of the resource.
- node_
num float - The number of nodes in each replica set. Default value: 3.
- password str
- Password of this Mongodb account.
- prepaid_
period float - The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to
PREPAID
. - project_
id float - ID of the project which the instance belongs.
- remove_
node_ Sequence[Mongodblists Instance Remove Node List Args] - Add node attribute list.
- security_
groups Sequence[str] - ID of the security group.
- subnet_
id str - ID of the subnet within this VPC. The value is required if
vpc_id
is set. - Mapping[str, str]
- The tags of the Mongodb. Key name
project
is system reserved and can't be used. - vpc_
id str - ID of the VPC.
- available
Zone String - The available zone of the Mongodb.
- engine
Version String - Version of the Mongodb, and available values include
MONGO_36_WT
(MongoDB 3.6 WiredTiger Edition),MONGO_40_WT
(MongoDB 4.0 WiredTiger Edition) andMONGO_42_WT
(MongoDB 4.2 WiredTiger Edition). NOTE:MONGO_3_WT
(MongoDB 3.2 WiredTiger Edition) andMONGO_3_ROCKS
(MongoDB 3.2 RocksDB Edition) will deprecated. - instance
Name String - Name of the Mongodb instance.
- machine
Type String - Type of Mongodb instance, and available values include
HIO
(orGIO
which will be deprecated, represents high IO) andHIO10G
(orTGIO
which will be deprecated, represents 10-gigabit high IO). - memory Number
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- volume Number
- Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- add
Node List<Property Map>Lists - Add node attribute list.
- auto
Renew NumberFlag - Auto renew flag. Valid values are
0
(NOTIFY_AND_MANUAL_RENEW),1
(NOTIFY_AND_AUTO_RENEW) and2
(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is0
. Note: only works for PREPAID instance. Only supports0
and1
for creation. - availability
Zone List<String>Lists - If cloud database instances are deployed in multiple availability zones, specify a list of multiple availability zones.
- To deploy an instance with multiple availability zones, the parameter Zone specifies the primary availability zone information of the instance; Availability ZoneList specifies all availability zone information, including the primary availability zone. The input format is as follows: [ap-Guangzhou-2,ap-Guangzhou-3,ap-Guangzhou-4].
- You can obtain availability zone information planned in different regions of the cloud database through the interface DescribeSpecInfo, so as to specify effective availability zones.
- Multiple availability zone deployment nodes can only be deployed in 3 different availability zones. Deploying most nodes of a cluster in the same availability zone is not supported. For example, a 3-node cluster does not support 2 nodes deployed in the same zone.
- charge
Type String - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
. Caution that update operation on this field will delete old instances and create new one with new charge type. - String
- The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
- in
Maintenance Number - Switch time for instance configuration changes.
- 0: When the adjustment is completed, perform the configuration task immediately. Default is 0.
- 1: Perform reconfiguration tasks within the maintenance time window. Note: Adjusting the number of nodes and slices does not support changes within the maintenance window.
- maintenance
End String - Maintenance window end time.
- The value range is any full point or half point from
00:00-23:00
, and the maintenance time duration is at least 30 minutes and at most 3 hours. - The end time must be based on the start time backwards.
- The value range is any full point or half point from
- maintenance
Start String - Maintenance window start time. The value range is any full point or half point from
00:00-23:00
, such as 00:00 or 00:30. - mongodb
Instance StringId - ID of the resource.
- node
Num Number - The number of nodes in each replica set. Default value: 3.
- password String
- Password of this Mongodb account.
- prepaid
Period Number - The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to
PREPAID
. - project
Id Number - ID of the project which the instance belongs.
- remove
Node List<Property Map>Lists - Add node attribute list.
- security
Groups List<String> - ID of the security group.
- subnet
Id String - ID of the subnet within this VPC. The value is required if
vpc_id
is set. - Map<String>
- The tags of the Mongodb. Key name
project
is system reserved and can't be used. - vpc
Id String - ID of the VPC.
Outputs
All input properties are implicitly available as output properties. Additionally, the MongodbInstance resource produces the following output properties:
- Create
Time string - Creation time of the Mongodb instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Standby
Instance List<MongodbLists Instance Standby Instance List> - List of standby instances' info.
- Status double
- 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 string
- IP of the Mongodb instance.
- Vport double
- IP port of the Mongodb instance.
- Create
Time string - Creation time of the Mongodb instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Standby
Instance []MongodbLists Instance Standby Instance List - List of standby instances' info.
- Status float64
- 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 string
- IP of the Mongodb instance.
- Vport float64
- IP port of the Mongodb instance.
- create
Time String - Creation time of the Mongodb instance.
- id String
- The provider-assigned unique ID for this managed resource.
- standby
Instance List<MongodbLists Instance Standby Instance List> - List of standby instances' info.
- status Double
- 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 String
- IP of the Mongodb instance.
- vport Double
- IP port of the Mongodb instance.
- create
Time string - Creation time of the Mongodb instance.
- id string
- The provider-assigned unique ID for this managed resource.
- standby
Instance MongodbLists Instance Standby Instance List[] - List of standby instances' info.
- status number
- 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 string
- IP of the Mongodb instance.
- vport number
- IP port of the Mongodb instance.
- create_
time str - Creation time of the Mongodb instance.
- id str
- The provider-assigned unique ID for this managed resource.
- standby_
instance_ Sequence[Mongodblists Instance Standby Instance List] - List of standby instances' info.
- status float
- 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 str
- IP of the Mongodb instance.
- vport float
- IP port of the Mongodb instance.
- create
Time String - Creation time of the Mongodb instance.
- id String
- The provider-assigned unique ID for this managed resource.
- standby
Instance List<Property Map>Lists - List of standby instances' info.
- status Number
- 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 String
- IP of the Mongodb instance.
- vport Number
- IP port of the Mongodb instance.
Look up Existing MongodbInstance Resource
Get an existing MongodbInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MongodbInstanceState, opts?: CustomResourceOptions): MongodbInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
add_node_lists: Optional[Sequence[MongodbInstanceAddNodeListArgs]] = None,
auto_renew_flag: Optional[float] = None,
availability_zone_lists: Optional[Sequence[str]] = None,
available_zone: Optional[str] = None,
charge_type: Optional[str] = None,
create_time: Optional[str] = None,
engine_version: Optional[str] = None,
hidden_zone: Optional[str] = None,
in_maintenance: Optional[float] = None,
instance_name: Optional[str] = None,
machine_type: Optional[str] = None,
maintenance_end: Optional[str] = None,
maintenance_start: Optional[str] = None,
memory: Optional[float] = None,
mongodb_instance_id: Optional[str] = None,
node_num: Optional[float] = None,
password: Optional[str] = None,
prepaid_period: Optional[float] = None,
project_id: Optional[float] = None,
remove_node_lists: Optional[Sequence[MongodbInstanceRemoveNodeListArgs]] = None,
security_groups: Optional[Sequence[str]] = None,
standby_instance_lists: Optional[Sequence[MongodbInstanceStandbyInstanceListArgs]] = None,
status: Optional[float] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vip: Optional[str] = None,
volume: Optional[float] = None,
vpc_id: Optional[str] = None,
vport: Optional[float] = None) -> MongodbInstance
func GetMongodbInstance(ctx *Context, name string, id IDInput, state *MongodbInstanceState, opts ...ResourceOption) (*MongodbInstance, error)
public static MongodbInstance Get(string name, Input<string> id, MongodbInstanceState? state, CustomResourceOptions? opts = null)
public static MongodbInstance get(String name, Output<String> id, MongodbInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MongodbInstance get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Add
Node List<MongodbLists Instance Add Node List> - Add node attribute list.
- Auto
Renew doubleFlag - Auto renew flag. Valid values are
0
(NOTIFY_AND_MANUAL_RENEW),1
(NOTIFY_AND_AUTO_RENEW) and2
(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is0
. Note: only works for PREPAID instance. Only supports0
and1
for creation. - Availability
Zone List<string>Lists - If cloud database instances are deployed in multiple availability zones, specify a list of multiple availability zones.
- To deploy an instance with multiple availability zones, the parameter Zone specifies the primary availability zone information of the instance; Availability ZoneList specifies all availability zone information, including the primary availability zone. The input format is as follows: [ap-Guangzhou-2,ap-Guangzhou-3,ap-Guangzhou-4].
- You can obtain availability zone information planned in different regions of the cloud database through the interface DescribeSpecInfo, so as to specify effective availability zones.
- Multiple availability zone deployment nodes can only be deployed in 3 different availability zones. Deploying most nodes of a cluster in the same availability zone is not supported. For example, a 3-node cluster does not support 2 nodes deployed in the same zone.
- Available
Zone string - The available zone of the Mongodb.
- Charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
. Caution that update operation on this field will delete old instances and create new one with new charge type. - Create
Time string - Creation time of the Mongodb instance.
- Engine
Version string - Version of the Mongodb, and available values include
MONGO_36_WT
(MongoDB 3.6 WiredTiger Edition),MONGO_40_WT
(MongoDB 4.0 WiredTiger Edition) andMONGO_42_WT
(MongoDB 4.2 WiredTiger Edition). NOTE:MONGO_3_WT
(MongoDB 3.2 WiredTiger Edition) andMONGO_3_ROCKS
(MongoDB 3.2 RocksDB Edition) will deprecated. - string
- The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
- In
Maintenance double - Switch time for instance configuration changes.
- 0: When the adjustment is completed, perform the configuration task immediately. Default is 0.
- 1: Perform reconfiguration tasks within the maintenance time window. Note: Adjusting the number of nodes and slices does not support changes within the maintenance window.
- Instance
Name string - Name of the Mongodb instance.
- Machine
Type string - Type of Mongodb instance, and available values include
HIO
(orGIO
which will be deprecated, represents high IO) andHIO10G
(orTGIO
which will be deprecated, represents 10-gigabit high IO). - Maintenance
End string - Maintenance window end time.
- The value range is any full point or half point from
00:00-23:00
, and the maintenance time duration is at least 30 minutes and at most 3 hours. - The end time must be based on the start time backwards.
- The value range is any full point or half point from
- Maintenance
Start string - Maintenance window start time. The value range is any full point or half point from
00:00-23:00
, such as 00:00 or 00:30. - Memory double
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- Mongodb
Instance stringId - ID of the resource.
- Node
Num double - The number of nodes in each replica set. Default value: 3.
- Password string
- Password of this Mongodb account.
- Prepaid
Period double - The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to
PREPAID
. - Project
Id double - ID of the project which the instance belongs.
- Remove
Node List<MongodbLists Instance Remove Node List> - Add node attribute list.
- Security
Groups List<string> - ID of the security group.
- Standby
Instance List<MongodbLists Instance Standby Instance List> - List of standby instances' info.
- Status double
- 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).
- Subnet
Id string - ID of the subnet within this VPC. The value is required if
vpc_id
is set. - Dictionary<string, string>
- The tags of the Mongodb. Key name
project
is system reserved and can't be used. - Vip string
- IP of the Mongodb instance.
- Volume double
- Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- Vpc
Id string - ID of the VPC.
- Vport double
- IP port of the Mongodb instance.
- Add
Node []MongodbLists Instance Add Node List Args - Add node attribute list.
- Auto
Renew float64Flag - Auto renew flag. Valid values are
0
(NOTIFY_AND_MANUAL_RENEW),1
(NOTIFY_AND_AUTO_RENEW) and2
(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is0
. Note: only works for PREPAID instance. Only supports0
and1
for creation. - Availability
Zone []stringLists - If cloud database instances are deployed in multiple availability zones, specify a list of multiple availability zones.
- To deploy an instance with multiple availability zones, the parameter Zone specifies the primary availability zone information of the instance; Availability ZoneList specifies all availability zone information, including the primary availability zone. The input format is as follows: [ap-Guangzhou-2,ap-Guangzhou-3,ap-Guangzhou-4].
- You can obtain availability zone information planned in different regions of the cloud database through the interface DescribeSpecInfo, so as to specify effective availability zones.
- Multiple availability zone deployment nodes can only be deployed in 3 different availability zones. Deploying most nodes of a cluster in the same availability zone is not supported. For example, a 3-node cluster does not support 2 nodes deployed in the same zone.
- Available
Zone string - The available zone of the Mongodb.
- Charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
. Caution that update operation on this field will delete old instances and create new one with new charge type. - Create
Time string - Creation time of the Mongodb instance.
- Engine
Version string - Version of the Mongodb, and available values include
MONGO_36_WT
(MongoDB 3.6 WiredTiger Edition),MONGO_40_WT
(MongoDB 4.0 WiredTiger Edition) andMONGO_42_WT
(MongoDB 4.2 WiredTiger Edition). NOTE:MONGO_3_WT
(MongoDB 3.2 WiredTiger Edition) andMONGO_3_ROCKS
(MongoDB 3.2 RocksDB Edition) will deprecated. - string
- The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
- In
Maintenance float64 - Switch time for instance configuration changes.
- 0: When the adjustment is completed, perform the configuration task immediately. Default is 0.
- 1: Perform reconfiguration tasks within the maintenance time window. Note: Adjusting the number of nodes and slices does not support changes within the maintenance window.
- Instance
Name string - Name of the Mongodb instance.
- Machine
Type string - Type of Mongodb instance, and available values include
HIO
(orGIO
which will be deprecated, represents high IO) andHIO10G
(orTGIO
which will be deprecated, represents 10-gigabit high IO). - Maintenance
End string - Maintenance window end time.
- The value range is any full point or half point from
00:00-23:00
, and the maintenance time duration is at least 30 minutes and at most 3 hours. - The end time must be based on the start time backwards.
- The value range is any full point or half point from
- Maintenance
Start string - Maintenance window start time. The value range is any full point or half point from
00:00-23:00
, such as 00:00 or 00:30. - Memory float64
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- Mongodb
Instance stringId - ID of the resource.
- Node
Num float64 - The number of nodes in each replica set. Default value: 3.
- Password string
- Password of this Mongodb account.
- Prepaid
Period float64 - The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to
PREPAID
. - Project
Id float64 - ID of the project which the instance belongs.
- Remove
Node []MongodbLists Instance Remove Node List Args - Add node attribute list.
- Security
Groups []string - ID of the security group.
- Standby
Instance []MongodbLists Instance Standby Instance List Args - List of standby instances' info.
- Status float64
- 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).
- Subnet
Id string - ID of the subnet within this VPC. The value is required if
vpc_id
is set. - map[string]string
- The tags of the Mongodb. Key name
project
is system reserved and can't be used. - Vip string
- IP of the Mongodb instance.
- Volume float64
- Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- Vpc
Id string - ID of the VPC.
- Vport float64
- IP port of the Mongodb instance.
- add
Node List<MongodbLists Instance Add Node List> - Add node attribute list.
- auto
Renew DoubleFlag - Auto renew flag. Valid values are
0
(NOTIFY_AND_MANUAL_RENEW),1
(NOTIFY_AND_AUTO_RENEW) and2
(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is0
. Note: only works for PREPAID instance. Only supports0
and1
for creation. - availability
Zone List<String>Lists - If cloud database instances are deployed in multiple availability zones, specify a list of multiple availability zones.
- To deploy an instance with multiple availability zones, the parameter Zone specifies the primary availability zone information of the instance; Availability ZoneList specifies all availability zone information, including the primary availability zone. The input format is as follows: [ap-Guangzhou-2,ap-Guangzhou-3,ap-Guangzhou-4].
- You can obtain availability zone information planned in different regions of the cloud database through the interface DescribeSpecInfo, so as to specify effective availability zones.
- Multiple availability zone deployment nodes can only be deployed in 3 different availability zones. Deploying most nodes of a cluster in the same availability zone is not supported. For example, a 3-node cluster does not support 2 nodes deployed in the same zone.
- available
Zone String - The available zone of the Mongodb.
- charge
Type String - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
. Caution that update operation on this field will delete old instances and create new one with new charge type. - create
Time String - Creation time of the Mongodb instance.
- engine
Version String - Version of the Mongodb, and available values include
MONGO_36_WT
(MongoDB 3.6 WiredTiger Edition),MONGO_40_WT
(MongoDB 4.0 WiredTiger Edition) andMONGO_42_WT
(MongoDB 4.2 WiredTiger Edition). NOTE:MONGO_3_WT
(MongoDB 3.2 WiredTiger Edition) andMONGO_3_ROCKS
(MongoDB 3.2 RocksDB Edition) will deprecated. - String
- The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
- in
Maintenance Double - Switch time for instance configuration changes.
- 0: When the adjustment is completed, perform the configuration task immediately. Default is 0.
- 1: Perform reconfiguration tasks within the maintenance time window. Note: Adjusting the number of nodes and slices does not support changes within the maintenance window.
- instance
Name String - Name of the Mongodb instance.
- machine
Type String - Type of Mongodb instance, and available values include
HIO
(orGIO
which will be deprecated, represents high IO) andHIO10G
(orTGIO
which will be deprecated, represents 10-gigabit high IO). - maintenance
End String - Maintenance window end time.
- The value range is any full point or half point from
00:00-23:00
, and the maintenance time duration is at least 30 minutes and at most 3 hours. - The end time must be based on the start time backwards.
- The value range is any full point or half point from
- maintenance
Start String - Maintenance window start time. The value range is any full point or half point from
00:00-23:00
, such as 00:00 or 00:30. - memory Double
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- mongodb
Instance StringId - ID of the resource.
- node
Num Double - The number of nodes in each replica set. Default value: 3.
- password String
- Password of this Mongodb account.
- prepaid
Period Double - The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to
PREPAID
. - project
Id Double - ID of the project which the instance belongs.
- remove
Node List<MongodbLists Instance Remove Node List> - Add node attribute list.
- security
Groups List<String> - ID of the security group.
- standby
Instance List<MongodbLists Instance Standby Instance List> - List of standby instances' info.
- status Double
- 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).
- subnet
Id String - ID of the subnet within this VPC. The value is required if
vpc_id
is set. - Map<String,String>
- The tags of the Mongodb. Key name
project
is system reserved and can't be used. - vip String
- IP of the Mongodb instance.
- volume Double
- Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- vpc
Id String - ID of the VPC.
- vport Double
- IP port of the Mongodb instance.
- add
Node MongodbLists Instance Add Node List[] - Add node attribute list.
- auto
Renew numberFlag - Auto renew flag. Valid values are
0
(NOTIFY_AND_MANUAL_RENEW),1
(NOTIFY_AND_AUTO_RENEW) and2
(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is0
. Note: only works for PREPAID instance. Only supports0
and1
for creation. - availability
Zone string[]Lists - If cloud database instances are deployed in multiple availability zones, specify a list of multiple availability zones.
- To deploy an instance with multiple availability zones, the parameter Zone specifies the primary availability zone information of the instance; Availability ZoneList specifies all availability zone information, including the primary availability zone. The input format is as follows: [ap-Guangzhou-2,ap-Guangzhou-3,ap-Guangzhou-4].
- You can obtain availability zone information planned in different regions of the cloud database through the interface DescribeSpecInfo, so as to specify effective availability zones.
- Multiple availability zone deployment nodes can only be deployed in 3 different availability zones. Deploying most nodes of a cluster in the same availability zone is not supported. For example, a 3-node cluster does not support 2 nodes deployed in the same zone.
- available
Zone string - The available zone of the Mongodb.
- charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
. Caution that update operation on this field will delete old instances and create new one with new charge type. - create
Time string - Creation time of the Mongodb instance.
- engine
Version string - Version of the Mongodb, and available values include
MONGO_36_WT
(MongoDB 3.6 WiredTiger Edition),MONGO_40_WT
(MongoDB 4.0 WiredTiger Edition) andMONGO_42_WT
(MongoDB 4.2 WiredTiger Edition). NOTE:MONGO_3_WT
(MongoDB 3.2 WiredTiger Edition) andMONGO_3_ROCKS
(MongoDB 3.2 RocksDB Edition) will deprecated. - string
- The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
- in
Maintenance number - Switch time for instance configuration changes.
- 0: When the adjustment is completed, perform the configuration task immediately. Default is 0.
- 1: Perform reconfiguration tasks within the maintenance time window. Note: Adjusting the number of nodes and slices does not support changes within the maintenance window.
- instance
Name string - Name of the Mongodb instance.
- machine
Type string - Type of Mongodb instance, and available values include
HIO
(orGIO
which will be deprecated, represents high IO) andHIO10G
(orTGIO
which will be deprecated, represents 10-gigabit high IO). - maintenance
End string - Maintenance window end time.
- The value range is any full point or half point from
00:00-23:00
, and the maintenance time duration is at least 30 minutes and at most 3 hours. - The end time must be based on the start time backwards.
- The value range is any full point or half point from
- maintenance
Start string - Maintenance window start time. The value range is any full point or half point from
00:00-23:00
, such as 00:00 or 00:30. - memory number
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- mongodb
Instance stringId - ID of the resource.
- node
Num number - The number of nodes in each replica set. Default value: 3.
- password string
- Password of this Mongodb account.
- prepaid
Period number - The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to
PREPAID
. - project
Id number - ID of the project which the instance belongs.
- remove
Node MongodbLists Instance Remove Node List[] - Add node attribute list.
- security
Groups string[] - ID of the security group.
- standby
Instance MongodbLists Instance Standby Instance List[] - List of standby instances' info.
- status number
- 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).
- subnet
Id string - ID of the subnet within this VPC. The value is required if
vpc_id
is set. - {[key: string]: string}
- The tags of the Mongodb. Key name
project
is system reserved and can't be used. - vip string
- IP of the Mongodb instance.
- volume number
- Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- vpc
Id string - ID of the VPC.
- vport number
- IP port of the Mongodb instance.
- add_
node_ Sequence[Mongodblists Instance Add Node List Args] - Add node attribute list.
- auto_
renew_ floatflag - Auto renew flag. Valid values are
0
(NOTIFY_AND_MANUAL_RENEW),1
(NOTIFY_AND_AUTO_RENEW) and2
(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is0
. Note: only works for PREPAID instance. Only supports0
and1
for creation. - availability_
zone_ Sequence[str]lists - If cloud database instances are deployed in multiple availability zones, specify a list of multiple availability zones.
- To deploy an instance with multiple availability zones, the parameter Zone specifies the primary availability zone information of the instance; Availability ZoneList specifies all availability zone information, including the primary availability zone. The input format is as follows: [ap-Guangzhou-2,ap-Guangzhou-3,ap-Guangzhou-4].
- You can obtain availability zone information planned in different regions of the cloud database through the interface DescribeSpecInfo, so as to specify effective availability zones.
- Multiple availability zone deployment nodes can only be deployed in 3 different availability zones. Deploying most nodes of a cluster in the same availability zone is not supported. For example, a 3-node cluster does not support 2 nodes deployed in the same zone.
- available_
zone str - The available zone of the Mongodb.
- charge_
type str - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
. Caution that update operation on this field will delete old instances and create new one with new charge type. - create_
time str - Creation time of the Mongodb instance.
- engine_
version str - Version of the Mongodb, and available values include
MONGO_36_WT
(MongoDB 3.6 WiredTiger Edition),MONGO_40_WT
(MongoDB 4.0 WiredTiger Edition) andMONGO_42_WT
(MongoDB 4.2 WiredTiger Edition). NOTE:MONGO_3_WT
(MongoDB 3.2 WiredTiger Edition) andMONGO_3_ROCKS
(MongoDB 3.2 RocksDB Edition) will deprecated. - str
- The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
- in_
maintenance float - Switch time for instance configuration changes.
- 0: When the adjustment is completed, perform the configuration task immediately. Default is 0.
- 1: Perform reconfiguration tasks within the maintenance time window. Note: Adjusting the number of nodes and slices does not support changes within the maintenance window.
- instance_
name str - Name of the Mongodb instance.
- machine_
type str - Type of Mongodb instance, and available values include
HIO
(orGIO
which will be deprecated, represents high IO) andHIO10G
(orTGIO
which will be deprecated, represents 10-gigabit high IO). - maintenance_
end str - Maintenance window end time.
- The value range is any full point or half point from
00:00-23:00
, and the maintenance time duration is at least 30 minutes and at most 3 hours. - The end time must be based on the start time backwards.
- The value range is any full point or half point from
- maintenance_
start str - Maintenance window start time. The value range is any full point or half point from
00:00-23:00
, such as 00:00 or 00:30. - memory float
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- mongodb_
instance_ strid - ID of the resource.
- node_
num float - The number of nodes in each replica set. Default value: 3.
- password str
- Password of this Mongodb account.
- prepaid_
period float - The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to
PREPAID
. - project_
id float - ID of the project which the instance belongs.
- remove_
node_ Sequence[Mongodblists Instance Remove Node List Args] - Add node attribute list.
- security_
groups Sequence[str] - ID of the security group.
- standby_
instance_ Sequence[Mongodblists Instance Standby Instance List Args] - List of standby instances' info.
- status float
- 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).
- subnet_
id str - ID of the subnet within this VPC. The value is required if
vpc_id
is set. - Mapping[str, str]
- The tags of the Mongodb. Key name
project
is system reserved and can't be used. - vip str
- IP of the Mongodb instance.
- volume float
- Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- vpc_
id str - ID of the VPC.
- vport float
- IP port of the Mongodb instance.
- add
Node List<Property Map>Lists - Add node attribute list.
- auto
Renew NumberFlag - Auto renew flag. Valid values are
0
(NOTIFY_AND_MANUAL_RENEW),1
(NOTIFY_AND_AUTO_RENEW) and2
(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is0
. Note: only works for PREPAID instance. Only supports0
and1
for creation. - availability
Zone List<String>Lists - If cloud database instances are deployed in multiple availability zones, specify a list of multiple availability zones.
- To deploy an instance with multiple availability zones, the parameter Zone specifies the primary availability zone information of the instance; Availability ZoneList specifies all availability zone information, including the primary availability zone. The input format is as follows: [ap-Guangzhou-2,ap-Guangzhou-3,ap-Guangzhou-4].
- You can obtain availability zone information planned in different regions of the cloud database through the interface DescribeSpecInfo, so as to specify effective availability zones.
- Multiple availability zone deployment nodes can only be deployed in 3 different availability zones. Deploying most nodes of a cluster in the same availability zone is not supported. For example, a 3-node cluster does not support 2 nodes deployed in the same zone.
- available
Zone String - The available zone of the Mongodb.
- charge
Type String - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
. Caution that update operation on this field will delete old instances and create new one with new charge type. - create
Time String - Creation time of the Mongodb instance.
- engine
Version String - Version of the Mongodb, and available values include
MONGO_36_WT
(MongoDB 3.6 WiredTiger Edition),MONGO_40_WT
(MongoDB 4.0 WiredTiger Edition) andMONGO_42_WT
(MongoDB 4.2 WiredTiger Edition). NOTE:MONGO_3_WT
(MongoDB 3.2 WiredTiger Edition) andMONGO_3_ROCKS
(MongoDB 3.2 RocksDB Edition) will deprecated. - String
- The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
- in
Maintenance Number - Switch time for instance configuration changes.
- 0: When the adjustment is completed, perform the configuration task immediately. Default is 0.
- 1: Perform reconfiguration tasks within the maintenance time window. Note: Adjusting the number of nodes and slices does not support changes within the maintenance window.
- instance
Name String - Name of the Mongodb instance.
- machine
Type String - Type of Mongodb instance, and available values include
HIO
(orGIO
which will be deprecated, represents high IO) andHIO10G
(orTGIO
which will be deprecated, represents 10-gigabit high IO). - maintenance
End String - Maintenance window end time.
- The value range is any full point or half point from
00:00-23:00
, and the maintenance time duration is at least 30 minutes and at most 3 hours. - The end time must be based on the start time backwards.
- The value range is any full point or half point from
- maintenance
Start String - Maintenance window start time. The value range is any full point or half point from
00:00-23:00
, such as 00:00 or 00:30. - memory Number
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- mongodb
Instance StringId - ID of the resource.
- node
Num Number - The number of nodes in each replica set. Default value: 3.
- password String
- Password of this Mongodb account.
- prepaid
Period Number - The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to
PREPAID
. - project
Id Number - ID of the project which the instance belongs.
- remove
Node List<Property Map>Lists - Add node attribute list.
- security
Groups List<String> - ID of the security group.
- standby
Instance List<Property Map>Lists - List of standby instances' info.
- status Number
- 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).
- subnet
Id String - ID of the subnet within this VPC. The value is required if
vpc_id
is set. - Map<String>
- The tags of the Mongodb. Key name
project
is system reserved and can't be used. - vip String
- IP of the Mongodb instance.
- volume Number
- Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- vpc
Id String - ID of the VPC.
- vport Number
- IP port of the Mongodb instance.
Supporting Types
MongodbInstanceAddNodeList, MongodbInstanceAddNodeListArgs
- Role string
- The node role that needs to be added.
- SECONDARY: Mongod node;
- READONLY: read-only node;
- MONGOS: Mongos node.
- Zone string
- The availability zone corresponding to the node.
- single availability zone, where all nodes are in the same availability zone;
- multiple availability zones: the current standard specification is the distribution of three availability zones, and the master and slave nodes are not in the same availability zone. You should pay attention to configuring the availability zone corresponding to the new node, and the rule that the number of nodes in any two availability zones is greater than the third availability zone must be met after the addition.
- Role string
- The node role that needs to be added.
- SECONDARY: Mongod node;
- READONLY: read-only node;
- MONGOS: Mongos node.
- Zone string
- The availability zone corresponding to the node.
- single availability zone, where all nodes are in the same availability zone;
- multiple availability zones: the current standard specification is the distribution of three availability zones, and the master and slave nodes are not in the same availability zone. You should pay attention to configuring the availability zone corresponding to the new node, and the rule that the number of nodes in any two availability zones is greater than the third availability zone must be met after the addition.
- role String
- The node role that needs to be added.
- SECONDARY: Mongod node;
- READONLY: read-only node;
- MONGOS: Mongos node.
- zone String
- The availability zone corresponding to the node.
- single availability zone, where all nodes are in the same availability zone;
- multiple availability zones: the current standard specification is the distribution of three availability zones, and the master and slave nodes are not in the same availability zone. You should pay attention to configuring the availability zone corresponding to the new node, and the rule that the number of nodes in any two availability zones is greater than the third availability zone must be met after the addition.
- role string
- The node role that needs to be added.
- SECONDARY: Mongod node;
- READONLY: read-only node;
- MONGOS: Mongos node.
- zone string
- The availability zone corresponding to the node.
- single availability zone, where all nodes are in the same availability zone;
- multiple availability zones: the current standard specification is the distribution of three availability zones, and the master and slave nodes are not in the same availability zone. You should pay attention to configuring the availability zone corresponding to the new node, and the rule that the number of nodes in any two availability zones is greater than the third availability zone must be met after the addition.
- role str
- The node role that needs to be added.
- SECONDARY: Mongod node;
- READONLY: read-only node;
- MONGOS: Mongos node.
- zone str
- The availability zone corresponding to the node.
- single availability zone, where all nodes are in the same availability zone;
- multiple availability zones: the current standard specification is the distribution of three availability zones, and the master and slave nodes are not in the same availability zone. You should pay attention to configuring the availability zone corresponding to the new node, and the rule that the number of nodes in any two availability zones is greater than the third availability zone must be met after the addition.
- role String
- The node role that needs to be added.
- SECONDARY: Mongod node;
- READONLY: read-only node;
- MONGOS: Mongos node.
- zone String
- The availability zone corresponding to the node.
- single availability zone, where all nodes are in the same availability zone;
- multiple availability zones: the current standard specification is the distribution of three availability zones, and the master and slave nodes are not in the same availability zone. You should pay attention to configuring the availability zone corresponding to the new node, and the rule that the number of nodes in any two availability zones is greater than the third availability zone must be met after the addition.
MongodbInstanceRemoveNodeList, MongodbInstanceRemoveNodeListArgs
- Node
Name string - The node ID to delete. The shard cluster must specify the name of the node to be deleted by a group of shards, and the rest of the shards should be grouped and aligned.
- Role string
- The node role that needs to be deleted.
- SECONDARY: Mongod node;
- READONLY: read-only node;
- MONGOS: Mongos node.
- Zone string
- The availability zone corresponding to the node.
- single availability zone, where all nodes are in the same availability zone;
- multiple availability zones: the current standard specification is the distribution of three availability zones, and the master and slave nodes are not in the same availability zone. You should pay attention to configuring the availability zone corresponding to the new node, and the rule that the number of nodes in any two availability zones is greater than the third availability zone must be met after the addition.
- Node
Name string - The node ID to delete. The shard cluster must specify the name of the node to be deleted by a group of shards, and the rest of the shards should be grouped and aligned.
- Role string
- The node role that needs to be deleted.
- SECONDARY: Mongod node;
- READONLY: read-only node;
- MONGOS: Mongos node.
- Zone string
- The availability zone corresponding to the node.
- single availability zone, where all nodes are in the same availability zone;
- multiple availability zones: the current standard specification is the distribution of three availability zones, and the master and slave nodes are not in the same availability zone. You should pay attention to configuring the availability zone corresponding to the new node, and the rule that the number of nodes in any two availability zones is greater than the third availability zone must be met after the addition.
- node
Name String - The node ID to delete. The shard cluster must specify the name of the node to be deleted by a group of shards, and the rest of the shards should be grouped and aligned.
- role String
- The node role that needs to be deleted.
- SECONDARY: Mongod node;
- READONLY: read-only node;
- MONGOS: Mongos node.
- zone String
- The availability zone corresponding to the node.
- single availability zone, where all nodes are in the same availability zone;
- multiple availability zones: the current standard specification is the distribution of three availability zones, and the master and slave nodes are not in the same availability zone. You should pay attention to configuring the availability zone corresponding to the new node, and the rule that the number of nodes in any two availability zones is greater than the third availability zone must be met after the addition.
- node
Name string - The node ID to delete. The shard cluster must specify the name of the node to be deleted by a group of shards, and the rest of the shards should be grouped and aligned.
- role string
- The node role that needs to be deleted.
- SECONDARY: Mongod node;
- READONLY: read-only node;
- MONGOS: Mongos node.
- zone string
- The availability zone corresponding to the node.
- single availability zone, where all nodes are in the same availability zone;
- multiple availability zones: the current standard specification is the distribution of three availability zones, and the master and slave nodes are not in the same availability zone. You should pay attention to configuring the availability zone corresponding to the new node, and the rule that the number of nodes in any two availability zones is greater than the third availability zone must be met after the addition.
- node_
name str - The node ID to delete. The shard cluster must specify the name of the node to be deleted by a group of shards, and the rest of the shards should be grouped and aligned.
- role str
- The node role that needs to be deleted.
- SECONDARY: Mongod node;
- READONLY: read-only node;
- MONGOS: Mongos node.
- zone str
- The availability zone corresponding to the node.
- single availability zone, where all nodes are in the same availability zone;
- multiple availability zones: the current standard specification is the distribution of three availability zones, and the master and slave nodes are not in the same availability zone. You should pay attention to configuring the availability zone corresponding to the new node, and the rule that the number of nodes in any two availability zones is greater than the third availability zone must be met after the addition.
- node
Name String - The node ID to delete. The shard cluster must specify the name of the node to be deleted by a group of shards, and the rest of the shards should be grouped and aligned.
- role String
- The node role that needs to be deleted.
- SECONDARY: Mongod node;
- READONLY: read-only node;
- MONGOS: Mongos node.
- zone String
- The availability zone corresponding to the node.
- single availability zone, where all nodes are in the same availability zone;
- multiple availability zones: the current standard specification is the distribution of three availability zones, and the master and slave nodes are not in the same availability zone. You should pay attention to configuring the availability zone corresponding to the new node, and the rule that the number of nodes in any two availability zones is greater than the third availability zone must be met after the addition.
MongodbInstanceStandbyInstanceList, MongodbInstanceStandbyInstanceListArgs
- Standby
Instance stringId - Indicates the ID of standby instance.
- Standby
Instance stringRegion - Indicates the region of standby instance.
- Standby
Instance stringId - Indicates the ID of standby instance.
- Standby
Instance stringRegion - Indicates the region of standby instance.
- standby
Instance StringId - Indicates the ID of standby instance.
- standby
Instance StringRegion - Indicates the region of standby instance.
- standby
Instance stringId - Indicates the ID of standby instance.
- standby
Instance stringRegion - Indicates the region of standby instance.
- standby_
instance_ strid - Indicates the ID of standby instance.
- standby_
instance_ strregion - Indicates the region of standby instance.
- standby
Instance StringId - Indicates the ID of standby instance.
- standby
Instance StringRegion - Indicates the region of standby instance.
Import
Mongodb instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/mongodbInstance:MongodbInstance mongodb cmgo-41s6jwy4
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.