tencentcloud.MongodbReadonlyInstance
Explore with Pulumi AI
Provide a resource to create a Readonly mongodb instance.
Example Usage
Replset readonly instance
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const mongodb = new tencentcloud.MongodbReadonlyInstance("mongodb", {
availableZone: "ap-guangzhou-3",
clusterType: "REPLSET",
engineVersion: "MONGO_44_WT",
fatherInstanceId: "cmgo-xxxxxx",
fatherInstanceRegion: "ap-guangzhou",
instanceName: "tf-mongodb-readonly-test",
machineType: "HIO10G",
memory: 4,
projectId: 0,
securityGroups: ["sg-xxxxxx"],
subnetId: "subnet-xxxxxx",
volume: 100,
vpcId: "vpc-xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
mongodb = tencentcloud.MongodbReadonlyInstance("mongodb",
available_zone="ap-guangzhou-3",
cluster_type="REPLSET",
engine_version="MONGO_44_WT",
father_instance_id="cmgo-xxxxxx",
father_instance_region="ap-guangzhou",
instance_name="tf-mongodb-readonly-test",
machine_type="HIO10G",
memory=4,
project_id=0,
security_groups=["sg-xxxxxx"],
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.NewMongodbReadonlyInstance(ctx, "mongodb", &tencentcloud.MongodbReadonlyInstanceArgs{
AvailableZone: pulumi.String("ap-guangzhou-3"),
ClusterType: pulumi.String("REPLSET"),
EngineVersion: pulumi.String("MONGO_44_WT"),
FatherInstanceId: pulumi.String("cmgo-xxxxxx"),
FatherInstanceRegion: pulumi.String("ap-guangzhou"),
InstanceName: pulumi.String("tf-mongodb-readonly-test"),
MachineType: pulumi.String("HIO10G"),
Memory: pulumi.Float64(4),
ProjectId: pulumi.Float64(0),
SecurityGroups: pulumi.StringArray{
pulumi.String("sg-xxxxxx"),
},
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.MongodbReadonlyInstance("mongodb", new()
{
AvailableZone = "ap-guangzhou-3",
ClusterType = "REPLSET",
EngineVersion = "MONGO_44_WT",
FatherInstanceId = "cmgo-xxxxxx",
FatherInstanceRegion = "ap-guangzhou",
InstanceName = "tf-mongodb-readonly-test",
MachineType = "HIO10G",
Memory = 4,
ProjectId = 0,
SecurityGroups = new[]
{
"sg-xxxxxx",
},
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.MongodbReadonlyInstance;
import com.pulumi.tencentcloud.MongodbReadonlyInstanceArgs;
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 MongodbReadonlyInstance("mongodb", MongodbReadonlyInstanceArgs.builder()
.availableZone("ap-guangzhou-3")
.clusterType("REPLSET")
.engineVersion("MONGO_44_WT")
.fatherInstanceId("cmgo-xxxxxx")
.fatherInstanceRegion("ap-guangzhou")
.instanceName("tf-mongodb-readonly-test")
.machineType("HIO10G")
.memory(4)
.projectId(0)
.securityGroups("sg-xxxxxx")
.subnetId("subnet-xxxxxx")
.volume(100)
.vpcId("vpc-xxxxxx")
.build());
}
}
resources:
mongodb:
type: tencentcloud:MongodbReadonlyInstance
properties:
availableZone: ap-guangzhou-3
clusterType: REPLSET
engineVersion: MONGO_44_WT
fatherInstanceId: cmgo-xxxxxx
fatherInstanceRegion: ap-guangzhou
instanceName: tf-mongodb-readonly-test
machineType: HIO10G
memory: 4
projectId: 0
securityGroups:
- sg-xxxxxx
subnetId: subnet-xxxxxx
volume: 100
vpcId: vpc-xxxxxx
Shard readonly instance
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const shardingMongodb = new tencentcloud.MongodbReadonlyInstance("shardingMongodb", {
availableZone: "ap-guangzhou-3",
clusterType: "SHARD",
engineVersion: "MONGO_44_WT",
fatherInstanceId: "cmgo-xxxxxx",
fatherInstanceRegion: "ap-guangzhou",
instanceName: "tf-mongodb-readonly-shard",
machineType: "HIO10G",
memory: 4,
mongosCpu: 1,
mongosMemory: 2,
mongosNodeNum: 3,
projectId: 0,
securityGroups: ["sg-xxxxxx"],
subnetId: "subnet-xxxxxx",
volume: 100,
vpcId: "vpc-xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
sharding_mongodb = tencentcloud.MongodbReadonlyInstance("shardingMongodb",
available_zone="ap-guangzhou-3",
cluster_type="SHARD",
engine_version="MONGO_44_WT",
father_instance_id="cmgo-xxxxxx",
father_instance_region="ap-guangzhou",
instance_name="tf-mongodb-readonly-shard",
machine_type="HIO10G",
memory=4,
mongos_cpu=1,
mongos_memory=2,
mongos_node_num=3,
project_id=0,
security_groups=["sg-xxxxxx"],
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.NewMongodbReadonlyInstance(ctx, "shardingMongodb", &tencentcloud.MongodbReadonlyInstanceArgs{
AvailableZone: pulumi.String("ap-guangzhou-3"),
ClusterType: pulumi.String("SHARD"),
EngineVersion: pulumi.String("MONGO_44_WT"),
FatherInstanceId: pulumi.String("cmgo-xxxxxx"),
FatherInstanceRegion: pulumi.String("ap-guangzhou"),
InstanceName: pulumi.String("tf-mongodb-readonly-shard"),
MachineType: pulumi.String("HIO10G"),
Memory: pulumi.Float64(4),
MongosCpu: pulumi.Float64(1),
MongosMemory: pulumi.Float64(2),
MongosNodeNum: pulumi.Float64(3),
ProjectId: pulumi.Float64(0),
SecurityGroups: pulumi.StringArray{
pulumi.String("sg-xxxxxx"),
},
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 shardingMongodb = new Tencentcloud.MongodbReadonlyInstance("shardingMongodb", new()
{
AvailableZone = "ap-guangzhou-3",
ClusterType = "SHARD",
EngineVersion = "MONGO_44_WT",
FatherInstanceId = "cmgo-xxxxxx",
FatherInstanceRegion = "ap-guangzhou",
InstanceName = "tf-mongodb-readonly-shard",
MachineType = "HIO10G",
Memory = 4,
MongosCpu = 1,
MongosMemory = 2,
MongosNodeNum = 3,
ProjectId = 0,
SecurityGroups = new[]
{
"sg-xxxxxx",
},
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.MongodbReadonlyInstance;
import com.pulumi.tencentcloud.MongodbReadonlyInstanceArgs;
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 shardingMongodb = new MongodbReadonlyInstance("shardingMongodb", MongodbReadonlyInstanceArgs.builder()
.availableZone("ap-guangzhou-3")
.clusterType("SHARD")
.engineVersion("MONGO_44_WT")
.fatherInstanceId("cmgo-xxxxxx")
.fatherInstanceRegion("ap-guangzhou")
.instanceName("tf-mongodb-readonly-shard")
.machineType("HIO10G")
.memory(4)
.mongosCpu(1)
.mongosMemory(2)
.mongosNodeNum(3)
.projectId(0)
.securityGroups("sg-xxxxxx")
.subnetId("subnet-xxxxxx")
.volume(100)
.vpcId("vpc-xxxxxx")
.build());
}
}
resources:
shardingMongodb:
type: tencentcloud:MongodbReadonlyInstance
properties:
availableZone: ap-guangzhou-3
clusterType: SHARD
engineVersion: MONGO_44_WT
fatherInstanceId: cmgo-xxxxxx
fatherInstanceRegion: ap-guangzhou
instanceName: tf-mongodb-readonly-shard
machineType: HIO10G
memory: 4
mongosCpu: 1
mongosMemory: 2
mongosNodeNum: 3
projectId: 0
securityGroups:
- sg-xxxxxx
subnetId: subnet-xxxxxx
volume: 100
vpcId: vpc-xxxxxx
Create MongodbReadonlyInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MongodbReadonlyInstance(name: string, args: MongodbReadonlyInstanceArgs, opts?: CustomResourceOptions);
@overload
def MongodbReadonlyInstance(resource_name: str,
args: MongodbReadonlyInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MongodbReadonlyInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
machine_type: Optional[str] = None,
available_zone: Optional[str] = None,
volume: Optional[float] = None,
cluster_type: Optional[str] = None,
engine_version: Optional[str] = None,
father_instance_id: Optional[str] = None,
father_instance_region: Optional[str] = None,
memory: Optional[float] = None,
instance_name: Optional[str] = None,
mongos_cpu: Optional[float] = None,
nodes_per_shard: Optional[float] = None,
mongodb_readonly_instance_id: Optional[str] = None,
auto_renew_flag: Optional[float] = None,
mongos_memory: Optional[float] = None,
mongos_node_num: Optional[float] = None,
node_num: Optional[float] = None,
in_maintenance: Optional[float] = None,
prepaid_period: Optional[float] = None,
project_id: Optional[float] = None,
security_groups: Optional[Sequence[str]] = None,
shard_quantity: Optional[float] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
charge_type: Optional[str] = None,
vpc_id: Optional[str] = None)
func NewMongodbReadonlyInstance(ctx *Context, name string, args MongodbReadonlyInstanceArgs, opts ...ResourceOption) (*MongodbReadonlyInstance, error)
public MongodbReadonlyInstance(string name, MongodbReadonlyInstanceArgs args, CustomResourceOptions? opts = null)
public MongodbReadonlyInstance(String name, MongodbReadonlyInstanceArgs args)
public MongodbReadonlyInstance(String name, MongodbReadonlyInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:MongodbReadonlyInstance
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 MongodbReadonlyInstanceArgs
- 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 MongodbReadonlyInstanceArgs
- 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 MongodbReadonlyInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MongodbReadonlyInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MongodbReadonlyInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MongodbReadonlyInstance 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 MongodbReadonlyInstance resource accepts the following input properties:
- Available
Zone string - The available zone of the Mongodb.
- Cluster
Type string - Instance schema type. - REPLSET: Replset cluster; - SHARD: Shard cluster.
- 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. - Father
Instance stringId - Indicates the main instance ID of readonly instances.
- Father
Instance stringRegion - Indicates the region of main instance.
- 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.
- 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. - 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. - 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.
- Mongodb
Readonly stringInstance Id - ID of the resource.
- Mongos
Cpu double - Number of mongos cpu.
- Mongos
Memory double - Mongos memory size in GB.
- Mongos
Node doubleNum - Number of mongos.
- Node
Num double - The number of nodes in each replica set. Default value: 3.
- Nodes
Per doubleShard - Number of nodes per shard, at least 3(one master and two slaves).
- 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.
- Security
Groups List<string> - ID of the security group.
- double
- Number of sharding.
- 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.
- Cluster
Type string - Instance schema type. - REPLSET: Replset cluster; - SHARD: Shard cluster.
- 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. - Father
Instance stringId - Indicates the main instance ID of readonly instances.
- Father
Instance stringRegion - Indicates the region of main instance.
- 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.
- 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. - 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. - 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.
- Mongodb
Readonly stringInstance Id - ID of the resource.
- Mongos
Cpu float64 - Number of mongos cpu.
- Mongos
Memory float64 - Mongos memory size in GB.
- Mongos
Node float64Num - Number of mongos.
- Node
Num float64 - The number of nodes in each replica set. Default value: 3.
- Nodes
Per float64Shard - Number of nodes per shard, at least 3(one master and two slaves).
- 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.
- Security
Groups []string - ID of the security group.
- float64
- Number of sharding.
- 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.
- cluster
Type String - Instance schema type. - REPLSET: Replset cluster; - SHARD: Shard cluster.
- 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. - father
Instance StringId - Indicates the main instance ID of readonly instances.
- father
Instance StringRegion - Indicates the region of main instance.
- 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.
- 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. - 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. - 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.
- mongodb
Readonly StringInstance Id - ID of the resource.
- mongos
Cpu Double - Number of mongos cpu.
- mongos
Memory Double - Mongos memory size in GB.
- mongos
Node DoubleNum - Number of mongos.
- node
Num Double - The number of nodes in each replica set. Default value: 3.
- nodes
Per DoubleShard - Number of nodes per shard, at least 3(one master and two slaves).
- 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.
- security
Groups List<String> - ID of the security group.
- Double
- Number of sharding.
- 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.
- cluster
Type string - Instance schema type. - REPLSET: Replset cluster; - SHARD: Shard cluster.
- 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. - father
Instance stringId - Indicates the main instance ID of readonly instances.
- father
Instance stringRegion - Indicates the region of main instance.
- 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.
- 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. - 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. - 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.
- mongodb
Readonly stringInstance Id - ID of the resource.
- mongos
Cpu number - Number of mongos cpu.
- mongos
Memory number - Mongos memory size in GB.
- mongos
Node numberNum - Number of mongos.
- node
Num number - The number of nodes in each replica set. Default value: 3.
- nodes
Per numberShard - Number of nodes per shard, at least 3(one master and two slaves).
- 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.
- security
Groups string[] - ID of the security group.
- number
- Number of sharding.
- 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.
- cluster_
type str - Instance schema type. - REPLSET: Replset cluster; - SHARD: Shard cluster.
- 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. - father_
instance_ strid - Indicates the main instance ID of readonly instances.
- father_
instance_ strregion - Indicates the region of main instance.
- 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.
- 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. - 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. - 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.
- mongodb_
readonly_ strinstance_ id - ID of the resource.
- mongos_
cpu float - Number of mongos cpu.
- mongos_
memory float - Mongos memory size in GB.
- mongos_
node_ floatnum - Number of mongos.
- node_
num float - The number of nodes in each replica set. Default value: 3.
- nodes_
per_ floatshard - Number of nodes per shard, at least 3(one master and two slaves).
- 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.
- security_
groups Sequence[str] - ID of the security group.
- float
- Number of sharding.
- 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.
- cluster
Type String - Instance schema type. - REPLSET: Replset cluster; - SHARD: Shard cluster.
- 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. - father
Instance StringId - Indicates the main instance ID of readonly instances.
- father
Instance StringRegion - Indicates the region of main instance.
- 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.
- 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. - 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. - 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.
- mongodb
Readonly StringInstance Id - ID of the resource.
- mongos
Cpu Number - Number of mongos cpu.
- mongos
Memory Number - Mongos memory size in GB.
- mongos
Node NumberNum - Number of mongos.
- node
Num Number - The number of nodes in each replica set. Default value: 3.
- nodes
Per NumberShard - Number of nodes per shard, at least 3(one master and two slaves).
- 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.
- security
Groups List<String> - ID of the security group.
- Number
- Number of sharding.
- 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 MongodbReadonlyInstance 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 MongodbReadonlyInstance Resource
Get an existing MongodbReadonlyInstance 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?: MongodbReadonlyInstanceState, opts?: CustomResourceOptions): MongodbReadonlyInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_renew_flag: Optional[float] = None,
available_zone: Optional[str] = None,
charge_type: Optional[str] = None,
cluster_type: Optional[str] = None,
create_time: Optional[str] = None,
engine_version: Optional[str] = None,
father_instance_id: Optional[str] = None,
father_instance_region: Optional[str] = None,
in_maintenance: Optional[float] = None,
instance_name: Optional[str] = None,
machine_type: Optional[str] = None,
memory: Optional[float] = None,
mongodb_readonly_instance_id: Optional[str] = None,
mongos_cpu: Optional[float] = None,
mongos_memory: Optional[float] = None,
mongos_node_num: Optional[float] = None,
node_num: Optional[float] = None,
nodes_per_shard: Optional[float] = None,
prepaid_period: Optional[float] = None,
project_id: Optional[float] = None,
security_groups: Optional[Sequence[str]] = None,
shard_quantity: Optional[float] = 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) -> MongodbReadonlyInstance
func GetMongodbReadonlyInstance(ctx *Context, name string, id IDInput, state *MongodbReadonlyInstanceState, opts ...ResourceOption) (*MongodbReadonlyInstance, error)
public static MongodbReadonlyInstance Get(string name, Input<string> id, MongodbReadonlyInstanceState? state, CustomResourceOptions? opts = null)
public static MongodbReadonlyInstance get(String name, Output<String> id, MongodbReadonlyInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MongodbReadonlyInstance 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.
- 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. - 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. - Cluster
Type string - Instance schema type. - REPLSET: Replset cluster; - SHARD: Shard cluster.
- 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. - Father
Instance stringId - Indicates the main instance ID of readonly instances.
- Father
Instance stringRegion - Indicates the region of main instance.
- 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). - Memory double
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- Mongodb
Readonly stringInstance Id - ID of the resource.
- Mongos
Cpu double - Number of mongos cpu.
- Mongos
Memory double - Mongos memory size in GB.
- Mongos
Node doubleNum - Number of mongos.
- Node
Num double - The number of nodes in each replica set. Default value: 3.
- Nodes
Per doubleShard - Number of nodes per shard, at least 3(one master and two slaves).
- 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.
- Security
Groups List<string> - ID of the security group.
- Shard
Quantity double - Number of sharding.
- 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.
- 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. - 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. - Cluster
Type string - Instance schema type. - REPLSET: Replset cluster; - SHARD: Shard cluster.
- 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. - Father
Instance stringId - Indicates the main instance ID of readonly instances.
- Father
Instance stringRegion - Indicates the region of main instance.
- 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). - Memory float64
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- Mongodb
Readonly stringInstance Id - ID of the resource.
- Mongos
Cpu float64 - Number of mongos cpu.
- Mongos
Memory float64 - Mongos memory size in GB.
- Mongos
Node float64Num - Number of mongos.
- Node
Num float64 - The number of nodes in each replica set. Default value: 3.
- Nodes
Per float64Shard - Number of nodes per shard, at least 3(one master and two slaves).
- 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.
- Security
Groups []string - ID of the security group.
- Shard
Quantity float64 - Number of sharding.
- 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.
- 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. - 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. - cluster
Type String - Instance schema type. - REPLSET: Replset cluster; - SHARD: Shard cluster.
- 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. - father
Instance StringId - Indicates the main instance ID of readonly instances.
- father
Instance StringRegion - Indicates the region of main instance.
- 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). - memory Double
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- mongodb
Readonly StringInstance Id - ID of the resource.
- mongos
Cpu Double - Number of mongos cpu.
- mongos
Memory Double - Mongos memory size in GB.
- mongos
Node DoubleNum - Number of mongos.
- node
Num Double - The number of nodes in each replica set. Default value: 3.
- nodes
Per DoubleShard - Number of nodes per shard, at least 3(one master and two slaves).
- 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.
- security
Groups List<String> - ID of the security group.
- shard
Quantity Double - Number of sharding.
- 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.
- 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. - 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. - cluster
Type string - Instance schema type. - REPLSET: Replset cluster; - SHARD: Shard cluster.
- 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. - father
Instance stringId - Indicates the main instance ID of readonly instances.
- father
Instance stringRegion - Indicates the region of main instance.
- 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). - memory number
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- mongodb
Readonly stringInstance Id - ID of the resource.
- mongos
Cpu number - Number of mongos cpu.
- mongos
Memory number - Mongos memory size in GB.
- mongos
Node numberNum - Number of mongos.
- node
Num number - The number of nodes in each replica set. Default value: 3.
- nodes
Per numberShard - Number of nodes per shard, at least 3(one master and two slaves).
- 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.
- security
Groups string[] - ID of the security group.
- shard
Quantity number - Number of sharding.
- 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.
- 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. - 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. - cluster_
type str - Instance schema type. - REPLSET: Replset cluster; - SHARD: Shard cluster.
- 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. - father_
instance_ strid - Indicates the main instance ID of readonly instances.
- father_
instance_ strregion - Indicates the region of main instance.
- 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). - memory float
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- mongodb_
readonly_ strinstance_ id - ID of the resource.
- mongos_
cpu float - Number of mongos cpu.
- mongos_
memory float - Mongos memory size in GB.
- mongos_
node_ floatnum - Number of mongos.
- node_
num float - The number of nodes in each replica set. Default value: 3.
- nodes_
per_ floatshard - Number of nodes per shard, at least 3(one master and two slaves).
- 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.
- security_
groups Sequence[str] - ID of the security group.
- shard_
quantity float - Number of sharding.
- 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.
- 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. - 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. - cluster
Type String - Instance schema type. - REPLSET: Replset cluster; - SHARD: Shard cluster.
- 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. - father
Instance StringId - Indicates the main instance ID of readonly instances.
- father
Instance StringRegion - Indicates the region of main instance.
- 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). - memory Number
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- mongodb
Readonly StringInstance Id - ID of the resource.
- mongos
Cpu Number - Number of mongos cpu.
- mongos
Memory Number - Mongos memory size in GB.
- mongos
Node NumberNum - Number of mongos.
- node
Num Number - The number of nodes in each replica set. Default value: 3.
- nodes
Per NumberShard - Number of nodes per shard, at least 3(one master and two slaves).
- 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.
- security
Groups List<String> - ID of the security group.
- shard
Quantity Number - Number of sharding.
- 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.
Import
Mongodb instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/mongodbReadonlyInstance:MongodbReadonlyInstance mongodb cmgo-xxxxxx
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.