published on Friday, Sep 11, 2026 by tencentcloudstack
published on Friday, Sep 11, 2026 by tencentcloudstack
Provide a resource to create a Mongodb standby instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.MongodbInstance("example", {
instanceName: "tf-example",
cpu: 2,
memory: 4,
volume: 100,
engineVersion: "MONGO_80_WT",
machineType: "GE.LD.T1",
availableZone: "ap-guangzhou-6",
vpcId: "vpc-i5yyodl9",
subnetId: "subnet-hhi88a58",
projectId: 0,
password: "Password@2026",
dataEncryption: "TDE",
encryptionKeySource: "manual",
keyId: "KMS-MONGODB",
kmsRegion: "ap-guangzhou",
});
const exampleMongodbStandbyInstance = new tencentcloud.MongodbStandbyInstance("example", {
instanceName: "tf-example",
cpu: 2,
memory: 4,
volume: 100,
availableZone: "ap-guangzhou-7",
vpcId: "vpc-i5yyodl9",
subnetId: "subnet-d4umunpy",
projectId: 0,
fatherInstanceId: example.mongodbInstanceId,
fatherInstanceRegion: "ap-guangzhou",
dataEncryption: "TDE",
encryptionKeySource: "manual",
keyId: "KMS-MONGODB",
kmsRegion: "ap-guangzhou",
tags: {
createBy: "Terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.MongodbInstance("example",
instance_name="tf-example",
cpu=2,
memory=4,
volume=100,
engine_version="MONGO_80_WT",
machine_type="GE.LD.T1",
available_zone="ap-guangzhou-6",
vpc_id="vpc-i5yyodl9",
subnet_id="subnet-hhi88a58",
project_id=0,
password="Password@2026",
data_encryption="TDE",
encryption_key_source="manual",
key_id="KMS-MONGODB",
kms_region="ap-guangzhou")
example_mongodb_standby_instance = tencentcloud.MongodbStandbyInstance("example",
instance_name="tf-example",
cpu=2,
memory=4,
volume=100,
available_zone="ap-guangzhou-7",
vpc_id="vpc-i5yyodl9",
subnet_id="subnet-d4umunpy",
project_id=0,
father_instance_id=example.mongodb_instance_id,
father_instance_region="ap-guangzhou",
data_encryption="TDE",
encryption_key_source="manual",
key_id="KMS-MONGODB",
kms_region="ap-guangzhou",
tags={
"createBy": "Terraform",
})
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 {
example, err := tencentcloud.NewMongodbInstance(ctx, "example", &tencentcloud.MongodbInstanceArgs{
InstanceName: pulumi.String("tf-example"),
Cpu: pulumi.Float64(2),
Memory: pulumi.Float64(4),
Volume: pulumi.Float64(100),
EngineVersion: pulumi.String("MONGO_80_WT"),
MachineType: pulumi.String("GE.LD.T1"),
AvailableZone: pulumi.String("ap-guangzhou-6"),
VpcId: pulumi.String("vpc-i5yyodl9"),
SubnetId: pulumi.String("subnet-hhi88a58"),
ProjectId: pulumi.Float64(0),
Password: pulumi.String("Password@2026"),
DataEncryption: pulumi.String("TDE"),
EncryptionKeySource: pulumi.String("manual"),
KeyId: pulumi.String("KMS-MONGODB"),
KmsRegion: pulumi.String("ap-guangzhou"),
})
if err != nil {
return err
}
_, err = tencentcloud.NewMongodbStandbyInstance(ctx, "example", &tencentcloud.MongodbStandbyInstanceArgs{
InstanceName: pulumi.String("tf-example"),
Cpu: pulumi.Float64(2),
Memory: pulumi.Float64(4),
Volume: pulumi.Float64(100),
AvailableZone: pulumi.String("ap-guangzhou-7"),
VpcId: pulumi.String("vpc-i5yyodl9"),
SubnetId: pulumi.String("subnet-d4umunpy"),
ProjectId: pulumi.Float64(0),
FatherInstanceId: example.MongodbInstanceId,
FatherInstanceRegion: pulumi.String("ap-guangzhou"),
DataEncryption: pulumi.String("TDE"),
EncryptionKeySource: pulumi.String("manual"),
KeyId: pulumi.String("KMS-MONGODB"),
KmsRegion: pulumi.String("ap-guangzhou"),
Tags: pulumi.StringMap{
"createBy": pulumi.String("Terraform"),
},
})
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 example = new Tencentcloud.MongodbInstance("example", new()
{
InstanceName = "tf-example",
Cpu = 2,
Memory = 4,
Volume = 100,
EngineVersion = "MONGO_80_WT",
MachineType = "GE.LD.T1",
AvailableZone = "ap-guangzhou-6",
VpcId = "vpc-i5yyodl9",
SubnetId = "subnet-hhi88a58",
ProjectId = 0,
Password = "Password@2026",
DataEncryption = "TDE",
EncryptionKeySource = "manual",
KeyId = "KMS-MONGODB",
KmsRegion = "ap-guangzhou",
});
var exampleMongodbStandbyInstance = new Tencentcloud.MongodbStandbyInstance("example", new()
{
InstanceName = "tf-example",
Cpu = 2,
Memory = 4,
Volume = 100,
AvailableZone = "ap-guangzhou-7",
VpcId = "vpc-i5yyodl9",
SubnetId = "subnet-d4umunpy",
ProjectId = 0,
FatherInstanceId = example.MongodbInstanceId,
FatherInstanceRegion = "ap-guangzhou",
DataEncryption = "TDE",
EncryptionKeySource = "manual",
KeyId = "KMS-MONGODB",
KmsRegion = "ap-guangzhou",
Tags =
{
{ "createBy", "Terraform" },
},
});
});
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 com.pulumi.tencentcloud.MongodbStandbyInstance;
import com.pulumi.tencentcloud.MongodbStandbyInstanceArgs;
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 example = new MongodbInstance("example", MongodbInstanceArgs.builder()
.instanceName("tf-example")
.cpu(2.0)
.memory(4.0)
.volume(100.0)
.engineVersion("MONGO_80_WT")
.machineType("GE.LD.T1")
.availableZone("ap-guangzhou-6")
.vpcId("vpc-i5yyodl9")
.subnetId("subnet-hhi88a58")
.projectId(0.0)
.password("Password@2026")
.dataEncryption("TDE")
.encryptionKeySource("manual")
.keyId("KMS-MONGODB")
.kmsRegion("ap-guangzhou")
.build());
var exampleMongodbStandbyInstance = new MongodbStandbyInstance("exampleMongodbStandbyInstance", MongodbStandbyInstanceArgs.builder()
.instanceName("tf-example")
.cpu(2.0)
.memory(4.0)
.volume(100.0)
.availableZone("ap-guangzhou-7")
.vpcId("vpc-i5yyodl9")
.subnetId("subnet-d4umunpy")
.projectId(0.0)
.fatherInstanceId(example.mongodbInstanceId())
.fatherInstanceRegion("ap-guangzhou")
.dataEncryption("TDE")
.encryptionKeySource("manual")
.keyId("KMS-MONGODB")
.kmsRegion("ap-guangzhou")
.tags(Map.of("createBy", "Terraform"))
.build());
}
}
resources:
example:
type: tencentcloud:MongodbInstance
properties:
instanceName: tf-example
cpu: 2
memory: 4
volume: 100
engineVersion: MONGO_80_WT
machineType: GE.LD.T1
availableZone: ap-guangzhou-6
vpcId: vpc-i5yyodl9
subnetId: subnet-hhi88a58
projectId: 0
password: Password@2026
dataEncryption: TDE
encryptionKeySource: manual
keyId: KMS-MONGODB
kmsRegion: ap-guangzhou
exampleMongodbStandbyInstance:
type: tencentcloud:MongodbStandbyInstance
name: example
properties:
instanceName: tf-example
cpu: 2
memory: 4
volume: 100
availableZone: ap-guangzhou-7
vpcId: vpc-i5yyodl9
subnetId: subnet-d4umunpy
projectId: 0
fatherInstanceId: ${example.mongodbInstanceId}
fatherInstanceRegion: ap-guangzhou
dataEncryption: TDE
encryptionKeySource: manual
keyId: KMS-MONGODB
kmsRegion: ap-guangzhou
tags:
createBy: Terraform
Example coming soon!
Create MongodbStandbyInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MongodbStandbyInstance(name: string, args: MongodbStandbyInstanceArgs, opts?: CustomResourceOptions);@overload
def MongodbStandbyInstance(resource_name: str,
args: MongodbStandbyInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MongodbStandbyInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
father_instance_id: Optional[str] = None,
available_zone: Optional[str] = None,
volume: Optional[float] = None,
memory: Optional[float] = None,
instance_name: Optional[str] = None,
father_instance_region: Optional[str] = None,
key_id: Optional[str] = None,
mongodb_standby_instance_id: Optional[str] = None,
in_maintenance: Optional[float] = None,
data_encryption: Optional[str] = None,
auto_renew_flag: Optional[float] = None,
kms_region: Optional[str] = None,
cpu: Optional[float] = None,
encryption_key_source: Optional[str] = None,
prepaid_period: Optional[float] = None,
project_id: Optional[float] = None,
security_groups: Optional[Sequence[str]] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
charge_type: Optional[str] = None,
vpc_id: Optional[str] = None)func NewMongodbStandbyInstance(ctx *Context, name string, args MongodbStandbyInstanceArgs, opts ...ResourceOption) (*MongodbStandbyInstance, error)public MongodbStandbyInstance(string name, MongodbStandbyInstanceArgs args, CustomResourceOptions? opts = null)
public MongodbStandbyInstance(String name, MongodbStandbyInstanceArgs args)
public MongodbStandbyInstance(String name, MongodbStandbyInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:MongodbStandbyInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_mongodb_standby_instance" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args MongodbStandbyInstanceArgs
- 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 MongodbStandbyInstanceArgs
- 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 MongodbStandbyInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MongodbStandbyInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MongodbStandbyInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MongodbStandbyInstance 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 MongodbStandbyInstance resource accepts the following input properties:
- Available
Zone string - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- Father
Instance stringId - Indicates the main instance ID of standby instances.
- Father
Instance stringRegion - Indicates the region of main instance.
- Instance
Name string - Name of the Mongodb instance.
- 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 supports0and1for creation. - Charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - Cpu double
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- Data
Encryption string - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - Encryption
Key stringSource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - 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.
- Key
Id string - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - Kms
Region string - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - Mongodb
Standby stringInstance Id - ID of the resource.
- 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.
- Subnet
Id string - ID of the subnet within this VPC. The value is required if
vpc_idis set. - Dictionary<string, string>
- The tags of the Mongodb. Key name
projectis system reserved and can't be used. - Vpc
Id string - ID of the VPC.
- Available
Zone string - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- Father
Instance stringId - Indicates the main instance ID of standby instances.
- Father
Instance stringRegion - Indicates the region of main instance.
- Instance
Name string - Name of the Mongodb instance.
- 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 supports0and1for creation. - Charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - Cpu float64
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- Data
Encryption string - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - Encryption
Key stringSource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - 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.
- Key
Id string - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - Kms
Region string - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - Mongodb
Standby stringInstance Id - ID of the resource.
- 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.
- Subnet
Id string - ID of the subnet within this VPC. The value is required if
vpc_idis set. - map[string]string
- The tags of the Mongodb. Key name
projectis system reserved and can't be used. - Vpc
Id string - ID of the VPC.
- available_
zone string - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- father_
instance_ stringid - Indicates the main instance ID of standby instances.
- father_
instance_ stringregion - Indicates the region of main instance.
- instance_
name string - Name of the Mongodb instance.
- 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 supports0and1for creation. - charge_
type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - cpu number
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- data_
encryption string - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - encryption_
key_ stringsource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - 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.
- key_
id string - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - kms_
region string - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - mongodb_
standby_ stringinstance_ id - ID of the resource.
- 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.
- subnet_
id string - ID of the subnet within this VPC. The value is required if
vpc_idis set. - map(string)
- The tags of the Mongodb. Key name
projectis system reserved and can't be used. - vpc_
id string - ID of the VPC.
- available
Zone String - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- father
Instance StringId - Indicates the main instance ID of standby instances.
- father
Instance StringRegion - Indicates the region of main instance.
- instance
Name String - Name of the Mongodb instance.
- 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 supports0and1for creation. - charge
Type String - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - cpu Double
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- data
Encryption String - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - encryption
Key StringSource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - 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.
- key
Id String - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - kms
Region String - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - mongodb
Standby StringInstance Id - ID of the resource.
- 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.
- subnet
Id String - ID of the subnet within this VPC. The value is required if
vpc_idis set. - Map<String,String>
- The tags of the Mongodb. Key name
projectis system reserved and can't be used. - vpc
Id String - ID of the VPC.
- available
Zone string - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- father
Instance stringId - Indicates the main instance ID of standby instances.
- father
Instance stringRegion - Indicates the region of main instance.
- instance
Name string - Name of the Mongodb instance.
- 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 supports0and1for creation. - charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - cpu number
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- data
Encryption string - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - encryption
Key stringSource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - 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.
- key
Id string - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - kms
Region string - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - mongodb
Standby stringInstance Id - ID of the resource.
- 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.
- subnet
Id string - ID of the subnet within this VPC. The value is required if
vpc_idis set. - {[key: string]: string}
- The tags of the Mongodb. Key name
projectis system reserved and can't be used. - vpc
Id string - ID of the VPC.
- available_
zone str - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- father_
instance_ strid - Indicates the main instance ID of standby instances.
- father_
instance_ strregion - Indicates the region of main instance.
- instance_
name str - Name of the Mongodb instance.
- 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 supports0and1for creation. - charge_
type str - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - cpu float
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- data_
encryption str - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - encryption_
key_ strsource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - 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.
- key_
id str - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - kms_
region str - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - mongodb_
standby_ strinstance_ id - ID of the resource.
- 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.
- subnet_
id str - ID of the subnet within this VPC. The value is required if
vpc_idis set. - Mapping[str, str]
- The tags of the Mongodb. Key name
projectis system reserved and can't be used. - vpc_
id str - ID of the VPC.
- available
Zone String - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- father
Instance StringId - Indicates the main instance ID of standby instances.
- father
Instance StringRegion - Indicates the region of main instance.
- instance
Name String - Name of the Mongodb instance.
- 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 supports0and1for creation. - charge
Type String - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - cpu Number
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- data
Encryption String - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - encryption
Key StringSource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - 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.
- key
Id String - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - kms
Region String - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - mongodb
Standby StringInstance Id - ID of the resource.
- 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.
- subnet
Id String - ID of the subnet within this VPC. The value is required if
vpc_idis set. - Map<String>
- The tags of the Mongodb. Key name
projectis 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 MongodbStandbyInstance resource produces the following output properties:
- Create
Time string - Creation time of the Mongodb instance.
- Engine
Version string - Version of the standby Mongodb instance and must be same as the version of main instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Machine
Type string - Type of standby Mongodb instance and must be same as the type of main instance.
- 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.
- Engine
Version string - Version of the standby Mongodb instance and must be same as the version of main instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Machine
Type string - Type of standby Mongodb instance and must be same as the type of main instance.
- 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.
- engine_
version string - Version of the standby Mongodb instance and must be same as the version of main instance.
- id string
- The provider-assigned unique ID for this managed resource.
- machine_
type string - Type of standby Mongodb instance and must be same as the type of main instance.
- 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 String - Creation time of the Mongodb instance.
- engine
Version String - Version of the standby Mongodb instance and must be same as the version of main instance.
- id String
- The provider-assigned unique ID for this managed resource.
- machine
Type String - Type of standby Mongodb instance and must be same as the type of main instance.
- 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.
- engine
Version string - Version of the standby Mongodb instance and must be same as the version of main instance.
- id string
- The provider-assigned unique ID for this managed resource.
- machine
Type string - Type of standby Mongodb instance and must be same as the type of main instance.
- 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.
- engine_
version str - Version of the standby Mongodb instance and must be same as the version of main instance.
- id str
- The provider-assigned unique ID for this managed resource.
- machine_
type str - Type of standby Mongodb instance and must be same as the type of main instance.
- 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.
- engine
Version String - Version of the standby Mongodb instance and must be same as the version of main instance.
- id String
- The provider-assigned unique ID for this managed resource.
- machine
Type String - Type of standby Mongodb instance and must be same as the type of main instance.
- 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 MongodbStandbyInstance Resource
Get an existing MongodbStandbyInstance 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?: MongodbStandbyInstanceState, opts?: CustomResourceOptions): MongodbStandbyInstance@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,
cpu: Optional[float] = None,
create_time: Optional[str] = None,
data_encryption: Optional[str] = None,
encryption_key_source: 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,
key_id: Optional[str] = None,
kms_region: Optional[str] = None,
machine_type: Optional[str] = None,
memory: Optional[float] = None,
mongodb_standby_instance_id: Optional[str] = None,
prepaid_period: Optional[float] = None,
project_id: Optional[float] = None,
security_groups: Optional[Sequence[str]] = 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) -> MongodbStandbyInstancefunc GetMongodbStandbyInstance(ctx *Context, name string, id IDInput, state *MongodbStandbyInstanceState, opts ...ResourceOption) (*MongodbStandbyInstance, error)public static MongodbStandbyInstance Get(string name, Input<string> id, MongodbStandbyInstanceState? state, CustomResourceOptions? opts = null)public static MongodbStandbyInstance get(String name, Output<String> id, MongodbStandbyInstanceState state, CustomResourceOptions options)resources: _: type: tencentcloud:MongodbStandbyInstance get: id: ${id}import {
to = tencentcloud_mongodb_standby_instance.example
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 supports0and1for creation. - Available
Zone string - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- Charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - Cpu double
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- Create
Time string - Creation time of the Mongodb instance.
- Data
Encryption string - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - Encryption
Key stringSource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - Engine
Version string - Version of the standby Mongodb instance and must be same as the version of main instance.
- Father
Instance stringId - Indicates the main instance ID of standby 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.
- Key
Id string - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - Kms
Region string - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - Machine
Type string - Type of standby Mongodb instance and must be same as the type of main instance.
- Memory double
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- Mongodb
Standby stringInstance Id - ID of the resource.
- 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.
- 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_idis set. - Dictionary<string, string>
- The tags of the Mongodb. Key name
projectis 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 supports0and1for creation. - Available
Zone string - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- Charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - Cpu float64
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- Create
Time string - Creation time of the Mongodb instance.
- Data
Encryption string - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - Encryption
Key stringSource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - Engine
Version string - Version of the standby Mongodb instance and must be same as the version of main instance.
- Father
Instance stringId - Indicates the main instance ID of standby 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.
- Key
Id string - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - Kms
Region string - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - Machine
Type string - Type of standby Mongodb instance and must be same as the type of main instance.
- Memory float64
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- Mongodb
Standby stringInstance Id - ID of the resource.
- 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.
- 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_idis set. - map[string]string
- The tags of the Mongodb. Key name
projectis 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_ 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 supports0and1for creation. - available_
zone string - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- charge_
type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - cpu number
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- create_
time string - Creation time of the Mongodb instance.
- data_
encryption string - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - encryption_
key_ stringsource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - engine_
version string - Version of the standby Mongodb instance and must be same as the version of main instance.
- father_
instance_ stringid - Indicates the main instance ID of standby 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.
- key_
id string - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - kms_
region string - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - machine_
type string - Type of standby Mongodb instance and must be same as the type of main instance.
- memory number
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- mongodb_
standby_ stringinstance_ id - ID of the resource.
- 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.
- 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_idis set. - map(string)
- The tags of the Mongodb. Key name
projectis 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 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 supports0and1for creation. - available
Zone String - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- charge
Type String - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - cpu Double
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- create
Time String - Creation time of the Mongodb instance.
- data
Encryption String - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - encryption
Key StringSource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - engine
Version String - Version of the standby Mongodb instance and must be same as the version of main instance.
- father
Instance StringId - Indicates the main instance ID of standby 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.
- key
Id String - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - kms
Region String - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - machine
Type String - Type of standby Mongodb instance and must be same as the type of main instance.
- memory Double
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- mongodb
Standby StringInstance Id - ID of the resource.
- 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.
- 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_idis set. - Map<String,String>
- The tags of the Mongodb. Key name
projectis 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 supports0and1for creation. - available
Zone string - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - cpu number
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- create
Time string - Creation time of the Mongodb instance.
- data
Encryption string - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - encryption
Key stringSource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - engine
Version string - Version of the standby Mongodb instance and must be same as the version of main instance.
- father
Instance stringId - Indicates the main instance ID of standby 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.
- key
Id string - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - kms
Region string - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - machine
Type string - Type of standby Mongodb instance and must be same as the type of main instance.
- memory number
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- mongodb
Standby stringInstance Id - ID of the resource.
- 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.
- 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_idis set. - {[key: string]: string}
- The tags of the Mongodb. Key name
projectis 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 supports0and1for creation. - available_
zone str - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- charge_
type str - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - cpu float
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- create_
time str - Creation time of the Mongodb instance.
- data_
encryption str - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - encryption_
key_ strsource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - engine_
version str - Version of the standby Mongodb instance and must be same as the version of main instance.
- father_
instance_ strid - Indicates the main instance ID of standby 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.
- key_
id str - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - kms_
region str - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - machine_
type str - Type of standby Mongodb instance and must be same as the type of main instance.
- memory float
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- mongodb_
standby_ strinstance_ id - ID of the resource.
- 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.
- 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_idis set. - Mapping[str, str]
- The tags of the Mongodb. Key name
projectis 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 supports0and1for creation. - available
Zone String - The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
- charge
Type String - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_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. - cpu Number
- The CPU core count of the MongoDB instance after the configuration change. Unit: C. When this parameter is empty, the current CPU size of the instance is used by default. The supported CPU specifications can be obtained through the DescribeSpecInfo API.
- create
Time String - Creation time of the Mongodb instance.
- data
Encryption String - Database storage encryption setting.
No_Encryption: Storage encryption is not used.TDE: Enables TDE storage encryption. Note: this field does not support update, please recreate the resource if you need to change it. - encryption
Key StringSource - If TDE storage encryption is selected, the key source must be specified.
auto: Automatically generate the key.manual: Manually specify the key. Note: this field does not support update, please recreate the resource if you need to change it. - engine
Version String - Version of the standby Mongodb instance and must be same as the version of main instance.
- father
Instance StringId - Indicates the main instance ID of standby 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.
- key
Id String - Key ID. If
manualis selected as the key resource, you must enter the specified key ID. Note: this field does not support update, please recreate the resource if you need to change it. - kms
Region String - Key ID. If
manualis selected as the key resource, you must enter the specified key region. Note: this field does not support update, please recreate the resource if you need to change it. - machine
Type String - Type of standby Mongodb instance and must be same as the type of main instance.
- memory Number
- Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
- mongodb
Standby StringInstance Id - ID of the resource.
- 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.
- 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_idis set. - Map<String>
- The tags of the Mongodb. Key name
projectis 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 standby instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/mongodbStandbyInstance:MongodbStandbyInstance 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
tencentcloudTerraform Provider.
published on Friday, Sep 11, 2026 by tencentcloudstack