published on Tuesday, Oct 27, 2026 by ucloud
published on Tuesday, Oct 27, 2026 by ucloud
Provides a UMongoDB sharded cluster. Shard count and node count replace the cluster. Disk space and machine type resize it in place.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";
const example = new ucloud.UmongodbShardedCluster("example", {
availabilityZone: "cn-bj2-05",
name: "tf-umongodb-sc",
dbVersion: "MongoDB 4.2",
adminPassword: adminPassword,
diskSpace: 20,
machineTypeId: "o.mongo2m.medium",
nodeCount: 3,
shardCount: 2,
mongosNodeCount: 2,
vpcId: defaultUcloudVpc.id,
subnetId: _default.id,
});
import pulumi
import pulumi_ucloud as ucloud
example = ucloud.UmongodbShardedCluster("example",
availability_zone="cn-bj2-05",
name="tf-umongodb-sc",
db_version="MongoDB 4.2",
admin_password=admin_password,
disk_space=20,
machine_type_id="o.mongo2m.medium",
node_count=3,
shard_count=2,
mongos_node_count=2,
vpc_id=default_ucloud_vpc["id"],
subnet_id=default["id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ucloud.NewUmongodbShardedCluster(ctx, "example", &ucloud.UmongodbShardedClusterArgs{
AvailabilityZone: pulumi.String("cn-bj2-05"),
Name: pulumi.String("tf-umongodb-sc"),
DbVersion: pulumi.String("MongoDB 4.2"),
AdminPassword: pulumi.Any(adminPassword),
DiskSpace: pulumi.Float64(20),
MachineTypeId: pulumi.String("o.mongo2m.medium"),
NodeCount: pulumi.Float64(3),
ShardCount: pulumi.Float64(2),
MongosNodeCount: pulumi.Float64(2),
VpcId: pulumi.Any(defaultUcloudVpc.Id),
SubnetId: pulumi.Any(_default.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;
return await Deployment.RunAsync(() =>
{
var example = new Ucloud.UmongodbShardedCluster("example", new()
{
AvailabilityZone = "cn-bj2-05",
Name = "tf-umongodb-sc",
DbVersion = "MongoDB 4.2",
AdminPassword = adminPassword,
DiskSpace = 20,
MachineTypeId = "o.mongo2m.medium",
NodeCount = 3,
ShardCount = 2,
MongosNodeCount = 2,
VpcId = defaultUcloudVpc.Id,
SubnetId = @default.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.UmongodbShardedCluster;
import com.pulumi.ucloud.UmongodbShardedClusterArgs;
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 UmongodbShardedCluster("example", UmongodbShardedClusterArgs.builder()
.availabilityZone("cn-bj2-05")
.name("tf-umongodb-sc")
.dbVersion("MongoDB 4.2")
.adminPassword(adminPassword)
.diskSpace(20.0)
.machineTypeId("o.mongo2m.medium")
.nodeCount(3.0)
.shardCount(2.0)
.mongosNodeCount(2.0)
.vpcId(defaultUcloudVpc.id())
.subnetId(default_.id())
.build());
}
}
resources:
example:
type: ucloud:UmongodbShardedCluster
properties:
availabilityZone: cn-bj2-05
name: tf-umongodb-sc
dbVersion: MongoDB 4.2
adminPassword: ${adminPassword}
diskSpace: 20
machineTypeId: o.mongo2m.medium
nodeCount: 3
shardCount: 2
mongosNodeCount: 2
vpcId: ${defaultUcloudVpc.id}
subnetId: ${default.id}
Example coming soon!
Create UmongodbShardedCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UmongodbShardedCluster(name: string, args: UmongodbShardedClusterArgs, opts?: CustomResourceOptions);@overload
def UmongodbShardedCluster(resource_name: str,
args: UmongodbShardedClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UmongodbShardedCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
mongos_node_count: Optional[float] = None,
machine_type_id: Optional[str] = None,
shard_count: Optional[float] = None,
availability_zone: Optional[str] = None,
admin_password: Optional[str] = None,
node_count: Optional[float] = None,
db_version: Optional[str] = None,
disk_space: Optional[float] = None,
tag: Optional[str] = None,
sec_groups: Optional[Sequence[UmongodbShardedClusterSecGroupArgs]] = None,
labels: Optional[Sequence[UmongodbShardedClusterLabelArgs]] = None,
mongos_machine_type_id: Optional[str] = None,
auto_backup_time: Optional[str] = None,
charge_type: Optional[str] = None,
backup_disabled: Optional[bool] = None,
quantity: Optional[float] = None,
restart_trigger: Optional[str] = None,
listen_port: Optional[float] = None,
auto_backup_week: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[UmongodbShardedClusterTimeoutsArgs] = None,
umongodb_sharded_cluster_id: Optional[str] = None,
vpc_id: Optional[str] = None)func NewUmongodbShardedCluster(ctx *Context, name string, args UmongodbShardedClusterArgs, opts ...ResourceOption) (*UmongodbShardedCluster, error)public UmongodbShardedCluster(string name, UmongodbShardedClusterArgs args, CustomResourceOptions? opts = null)
public UmongodbShardedCluster(String name, UmongodbShardedClusterArgs args)
public UmongodbShardedCluster(String name, UmongodbShardedClusterArgs args, CustomResourceOptions options)
type: ucloud:UmongodbShardedCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "ucloud_umongodb_sharded_cluster" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args UmongodbShardedClusterArgs
- 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 UmongodbShardedClusterArgs
- 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 UmongodbShardedClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UmongodbShardedClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UmongodbShardedClusterArgs
- 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 umongodbShardedClusterResource = new Ucloud.UmongodbShardedCluster("umongodbShardedClusterResource", new()
{
MongosNodeCount = 0.0,
MachineTypeId = "string",
ShardCount = 0.0,
AvailabilityZone = "string",
AdminPassword = "string",
NodeCount = 0.0,
DbVersion = "string",
DiskSpace = 0.0,
Tag = "string",
SecGroups = new[]
{
new Ucloud.Inputs.UmongodbShardedClusterSecGroupArgs
{
Id = "string",
Priority = 0.0,
},
},
Labels = new[]
{
new Ucloud.Inputs.UmongodbShardedClusterLabelArgs
{
Key = "string",
Value = "string",
},
},
MongosMachineTypeId = "string",
AutoBackupTime = "string",
ChargeType = "string",
BackupDisabled = false,
Quantity = 0.0,
RestartTrigger = "string",
ListenPort = 0.0,
AutoBackupWeek = "string",
Status = "string",
SubnetId = "string",
Name = "string",
Timeouts = new Ucloud.Inputs.UmongodbShardedClusterTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
UmongodbShardedClusterId = "string",
VpcId = "string",
});
example, err := ucloud.NewUmongodbShardedCluster(ctx, "umongodbShardedClusterResource", &ucloud.UmongodbShardedClusterArgs{
MongosNodeCount: pulumi.Float64(0),
MachineTypeId: pulumi.String("string"),
ShardCount: pulumi.Float64(0),
AvailabilityZone: pulumi.String("string"),
AdminPassword: pulumi.String("string"),
NodeCount: pulumi.Float64(0),
DbVersion: pulumi.String("string"),
DiskSpace: pulumi.Float64(0),
Tag: pulumi.String("string"),
SecGroups: ucloud.UmongodbShardedClusterSecGroupArray{
&ucloud.UmongodbShardedClusterSecGroupArgs{
Id: pulumi.String("string"),
Priority: pulumi.Float64(0),
},
},
Labels: ucloud.UmongodbShardedClusterLabelArray{
&ucloud.UmongodbShardedClusterLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MongosMachineTypeId: pulumi.String("string"),
AutoBackupTime: pulumi.String("string"),
ChargeType: pulumi.String("string"),
BackupDisabled: pulumi.Bool(false),
Quantity: pulumi.Float64(0),
RestartTrigger: pulumi.String("string"),
ListenPort: pulumi.Float64(0),
AutoBackupWeek: pulumi.String("string"),
Status: pulumi.String("string"),
SubnetId: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &ucloud.UmongodbShardedClusterTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
UmongodbShardedClusterId: pulumi.String("string"),
VpcId: pulumi.String("string"),
})
resource "ucloud_umongodb_sharded_cluster" "umongodbShardedClusterResource" {
lifecycle {
create_before_destroy = true
}
mongos_node_count = 0
machine_type_id = "string"
shard_count = 0
availability_zone = "string"
admin_password = "string"
node_count = 0
db_version = "string"
disk_space = 0
tag = "string"
sec_groups {
id = "string"
priority = 0
}
labels {
key = "string"
value = "string"
}
mongos_machine_type_id = "string"
auto_backup_time = "string"
charge_type = "string"
backup_disabled = false
quantity = 0
restart_trigger = "string"
listen_port = 0
auto_backup_week = "string"
status = "string"
subnet_id = "string"
name = "string"
_ {
timeouts = {
create = "string"
delete = "string"
update = "string"
}
}
umongodb_sharded_cluster_id = "string"
vpc_id = "string"
}
var umongodbShardedClusterResource = new UmongodbShardedCluster("umongodbShardedClusterResource", UmongodbShardedClusterArgs.builder()
.mongosNodeCount(0.0)
.machineTypeId("string")
.shardCount(0.0)
.availabilityZone("string")
.adminPassword("string")
.nodeCount(0.0)
.dbVersion("string")
.diskSpace(0.0)
.tag("string")
.secGroups(UmongodbShardedClusterSecGroupArgs.builder()
.id("string")
.priority(0.0)
.build())
.labels(UmongodbShardedClusterLabelArgs.builder()
.key("string")
.value("string")
.build())
.mongosMachineTypeId("string")
.autoBackupTime("string")
.chargeType("string")
.backupDisabled(false)
.quantity(0.0)
.restartTrigger("string")
.listenPort(0.0)
.autoBackupWeek("string")
.status("string")
.subnetId("string")
.name("string")
.timeouts(UmongodbShardedClusterTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.umongodbShardedClusterId("string")
.vpcId("string")
.build());
umongodb_sharded_cluster_resource = ucloud.UmongodbShardedCluster("umongodbShardedClusterResource",
mongos_node_count=float(0),
machine_type_id="string",
shard_count=float(0),
availability_zone="string",
admin_password="string",
node_count=float(0),
db_version="string",
disk_space=float(0),
tag="string",
sec_groups=[{
"id": "string",
"priority": float(0),
}],
labels=[{
"key": "string",
"value": "string",
}],
mongos_machine_type_id="string",
auto_backup_time="string",
charge_type="string",
backup_disabled=False,
quantity=float(0),
restart_trigger="string",
listen_port=float(0),
auto_backup_week="string",
status="string",
subnet_id="string",
name="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
umongodb_sharded_cluster_id="string",
vpc_id="string")
const umongodbShardedClusterResource = new ucloud.UmongodbShardedCluster("umongodbShardedClusterResource", {
mongosNodeCount: 0,
machineTypeId: "string",
shardCount: 0,
availabilityZone: "string",
adminPassword: "string",
nodeCount: 0,
dbVersion: "string",
diskSpace: 0,
tag: "string",
secGroups: [{
id: "string",
priority: 0,
}],
labels: [{
key: "string",
value: "string",
}],
mongosMachineTypeId: "string",
autoBackupTime: "string",
chargeType: "string",
backupDisabled: false,
quantity: 0,
restartTrigger: "string",
listenPort: 0,
autoBackupWeek: "string",
status: "string",
subnetId: "string",
name: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
umongodbShardedClusterId: "string",
vpcId: "string",
});
type: ucloud:UmongodbShardedCluster
properties:
adminPassword: string
autoBackupTime: string
autoBackupWeek: string
availabilityZone: string
backupDisabled: false
chargeType: string
dbVersion: string
diskSpace: 0
labels:
- key: string
value: string
listenPort: 0
machineTypeId: string
mongosMachineTypeId: string
mongosNodeCount: 0
name: string
nodeCount: 0
quantity: 0
restartTrigger: string
secGroups:
- id: string
priority: 0
shardCount: 0
status: string
subnetId: string
tag: string
timeouts:
create: string
delete: string
update: string
umongodbShardedClusterId: string
vpcId: string
UmongodbShardedCluster 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 UmongodbShardedCluster resource accepts the following input properties:
- Admin
Password string - Availability
Zone string - Db
Version string - Disk
Space double - Machine
Type stringId - Mongos
Node doubleCount - Number of mongos nodes. From 2 to 5.
- Node
Count double - Node count in each shard. Only 3, 5, or 7.
- double
- Number of shards. From 2 to 9.
- Auto
Backup stringTime - Auto
Backup stringWeek - Backup
Disabled bool - Charge
Type string - Labels
List<Umongodb
Sharded Cluster Label> - Listen
Port double - Mongos
Machine stringType Id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - Name string
- Quantity double
- Restart
Trigger string - Sec
Groups List<UmongodbSharded Cluster Sec Group> - Status string
- Subnet
Id string - Tag string
- Timeouts
Umongodb
Sharded Cluster Timeouts - Umongodb
Sharded stringCluster Id - Vpc
Id string
- Admin
Password string - Availability
Zone string - Db
Version string - Disk
Space float64 - Machine
Type stringId - Mongos
Node float64Count - Number of mongos nodes. From 2 to 5.
- Node
Count float64 - Node count in each shard. Only 3, 5, or 7.
- float64
- Number of shards. From 2 to 9.
- Auto
Backup stringTime - Auto
Backup stringWeek - Backup
Disabled bool - Charge
Type string - Labels
[]Umongodb
Sharded Cluster Label Args - Listen
Port float64 - Mongos
Machine stringType Id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - Name string
- Quantity float64
- Restart
Trigger string - Sec
Groups []UmongodbSharded Cluster Sec Group Args - Status string
- Subnet
Id string - Tag string
- Timeouts
Umongodb
Sharded Cluster Timeouts Args - Umongodb
Sharded stringCluster Id - Vpc
Id string
- admin_
password string - availability_
zone string - db_
version string - disk_
space number - machine_
type_ stringid - mongos_
node_ numbercount - Number of mongos nodes. From 2 to 5.
- node_
count number - Node count in each shard. Only 3, 5, or 7.
- number
- Number of shards. From 2 to 9.
- auto_
backup_ stringtime - auto_
backup_ stringweek - backup_
disabled bool - charge_
type string - labels list(object)
- listen_
port number - mongos_
machine_ stringtype_ id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - name string
- quantity number
- restart_
trigger string - sec_
groups list(object) - status string
- subnet_
id string - tag string
- timeouts object
- umongodb_
sharded_ stringcluster_ id - vpc_
id string
- admin
Password String - availability
Zone String - db
Version String - disk
Space Double - machine
Type StringId - mongos
Node DoubleCount - Number of mongos nodes. From 2 to 5.
- node
Count Double - Node count in each shard. Only 3, 5, or 7.
- Double
- Number of shards. From 2 to 9.
- auto
Backup StringTime - auto
Backup StringWeek - backup
Disabled Boolean - charge
Type String - labels
List<Umongodb
Sharded Cluster Label> - listen
Port Double - mongos
Machine StringType Id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - name String
- quantity Double
- restart
Trigger String - sec
Groups List<UmongodbSharded Cluster Sec Group> - status String
- subnet
Id String - tag String
- timeouts
Umongodb
Sharded Cluster Timeouts - umongodb
Sharded StringCluster Id - vpc
Id String
- admin
Password string - availability
Zone string - db
Version string - disk
Space number - machine
Type stringId - mongos
Node numberCount - Number of mongos nodes. From 2 to 5.
- node
Count number - Node count in each shard. Only 3, 5, or 7.
- number
- Number of shards. From 2 to 9.
- auto
Backup stringTime - auto
Backup stringWeek - backup
Disabled boolean - charge
Type string - labels
Umongodb
Sharded Cluster Label[] - listen
Port number - mongos
Machine stringType Id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - name string
- quantity number
- restart
Trigger string - sec
Groups UmongodbSharded Cluster Sec Group[] - status string
- subnet
Id string - tag string
- timeouts
Umongodb
Sharded Cluster Timeouts - umongodb
Sharded stringCluster Id - vpc
Id string
- admin_
password str - availability_
zone str - db_
version str - disk_
space float - machine_
type_ strid - mongos_
node_ floatcount - Number of mongos nodes. From 2 to 5.
- node_
count float - Node count in each shard. Only 3, 5, or 7.
- float
- Number of shards. From 2 to 9.
- auto_
backup_ strtime - auto_
backup_ strweek - backup_
disabled bool - charge_
type str - labels
Sequence[Umongodb
Sharded Cluster Label Args] - listen_
port float - mongos_
machine_ strtype_ id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - name str
- quantity float
- restart_
trigger str - sec_
groups Sequence[UmongodbSharded Cluster Sec Group Args] - status str
- subnet_
id str - tag str
- timeouts
Umongodb
Sharded Cluster Timeouts Args - umongodb_
sharded_ strcluster_ id - vpc_
id str
- admin
Password String - availability
Zone String - db
Version String - disk
Space Number - machine
Type StringId - mongos
Node NumberCount - Number of mongos nodes. From 2 to 5.
- node
Count Number - Node count in each shard. Only 3, 5, or 7.
- Number
- Number of shards. From 2 to 9.
- auto
Backup StringTime - auto
Backup StringWeek - backup
Disabled Boolean - charge
Type String - labels List<Property Map>
- listen
Port Number - mongos
Machine StringType Id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - name String
- quantity Number
- restart
Trigger String - sec
Groups List<Property Map> - status String
- subnet
Id String - tag String
- timeouts Property Map
- umongodb
Sharded StringCluster Id - vpc
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the UmongodbShardedCluster resource produces the following output properties:
- Connect
Url string - Create
Time double - Id string
- The provider-assigned unique ID for this managed resource.
- State string
- Connect
Url string - Create
Time float64 - Id string
- The provider-assigned unique ID for this managed resource.
- State string
- connect_
url string - create_
time number - id string
- The provider-assigned unique ID for this managed resource.
- state string
- connect
Url String - create
Time Double - id String
- The provider-assigned unique ID for this managed resource.
- state String
- connect
Url string - create
Time number - id string
- The provider-assigned unique ID for this managed resource.
- state string
- connect_
url str - create_
time float - id str
- The provider-assigned unique ID for this managed resource.
- state str
- connect
Url String - create
Time Number - id String
- The provider-assigned unique ID for this managed resource.
- state String
Look up Existing UmongodbShardedCluster Resource
Get an existing UmongodbShardedCluster 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?: UmongodbShardedClusterState, opts?: CustomResourceOptions): UmongodbShardedCluster@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
admin_password: Optional[str] = None,
auto_backup_time: Optional[str] = None,
auto_backup_week: Optional[str] = None,
availability_zone: Optional[str] = None,
backup_disabled: Optional[bool] = None,
charge_type: Optional[str] = None,
connect_url: Optional[str] = None,
create_time: Optional[float] = None,
db_version: Optional[str] = None,
disk_space: Optional[float] = None,
labels: Optional[Sequence[UmongodbShardedClusterLabelArgs]] = None,
listen_port: Optional[float] = None,
machine_type_id: Optional[str] = None,
mongos_machine_type_id: Optional[str] = None,
mongos_node_count: Optional[float] = None,
name: Optional[str] = None,
node_count: Optional[float] = None,
quantity: Optional[float] = None,
restart_trigger: Optional[str] = None,
sec_groups: Optional[Sequence[UmongodbShardedClusterSecGroupArgs]] = None,
shard_count: Optional[float] = None,
state: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tag: Optional[str] = None,
timeouts: Optional[UmongodbShardedClusterTimeoutsArgs] = None,
umongodb_sharded_cluster_id: Optional[str] = None,
vpc_id: Optional[str] = None) -> UmongodbShardedClusterfunc GetUmongodbShardedCluster(ctx *Context, name string, id IDInput, state *UmongodbShardedClusterState, opts ...ResourceOption) (*UmongodbShardedCluster, error)public static UmongodbShardedCluster Get(string name, Input<string> id, UmongodbShardedClusterState? state, CustomResourceOptions? opts = null)public static UmongodbShardedCluster get(String name, Output<String> id, UmongodbShardedClusterState state, CustomResourceOptions options)resources: _: type: ucloud:UmongodbShardedCluster get: id: ${id}import {
to = ucloud_umongodb_sharded_cluster.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.
- Admin
Password string - Auto
Backup stringTime - Auto
Backup stringWeek - Availability
Zone string - Backup
Disabled bool - Charge
Type string - Connect
Url string - Create
Time double - Db
Version string - Disk
Space double - Labels
List<Umongodb
Sharded Cluster Label> - Listen
Port double - Machine
Type stringId - Mongos
Machine stringType Id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - Mongos
Node doubleCount - Number of mongos nodes. From 2 to 5.
- Name string
- Node
Count double - Node count in each shard. Only 3, 5, or 7.
- Quantity double
- Restart
Trigger string - Sec
Groups List<UmongodbSharded Cluster Sec Group> - Shard
Count double - Number of shards. From 2 to 9.
- State string
- Status string
- Subnet
Id string - Tag string
- Timeouts
Umongodb
Sharded Cluster Timeouts - Umongodb
Sharded stringCluster Id - Vpc
Id string
- Admin
Password string - Auto
Backup stringTime - Auto
Backup stringWeek - Availability
Zone string - Backup
Disabled bool - Charge
Type string - Connect
Url string - Create
Time float64 - Db
Version string - Disk
Space float64 - Labels
[]Umongodb
Sharded Cluster Label Args - Listen
Port float64 - Machine
Type stringId - Mongos
Machine stringType Id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - Mongos
Node float64Count - Number of mongos nodes. From 2 to 5.
- Name string
- Node
Count float64 - Node count in each shard. Only 3, 5, or 7.
- Quantity float64
- Restart
Trigger string - Sec
Groups []UmongodbSharded Cluster Sec Group Args - Shard
Count float64 - Number of shards. From 2 to 9.
- State string
- Status string
- Subnet
Id string - Tag string
- Timeouts
Umongodb
Sharded Cluster Timeouts Args - Umongodb
Sharded stringCluster Id - Vpc
Id string
- admin_
password string - auto_
backup_ stringtime - auto_
backup_ stringweek - availability_
zone string - backup_
disabled bool - charge_
type string - connect_
url string - create_
time number - db_
version string - disk_
space number - labels list(object)
- listen_
port number - machine_
type_ stringid - mongos_
machine_ stringtype_ id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - mongos_
node_ numbercount - Number of mongos nodes. From 2 to 5.
- name string
- node_
count number - Node count in each shard. Only 3, 5, or 7.
- quantity number
- restart_
trigger string - sec_
groups list(object) - shard_
count number - Number of shards. From 2 to 9.
- state string
- status string
- subnet_
id string - tag string
- timeouts object
- umongodb_
sharded_ stringcluster_ id - vpc_
id string
- admin
Password String - auto
Backup StringTime - auto
Backup StringWeek - availability
Zone String - backup
Disabled Boolean - charge
Type String - connect
Url String - create
Time Double - db
Version String - disk
Space Double - labels
List<Umongodb
Sharded Cluster Label> - listen
Port Double - machine
Type StringId - mongos
Machine StringType Id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - mongos
Node DoubleCount - Number of mongos nodes. From 2 to 5.
- name String
- node
Count Double - Node count in each shard. Only 3, 5, or 7.
- quantity Double
- restart
Trigger String - sec
Groups List<UmongodbSharded Cluster Sec Group> - shard
Count Double - Number of shards. From 2 to 9.
- state String
- status String
- subnet
Id String - tag String
- timeouts
Umongodb
Sharded Cluster Timeouts - umongodb
Sharded StringCluster Id - vpc
Id String
- admin
Password string - auto
Backup stringTime - auto
Backup stringWeek - availability
Zone string - backup
Disabled boolean - charge
Type string - connect
Url string - create
Time number - db
Version string - disk
Space number - labels
Umongodb
Sharded Cluster Label[] - listen
Port number - machine
Type stringId - mongos
Machine stringType Id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - mongos
Node numberCount - Number of mongos nodes. From 2 to 5.
- name string
- node
Count number - Node count in each shard. Only 3, 5, or 7.
- quantity number
- restart
Trigger string - sec
Groups UmongodbSharded Cluster Sec Group[] - shard
Count number - Number of shards. From 2 to 9.
- state string
- status string
- subnet
Id string - tag string
- timeouts
Umongodb
Sharded Cluster Timeouts - umongodb
Sharded stringCluster Id - vpc
Id string
- admin_
password str - auto_
backup_ strtime - auto_
backup_ strweek - availability_
zone str - backup_
disabled bool - charge_
type str - connect_
url str - create_
time float - db_
version str - disk_
space float - labels
Sequence[Umongodb
Sharded Cluster Label Args] - listen_
port float - machine_
type_ strid - mongos_
machine_ strtype_ id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - mongos_
node_ floatcount - Number of mongos nodes. From 2 to 5.
- name str
- node_
count float - Node count in each shard. Only 3, 5, or 7.
- quantity float
- restart_
trigger str - sec_
groups Sequence[UmongodbSharded Cluster Sec Group Args] - shard_
count float - Number of shards. From 2 to 9.
- state str
- status str
- subnet_
id str - tag str
- timeouts
Umongodb
Sharded Cluster Timeouts Args - umongodb_
sharded_ strcluster_ id - vpc_
id str
- admin
Password String - auto
Backup StringTime - auto
Backup StringWeek - availability
Zone String - backup
Disabled Boolean - charge
Type String - connect
Url String - create
Time Number - db
Version String - disk
Space Number - labels List<Property Map>
- listen
Port Number - machine
Type StringId - mongos
Machine StringType Id - Mongos machine type. Changes call
ResizeUMongoDBInstance. - mongos
Node NumberCount - Number of mongos nodes. From 2 to 5.
- name String
- node
Count Number - Node count in each shard. Only 3, 5, or 7.
- quantity Number
- restart
Trigger String - sec
Groups List<Property Map> - shard
Count Number - Number of shards. From 2 to 9.
- state String
- status String
- subnet
Id String - tag String
- timeouts Property Map
- umongodb
Sharded StringCluster Id - vpc
Id String
Supporting Types
UmongodbShardedClusterLabel, UmongodbShardedClusterLabelArgs
UmongodbShardedClusterSecGroup, UmongodbShardedClusterSecGroupArgs
UmongodbShardedClusterTimeouts, UmongodbShardedClusterTimeoutsArgs
Import
$ pulumi import ucloud:index/umongodbShardedCluster:UmongodbShardedCluster example umongodb-sc-abc
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloudTerraform Provider.
published on Tuesday, Oct 27, 2026 by ucloud