文档数据库 MongoDB 版支持多种架构,能够满足业务灵活部署的需求。除副本集实例架构外,文档数据库 MongoDB 版还提供了分片集群架构,以满足海量数据业务场景,同时提供了灾备、备份及恢复、监控等全套解决方案;在互联网(游戏、电商、直播、资讯、社交)、新零售、在线教育、金融、物联网、政企等行业都有广泛的应用。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const mongoDBInstanceDemo = new volcenginecc.mongodb.Instance("MongoDBInstanceDemo", {
zoneId: "cn-beijing-a,cn-beijing-c,cn-beijing-d",
vpcId: "vpc-1a1vgeo9xxxcg8nvepjyxxxxx",
subnetId: "subnet-ij9s4hxxxs3k74o8cuxxxxx",
dbEngine: "MongoDB",
dbEngineVersion: "MongoDB_7_0",
instanceType: "ShardedCluster",
nodeSpec: "mongo.shard.2c4g",
nodeNumber: 3,
mongosNodeSpec: "mongo.mongos.2c4g",
mongosNodeNumber: 3,
shardNumber: 2,
storageSpaceGb: 100,
configServerNodeSpec: "mongo.config.2c4g",
configServerStorageSpaceGb: 20,
superAccountName: "****",
superAccountPassword: "*******",
instanceName: "MongoDBInstanceDemo",
instanceCount: 1,
chargeType: "PostPaid",
projectName: "default",
tags: [{
key: "env",
value: "test",
}],
allowListIds: [
"acl-c972e7b4ce4941a1a8d5xxxe57xxxxx",
"acl-70dbb8ee8893467dbafxxxc964xxxxx",
],
});
import pulumi
import pulumi_volcenginecc as volcenginecc
mongo_db_instance_demo = volcenginecc.mongodb.Instance("MongoDBInstanceDemo",
zone_id="cn-beijing-a,cn-beijing-c,cn-beijing-d",
vpc_id="vpc-1a1vgeo9xxxcg8nvepjyxxxxx",
subnet_id="subnet-ij9s4hxxxs3k74o8cuxxxxx",
db_engine="MongoDB",
db_engine_version="MongoDB_7_0",
instance_type="ShardedCluster",
node_spec="mongo.shard.2c4g",
node_number=3,
mongos_node_spec="mongo.mongos.2c4g",
mongos_node_number=3,
shard_number=2,
storage_space_gb=100,
config_server_node_spec="mongo.config.2c4g",
config_server_storage_space_gb=20,
super_account_name="****",
super_account_password="*******",
instance_name="MongoDBInstanceDemo",
instance_count=1,
charge_type="PostPaid",
project_name="default",
tags=[{
"key": "env",
"value": "test",
}],
allow_list_ids=[
"acl-c972e7b4ce4941a1a8d5xxxe57xxxxx",
"acl-70dbb8ee8893467dbafxxxc964xxxxx",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/mongodb"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mongodb.NewInstance(ctx, "MongoDBInstanceDemo", &mongodb.InstanceArgs{
ZoneId: pulumi.String("cn-beijing-a,cn-beijing-c,cn-beijing-d"),
VpcId: pulumi.String("vpc-1a1vgeo9xxxcg8nvepjyxxxxx"),
SubnetId: pulumi.String("subnet-ij9s4hxxxs3k74o8cuxxxxx"),
DbEngine: pulumi.String("MongoDB"),
DbEngineVersion: pulumi.String("MongoDB_7_0"),
InstanceType: pulumi.String("ShardedCluster"),
NodeSpec: pulumi.String("mongo.shard.2c4g"),
NodeNumber: pulumi.Int(3),
MongosNodeSpec: pulumi.String("mongo.mongos.2c4g"),
MongosNodeNumber: pulumi.Int(3),
ShardNumber: pulumi.Int(2),
StorageSpaceGb: pulumi.Int(100),
ConfigServerNodeSpec: pulumi.String("mongo.config.2c4g"),
ConfigServerStorageSpaceGb: pulumi.Int(20),
SuperAccountName: pulumi.String("****"),
SuperAccountPassword: pulumi.String("*******"),
InstanceName: pulumi.String("MongoDBInstanceDemo"),
InstanceCount: pulumi.Int(1),
ChargeType: pulumi.String("PostPaid"),
ProjectName: pulumi.String("default"),
Tags: mongodb.InstanceTagArray{
&mongodb.InstanceTagArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
AllowListIds: pulumi.StringArray{
pulumi.String("acl-c972e7b4ce4941a1a8d5xxxe57xxxxx"),
pulumi.String("acl-70dbb8ee8893467dbafxxxc964xxxxx"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var mongoDBInstanceDemo = new Volcenginecc.Mongodb.Instance("MongoDBInstanceDemo", new()
{
ZoneId = "cn-beijing-a,cn-beijing-c,cn-beijing-d",
VpcId = "vpc-1a1vgeo9xxxcg8nvepjyxxxxx",
SubnetId = "subnet-ij9s4hxxxs3k74o8cuxxxxx",
DbEngine = "MongoDB",
DbEngineVersion = "MongoDB_7_0",
InstanceType = "ShardedCluster",
NodeSpec = "mongo.shard.2c4g",
NodeNumber = 3,
MongosNodeSpec = "mongo.mongos.2c4g",
MongosNodeNumber = 3,
ShardNumber = 2,
StorageSpaceGb = 100,
ConfigServerNodeSpec = "mongo.config.2c4g",
ConfigServerStorageSpaceGb = 20,
SuperAccountName = "****",
SuperAccountPassword = "*******",
InstanceName = "MongoDBInstanceDemo",
InstanceCount = 1,
ChargeType = "PostPaid",
ProjectName = "default",
Tags = new[]
{
new Volcenginecc.Mongodb.Inputs.InstanceTagArgs
{
Key = "env",
Value = "test",
},
},
AllowListIds = new[]
{
"acl-c972e7b4ce4941a1a8d5xxxe57xxxxx",
"acl-70dbb8ee8893467dbafxxxc964xxxxx",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.mongodb.Instance;
import com.volcengine.volcenginecc.mongodb.InstanceArgs;
import com.pulumi.volcenginecc.mongodb.inputs.InstanceTagArgs;
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 mongoDBInstanceDemo = new Instance("mongoDBInstanceDemo", InstanceArgs.builder()
.zoneId("cn-beijing-a,cn-beijing-c,cn-beijing-d")
.vpcId("vpc-1a1vgeo9xxxcg8nvepjyxxxxx")
.subnetId("subnet-ij9s4hxxxs3k74o8cuxxxxx")
.dbEngine("MongoDB")
.dbEngineVersion("MongoDB_7_0")
.instanceType("ShardedCluster")
.nodeSpec("mongo.shard.2c4g")
.nodeNumber(3)
.mongosNodeSpec("mongo.mongos.2c4g")
.mongosNodeNumber(3)
.shardNumber(2)
.storageSpaceGb(100)
.configServerNodeSpec("mongo.config.2c4g")
.configServerStorageSpaceGb(20)
.superAccountName("****")
.superAccountPassword("*******")
.instanceName("MongoDBInstanceDemo")
.instanceCount(1)
.chargeType("PostPaid")
.projectName("default")
.tags(InstanceTagArgs.builder()
.key("env")
.value("test")
.build())
.allowListIds(
"acl-c972e7b4ce4941a1a8d5xxxe57xxxxx",
"acl-70dbb8ee8893467dbafxxxc964xxxxx")
.build());
}
}
resources:
mongoDBInstanceDemo:
type: volcenginecc:mongodb:Instance
name: MongoDBInstanceDemo
properties:
zoneId: cn-beijing-a,cn-beijing-c,cn-beijing-d
vpcId: vpc-1a1vgeo9xxxcg8nvepjyxxxxx
subnetId: subnet-ij9s4hxxxs3k74o8cuxxxxx
dbEngine: MongoDB
dbEngineVersion: MongoDB_7_0
instanceType: ShardedCluster
nodeSpec: mongo.shard.2c4g
nodeNumber: 3
mongosNodeSpec: mongo.mongos.2c4g
mongosNodeNumber: 3
shardNumber: 2
storageSpaceGb: 100
configServerNodeSpec: mongo.config.2c4g
configServerStorageSpaceGb: 20
superAccountName: '****'
superAccountPassword: '*******'
instanceName: MongoDBInstanceDemo
instanceCount: 1
chargeType: PostPaid
projectName: default
tags:
- key: env
value: test
allowListIds:
- acl-c972e7b4ce4941a1a8d5xxxe57xxxxx
- acl-70dbb8ee8893467dbafxxxc964xxxxx
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
node_spec: Optional[str] = None,
zone_id: Optional[str] = None,
vpc_id: Optional[str] = None,
subnet_id: Optional[str] = None,
storage_space_gb: Optional[int] = None,
node_availability_zones: Optional[Sequence[InstanceNodeAvailabilityZoneArgs]] = None,
period_unit: Optional[str] = None,
instance_count: Optional[int] = None,
instance_name: Optional[str] = None,
instance_type: Optional[str] = None,
mongos_node_number: Optional[int] = None,
mongos_node_spec: Optional[str] = None,
allow_list_ids: Optional[Sequence[str]] = None,
node_number: Optional[int] = None,
db_engine: Optional[str] = None,
period: Optional[int] = None,
db_engine_version: Optional[str] = None,
project_name: Optional[str] = None,
shard_number: Optional[int] = None,
config_server_storage_space_gb: Optional[int] = None,
config_server_node_spec: Optional[str] = None,
super_account_name: Optional[str] = None,
super_account_password: Optional[str] = None,
tags: Optional[Sequence[InstanceTagArgs]] = None,
charge_type: Optional[str] = None,
auto_renew: Optional[bool] = None)func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: volcenginecc:mongodb:Instance
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 InstanceArgs
- 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 InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleinstanceResourceResourceFromMongodbinstance = new Volcenginecc.Mongodb.Instance("exampleinstanceResourceResourceFromMongodbinstance", new()
{
NodeSpec = "string",
ZoneId = "string",
VpcId = "string",
SubnetId = "string",
StorageSpaceGb = 0,
NodeAvailabilityZones = new[]
{
new Volcenginecc.Mongodb.Inputs.InstanceNodeAvailabilityZoneArgs
{
NodeNumber = 0,
ZoneId = "string",
},
},
PeriodUnit = "string",
InstanceCount = 0,
InstanceName = "string",
InstanceType = "string",
MongosNodeNumber = 0,
MongosNodeSpec = "string",
AllowListIds = new[]
{
"string",
},
NodeNumber = 0,
DbEngine = "string",
Period = 0,
DbEngineVersion = "string",
ProjectName = "string",
ShardNumber = 0,
ConfigServerStorageSpaceGb = 0,
ConfigServerNodeSpec = "string",
SuperAccountName = "string",
SuperAccountPassword = "string",
Tags = new[]
{
new Volcenginecc.Mongodb.Inputs.InstanceTagArgs
{
Key = "string",
Value = "string",
},
},
ChargeType = "string",
AutoRenew = false,
});
example, err := mongodb.NewInstance(ctx, "exampleinstanceResourceResourceFromMongodbinstance", &mongodb.InstanceArgs{
NodeSpec: pulumi.String("string"),
ZoneId: pulumi.String("string"),
VpcId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
StorageSpaceGb: pulumi.Int(0),
NodeAvailabilityZones: mongodb.InstanceNodeAvailabilityZoneArray{
&mongodb.InstanceNodeAvailabilityZoneArgs{
NodeNumber: pulumi.Int(0),
ZoneId: pulumi.String("string"),
},
},
PeriodUnit: pulumi.String("string"),
InstanceCount: pulumi.Int(0),
InstanceName: pulumi.String("string"),
InstanceType: pulumi.String("string"),
MongosNodeNumber: pulumi.Int(0),
MongosNodeSpec: pulumi.String("string"),
AllowListIds: pulumi.StringArray{
pulumi.String("string"),
},
NodeNumber: pulumi.Int(0),
DbEngine: pulumi.String("string"),
Period: pulumi.Int(0),
DbEngineVersion: pulumi.String("string"),
ProjectName: pulumi.String("string"),
ShardNumber: pulumi.Int(0),
ConfigServerStorageSpaceGb: pulumi.Int(0),
ConfigServerNodeSpec: pulumi.String("string"),
SuperAccountName: pulumi.String("string"),
SuperAccountPassword: pulumi.String("string"),
Tags: mongodb.InstanceTagArray{
&mongodb.InstanceTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
ChargeType: pulumi.String("string"),
AutoRenew: pulumi.Bool(false),
})
var exampleinstanceResourceResourceFromMongodbinstance = new com.volcengine.volcenginecc.mongodb.Instance("exampleinstanceResourceResourceFromMongodbinstance", com.volcengine.volcenginecc.mongodb.InstanceArgs.builder()
.nodeSpec("string")
.zoneId("string")
.vpcId("string")
.subnetId("string")
.storageSpaceGb(0)
.nodeAvailabilityZones(InstanceNodeAvailabilityZoneArgs.builder()
.nodeNumber(0)
.zoneId("string")
.build())
.periodUnit("string")
.instanceCount(0)
.instanceName("string")
.instanceType("string")
.mongosNodeNumber(0)
.mongosNodeSpec("string")
.allowListIds("string")
.nodeNumber(0)
.dbEngine("string")
.period(0)
.dbEngineVersion("string")
.projectName("string")
.shardNumber(0)
.configServerStorageSpaceGb(0)
.configServerNodeSpec("string")
.superAccountName("string")
.superAccountPassword("string")
.tags(InstanceTagArgs.builder()
.key("string")
.value("string")
.build())
.chargeType("string")
.autoRenew(false)
.build());
exampleinstance_resource_resource_from_mongodbinstance = volcenginecc.mongodb.Instance("exampleinstanceResourceResourceFromMongodbinstance",
node_spec="string",
zone_id="string",
vpc_id="string",
subnet_id="string",
storage_space_gb=0,
node_availability_zones=[{
"node_number": 0,
"zone_id": "string",
}],
period_unit="string",
instance_count=0,
instance_name="string",
instance_type="string",
mongos_node_number=0,
mongos_node_spec="string",
allow_list_ids=["string"],
node_number=0,
db_engine="string",
period=0,
db_engine_version="string",
project_name="string",
shard_number=0,
config_server_storage_space_gb=0,
config_server_node_spec="string",
super_account_name="string",
super_account_password="string",
tags=[{
"key": "string",
"value": "string",
}],
charge_type="string",
auto_renew=False)
const exampleinstanceResourceResourceFromMongodbinstance = new volcenginecc.mongodb.Instance("exampleinstanceResourceResourceFromMongodbinstance", {
nodeSpec: "string",
zoneId: "string",
vpcId: "string",
subnetId: "string",
storageSpaceGb: 0,
nodeAvailabilityZones: [{
nodeNumber: 0,
zoneId: "string",
}],
periodUnit: "string",
instanceCount: 0,
instanceName: "string",
instanceType: "string",
mongosNodeNumber: 0,
mongosNodeSpec: "string",
allowListIds: ["string"],
nodeNumber: 0,
dbEngine: "string",
period: 0,
dbEngineVersion: "string",
projectName: "string",
shardNumber: 0,
configServerStorageSpaceGb: 0,
configServerNodeSpec: "string",
superAccountName: "string",
superAccountPassword: "string",
tags: [{
key: "string",
value: "string",
}],
chargeType: "string",
autoRenew: false,
});
type: volcenginecc:mongodb:Instance
properties:
allowListIds:
- string
autoRenew: false
chargeType: string
configServerNodeSpec: string
configServerStorageSpaceGb: 0
dbEngine: string
dbEngineVersion: string
instanceCount: 0
instanceName: string
instanceType: string
mongosNodeNumber: 0
mongosNodeSpec: string
nodeAvailabilityZones:
- nodeNumber: 0
zoneId: string
nodeNumber: 0
nodeSpec: string
period: 0
periodUnit: string
projectName: string
shardNumber: 0
storageSpaceGb: 0
subnetId: string
superAccountName: string
superAccountPassword: string
tags:
- key: string
value: string
vpcId: string
zoneId: string
Instance 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 Instance resource accepts the following input properties:
- Node
Spec string - 实例的规格码。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点规格。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示 Shard 节点的规格。
- Storage
Space intGb - 副本集实例的总存储空间,或分片集群中单个 Shard 分片的存储空间,单位:GiB,步长为 10。
- Subnet
Id string - 子网 ID。
- Vpc
Id string - 私有网络 ID。
- Zone
Id string - 实例所在可用区的 ID。
- Allow
List List<string>Ids - 白名单 ID 列表。新建实例会被绑定到指定白名单。
- Auto
Renew bool - 是否开启自动续费,取值范围如下:false(默认):不开启自动续费。true:开启自动续费。
- Charge
Type string - 实例计费类型,取值范围如下:PostPaid(默认):按量计费(也称后付费)。Prepaid:包年包月(也称预付费)。
- Config
Server stringNode Spec - 分片集群中 ConfigServer 节点的规格码。默认值为 mongo.config.1c2g。
- Config
Server intStorage Space Gb - 分片集群中 ConfigServer 的存储空间,单位:GiB。步长为 10,默认值:20。
- Db
Engine string - 数据库引擎。取值固定为 MongoDB
- Db
Engine stringVersion - 数据库引擎版本,取值范围如下:MongoDB40(默认):MongoDB 4.0 版本。MongoDB42:MongoDB 4.2 版本。MongoDB44:MongoDB 4.4 版本。MongoDB50:MongoDB 5.0 版本。MongoDB60:MongoDB 6.0 版本。MongoDB70:MongoDB 7.0 版本。
- Instance
Count int - 需要创建的实例数量。取值为大于等于 1 的正整数,默认值为1。
- Instance
Name string - 实例名称。名称需同时满足如下要求:不能以数字、中划线(-)开头。只能包含中文、字母、数字、下划线(_)和中划线(-)。长度需为 2~64 个字符。
- Instance
Type string - MongoDB 的实例类型,取值范围如下:ReplicaSet(默认):副本集。ShardedCluster:分片集群 。
- Mongos
Node intNumber - 分片集群中 Mongos 节点的数量。取值范围:2~32。
- Mongos
Node stringSpec - 分片集群中 Mongos 节点的规格码。
- Node
Availability List<Volcengine.Zones Instance Node Availability Zone> - Node
Number int - 节点数量,其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点数量。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示每个 Shard 分片中的节点数量。
- Period int
- 包年包月实例的购买时长,其中:当 PeriodUnit 为 Year 时,Period 取值为 1~3。当 PeriodUnit 为 Month 时,Period 取值为 1~9。
- Period
Unit string - 指定包年包月实例为包年或者包月类型。取值如下:Year:包年。Month:包月。
- Project
Name string - 选择实例所属的项目。若该参数留空,新建实例会默认加入 default 项目。
- int
- 分片集群中 Shard 分片的数量。取值范围:2~32。
- Super
Account stringName - 数据库账号名称。当前仅支持在创建实例时设置超级管理员账号,账号名称固定为 root。
- Super
Account stringPassword - root 账号的密码。密码需同时满足如下条件:只能为大小写字母、数字及以下特殊字符 _#!@$%^&*()+=-。长度为 8~32 个字符。至少包含大写字母、小写字母、数字或特殊字符中的任意三种。不允许使用极易被破解的弱密码(如 Admin@123)。
-
List<Volcengine.
Instance Tag>
- Node
Spec string - 实例的规格码。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点规格。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示 Shard 节点的规格。
- Storage
Space intGb - 副本集实例的总存储空间,或分片集群中单个 Shard 分片的存储空间,单位:GiB,步长为 10。
- Subnet
Id string - 子网 ID。
- Vpc
Id string - 私有网络 ID。
- Zone
Id string - 实例所在可用区的 ID。
- Allow
List []stringIds - 白名单 ID 列表。新建实例会被绑定到指定白名单。
- Auto
Renew bool - 是否开启自动续费,取值范围如下:false(默认):不开启自动续费。true:开启自动续费。
- Charge
Type string - 实例计费类型,取值范围如下:PostPaid(默认):按量计费(也称后付费)。Prepaid:包年包月(也称预付费)。
- Config
Server stringNode Spec - 分片集群中 ConfigServer 节点的规格码。默认值为 mongo.config.1c2g。
- Config
Server intStorage Space Gb - 分片集群中 ConfigServer 的存储空间,单位:GiB。步长为 10,默认值:20。
- Db
Engine string - 数据库引擎。取值固定为 MongoDB
- Db
Engine stringVersion - 数据库引擎版本,取值范围如下:MongoDB40(默认):MongoDB 4.0 版本。MongoDB42:MongoDB 4.2 版本。MongoDB44:MongoDB 4.4 版本。MongoDB50:MongoDB 5.0 版本。MongoDB60:MongoDB 6.0 版本。MongoDB70:MongoDB 7.0 版本。
- Instance
Count int - 需要创建的实例数量。取值为大于等于 1 的正整数,默认值为1。
- Instance
Name string - 实例名称。名称需同时满足如下要求:不能以数字、中划线(-)开头。只能包含中文、字母、数字、下划线(_)和中划线(-)。长度需为 2~64 个字符。
- Instance
Type string - MongoDB 的实例类型,取值范围如下:ReplicaSet(默认):副本集。ShardedCluster:分片集群 。
- Mongos
Node intNumber - 分片集群中 Mongos 节点的数量。取值范围:2~32。
- Mongos
Node stringSpec - 分片集群中 Mongos 节点的规格码。
- Node
Availability []InstanceZones Node Availability Zone Args - Node
Number int - 节点数量,其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点数量。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示每个 Shard 分片中的节点数量。
- Period int
- 包年包月实例的购买时长,其中:当 PeriodUnit 为 Year 时,Period 取值为 1~3。当 PeriodUnit 为 Month 时,Period 取值为 1~9。
- Period
Unit string - 指定包年包月实例为包年或者包月类型。取值如下:Year:包年。Month:包月。
- Project
Name string - 选择实例所属的项目。若该参数留空,新建实例会默认加入 default 项目。
- int
- 分片集群中 Shard 分片的数量。取值范围:2~32。
- Super
Account stringName - 数据库账号名称。当前仅支持在创建实例时设置超级管理员账号,账号名称固定为 root。
- Super
Account stringPassword - root 账号的密码。密码需同时满足如下条件:只能为大小写字母、数字及以下特殊字符 _#!@$%^&*()+=-。长度为 8~32 个字符。至少包含大写字母、小写字母、数字或特殊字符中的任意三种。不允许使用极易被破解的弱密码(如 Admin@123)。
-
[]Instance
Tag Args
- node
Spec String - 实例的规格码。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点规格。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示 Shard 节点的规格。
- storage
Space IntegerGb - 副本集实例的总存储空间,或分片集群中单个 Shard 分片的存储空间,单位:GiB,步长为 10。
- subnet
Id String - 子网 ID。
- vpc
Id String - 私有网络 ID。
- zone
Id String - 实例所在可用区的 ID。
- allow
List List<String>Ids - 白名单 ID 列表。新建实例会被绑定到指定白名单。
- auto
Renew Boolean - 是否开启自动续费,取值范围如下:false(默认):不开启自动续费。true:开启自动续费。
- charge
Type String - 实例计费类型,取值范围如下:PostPaid(默认):按量计费(也称后付费)。Prepaid:包年包月(也称预付费)。
- config
Server StringNode Spec - 分片集群中 ConfigServer 节点的规格码。默认值为 mongo.config.1c2g。
- config
Server IntegerStorage Space Gb - 分片集群中 ConfigServer 的存储空间,单位:GiB。步长为 10,默认值:20。
- db
Engine String - 数据库引擎。取值固定为 MongoDB
- db
Engine StringVersion - 数据库引擎版本,取值范围如下:MongoDB40(默认):MongoDB 4.0 版本。MongoDB42:MongoDB 4.2 版本。MongoDB44:MongoDB 4.4 版本。MongoDB50:MongoDB 5.0 版本。MongoDB60:MongoDB 6.0 版本。MongoDB70:MongoDB 7.0 版本。
- instance
Count Integer - 需要创建的实例数量。取值为大于等于 1 的正整数,默认值为1。
- instance
Name String - 实例名称。名称需同时满足如下要求:不能以数字、中划线(-)开头。只能包含中文、字母、数字、下划线(_)和中划线(-)。长度需为 2~64 个字符。
- instance
Type String - MongoDB 的实例类型,取值范围如下:ReplicaSet(默认):副本集。ShardedCluster:分片集群 。
- mongos
Node IntegerNumber - 分片集群中 Mongos 节点的数量。取值范围:2~32。
- mongos
Node StringSpec - 分片集群中 Mongos 节点的规格码。
- node
Availability List<InstanceZones Node Availability Zone> - node
Number Integer - 节点数量,其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点数量。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示每个 Shard 分片中的节点数量。
- period Integer
- 包年包月实例的购买时长,其中:当 PeriodUnit 为 Year 时,Period 取值为 1~3。当 PeriodUnit 为 Month 时,Period 取值为 1~9。
- period
Unit String - 指定包年包月实例为包年或者包月类型。取值如下:Year:包年。Month:包月。
- project
Name String - 选择实例所属的项目。若该参数留空,新建实例会默认加入 default 项目。
- Integer
- 分片集群中 Shard 分片的数量。取值范围:2~32。
- super
Account StringName - 数据库账号名称。当前仅支持在创建实例时设置超级管理员账号,账号名称固定为 root。
- super
Account StringPassword - root 账号的密码。密码需同时满足如下条件:只能为大小写字母、数字及以下特殊字符 _#!@$%^&*()+=-。长度为 8~32 个字符。至少包含大写字母、小写字母、数字或特殊字符中的任意三种。不允许使用极易被破解的弱密码(如 Admin@123)。
-
List<Instance
Tag>
- node
Spec string - 实例的规格码。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点规格。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示 Shard 节点的规格。
- storage
Space numberGb - 副本集实例的总存储空间,或分片集群中单个 Shard 分片的存储空间,单位:GiB,步长为 10。
- subnet
Id string - 子网 ID。
- vpc
Id string - 私有网络 ID。
- zone
Id string - 实例所在可用区的 ID。
- allow
List string[]Ids - 白名单 ID 列表。新建实例会被绑定到指定白名单。
- auto
Renew boolean - 是否开启自动续费,取值范围如下:false(默认):不开启自动续费。true:开启自动续费。
- charge
Type string - 实例计费类型,取值范围如下:PostPaid(默认):按量计费(也称后付费)。Prepaid:包年包月(也称预付费)。
- config
Server stringNode Spec - 分片集群中 ConfigServer 节点的规格码。默认值为 mongo.config.1c2g。
- config
Server numberStorage Space Gb - 分片集群中 ConfigServer 的存储空间,单位:GiB。步长为 10,默认值:20。
- db
Engine string - 数据库引擎。取值固定为 MongoDB
- db
Engine stringVersion - 数据库引擎版本,取值范围如下:MongoDB40(默认):MongoDB 4.0 版本。MongoDB42:MongoDB 4.2 版本。MongoDB44:MongoDB 4.4 版本。MongoDB50:MongoDB 5.0 版本。MongoDB60:MongoDB 6.0 版本。MongoDB70:MongoDB 7.0 版本。
- instance
Count number - 需要创建的实例数量。取值为大于等于 1 的正整数,默认值为1。
- instance
Name string - 实例名称。名称需同时满足如下要求:不能以数字、中划线(-)开头。只能包含中文、字母、数字、下划线(_)和中划线(-)。长度需为 2~64 个字符。
- instance
Type string - MongoDB 的实例类型,取值范围如下:ReplicaSet(默认):副本集。ShardedCluster:分片集群 。
- mongos
Node numberNumber - 分片集群中 Mongos 节点的数量。取值范围:2~32。
- mongos
Node stringSpec - 分片集群中 Mongos 节点的规格码。
- node
Availability InstanceZones Node Availability Zone[] - node
Number number - 节点数量,其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点数量。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示每个 Shard 分片中的节点数量。
- period number
- 包年包月实例的购买时长,其中:当 PeriodUnit 为 Year 时,Period 取值为 1~3。当 PeriodUnit 为 Month 时,Period 取值为 1~9。
- period
Unit string - 指定包年包月实例为包年或者包月类型。取值如下:Year:包年。Month:包月。
- project
Name string - 选择实例所属的项目。若该参数留空,新建实例会默认加入 default 项目。
- number
- 分片集群中 Shard 分片的数量。取值范围:2~32。
- super
Account stringName - 数据库账号名称。当前仅支持在创建实例时设置超级管理员账号,账号名称固定为 root。
- super
Account stringPassword - root 账号的密码。密码需同时满足如下条件:只能为大小写字母、数字及以下特殊字符 _#!@$%^&*()+=-。长度为 8~32 个字符。至少包含大写字母、小写字母、数字或特殊字符中的任意三种。不允许使用极易被破解的弱密码(如 Admin@123)。
-
Instance
Tag[]
- node_
spec str - 实例的规格码。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点规格。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示 Shard 节点的规格。
- storage_
space_ intgb - 副本集实例的总存储空间,或分片集群中单个 Shard 分片的存储空间,单位:GiB,步长为 10。
- subnet_
id str - 子网 ID。
- vpc_
id str - 私有网络 ID。
- zone_
id str - 实例所在可用区的 ID。
- allow_
list_ Sequence[str]ids - 白名单 ID 列表。新建实例会被绑定到指定白名单。
- auto_
renew bool - 是否开启自动续费,取值范围如下:false(默认):不开启自动续费。true:开启自动续费。
- charge_
type str - 实例计费类型,取值范围如下:PostPaid(默认):按量计费(也称后付费)。Prepaid:包年包月(也称预付费)。
- config_
server_ strnode_ spec - 分片集群中 ConfigServer 节点的规格码。默认值为 mongo.config.1c2g。
- config_
server_ intstorage_ space_ gb - 分片集群中 ConfigServer 的存储空间,单位:GiB。步长为 10,默认值:20。
- db_
engine str - 数据库引擎。取值固定为 MongoDB
- db_
engine_ strversion - 数据库引擎版本,取值范围如下:MongoDB40(默认):MongoDB 4.0 版本。MongoDB42:MongoDB 4.2 版本。MongoDB44:MongoDB 4.4 版本。MongoDB50:MongoDB 5.0 版本。MongoDB60:MongoDB 6.0 版本。MongoDB70:MongoDB 7.0 版本。
- instance_
count int - 需要创建的实例数量。取值为大于等于 1 的正整数,默认值为1。
- instance_
name str - 实例名称。名称需同时满足如下要求:不能以数字、中划线(-)开头。只能包含中文、字母、数字、下划线(_)和中划线(-)。长度需为 2~64 个字符。
- instance_
type str - MongoDB 的实例类型,取值范围如下:ReplicaSet(默认):副本集。ShardedCluster:分片集群 。
- mongos_
node_ intnumber - 分片集群中 Mongos 节点的数量。取值范围:2~32。
- mongos_
node_ strspec - 分片集群中 Mongos 节点的规格码。
- node_
availability_ Sequence[Instancezones Node Availability Zone Args] - node_
number int - 节点数量,其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点数量。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示每个 Shard 分片中的节点数量。
- period int
- 包年包月实例的购买时长,其中:当 PeriodUnit 为 Year 时,Period 取值为 1~3。当 PeriodUnit 为 Month 时,Period 取值为 1~9。
- period_
unit str - 指定包年包月实例为包年或者包月类型。取值如下:Year:包年。Month:包月。
- project_
name str - 选择实例所属的项目。若该参数留空,新建实例会默认加入 default 项目。
- int
- 分片集群中 Shard 分片的数量。取值范围:2~32。
- super_
account_ strname - 数据库账号名称。当前仅支持在创建实例时设置超级管理员账号,账号名称固定为 root。
- super_
account_ strpassword - root 账号的密码。密码需同时满足如下条件:只能为大小写字母、数字及以下特殊字符 _#!@$%^&*()+=-。长度为 8~32 个字符。至少包含大写字母、小写字母、数字或特殊字符中的任意三种。不允许使用极易被破解的弱密码(如 Admin@123)。
-
Sequence[Instance
Tag Args]
- node
Spec String - 实例的规格码。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点规格。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示 Shard 节点的规格。
- storage
Space NumberGb - 副本集实例的总存储空间,或分片集群中单个 Shard 分片的存储空间,单位:GiB,步长为 10。
- subnet
Id String - 子网 ID。
- vpc
Id String - 私有网络 ID。
- zone
Id String - 实例所在可用区的 ID。
- allow
List List<String>Ids - 白名单 ID 列表。新建实例会被绑定到指定白名单。
- auto
Renew Boolean - 是否开启自动续费,取值范围如下:false(默认):不开启自动续费。true:开启自动续费。
- charge
Type String - 实例计费类型,取值范围如下:PostPaid(默认):按量计费(也称后付费)。Prepaid:包年包月(也称预付费)。
- config
Server StringNode Spec - 分片集群中 ConfigServer 节点的规格码。默认值为 mongo.config.1c2g。
- config
Server NumberStorage Space Gb - 分片集群中 ConfigServer 的存储空间,单位:GiB。步长为 10,默认值:20。
- db
Engine String - 数据库引擎。取值固定为 MongoDB
- db
Engine StringVersion - 数据库引擎版本,取值范围如下:MongoDB40(默认):MongoDB 4.0 版本。MongoDB42:MongoDB 4.2 版本。MongoDB44:MongoDB 4.4 版本。MongoDB50:MongoDB 5.0 版本。MongoDB60:MongoDB 6.0 版本。MongoDB70:MongoDB 7.0 版本。
- instance
Count Number - 需要创建的实例数量。取值为大于等于 1 的正整数,默认值为1。
- instance
Name String - 实例名称。名称需同时满足如下要求:不能以数字、中划线(-)开头。只能包含中文、字母、数字、下划线(_)和中划线(-)。长度需为 2~64 个字符。
- instance
Type String - MongoDB 的实例类型,取值范围如下:ReplicaSet(默认):副本集。ShardedCluster:分片集群 。
- mongos
Node NumberNumber - 分片集群中 Mongos 节点的数量。取值范围:2~32。
- mongos
Node StringSpec - 分片集群中 Mongos 节点的规格码。
- node
Availability List<Property Map>Zones - node
Number Number - 节点数量,其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点数量。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示每个 Shard 分片中的节点数量。
- period Number
- 包年包月实例的购买时长,其中:当 PeriodUnit 为 Year 时,Period 取值为 1~3。当 PeriodUnit 为 Month 时,Period 取值为 1~9。
- period
Unit String - 指定包年包月实例为包年或者包月类型。取值如下:Year:包年。Month:包月。
- project
Name String - 选择实例所属的项目。若该参数留空,新建实例会默认加入 default 项目。
- Number
- 分片集群中 Shard 分片的数量。取值范围:2~32。
- super
Account StringName - 数据库账号名称。当前仅支持在创建实例时设置超级管理员账号,账号名称固定为 root。
- super
Account StringPassword - root 账号的密码。密码需同时满足如下条件:只能为大小写字母、数字及以下特殊字符 _#!@$%^&*()+=-。长度为 8~32 个字符。至少包含大写字母、小写字母、数字或特殊字符中的任意三种。不允许使用极易被破解的弱密码(如 Admin@123)。
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Charge
Status string - 实例计费状态,取值范围如下:Normal:正常。WaitingPaid:等待支付。ChangingPayType:计费变更中。Renewing:续费中。Overdue:已到期。Owing:欠费中。Unsubscribing:退订中。
- Closed
Time string - 计划关停时间(UTC)。
- Config
Servers List<Volcengine.Instance Config Server> - Config
Servers stringId - ConfigServer 的 ID。
- Created
Time string - 实例创建时间(UTC)。
- Db
Engine stringVersion Str - 数据库引擎版本的字符串。
- Expired
Time string - 实例到期时间(UTC)。
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - 实例 ID。
- Instance
Status string - 实例状态。创建中:Creating。运行中:Running。白名单维护中:AllowListMaintaining。变更配置中:Scaling。重启中:Restarting。网络维护中:NetworkMaintaining。恢复中:Restoring。升级版本中:Upgrading。不可用:Unavailable。关停中:Closing。删除中:Deleting。已关停:Closed。SSL SSL变更中:SSLUpdating。主节点切换中:SwitchMastering。角色切换中:RoleChanging。迁移中:Migrating。
- Mongos
List<Volcengine.
Instance Mongo> - Mongos
Id string - Mongos 的 ID。
- Nodes
List<Volcengine.
Instance Node> - Private
Endpoint string - 实例私网连接地址的字符串信息。
- Read
Only intNode Number - 实例的只读节点数量。
- Reclaim
Time string - 实例的计划回收时间(UTC)。
-
List<Volcengine.
Instance Shard> - Storage
Type string - 实例的存储类型。当前仅支持本地 SSD 盘(即 LocalSSD)存储。
- Updated
Time string - 实例的更新时间(UTC)。
- Charge
Status string - 实例计费状态,取值范围如下:Normal:正常。WaitingPaid:等待支付。ChangingPayType:计费变更中。Renewing:续费中。Overdue:已到期。Owing:欠费中。Unsubscribing:退订中。
- Closed
Time string - 计划关停时间(UTC)。
- Config
Servers []InstanceConfig Server - Config
Servers stringId - ConfigServer 的 ID。
- Created
Time string - 实例创建时间(UTC)。
- Db
Engine stringVersion Str - 数据库引擎版本的字符串。
- Expired
Time string - 实例到期时间(UTC)。
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - 实例 ID。
- Instance
Status string - 实例状态。创建中:Creating。运行中:Running。白名单维护中:AllowListMaintaining。变更配置中:Scaling。重启中:Restarting。网络维护中:NetworkMaintaining。恢复中:Restoring。升级版本中:Upgrading。不可用:Unavailable。关停中:Closing。删除中:Deleting。已关停:Closed。SSL SSL变更中:SSLUpdating。主节点切换中:SwitchMastering。角色切换中:RoleChanging。迁移中:Migrating。
- Mongos
[]Instance
Mongo - Mongos
Id string - Mongos 的 ID。
- Nodes
[]Instance
Node - Private
Endpoint string - 实例私网连接地址的字符串信息。
- Read
Only intNode Number - 实例的只读节点数量。
- Reclaim
Time string - 实例的计划回收时间(UTC)。
-
[]Instance
Shard - Storage
Type string - 实例的存储类型。当前仅支持本地 SSD 盘(即 LocalSSD)存储。
- Updated
Time string - 实例的更新时间(UTC)。
- charge
Status String - 实例计费状态,取值范围如下:Normal:正常。WaitingPaid:等待支付。ChangingPayType:计费变更中。Renewing:续费中。Overdue:已到期。Owing:欠费中。Unsubscribing:退订中。
- closed
Time String - 计划关停时间(UTC)。
- config
Servers List<InstanceConfig Server> - config
Servers StringId - ConfigServer 的 ID。
- created
Time String - 实例创建时间(UTC)。
- db
Engine StringVersion Str - 数据库引擎版本的字符串。
- expired
Time String - 实例到期时间(UTC)。
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - 实例 ID。
- instance
Status String - 实例状态。创建中:Creating。运行中:Running。白名单维护中:AllowListMaintaining。变更配置中:Scaling。重启中:Restarting。网络维护中:NetworkMaintaining。恢复中:Restoring。升级版本中:Upgrading。不可用:Unavailable。关停中:Closing。删除中:Deleting。已关停:Closed。SSL SSL变更中:SSLUpdating。主节点切换中:SwitchMastering。角色切换中:RoleChanging。迁移中:Migrating。
- mongos
List<Instance
Mongo> - mongos
Id String - Mongos 的 ID。
- nodes
List<Instance
Node> - private
Endpoint String - 实例私网连接地址的字符串信息。
- read
Only IntegerNode Number - 实例的只读节点数量。
- reclaim
Time String - 实例的计划回收时间(UTC)。
-
List<Instance
Shard> - storage
Type String - 实例的存储类型。当前仅支持本地 SSD 盘(即 LocalSSD)存储。
- updated
Time String - 实例的更新时间(UTC)。
- charge
Status string - 实例计费状态,取值范围如下:Normal:正常。WaitingPaid:等待支付。ChangingPayType:计费变更中。Renewing:续费中。Overdue:已到期。Owing:欠费中。Unsubscribing:退订中。
- closed
Time string - 计划关停时间(UTC)。
- config
Servers InstanceConfig Server[] - config
Servers stringId - ConfigServer 的 ID。
- created
Time string - 实例创建时间(UTC)。
- db
Engine stringVersion Str - 数据库引擎版本的字符串。
- expired
Time string - 实例到期时间(UTC)。
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - 实例 ID。
- instance
Status string - 实例状态。创建中:Creating。运行中:Running。白名单维护中:AllowListMaintaining。变更配置中:Scaling。重启中:Restarting。网络维护中:NetworkMaintaining。恢复中:Restoring。升级版本中:Upgrading。不可用:Unavailable。关停中:Closing。删除中:Deleting。已关停:Closed。SSL SSL变更中:SSLUpdating。主节点切换中:SwitchMastering。角色切换中:RoleChanging。迁移中:Migrating。
- mongos
Instance
Mongo[] - mongos
Id string - Mongos 的 ID。
- nodes
Instance
Node[] - private
Endpoint string - 实例私网连接地址的字符串信息。
- read
Only numberNode Number - 实例的只读节点数量。
- reclaim
Time string - 实例的计划回收时间(UTC)。
-
Instance
Shard[] - storage
Type string - 实例的存储类型。当前仅支持本地 SSD 盘(即 LocalSSD)存储。
- updated
Time string - 实例的更新时间(UTC)。
- charge_
status str - 实例计费状态,取值范围如下:Normal:正常。WaitingPaid:等待支付。ChangingPayType:计费变更中。Renewing:续费中。Overdue:已到期。Owing:欠费中。Unsubscribing:退订中。
- closed_
time str - 计划关停时间(UTC)。
- config_
servers Sequence[InstanceConfig Server] - config_
servers_ strid - ConfigServer 的 ID。
- created_
time str - 实例创建时间(UTC)。
- db_
engine_ strversion_ str - 数据库引擎版本的字符串。
- expired_
time str - 实例到期时间(UTC)。
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - 实例 ID。
- instance_
status str - 实例状态。创建中:Creating。运行中:Running。白名单维护中:AllowListMaintaining。变更配置中:Scaling。重启中:Restarting。网络维护中:NetworkMaintaining。恢复中:Restoring。升级版本中:Upgrading。不可用:Unavailable。关停中:Closing。删除中:Deleting。已关停:Closed。SSL SSL变更中:SSLUpdating。主节点切换中:SwitchMastering。角色切换中:RoleChanging。迁移中:Migrating。
- mongos
Sequence[Instance
Mongo] - mongos_
id str - Mongos 的 ID。
- nodes
Sequence[Instance
Node] - private_
endpoint str - 实例私网连接地址的字符串信息。
- read_
only_ intnode_ number - 实例的只读节点数量。
- reclaim_
time str - 实例的计划回收时间(UTC)。
-
Sequence[Instance
Shard] - storage_
type str - 实例的存储类型。当前仅支持本地 SSD 盘(即 LocalSSD)存储。
- updated_
time str - 实例的更新时间(UTC)。
- charge
Status String - 实例计费状态,取值范围如下:Normal:正常。WaitingPaid:等待支付。ChangingPayType:计费变更中。Renewing:续费中。Overdue:已到期。Owing:欠费中。Unsubscribing:退订中。
- closed
Time String - 计划关停时间(UTC)。
- config
Servers List<Property Map> - config
Servers StringId - ConfigServer 的 ID。
- created
Time String - 实例创建时间(UTC)。
- db
Engine StringVersion Str - 数据库引擎版本的字符串。
- expired
Time String - 实例到期时间(UTC)。
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - 实例 ID。
- instance
Status String - 实例状态。创建中:Creating。运行中:Running。白名单维护中:AllowListMaintaining。变更配置中:Scaling。重启中:Restarting。网络维护中:NetworkMaintaining。恢复中:Restoring。升级版本中:Upgrading。不可用:Unavailable。关停中:Closing。删除中:Deleting。已关停:Closed。SSL SSL变更中:SSLUpdating。主节点切换中:SwitchMastering。角色切换中:RoleChanging。迁移中:Migrating。
- mongos List<Property Map>
- mongos
Id String - Mongos 的 ID。
- nodes List<Property Map>
- private
Endpoint String - 实例私网连接地址的字符串信息。
- read
Only NumberNode Number - 实例的只读节点数量。
- reclaim
Time String - 实例的计划回收时间(UTC)。
- List<Property Map>
- storage
Type String - 实例的存储类型。当前仅支持本地 SSD 盘(即 LocalSSD)存储。
- updated
Time String - 实例的更新时间(UTC)。
Look up Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_list_ids: Optional[Sequence[str]] = None,
auto_renew: Optional[bool] = None,
charge_status: Optional[str] = None,
charge_type: Optional[str] = None,
closed_time: Optional[str] = None,
config_server_node_spec: Optional[str] = None,
config_server_storage_space_gb: Optional[int] = None,
config_servers: Optional[Sequence[InstanceConfigServerArgs]] = None,
config_servers_id: Optional[str] = None,
created_time: Optional[str] = None,
db_engine: Optional[str] = None,
db_engine_version: Optional[str] = None,
db_engine_version_str: Optional[str] = None,
expired_time: Optional[str] = None,
instance_count: Optional[int] = None,
instance_id: Optional[str] = None,
instance_name: Optional[str] = None,
instance_status: Optional[str] = None,
instance_type: Optional[str] = None,
mongos: Optional[Sequence[InstanceMongoArgs]] = None,
mongos_id: Optional[str] = None,
mongos_node_number: Optional[int] = None,
mongos_node_spec: Optional[str] = None,
node_availability_zones: Optional[Sequence[InstanceNodeAvailabilityZoneArgs]] = None,
node_number: Optional[int] = None,
node_spec: Optional[str] = None,
nodes: Optional[Sequence[InstanceNodeArgs]] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
private_endpoint: Optional[str] = None,
project_name: Optional[str] = None,
read_only_node_number: Optional[int] = None,
reclaim_time: Optional[str] = None,
shard_number: Optional[int] = None,
shards: Optional[Sequence[InstanceShardArgs]] = None,
storage_space_gb: Optional[int] = None,
storage_type: Optional[str] = None,
subnet_id: Optional[str] = None,
super_account_name: Optional[str] = None,
super_account_password: Optional[str] = None,
tags: Optional[Sequence[InstanceTagArgs]] = None,
updated_time: Optional[str] = None,
vpc_id: Optional[str] = None,
zone_id: Optional[str] = None) -> Instancefunc GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)resources: _: type: volcenginecc:mongodb:Instance 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.
- Allow
List List<string>Ids - 白名单 ID 列表。新建实例会被绑定到指定白名单。
- Auto
Renew bool - 是否开启自动续费,取值范围如下:false(默认):不开启自动续费。true:开启自动续费。
- Charge
Status string - 实例计费状态,取值范围如下:Normal:正常。WaitingPaid:等待支付。ChangingPayType:计费变更中。Renewing:续费中。Overdue:已到期。Owing:欠费中。Unsubscribing:退订中。
- Charge
Type string - 实例计费类型,取值范围如下:PostPaid(默认):按量计费(也称后付费)。Prepaid:包年包月(也称预付费)。
- Closed
Time string - 计划关停时间(UTC)。
- Config
Server stringNode Spec - 分片集群中 ConfigServer 节点的规格码。默认值为 mongo.config.1c2g。
- Config
Server intStorage Space Gb - 分片集群中 ConfigServer 的存储空间,单位:GiB。步长为 10,默认值:20。
- Config
Servers List<Volcengine.Instance Config Server> - Config
Servers stringId - ConfigServer 的 ID。
- Created
Time string - 实例创建时间(UTC)。
- Db
Engine string - 数据库引擎。取值固定为 MongoDB
- Db
Engine stringVersion - 数据库引擎版本,取值范围如下:MongoDB40(默认):MongoDB 4.0 版本。MongoDB42:MongoDB 4.2 版本。MongoDB44:MongoDB 4.4 版本。MongoDB50:MongoDB 5.0 版本。MongoDB60:MongoDB 6.0 版本。MongoDB70:MongoDB 7.0 版本。
- Db
Engine stringVersion Str - 数据库引擎版本的字符串。
- Expired
Time string - 实例到期时间(UTC)。
- Instance
Count int - 需要创建的实例数量。取值为大于等于 1 的正整数,默认值为1。
- Instance
Id string - 实例 ID。
- Instance
Name string - 实例名称。名称需同时满足如下要求:不能以数字、中划线(-)开头。只能包含中文、字母、数字、下划线(_)和中划线(-)。长度需为 2~64 个字符。
- Instance
Status string - 实例状态。创建中:Creating。运行中:Running。白名单维护中:AllowListMaintaining。变更配置中:Scaling。重启中:Restarting。网络维护中:NetworkMaintaining。恢复中:Restoring。升级版本中:Upgrading。不可用:Unavailable。关停中:Closing。删除中:Deleting。已关停:Closed。SSL SSL变更中:SSLUpdating。主节点切换中:SwitchMastering。角色切换中:RoleChanging。迁移中:Migrating。
- Instance
Type string - MongoDB 的实例类型,取值范围如下:ReplicaSet(默认):副本集。ShardedCluster:分片集群 。
- Mongos
List<Volcengine.
Instance Mongo> - Mongos
Id string - Mongos 的 ID。
- Mongos
Node intNumber - 分片集群中 Mongos 节点的数量。取值范围:2~32。
- Mongos
Node stringSpec - 分片集群中 Mongos 节点的规格码。
- Node
Availability List<Volcengine.Zones Instance Node Availability Zone> - Node
Number int - 节点数量,其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点数量。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示每个 Shard 分片中的节点数量。
- Node
Spec string - 实例的规格码。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点规格。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示 Shard 节点的规格。
- Nodes
List<Volcengine.
Instance Node> - Period int
- 包年包月实例的购买时长,其中:当 PeriodUnit 为 Year 时,Period 取值为 1~3。当 PeriodUnit 为 Month 时,Period 取值为 1~9。
- Period
Unit string - 指定包年包月实例为包年或者包月类型。取值如下:Year:包年。Month:包月。
- Private
Endpoint string - 实例私网连接地址的字符串信息。
- Project
Name string - 选择实例所属的项目。若该参数留空,新建实例会默认加入 default 项目。
- Read
Only intNode Number - 实例的只读节点数量。
- Reclaim
Time string - 实例的计划回收时间(UTC)。
- Shard
Number int - 分片集群中 Shard 分片的数量。取值范围:2~32。
- Shards
List<Volcengine.
Instance Shard> - Storage
Space intGb - 副本集实例的总存储空间,或分片集群中单个 Shard 分片的存储空间,单位:GiB,步长为 10。
- Storage
Type string - 实例的存储类型。当前仅支持本地 SSD 盘(即 LocalSSD)存储。
- Subnet
Id string - 子网 ID。
- Super
Account stringName - 数据库账号名称。当前仅支持在创建实例时设置超级管理员账号,账号名称固定为 root。
- Super
Account stringPassword - root 账号的密码。密码需同时满足如下条件:只能为大小写字母、数字及以下特殊字符 _#!@$%^&*()+=-。长度为 8~32 个字符。至少包含大写字母、小写字母、数字或特殊字符中的任意三种。不允许使用极易被破解的弱密码(如 Admin@123)。
-
List<Volcengine.
Instance Tag> - Updated
Time string - 实例的更新时间(UTC)。
- Vpc
Id string - 私有网络 ID。
- Zone
Id string - 实例所在可用区的 ID。
- Allow
List []stringIds - 白名单 ID 列表。新建实例会被绑定到指定白名单。
- Auto
Renew bool - 是否开启自动续费,取值范围如下:false(默认):不开启自动续费。true:开启自动续费。
- Charge
Status string - 实例计费状态,取值范围如下:Normal:正常。WaitingPaid:等待支付。ChangingPayType:计费变更中。Renewing:续费中。Overdue:已到期。Owing:欠费中。Unsubscribing:退订中。
- Charge
Type string - 实例计费类型,取值范围如下:PostPaid(默认):按量计费(也称后付费)。Prepaid:包年包月(也称预付费)。
- Closed
Time string - 计划关停时间(UTC)。
- Config
Server stringNode Spec - 分片集群中 ConfigServer 节点的规格码。默认值为 mongo.config.1c2g。
- Config
Server intStorage Space Gb - 分片集群中 ConfigServer 的存储空间,单位:GiB。步长为 10,默认值:20。
- Config
Servers []InstanceConfig Server Args - Config
Servers stringId - ConfigServer 的 ID。
- Created
Time string - 实例创建时间(UTC)。
- Db
Engine string - 数据库引擎。取值固定为 MongoDB
- Db
Engine stringVersion - 数据库引擎版本,取值范围如下:MongoDB40(默认):MongoDB 4.0 版本。MongoDB42:MongoDB 4.2 版本。MongoDB44:MongoDB 4.4 版本。MongoDB50:MongoDB 5.0 版本。MongoDB60:MongoDB 6.0 版本。MongoDB70:MongoDB 7.0 版本。
- Db
Engine stringVersion Str - 数据库引擎版本的字符串。
- Expired
Time string - 实例到期时间(UTC)。
- Instance
Count int - 需要创建的实例数量。取值为大于等于 1 的正整数,默认值为1。
- Instance
Id string - 实例 ID。
- Instance
Name string - 实例名称。名称需同时满足如下要求:不能以数字、中划线(-)开头。只能包含中文、字母、数字、下划线(_)和中划线(-)。长度需为 2~64 个字符。
- Instance
Status string - 实例状态。创建中:Creating。运行中:Running。白名单维护中:AllowListMaintaining。变更配置中:Scaling。重启中:Restarting。网络维护中:NetworkMaintaining。恢复中:Restoring。升级版本中:Upgrading。不可用:Unavailable。关停中:Closing。删除中:Deleting。已关停:Closed。SSL SSL变更中:SSLUpdating。主节点切换中:SwitchMastering。角色切换中:RoleChanging。迁移中:Migrating。
- Instance
Type string - MongoDB 的实例类型,取值范围如下:ReplicaSet(默认):副本集。ShardedCluster:分片集群 。
- Mongos
[]Instance
Mongo Args - Mongos
Id string - Mongos 的 ID。
- Mongos
Node intNumber - 分片集群中 Mongos 节点的数量。取值范围:2~32。
- Mongos
Node stringSpec - 分片集群中 Mongos 节点的规格码。
- Node
Availability []InstanceZones Node Availability Zone Args - Node
Number int - 节点数量,其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点数量。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示每个 Shard 分片中的节点数量。
- Node
Spec string - 实例的规格码。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点规格。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示 Shard 节点的规格。
- Nodes
[]Instance
Node Args - Period int
- 包年包月实例的购买时长,其中:当 PeriodUnit 为 Year 时,Period 取值为 1~3。当 PeriodUnit 为 Month 时,Period 取值为 1~9。
- Period
Unit string - 指定包年包月实例为包年或者包月类型。取值如下:Year:包年。Month:包月。
- Private
Endpoint string - 实例私网连接地址的字符串信息。
- Project
Name string - 选择实例所属的项目。若该参数留空,新建实例会默认加入 default 项目。
- Read
Only intNode Number - 实例的只读节点数量。
- Reclaim
Time string - 实例的计划回收时间(UTC)。
- Shard
Number int - 分片集群中 Shard 分片的数量。取值范围:2~32。
- Shards
[]Instance
Shard Args - Storage
Space intGb - 副本集实例的总存储空间,或分片集群中单个 Shard 分片的存储空间,单位:GiB,步长为 10。
- Storage
Type string - 实例的存储类型。当前仅支持本地 SSD 盘(即 LocalSSD)存储。
- Subnet
Id string - 子网 ID。
- Super
Account stringName - 数据库账号名称。当前仅支持在创建实例时设置超级管理员账号,账号名称固定为 root。
- Super
Account stringPassword - root 账号的密码。密码需同时满足如下条件:只能为大小写字母、数字及以下特殊字符 _#!@$%^&*()+=-。长度为 8~32 个字符。至少包含大写字母、小写字母、数字或特殊字符中的任意三种。不允许使用极易被破解的弱密码(如 Admin@123)。
-
[]Instance
Tag Args - Updated
Time string - 实例的更新时间(UTC)。
- Vpc
Id string - 私有网络 ID。
- Zone
Id string - 实例所在可用区的 ID。
- allow
List List<String>Ids - 白名单 ID 列表。新建实例会被绑定到指定白名单。
- auto
Renew Boolean - 是否开启自动续费,取值范围如下:false(默认):不开启自动续费。true:开启自动续费。
- charge
Status String - 实例计费状态,取值范围如下:Normal:正常。WaitingPaid:等待支付。ChangingPayType:计费变更中。Renewing:续费中。Overdue:已到期。Owing:欠费中。Unsubscribing:退订中。
- charge
Type String - 实例计费类型,取值范围如下:PostPaid(默认):按量计费(也称后付费)。Prepaid:包年包月(也称预付费)。
- closed
Time String - 计划关停时间(UTC)。
- config
Server StringNode Spec - 分片集群中 ConfigServer 节点的规格码。默认值为 mongo.config.1c2g。
- config
Server IntegerStorage Space Gb - 分片集群中 ConfigServer 的存储空间,单位:GiB。步长为 10,默认值:20。
- config
Servers List<InstanceConfig Server> - config
Servers StringId - ConfigServer 的 ID。
- created
Time String - 实例创建时间(UTC)。
- db
Engine String - 数据库引擎。取值固定为 MongoDB
- db
Engine StringVersion - 数据库引擎版本,取值范围如下:MongoDB40(默认):MongoDB 4.0 版本。MongoDB42:MongoDB 4.2 版本。MongoDB44:MongoDB 4.4 版本。MongoDB50:MongoDB 5.0 版本。MongoDB60:MongoDB 6.0 版本。MongoDB70:MongoDB 7.0 版本。
- db
Engine StringVersion Str - 数据库引擎版本的字符串。
- expired
Time String - 实例到期时间(UTC)。
- instance
Count Integer - 需要创建的实例数量。取值为大于等于 1 的正整数,默认值为1。
- instance
Id String - 实例 ID。
- instance
Name String - 实例名称。名称需同时满足如下要求:不能以数字、中划线(-)开头。只能包含中文、字母、数字、下划线(_)和中划线(-)。长度需为 2~64 个字符。
- instance
Status String - 实例状态。创建中:Creating。运行中:Running。白名单维护中:AllowListMaintaining。变更配置中:Scaling。重启中:Restarting。网络维护中:NetworkMaintaining。恢复中:Restoring。升级版本中:Upgrading。不可用:Unavailable。关停中:Closing。删除中:Deleting。已关停:Closed。SSL SSL变更中:SSLUpdating。主节点切换中:SwitchMastering。角色切换中:RoleChanging。迁移中:Migrating。
- instance
Type String - MongoDB 的实例类型,取值范围如下:ReplicaSet(默认):副本集。ShardedCluster:分片集群 。
- mongos
List<Instance
Mongo> - mongos
Id String - Mongos 的 ID。
- mongos
Node IntegerNumber - 分片集群中 Mongos 节点的数量。取值范围:2~32。
- mongos
Node StringSpec - 分片集群中 Mongos 节点的规格码。
- node
Availability List<InstanceZones Node Availability Zone> - node
Number Integer - 节点数量,其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点数量。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示每个 Shard 分片中的节点数量。
- node
Spec String - 实例的规格码。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点规格。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示 Shard 节点的规格。
- nodes
List<Instance
Node> - period Integer
- 包年包月实例的购买时长,其中:当 PeriodUnit 为 Year 时,Period 取值为 1~3。当 PeriodUnit 为 Month 时,Period 取值为 1~9。
- period
Unit String - 指定包年包月实例为包年或者包月类型。取值如下:Year:包年。Month:包月。
- private
Endpoint String - 实例私网连接地址的字符串信息。
- project
Name String - 选择实例所属的项目。若该参数留空,新建实例会默认加入 default 项目。
- read
Only IntegerNode Number - 实例的只读节点数量。
- reclaim
Time String - 实例的计划回收时间(UTC)。
- shard
Number Integer - 分片集群中 Shard 分片的数量。取值范围:2~32。
- shards
List<Instance
Shard> - storage
Space IntegerGb - 副本集实例的总存储空间,或分片集群中单个 Shard 分片的存储空间,单位:GiB,步长为 10。
- storage
Type String - 实例的存储类型。当前仅支持本地 SSD 盘(即 LocalSSD)存储。
- subnet
Id String - 子网 ID。
- super
Account StringName - 数据库账号名称。当前仅支持在创建实例时设置超级管理员账号,账号名称固定为 root。
- super
Account StringPassword - root 账号的密码。密码需同时满足如下条件:只能为大小写字母、数字及以下特殊字符 _#!@$%^&*()+=-。长度为 8~32 个字符。至少包含大写字母、小写字母、数字或特殊字符中的任意三种。不允许使用极易被破解的弱密码(如 Admin@123)。
-
List<Instance
Tag> - updated
Time String - 实例的更新时间(UTC)。
- vpc
Id String - 私有网络 ID。
- zone
Id String - 实例所在可用区的 ID。
- allow
List string[]Ids - 白名单 ID 列表。新建实例会被绑定到指定白名单。
- auto
Renew boolean - 是否开启自动续费,取值范围如下:false(默认):不开启自动续费。true:开启自动续费。
- charge
Status string - 实例计费状态,取值范围如下:Normal:正常。WaitingPaid:等待支付。ChangingPayType:计费变更中。Renewing:续费中。Overdue:已到期。Owing:欠费中。Unsubscribing:退订中。
- charge
Type string - 实例计费类型,取值范围如下:PostPaid(默认):按量计费(也称后付费)。Prepaid:包年包月(也称预付费)。
- closed
Time string - 计划关停时间(UTC)。
- config
Server stringNode Spec - 分片集群中 ConfigServer 节点的规格码。默认值为 mongo.config.1c2g。
- config
Server numberStorage Space Gb - 分片集群中 ConfigServer 的存储空间,单位:GiB。步长为 10,默认值:20。
- config
Servers InstanceConfig Server[] - config
Servers stringId - ConfigServer 的 ID。
- created
Time string - 实例创建时间(UTC)。
- db
Engine string - 数据库引擎。取值固定为 MongoDB
- db
Engine stringVersion - 数据库引擎版本,取值范围如下:MongoDB40(默认):MongoDB 4.0 版本。MongoDB42:MongoDB 4.2 版本。MongoDB44:MongoDB 4.4 版本。MongoDB50:MongoDB 5.0 版本。MongoDB60:MongoDB 6.0 版本。MongoDB70:MongoDB 7.0 版本。
- db
Engine stringVersion Str - 数据库引擎版本的字符串。
- expired
Time string - 实例到期时间(UTC)。
- instance
Count number - 需要创建的实例数量。取值为大于等于 1 的正整数,默认值为1。
- instance
Id string - 实例 ID。
- instance
Name string - 实例名称。名称需同时满足如下要求:不能以数字、中划线(-)开头。只能包含中文、字母、数字、下划线(_)和中划线(-)。长度需为 2~64 个字符。
- instance
Status string - 实例状态。创建中:Creating。运行中:Running。白名单维护中:AllowListMaintaining。变更配置中:Scaling。重启中:Restarting。网络维护中:NetworkMaintaining。恢复中:Restoring。升级版本中:Upgrading。不可用:Unavailable。关停中:Closing。删除中:Deleting。已关停:Closed。SSL SSL变更中:SSLUpdating。主节点切换中:SwitchMastering。角色切换中:RoleChanging。迁移中:Migrating。
- instance
Type string - MongoDB 的实例类型,取值范围如下:ReplicaSet(默认):副本集。ShardedCluster:分片集群 。
- mongos
Instance
Mongo[] - mongos
Id string - Mongos 的 ID。
- mongos
Node numberNumber - 分片集群中 Mongos 节点的数量。取值范围:2~32。
- mongos
Node stringSpec - 分片集群中 Mongos 节点的规格码。
- node
Availability InstanceZones Node Availability Zone[] - node
Number number - 节点数量,其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点数量。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示每个 Shard 分片中的节点数量。
- node
Spec string - 实例的规格码。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点规格。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示 Shard 节点的规格。
- nodes
Instance
Node[] - period number
- 包年包月实例的购买时长,其中:当 PeriodUnit 为 Year 时,Period 取值为 1~3。当 PeriodUnit 为 Month 时,Period 取值为 1~9。
- period
Unit string - 指定包年包月实例为包年或者包月类型。取值如下:Year:包年。Month:包月。
- private
Endpoint string - 实例私网连接地址的字符串信息。
- project
Name string - 选择实例所属的项目。若该参数留空,新建实例会默认加入 default 项目。
- read
Only numberNode Number - 实例的只读节点数量。
- reclaim
Time string - 实例的计划回收时间(UTC)。
- shard
Number number - 分片集群中 Shard 分片的数量。取值范围:2~32。
- shards
Instance
Shard[] - storage
Space numberGb - 副本集实例的总存储空间,或分片集群中单个 Shard 分片的存储空间,单位:GiB,步长为 10。
- storage
Type string - 实例的存储类型。当前仅支持本地 SSD 盘(即 LocalSSD)存储。
- subnet
Id string - 子网 ID。
- super
Account stringName - 数据库账号名称。当前仅支持在创建实例时设置超级管理员账号,账号名称固定为 root。
- super
Account stringPassword - root 账号的密码。密码需同时满足如下条件:只能为大小写字母、数字及以下特殊字符 _#!@$%^&*()+=-。长度为 8~32 个字符。至少包含大写字母、小写字母、数字或特殊字符中的任意三种。不允许使用极易被破解的弱密码(如 Admin@123)。
-
Instance
Tag[] - updated
Time string - 实例的更新时间(UTC)。
- vpc
Id string - 私有网络 ID。
- zone
Id string - 实例所在可用区的 ID。
- allow_
list_ Sequence[str]ids - 白名单 ID 列表。新建实例会被绑定到指定白名单。
- auto_
renew bool - 是否开启自动续费,取值范围如下:false(默认):不开启自动续费。true:开启自动续费。
- charge_
status str - 实例计费状态,取值范围如下:Normal:正常。WaitingPaid:等待支付。ChangingPayType:计费变更中。Renewing:续费中。Overdue:已到期。Owing:欠费中。Unsubscribing:退订中。
- charge_
type str - 实例计费类型,取值范围如下:PostPaid(默认):按量计费(也称后付费)。Prepaid:包年包月(也称预付费)。
- closed_
time str - 计划关停时间(UTC)。
- config_
server_ strnode_ spec - 分片集群中 ConfigServer 节点的规格码。默认值为 mongo.config.1c2g。
- config_
server_ intstorage_ space_ gb - 分片集群中 ConfigServer 的存储空间,单位:GiB。步长为 10,默认值:20。
- config_
servers Sequence[InstanceConfig Server Args] - config_
servers_ strid - ConfigServer 的 ID。
- created_
time str - 实例创建时间(UTC)。
- db_
engine str - 数据库引擎。取值固定为 MongoDB
- db_
engine_ strversion - 数据库引擎版本,取值范围如下:MongoDB40(默认):MongoDB 4.0 版本。MongoDB42:MongoDB 4.2 版本。MongoDB44:MongoDB 4.4 版本。MongoDB50:MongoDB 5.0 版本。MongoDB60:MongoDB 6.0 版本。MongoDB70:MongoDB 7.0 版本。
- db_
engine_ strversion_ str - 数据库引擎版本的字符串。
- expired_
time str - 实例到期时间(UTC)。
- instance_
count int - 需要创建的实例数量。取值为大于等于 1 的正整数,默认值为1。
- instance_
id str - 实例 ID。
- instance_
name str - 实例名称。名称需同时满足如下要求:不能以数字、中划线(-)开头。只能包含中文、字母、数字、下划线(_)和中划线(-)。长度需为 2~64 个字符。
- instance_
status str - 实例状态。创建中:Creating。运行中:Running。白名单维护中:AllowListMaintaining。变更配置中:Scaling。重启中:Restarting。网络维护中:NetworkMaintaining。恢复中:Restoring。升级版本中:Upgrading。不可用:Unavailable。关停中:Closing。删除中:Deleting。已关停:Closed。SSL SSL变更中:SSLUpdating。主节点切换中:SwitchMastering。角色切换中:RoleChanging。迁移中:Migrating。
- instance_
type str - MongoDB 的实例类型,取值范围如下:ReplicaSet(默认):副本集。ShardedCluster:分片集群 。
- mongos
Sequence[Instance
Mongo Args] - mongos_
id str - Mongos 的 ID。
- mongos_
node_ intnumber - 分片集群中 Mongos 节点的数量。取值范围:2~32。
- mongos_
node_ strspec - 分片集群中 Mongos 节点的规格码。
- node_
availability_ Sequence[Instancezones Node Availability Zone Args] - node_
number int - 节点数量,其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点数量。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示每个 Shard 分片中的节点数量。
- node_
spec str - 实例的规格码。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点规格。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示 Shard 节点的规格。
- nodes
Sequence[Instance
Node Args] - period int
- 包年包月实例的购买时长,其中:当 PeriodUnit 为 Year 时,Period 取值为 1~3。当 PeriodUnit 为 Month 时,Period 取值为 1~9。
- period_
unit str - 指定包年包月实例为包年或者包月类型。取值如下:Year:包年。Month:包月。
- private_
endpoint str - 实例私网连接地址的字符串信息。
- project_
name str - 选择实例所属的项目。若该参数留空,新建实例会默认加入 default 项目。
- read_
only_ intnode_ number - 实例的只读节点数量。
- reclaim_
time str - 实例的计划回收时间(UTC)。
- shard_
number int - 分片集群中 Shard 分片的数量。取值范围:2~32。
- shards
Sequence[Instance
Shard Args] - storage_
space_ intgb - 副本集实例的总存储空间,或分片集群中单个 Shard 分片的存储空间,单位:GiB,步长为 10。
- storage_
type str - 实例的存储类型。当前仅支持本地 SSD 盘(即 LocalSSD)存储。
- subnet_
id str - 子网 ID。
- super_
account_ strname - 数据库账号名称。当前仅支持在创建实例时设置超级管理员账号,账号名称固定为 root。
- super_
account_ strpassword - root 账号的密码。密码需同时满足如下条件:只能为大小写字母、数字及以下特殊字符 _#!@$%^&*()+=-。长度为 8~32 个字符。至少包含大写字母、小写字母、数字或特殊字符中的任意三种。不允许使用极易被破解的弱密码(如 Admin@123)。
-
Sequence[Instance
Tag Args] - updated_
time str - 实例的更新时间(UTC)。
- vpc_
id str - 私有网络 ID。
- zone_
id str - 实例所在可用区的 ID。
- allow
List List<String>Ids - 白名单 ID 列表。新建实例会被绑定到指定白名单。
- auto
Renew Boolean - 是否开启自动续费,取值范围如下:false(默认):不开启自动续费。true:开启自动续费。
- charge
Status String - 实例计费状态,取值范围如下:Normal:正常。WaitingPaid:等待支付。ChangingPayType:计费变更中。Renewing:续费中。Overdue:已到期。Owing:欠费中。Unsubscribing:退订中。
- charge
Type String - 实例计费类型,取值范围如下:PostPaid(默认):按量计费(也称后付费)。Prepaid:包年包月(也称预付费)。
- closed
Time String - 计划关停时间(UTC)。
- config
Server StringNode Spec - 分片集群中 ConfigServer 节点的规格码。默认值为 mongo.config.1c2g。
- config
Server NumberStorage Space Gb - 分片集群中 ConfigServer 的存储空间,单位:GiB。步长为 10,默认值:20。
- config
Servers List<Property Map> - config
Servers StringId - ConfigServer 的 ID。
- created
Time String - 实例创建时间(UTC)。
- db
Engine String - 数据库引擎。取值固定为 MongoDB
- db
Engine StringVersion - 数据库引擎版本,取值范围如下:MongoDB40(默认):MongoDB 4.0 版本。MongoDB42:MongoDB 4.2 版本。MongoDB44:MongoDB 4.4 版本。MongoDB50:MongoDB 5.0 版本。MongoDB60:MongoDB 6.0 版本。MongoDB70:MongoDB 7.0 版本。
- db
Engine StringVersion Str - 数据库引擎版本的字符串。
- expired
Time String - 实例到期时间(UTC)。
- instance
Count Number - 需要创建的实例数量。取值为大于等于 1 的正整数,默认值为1。
- instance
Id String - 实例 ID。
- instance
Name String - 实例名称。名称需同时满足如下要求:不能以数字、中划线(-)开头。只能包含中文、字母、数字、下划线(_)和中划线(-)。长度需为 2~64 个字符。
- instance
Status String - 实例状态。创建中:Creating。运行中:Running。白名单维护中:AllowListMaintaining。变更配置中:Scaling。重启中:Restarting。网络维护中:NetworkMaintaining。恢复中:Restoring。升级版本中:Upgrading。不可用:Unavailable。关停中:Closing。删除中:Deleting。已关停:Closed。SSL SSL变更中:SSLUpdating。主节点切换中:SwitchMastering。角色切换中:RoleChanging。迁移中:Migrating。
- instance
Type String - MongoDB 的实例类型,取值范围如下:ReplicaSet(默认):副本集。ShardedCluster:分片集群 。
- mongos List<Property Map>
- mongos
Id String - Mongos 的 ID。
- mongos
Node NumberNumber - 分片集群中 Mongos 节点的数量。取值范围:2~32。
- mongos
Node StringSpec - 分片集群中 Mongos 节点的规格码。
- node
Availability List<Property Map>Zones - node
Number Number - 节点数量,其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点数量。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示每个 Shard 分片中的节点数量。
- node
Spec String - 实例的规格码。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该参数表示副本集实例的计算节点规格。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该参数表示 Shard 节点的规格。
- nodes List<Property Map>
- period Number
- 包年包月实例的购买时长,其中:当 PeriodUnit 为 Year 时,Period 取值为 1~3。当 PeriodUnit 为 Month 时,Period 取值为 1~9。
- period
Unit String - 指定包年包月实例为包年或者包月类型。取值如下:Year:包年。Month:包月。
- private
Endpoint String - 实例私网连接地址的字符串信息。
- project
Name String - 选择实例所属的项目。若该参数留空,新建实例会默认加入 default 项目。
- read
Only NumberNode Number - 实例的只读节点数量。
- reclaim
Time String - 实例的计划回收时间(UTC)。
- shard
Number Number - 分片集群中 Shard 分片的数量。取值范围:2~32。
- shards List<Property Map>
- storage
Space NumberGb - 副本集实例的总存储空间,或分片集群中单个 Shard 分片的存储空间,单位:GiB,步长为 10。
- storage
Type String - 实例的存储类型。当前仅支持本地 SSD 盘(即 LocalSSD)存储。
- subnet
Id String - 子网 ID。
- super
Account StringName - 数据库账号名称。当前仅支持在创建实例时设置超级管理员账号,账号名称固定为 root。
- super
Account StringPassword - root 账号的密码。密码需同时满足如下条件:只能为大小写字母、数字及以下特殊字符 _#!@$%^&*()+=-。长度为 8~32 个字符。至少包含大写字母、小写字母、数字或特殊字符中的任意三种。不允许使用极易被破解的弱密码(如 Admin@123)。
- List<Property Map>
- updated
Time String - 实例的更新时间(UTC)。
- vpc
Id String - 私有网络 ID。
- zone
Id String - 实例所在可用区的 ID。
Supporting Types
InstanceConfigServer, InstanceConfigServerArgs
- Config
Server stringNode Id - ConfigServer 的节点 ID。
- Node
Role string - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。
- Node
Status string - 节点状态。
- Total
Memory doubleGb - 总内存。单位:GiB。
- Totalv
Cpu double - 总核数。
- Used
Memory doubleGb - 已用内存。单位:GiB。
- Usedv
Cpu double - 已用核数。
- Zone
Id string - 当前节点所属的可用区 ID。
- Config
Server stringNode Id - ConfigServer 的节点 ID。
- Node
Role string - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。
- Node
Status string - 节点状态。
- Total
Memory float64Gb - 总内存。单位:GiB。
- Totalv
Cpu float64 - 总核数。
- Used
Memory float64Gb - 已用内存。单位:GiB。
- Usedv
Cpu float64 - 已用核数。
- Zone
Id string - 当前节点所属的可用区 ID。
- config
Server StringNode Id - ConfigServer 的节点 ID。
- node
Role String - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。
- node
Status String - 节点状态。
- total
Memory DoubleGb - 总内存。单位:GiB。
- totalv
Cpu Double - 总核数。
- used
Memory DoubleGb - 已用内存。单位:GiB。
- usedv
Cpu Double - 已用核数。
- zone
Id String - 当前节点所属的可用区 ID。
- config
Server stringNode Id - ConfigServer 的节点 ID。
- node
Role string - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。
- node
Status string - 节点状态。
- total
Memory numberGb - 总内存。单位:GiB。
- totalv
Cpu number - 总核数。
- used
Memory numberGb - 已用内存。单位:GiB。
- usedv
Cpu number - 已用核数。
- zone
Id string - 当前节点所属的可用区 ID。
- config_
server_ strnode_ id - ConfigServer 的节点 ID。
- node_
role str - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。
- node_
status str - 节点状态。
- total_
memory_ floatgb - 总内存。单位:GiB。
- totalv_
cpu float - 总核数。
- used_
memory_ floatgb - 已用内存。单位:GiB。
- usedv_
cpu float - 已用核数。
- zone_
id str - 当前节点所属的可用区 ID。
- config
Server StringNode Id - ConfigServer 的节点 ID。
- node
Role String - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。
- node
Status String - 节点状态。
- total
Memory NumberGb - 总内存。单位:GiB。
- totalv
Cpu Number - 总核数。
- used
Memory NumberGb - 已用内存。单位:GiB。
- usedv
Cpu Number - 已用核数。
- zone
Id String - 当前节点所属的可用区 ID。
InstanceMongo, InstanceMongoArgs
- Mongos
Node stringId - Mongos 的节点 ID。
- Node
Spec string - 节点规格。
- Node
Status string - 节点状态。
- Total
Memory doubleGb - 总内存。单位:GiB。
- Totalv
Cpu double - 总核数。
- Used
Memory doubleGb - 已用内存。单位:GiB。
- Usedv
Cpu double - 已用核数。
- Zone
Id string - 当前节点所属的可用区 ID。
- Mongos
Node stringId - Mongos 的节点 ID。
- Node
Spec string - 节点规格。
- Node
Status string - 节点状态。
- Total
Memory float64Gb - 总内存。单位:GiB。
- Totalv
Cpu float64 - 总核数。
- Used
Memory float64Gb - 已用内存。单位:GiB。
- Usedv
Cpu float64 - 已用核数。
- Zone
Id string - 当前节点所属的可用区 ID。
- mongos
Node StringId - Mongos 的节点 ID。
- node
Spec String - 节点规格。
- node
Status String - 节点状态。
- total
Memory DoubleGb - 总内存。单位:GiB。
- totalv
Cpu Double - 总核数。
- used
Memory DoubleGb - 已用内存。单位:GiB。
- usedv
Cpu Double - 已用核数。
- zone
Id String - 当前节点所属的可用区 ID。
- mongos
Node stringId - Mongos 的节点 ID。
- node
Spec string - 节点规格。
- node
Status string - 节点状态。
- total
Memory numberGb - 总内存。单位:GiB。
- totalv
Cpu number - 总核数。
- used
Memory numberGb - 已用内存。单位:GiB。
- usedv
Cpu number - 已用核数。
- zone
Id string - 当前节点所属的可用区 ID。
- mongos_
node_ strid - Mongos 的节点 ID。
- node_
spec str - 节点规格。
- node_
status str - 节点状态。
- total_
memory_ floatgb - 总内存。单位:GiB。
- totalv_
cpu float - 总核数。
- used_
memory_ floatgb - 已用内存。单位:GiB。
- usedv_
cpu float - 已用核数。
- zone_
id str - 当前节点所属的可用区 ID。
- mongos
Node StringId - Mongos 的节点 ID。
- node
Spec String - 节点规格。
- node
Status String - 节点状态。
- total
Memory NumberGb - 总内存。单位:GiB。
- totalv
Cpu Number - 总核数。
- used
Memory NumberGb - 已用内存。单位:GiB。
- usedv
Cpu Number - 已用核数。
- zone
Id String - 当前节点所属的可用区 ID。
InstanceNode, InstanceNodeArgs
- Node
Delay intTime - 节点延迟时间。单位:秒。
- Node
Id string - 节点 ID。
- Node
Role string - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。ReadOnly:只读节点。
- Node
Spec string - 节点规格。
- Node
Status string - 节点状态。
- Total
Memory doubleGb - 总内存。单位:GiB。
- Total
Storage doubleGb - 该节点的总存储空间。单位:GiB。
- Totalv
Cpu double - 总核数。
- Used
Memory doubleGb - 已用内存。单位:GiB。
- Used
Storage doubleGb - 该节点已用的存储空间。单位:GiB。
- Usedv
Cpu double - 已用核数。
- Zone
Id string - 当前节点所属的可用区 ID。
- Node
Delay intTime - 节点延迟时间。单位:秒。
- Node
Id string - 节点 ID。
- Node
Role string - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。ReadOnly:只读节点。
- Node
Spec string - 节点规格。
- Node
Status string - 节点状态。
- Total
Memory float64Gb - 总内存。单位:GiB。
- Total
Storage float64Gb - 该节点的总存储空间。单位:GiB。
- Totalv
Cpu float64 - 总核数。
- Used
Memory float64Gb - 已用内存。单位:GiB。
- Used
Storage float64Gb - 该节点已用的存储空间。单位:GiB。
- Usedv
Cpu float64 - 已用核数。
- Zone
Id string - 当前节点所属的可用区 ID。
- node
Delay IntegerTime - 节点延迟时间。单位:秒。
- node
Id String - 节点 ID。
- node
Role String - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。ReadOnly:只读节点。
- node
Spec String - 节点规格。
- node
Status String - 节点状态。
- total
Memory DoubleGb - 总内存。单位:GiB。
- total
Storage DoubleGb - 该节点的总存储空间。单位:GiB。
- totalv
Cpu Double - 总核数。
- used
Memory DoubleGb - 已用内存。单位:GiB。
- used
Storage DoubleGb - 该节点已用的存储空间。单位:GiB。
- usedv
Cpu Double - 已用核数。
- zone
Id String - 当前节点所属的可用区 ID。
- node
Delay numberTime - 节点延迟时间。单位:秒。
- node
Id string - 节点 ID。
- node
Role string - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。ReadOnly:只读节点。
- node
Spec string - 节点规格。
- node
Status string - 节点状态。
- total
Memory numberGb - 总内存。单位:GiB。
- total
Storage numberGb - 该节点的总存储空间。单位:GiB。
- totalv
Cpu number - 总核数。
- used
Memory numberGb - 已用内存。单位:GiB。
- used
Storage numberGb - 该节点已用的存储空间。单位:GiB。
- usedv
Cpu number - 已用核数。
- zone
Id string - 当前节点所属的可用区 ID。
- node_
delay_ inttime - 节点延迟时间。单位:秒。
- node_
id str - 节点 ID。
- node_
role str - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。ReadOnly:只读节点。
- node_
spec str - 节点规格。
- node_
status str - 节点状态。
- total_
memory_ floatgb - 总内存。单位:GiB。
- total_
storage_ floatgb - 该节点的总存储空间。单位:GiB。
- totalv_
cpu float - 总核数。
- used_
memory_ floatgb - 已用内存。单位:GiB。
- used_
storage_ floatgb - 该节点已用的存储空间。单位:GiB。
- usedv_
cpu float - 已用核数。
- zone_
id str - 当前节点所属的可用区 ID。
- node
Delay NumberTime - 节点延迟时间。单位:秒。
- node
Id String - 节点 ID。
- node
Role String - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。ReadOnly:只读节点。
- node
Spec String - 节点规格。
- node
Status String - 节点状态。
- total
Memory NumberGb - 总内存。单位:GiB。
- total
Storage NumberGb - 该节点的总存储空间。单位:GiB。
- totalv
Cpu Number - 总核数。
- used
Memory NumberGb - 已用内存。单位:GiB。
- used
Storage NumberGb - 该节点已用的存储空间。单位:GiB。
- usedv
Cpu Number - 已用核数。
- zone
Id String - 当前节点所属的可用区 ID。
InstanceNodeAvailabilityZone, InstanceNodeAvailabilityZoneArgs
- Node
Number int - 当前可用区中需要添加的只读节点数量。当前仅副本集实例和分片集群实例中 Shard 分片支持添加只读节点。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该值表示单个副本集实例中的只读节点总数量。每个副本集实例最多支持添加 5 个只读节点。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该值表示每个 Shard 分片中的只读节点数量。每个 Shard 分片最多添加 5 个只读节点。
- Zone
Id string - 只读节点所在的可用区。
- Node
Number int - 当前可用区中需要添加的只读节点数量。当前仅副本集实例和分片集群实例中 Shard 分片支持添加只读节点。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该值表示单个副本集实例中的只读节点总数量。每个副本集实例最多支持添加 5 个只读节点。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该值表示每个 Shard 分片中的只读节点数量。每个 Shard 分片最多添加 5 个只读节点。
- Zone
Id string - 只读节点所在的可用区。
- node
Number Integer - 当前可用区中需要添加的只读节点数量。当前仅副本集实例和分片集群实例中 Shard 分片支持添加只读节点。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该值表示单个副本集实例中的只读节点总数量。每个副本集实例最多支持添加 5 个只读节点。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该值表示每个 Shard 分片中的只读节点数量。每个 Shard 分片最多添加 5 个只读节点。
- zone
Id String - 只读节点所在的可用区。
- node
Number number - 当前可用区中需要添加的只读节点数量。当前仅副本集实例和分片集群实例中 Shard 分片支持添加只读节点。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该值表示单个副本集实例中的只读节点总数量。每个副本集实例最多支持添加 5 个只读节点。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该值表示每个 Shard 分片中的只读节点数量。每个 Shard 分片最多添加 5 个只读节点。
- zone
Id string - 只读节点所在的可用区。
- node_
number int - 当前可用区中需要添加的只读节点数量。当前仅副本集实例和分片集群实例中 Shard 分片支持添加只读节点。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该值表示单个副本集实例中的只读节点总数量。每个副本集实例最多支持添加 5 个只读节点。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该值表示每个 Shard 分片中的只读节点数量。每个 Shard 分片最多添加 5 个只读节点。
- zone_
id str - 只读节点所在的可用区。
- node
Number Number - 当前可用区中需要添加的只读节点数量。当前仅副本集实例和分片集群实例中 Shard 分片支持添加只读节点。其中:当实例类型为副本集(即 InstanceType 取值为 ReplicaSet)时,该值表示单个副本集实例中的只读节点总数量。每个副本集实例最多支持添加 5 个只读节点。当实例类型为分片集群(即 InstanceType 取值为 ShardedCluster)时,该值表示每个 Shard 分片中的只读节点数量。每个 Shard 分片最多添加 5 个只读节点。
- zone
Id String - 只读节点所在的可用区。
InstanceShard, InstanceShardArgs
- Nodes
List<Volcengine.
Instance Shard Node> - string
- Shard 节点的 ID。
- Nodes
[]Instance
Shard Node - string
- Shard 节点的 ID。
- nodes
List<Instance
Shard Node> - String
- Shard 节点的 ID。
- nodes
Instance
Shard Node[] - string
- Shard 节点的 ID。
- nodes
Sequence[Instance
Shard Node] - str
- Shard 节点的 ID。
- nodes List<Property Map>
- String
- Shard 节点的 ID。
InstanceShardNode, InstanceShardNodeArgs
- Node
Delay intTime - 节点延迟时间。单位:秒。
- Node
Id string - 节点 ID。
- Node
Role string - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。ReadOnly:只读节点。
- Node
Spec string - 节点规格。
- Node
Status string - 节点状态。
- Total
Memory doubleGb - 总内存。单位:GiB。
- Total
Storage doubleGb - 该节点的总存储空间。单位:GiB。
- Totalv
Cpu double - 总核数。
- Used
Memory doubleGb - 已用内存。单位:GiB。
- Used
Storage doubleGb - 该节点已用的存储空间。单位:GiB。
- Usedv
Cpu double - 已用核数。
- Zone
Id string - 当前节点所属的可用区 ID。
- Node
Delay intTime - 节点延迟时间。单位:秒。
- Node
Id string - 节点 ID。
- Node
Role string - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。ReadOnly:只读节点。
- Node
Spec string - 节点规格。
- Node
Status string - 节点状态。
- Total
Memory float64Gb - 总内存。单位:GiB。
- Total
Storage float64Gb - 该节点的总存储空间。单位:GiB。
- Totalv
Cpu float64 - 总核数。
- Used
Memory float64Gb - 已用内存。单位:GiB。
- Used
Storage float64Gb - 该节点已用的存储空间。单位:GiB。
- Usedv
Cpu float64 - 已用核数。
- Zone
Id string - 当前节点所属的可用区 ID。
- node
Delay IntegerTime - 节点延迟时间。单位:秒。
- node
Id String - 节点 ID。
- node
Role String - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。ReadOnly:只读节点。
- node
Spec String - 节点规格。
- node
Status String - 节点状态。
- total
Memory DoubleGb - 总内存。单位:GiB。
- total
Storage DoubleGb - 该节点的总存储空间。单位:GiB。
- totalv
Cpu Double - 总核数。
- used
Memory DoubleGb - 已用内存。单位:GiB。
- used
Storage DoubleGb - 该节点已用的存储空间。单位:GiB。
- usedv
Cpu Double - 已用核数。
- zone
Id String - 当前节点所属的可用区 ID。
- node
Delay numberTime - 节点延迟时间。单位:秒。
- node
Id string - 节点 ID。
- node
Role string - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。ReadOnly:只读节点。
- node
Spec string - 节点规格。
- node
Status string - 节点状态。
- total
Memory numberGb - 总内存。单位:GiB。
- total
Storage numberGb - 该节点的总存储空间。单位:GiB。
- totalv
Cpu number - 总核数。
- used
Memory numberGb - 已用内存。单位:GiB。
- used
Storage numberGb - 该节点已用的存储空间。单位:GiB。
- usedv
Cpu number - 已用核数。
- zone
Id string - 当前节点所属的可用区 ID。
- node_
delay_ inttime - 节点延迟时间。单位:秒。
- node_
id str - 节点 ID。
- node_
role str - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。ReadOnly:只读节点。
- node_
spec str - 节点规格。
- node_
status str - 节点状态。
- total_
memory_ floatgb - 总内存。单位:GiB。
- total_
storage_ floatgb - 该节点的总存储空间。单位:GiB。
- totalv_
cpu float - 总核数。
- used_
memory_ floatgb - 已用内存。单位:GiB。
- used_
storage_ floatgb - 该节点已用的存储空间。单位:GiB。
- usedv_
cpu float - 已用核数。
- zone_
id str - 当前节点所属的可用区 ID。
- node
Delay NumberTime - 节点延迟时间。单位:秒。
- node
Id String - 节点 ID。
- node
Role String - 节点角色,取值范围如下:Primary:主节点。Secondary:从节点。Hidden:隐藏节点。ReadOnly:只读节点。
- node
Spec String - 节点规格。
- node
Status String - 节点状态。
- total
Memory NumberGb - 总内存。单位:GiB。
- total
Storage NumberGb - 该节点的总存储空间。单位:GiB。
- totalv
Cpu Number - 总核数。
- used
Memory NumberGb - 已用内存。单位:GiB。
- used
Storage NumberGb - 该节点已用的存储空间。单位:GiB。
- usedv
Cpu Number - 已用核数。
- zone
Id String - 当前节点所属的可用区 ID。
InstanceTag, InstanceTagArgs
Import
$ pulumi import volcenginecc:mongodb/instance:Instance example "instance_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
