1. Registry
  2. Packages
  3. Ucloud Provider
  4. API Docs
  5. UmongodbReplicaset
Viewing docs for ucloud 1.49.0
published on Tuesday, Oct 27, 2026 by ucloud
ucloud
Viewing docs for ucloud 1.49.0
published on Tuesday, Oct 27, 2026 by ucloud

    Provides a UMongoDB replica set. Node count changes replace the cluster. Disk space and machine type resize the cluster in place.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    const example = new ucloud.UmongodbReplicaset("example", {
        availabilityZone: "cn-bj2-05",
        name: "tf-umongodb-rs",
        dbVersion: "MongoDB 4.2",
        adminPassword: adminPassword,
        diskSpace: 20,
        machineTypeId: "o.mongo2m.medium",
        nodeCount: 3,
        vpcId: defaultUcloudVpc.id,
        subnetId: _default.id,
    });
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    example = ucloud.UmongodbReplicaset("example",
        availability_zone="cn-bj2-05",
        name="tf-umongodb-rs",
        db_version="MongoDB 4.2",
        admin_password=admin_password,
        disk_space=20,
        machine_type_id="o.mongo2m.medium",
        node_count=3,
        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.NewUmongodbReplicaset(ctx, "example", &ucloud.UmongodbReplicasetArgs{
    			AvailabilityZone: pulumi.String("cn-bj2-05"),
    			Name:             pulumi.String("tf-umongodb-rs"),
    			DbVersion:        pulumi.String("MongoDB 4.2"),
    			AdminPassword:    pulumi.Any(adminPassword),
    			DiskSpace:        pulumi.Float64(20),
    			MachineTypeId:    pulumi.String("o.mongo2m.medium"),
    			NodeCount:        pulumi.Float64(3),
    			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.UmongodbReplicaset("example", new()
        {
            AvailabilityZone = "cn-bj2-05",
            Name = "tf-umongodb-rs",
            DbVersion = "MongoDB 4.2",
            AdminPassword = adminPassword,
            DiskSpace = 20,
            MachineTypeId = "o.mongo2m.medium",
            NodeCount = 3,
            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.UmongodbReplicaset;
    import com.pulumi.ucloud.UmongodbReplicasetArgs;
    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 UmongodbReplicaset("example", UmongodbReplicasetArgs.builder()
                .availabilityZone("cn-bj2-05")
                .name("tf-umongodb-rs")
                .dbVersion("MongoDB 4.2")
                .adminPassword(adminPassword)
                .diskSpace(20.0)
                .machineTypeId("o.mongo2m.medium")
                .nodeCount(3.0)
                .vpcId(defaultUcloudVpc.id())
                .subnetId(default_.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: ucloud:UmongodbReplicaset
        properties:
          availabilityZone: cn-bj2-05
          name: tf-umongodb-rs
          dbVersion: MongoDB 4.2
          adminPassword: ${adminPassword}
          diskSpace: 20
          machineTypeId: o.mongo2m.medium
          nodeCount: 3
          vpcId: ${defaultUcloudVpc.id}
          subnetId: ${default.id}
    
    Example coming soon!
    

    Create UmongodbReplicaset Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new UmongodbReplicaset(name: string, args: UmongodbReplicasetArgs, opts?: CustomResourceOptions);
    @overload
    def UmongodbReplicaset(resource_name: str,
                           args: UmongodbReplicasetArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def UmongodbReplicaset(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           db_version: Optional[str] = None,
                           node_count: Optional[float] = None,
                           machine_type_id: Optional[str] = None,
                           availability_zone: Optional[str] = None,
                           admin_password: Optional[str] = None,
                           disk_space: Optional[float] = None,
                           listen_port: Optional[float] = None,
                           restart_trigger: Optional[str] = None,
                           charge_type: Optional[str] = None,
                           labels: Optional[Sequence[UmongodbReplicasetLabelArgs]] = None,
                           backup_disabled: Optional[bool] = None,
                           auto_backup_week: Optional[str] = None,
                           name: Optional[str] = None,
                           auto_backup_time: Optional[str] = None,
                           quantity: Optional[float] = None,
                           cross_zones: Optional[Sequence[str]] = None,
                           sec_groups: Optional[Sequence[UmongodbReplicasetSecGroupArgs]] = None,
                           status: Optional[str] = None,
                           subnet_id: Optional[str] = None,
                           tag: Optional[str] = None,
                           timeouts: Optional[UmongodbReplicasetTimeoutsArgs] = None,
                           umongodb_replicaset_id: Optional[str] = None,
                           vpc_id: Optional[str] = None)
    func NewUmongodbReplicaset(ctx *Context, name string, args UmongodbReplicasetArgs, opts ...ResourceOption) (*UmongodbReplicaset, error)
    public UmongodbReplicaset(string name, UmongodbReplicasetArgs args, CustomResourceOptions? opts = null)
    public UmongodbReplicaset(String name, UmongodbReplicasetArgs args)
    public UmongodbReplicaset(String name, UmongodbReplicasetArgs args, CustomResourceOptions options)
    
    type: ucloud:UmongodbReplicaset
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "ucloud_umongodb_replicaset" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args UmongodbReplicasetArgs
    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 UmongodbReplicasetArgs
    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 UmongodbReplicasetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UmongodbReplicasetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UmongodbReplicasetArgs
    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 umongodbReplicasetResource = new Ucloud.UmongodbReplicaset("umongodbReplicasetResource", new()
    {
        DbVersion = "string",
        NodeCount = 0.0,
        MachineTypeId = "string",
        AvailabilityZone = "string",
        AdminPassword = "string",
        DiskSpace = 0.0,
        ListenPort = 0.0,
        RestartTrigger = "string",
        ChargeType = "string",
        Labels = new[]
        {
            new Ucloud.Inputs.UmongodbReplicasetLabelArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        BackupDisabled = false,
        AutoBackupWeek = "string",
        Name = "string",
        AutoBackupTime = "string",
        Quantity = 0.0,
        CrossZones = new[]
        {
            "string",
        },
        SecGroups = new[]
        {
            new Ucloud.Inputs.UmongodbReplicasetSecGroupArgs
            {
                Id = "string",
                Priority = 0.0,
            },
        },
        Status = "string",
        SubnetId = "string",
        Tag = "string",
        Timeouts = new Ucloud.Inputs.UmongodbReplicasetTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        UmongodbReplicasetId = "string",
        VpcId = "string",
    });
    
    example, err := ucloud.NewUmongodbReplicaset(ctx, "umongodbReplicasetResource", &ucloud.UmongodbReplicasetArgs{
    	DbVersion:        pulumi.String("string"),
    	NodeCount:        pulumi.Float64(0),
    	MachineTypeId:    pulumi.String("string"),
    	AvailabilityZone: pulumi.String("string"),
    	AdminPassword:    pulumi.String("string"),
    	DiskSpace:        pulumi.Float64(0),
    	ListenPort:       pulumi.Float64(0),
    	RestartTrigger:   pulumi.String("string"),
    	ChargeType:       pulumi.String("string"),
    	Labels: ucloud.UmongodbReplicasetLabelArray{
    		&ucloud.UmongodbReplicasetLabelArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	BackupDisabled: pulumi.Bool(false),
    	AutoBackupWeek: pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	AutoBackupTime: pulumi.String("string"),
    	Quantity:       pulumi.Float64(0),
    	CrossZones: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SecGroups: ucloud.UmongodbReplicasetSecGroupArray{
    		&ucloud.UmongodbReplicasetSecGroupArgs{
    			Id:       pulumi.String("string"),
    			Priority: pulumi.Float64(0),
    		},
    	},
    	Status:   pulumi.String("string"),
    	SubnetId: pulumi.String("string"),
    	Tag:      pulumi.String("string"),
    	Timeouts: &ucloud.UmongodbReplicasetTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	UmongodbReplicasetId: pulumi.String("string"),
    	VpcId:                pulumi.String("string"),
    })
    
    resource "ucloud_umongodb_replicaset" "umongodbReplicasetResource" {
      lifecycle {
        create_before_destroy = true
      }
      db_version        = "string"
      node_count        = 0
      machine_type_id   = "string"
      availability_zone = "string"
      admin_password    = "string"
      disk_space        = 0
      listen_port       = 0
      restart_trigger   = "string"
      charge_type       = "string"
      labels {
        key   = "string"
        value = "string"
      }
      backup_disabled  = false
      auto_backup_week = "string"
      name             = "string"
      auto_backup_time = "string"
      quantity         = 0
      cross_zones      = ["string"]
      sec_groups {
        id       = "string"
        priority = 0
      }
      status    = "string"
      subnet_id = "string"
      tag       = "string"
      _ {
        timeouts = {
          create = "string"
          delete = "string"
          update = "string"
        }
      }
      umongodb_replicaset_id = "string"
      vpc_id                 = "string"
    }
    
    var umongodbReplicasetResource = new UmongodbReplicaset("umongodbReplicasetResource", UmongodbReplicasetArgs.builder()
        .dbVersion("string")
        .nodeCount(0.0)
        .machineTypeId("string")
        .availabilityZone("string")
        .adminPassword("string")
        .diskSpace(0.0)
        .listenPort(0.0)
        .restartTrigger("string")
        .chargeType("string")
        .labels(UmongodbReplicasetLabelArgs.builder()
            .key("string")
            .value("string")
            .build())
        .backupDisabled(false)
        .autoBackupWeek("string")
        .name("string")
        .autoBackupTime("string")
        .quantity(0.0)
        .crossZones("string")
        .secGroups(UmongodbReplicasetSecGroupArgs.builder()
            .id("string")
            .priority(0.0)
            .build())
        .status("string")
        .subnetId("string")
        .tag("string")
        .timeouts(UmongodbReplicasetTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .umongodbReplicasetId("string")
        .vpcId("string")
        .build());
    
    umongodb_replicaset_resource = ucloud.UmongodbReplicaset("umongodbReplicasetResource",
        db_version="string",
        node_count=float(0),
        machine_type_id="string",
        availability_zone="string",
        admin_password="string",
        disk_space=float(0),
        listen_port=float(0),
        restart_trigger="string",
        charge_type="string",
        labels=[{
            "key": "string",
            "value": "string",
        }],
        backup_disabled=False,
        auto_backup_week="string",
        name="string",
        auto_backup_time="string",
        quantity=float(0),
        cross_zones=["string"],
        sec_groups=[{
            "id": "string",
            "priority": float(0),
        }],
        status="string",
        subnet_id="string",
        tag="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        umongodb_replicaset_id="string",
        vpc_id="string")
    
    const umongodbReplicasetResource = new ucloud.UmongodbReplicaset("umongodbReplicasetResource", {
        dbVersion: "string",
        nodeCount: 0,
        machineTypeId: "string",
        availabilityZone: "string",
        adminPassword: "string",
        diskSpace: 0,
        listenPort: 0,
        restartTrigger: "string",
        chargeType: "string",
        labels: [{
            key: "string",
            value: "string",
        }],
        backupDisabled: false,
        autoBackupWeek: "string",
        name: "string",
        autoBackupTime: "string",
        quantity: 0,
        crossZones: ["string"],
        secGroups: [{
            id: "string",
            priority: 0,
        }],
        status: "string",
        subnetId: "string",
        tag: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        umongodbReplicasetId: "string",
        vpcId: "string",
    });
    
    type: ucloud:UmongodbReplicaset
    properties:
        adminPassword: string
        autoBackupTime: string
        autoBackupWeek: string
        availabilityZone: string
        backupDisabled: false
        chargeType: string
        crossZones:
            - string
        dbVersion: string
        diskSpace: 0
        labels:
            - key: string
              value: string
        listenPort: 0
        machineTypeId: string
        name: string
        nodeCount: 0
        quantity: 0
        restartTrigger: string
        secGroups:
            - id: string
              priority: 0
        status: string
        subnetId: string
        tag: string
        timeouts:
            create: string
            delete: string
            update: string
        umongodbReplicasetId: string
        vpcId: string
    

    UmongodbReplicaset 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 UmongodbReplicaset resource accepts the following input properties:

    AdminPassword string
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    AvailabilityZone string
    Availability zone.
    DbVersion string
    MongoDB version, for example MongoDB 4.2.
    DiskSpace double
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    MachineTypeId string
    Data node machine type. Changes call ResizeUMongoDBInstance.
    NodeCount double
    Replica set node count. Only 3, 5, or 7.
    AutoBackupTime string
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    AutoBackupWeek string
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    BackupDisabled bool
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    ChargeType string
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    CrossZones List<string>
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    Labels List<UmongodbReplicasetLabel>
    Resource labels. Each block has key and value.
    ListenPort double
    MongoDB listen port.
    Name string
    Cluster name, 6 to 63 characters.
    Quantity double
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    RestartTrigger string
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    SecGroups List<UmongodbReplicasetSecGroup>
    Security groups. Each block has id and priority from 1 to 5.
    Status string
    running or stopped. Default is running.
    SubnetId string
    Subnet ID. Read from the cluster when the API returns it.
    Tag string
    Business group. Read from the cluster when the API returns it.
    Timeouts UmongodbReplicasetTimeouts
    UmongodbReplicasetId string
    Cluster ID.
    VpcId string
    VPC ID. Read from the cluster when the API returns it.
    AdminPassword string
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    AvailabilityZone string
    Availability zone.
    DbVersion string
    MongoDB version, for example MongoDB 4.2.
    DiskSpace float64
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    MachineTypeId string
    Data node machine type. Changes call ResizeUMongoDBInstance.
    NodeCount float64
    Replica set node count. Only 3, 5, or 7.
    AutoBackupTime string
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    AutoBackupWeek string
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    BackupDisabled bool
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    ChargeType string
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    CrossZones []string
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    Labels []UmongodbReplicasetLabelArgs
    Resource labels. Each block has key and value.
    ListenPort float64
    MongoDB listen port.
    Name string
    Cluster name, 6 to 63 characters.
    Quantity float64
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    RestartTrigger string
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    SecGroups []UmongodbReplicasetSecGroupArgs
    Security groups. Each block has id and priority from 1 to 5.
    Status string
    running or stopped. Default is running.
    SubnetId string
    Subnet ID. Read from the cluster when the API returns it.
    Tag string
    Business group. Read from the cluster when the API returns it.
    Timeouts UmongodbReplicasetTimeoutsArgs
    UmongodbReplicasetId string
    Cluster ID.
    VpcId string
    VPC ID. Read from the cluster when the API returns it.
    admin_password string
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    availability_zone string
    Availability zone.
    db_version string
    MongoDB version, for example MongoDB 4.2.
    disk_space number
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    machine_type_id string
    Data node machine type. Changes call ResizeUMongoDBInstance.
    node_count number
    Replica set node count. Only 3, 5, or 7.
    auto_backup_time string
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    auto_backup_week string
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    backup_disabled bool
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    charge_type string
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    cross_zones list(string)
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    labels list(object)
    Resource labels. Each block has key and value.
    listen_port number
    MongoDB listen port.
    name string
    Cluster name, 6 to 63 characters.
    quantity number
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    restart_trigger string
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    sec_groups list(object)
    Security groups. Each block has id and priority from 1 to 5.
    status string
    running or stopped. Default is running.
    subnet_id string
    Subnet ID. Read from the cluster when the API returns it.
    tag string
    Business group. Read from the cluster when the API returns it.
    timeouts object
    umongodb_replicaset_id string
    Cluster ID.
    vpc_id string
    VPC ID. Read from the cluster when the API returns it.
    adminPassword String
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    availabilityZone String
    Availability zone.
    dbVersion String
    MongoDB version, for example MongoDB 4.2.
    diskSpace Double
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    machineTypeId String
    Data node machine type. Changes call ResizeUMongoDBInstance.
    nodeCount Double
    Replica set node count. Only 3, 5, or 7.
    autoBackupTime String
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    autoBackupWeek String
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    backupDisabled Boolean
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    chargeType String
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    crossZones List<String>
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    labels List<UmongodbReplicasetLabel>
    Resource labels. Each block has key and value.
    listenPort Double
    MongoDB listen port.
    name String
    Cluster name, 6 to 63 characters.
    quantity Double
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    restartTrigger String
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    secGroups List<UmongodbReplicasetSecGroup>
    Security groups. Each block has id and priority from 1 to 5.
    status String
    running or stopped. Default is running.
    subnetId String
    Subnet ID. Read from the cluster when the API returns it.
    tag String
    Business group. Read from the cluster when the API returns it.
    timeouts UmongodbReplicasetTimeouts
    umongodbReplicasetId String
    Cluster ID.
    vpcId String
    VPC ID. Read from the cluster when the API returns it.
    adminPassword string
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    availabilityZone string
    Availability zone.
    dbVersion string
    MongoDB version, for example MongoDB 4.2.
    diskSpace number
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    machineTypeId string
    Data node machine type. Changes call ResizeUMongoDBInstance.
    nodeCount number
    Replica set node count. Only 3, 5, or 7.
    autoBackupTime string
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    autoBackupWeek string
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    backupDisabled boolean
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    chargeType string
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    crossZones string[]
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    labels UmongodbReplicasetLabel[]
    Resource labels. Each block has key and value.
    listenPort number
    MongoDB listen port.
    name string
    Cluster name, 6 to 63 characters.
    quantity number
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    restartTrigger string
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    secGroups UmongodbReplicasetSecGroup[]
    Security groups. Each block has id and priority from 1 to 5.
    status string
    running or stopped. Default is running.
    subnetId string
    Subnet ID. Read from the cluster when the API returns it.
    tag string
    Business group. Read from the cluster when the API returns it.
    timeouts UmongodbReplicasetTimeouts
    umongodbReplicasetId string
    Cluster ID.
    vpcId string
    VPC ID. Read from the cluster when the API returns it.
    admin_password str
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    availability_zone str
    Availability zone.
    db_version str
    MongoDB version, for example MongoDB 4.2.
    disk_space float
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    machine_type_id str
    Data node machine type. Changes call ResizeUMongoDBInstance.
    node_count float
    Replica set node count. Only 3, 5, or 7.
    auto_backup_time str
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    auto_backup_week str
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    backup_disabled bool
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    charge_type str
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    cross_zones Sequence[str]
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    labels Sequence[UmongodbReplicasetLabelArgs]
    Resource labels. Each block has key and value.
    listen_port float
    MongoDB listen port.
    name str
    Cluster name, 6 to 63 characters.
    quantity float
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    restart_trigger str
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    sec_groups Sequence[UmongodbReplicasetSecGroupArgs]
    Security groups. Each block has id and priority from 1 to 5.
    status str
    running or stopped. Default is running.
    subnet_id str
    Subnet ID. Read from the cluster when the API returns it.
    tag str
    Business group. Read from the cluster when the API returns it.
    timeouts UmongodbReplicasetTimeoutsArgs
    umongodb_replicaset_id str
    Cluster ID.
    vpc_id str
    VPC ID. Read from the cluster when the API returns it.
    adminPassword String
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    availabilityZone String
    Availability zone.
    dbVersion String
    MongoDB version, for example MongoDB 4.2.
    diskSpace Number
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    machineTypeId String
    Data node machine type. Changes call ResizeUMongoDBInstance.
    nodeCount Number
    Replica set node count. Only 3, 5, or 7.
    autoBackupTime String
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    autoBackupWeek String
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    backupDisabled Boolean
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    chargeType String
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    crossZones List<String>
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    labels List<Property Map>
    Resource labels. Each block has key and value.
    listenPort Number
    MongoDB listen port.
    name String
    Cluster name, 6 to 63 characters.
    quantity Number
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    restartTrigger String
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    secGroups List<Property Map>
    Security groups. Each block has id and priority from 1 to 5.
    status String
    running or stopped. Default is running.
    subnetId String
    Subnet ID. Read from the cluster when the API returns it.
    tag String
    Business group. Read from the cluster when the API returns it.
    timeouts Property Map
    umongodbReplicasetId String
    Cluster ID.
    vpcId String
    VPC ID. Read from the cluster when the API returns it.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UmongodbReplicaset resource produces the following output properties:

    ConnectUrl string
    Connection address.
    CreateTime double
    Creation time as a Unix timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    Remote cluster state.
    ConnectUrl string
    Connection address.
    CreateTime float64
    Creation time as a Unix timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    Remote cluster state.
    connect_url string
    Connection address.
    create_time number
    Creation time as a Unix timestamp.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    Remote cluster state.
    connectUrl String
    Connection address.
    createTime Double
    Creation time as a Unix timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    Remote cluster state.
    connectUrl string
    Connection address.
    createTime number
    Creation time as a Unix timestamp.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    Remote cluster state.
    connect_url str
    Connection address.
    create_time float
    Creation time as a Unix timestamp.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    Remote cluster state.
    connectUrl String
    Connection address.
    createTime Number
    Creation time as a Unix timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    Remote cluster state.

    Look up Existing UmongodbReplicaset Resource

    Get an existing UmongodbReplicaset 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?: UmongodbReplicasetState, opts?: CustomResourceOptions): UmongodbReplicaset
    @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,
            cross_zones: Optional[Sequence[str]] = None,
            db_version: Optional[str] = None,
            disk_space: Optional[float] = None,
            labels: Optional[Sequence[UmongodbReplicasetLabelArgs]] = None,
            listen_port: Optional[float] = None,
            machine_type_id: Optional[str] = None,
            name: Optional[str] = None,
            node_count: Optional[float] = None,
            quantity: Optional[float] = None,
            restart_trigger: Optional[str] = None,
            sec_groups: Optional[Sequence[UmongodbReplicasetSecGroupArgs]] = None,
            state: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tag: Optional[str] = None,
            timeouts: Optional[UmongodbReplicasetTimeoutsArgs] = None,
            umongodb_replicaset_id: Optional[str] = None,
            vpc_id: Optional[str] = None) -> UmongodbReplicaset
    func GetUmongodbReplicaset(ctx *Context, name string, id IDInput, state *UmongodbReplicasetState, opts ...ResourceOption) (*UmongodbReplicaset, error)
    public static UmongodbReplicaset Get(string name, Input<string> id, UmongodbReplicasetState? state, CustomResourceOptions? opts = null)
    public static UmongodbReplicaset get(String name, Output<String> id, UmongodbReplicasetState state, CustomResourceOptions options)
    resources:  _:    type: ucloud:UmongodbReplicaset    get:      id: ${id}
    import {
      to = ucloud_umongodb_replicaset.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.
    The following state arguments are supported:
    AdminPassword string
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    AutoBackupTime string
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    AutoBackupWeek string
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    AvailabilityZone string
    Availability zone.
    BackupDisabled bool
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    ChargeType string
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    ConnectUrl string
    Connection address.
    CreateTime double
    Creation time as a Unix timestamp.
    CrossZones List<string>
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    DbVersion string
    MongoDB version, for example MongoDB 4.2.
    DiskSpace double
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    Labels List<UmongodbReplicasetLabel>
    Resource labels. Each block has key and value.
    ListenPort double
    MongoDB listen port.
    MachineTypeId string
    Data node machine type. Changes call ResizeUMongoDBInstance.
    Name string
    Cluster name, 6 to 63 characters.
    NodeCount double
    Replica set node count. Only 3, 5, or 7.
    Quantity double
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    RestartTrigger string
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    SecGroups List<UmongodbReplicasetSecGroup>
    Security groups. Each block has id and priority from 1 to 5.
    State string
    Remote cluster state.
    Status string
    running or stopped. Default is running.
    SubnetId string
    Subnet ID. Read from the cluster when the API returns it.
    Tag string
    Business group. Read from the cluster when the API returns it.
    Timeouts UmongodbReplicasetTimeouts
    UmongodbReplicasetId string
    Cluster ID.
    VpcId string
    VPC ID. Read from the cluster when the API returns it.
    AdminPassword string
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    AutoBackupTime string
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    AutoBackupWeek string
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    AvailabilityZone string
    Availability zone.
    BackupDisabled bool
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    ChargeType string
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    ConnectUrl string
    Connection address.
    CreateTime float64
    Creation time as a Unix timestamp.
    CrossZones []string
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    DbVersion string
    MongoDB version, for example MongoDB 4.2.
    DiskSpace float64
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    Labels []UmongodbReplicasetLabelArgs
    Resource labels. Each block has key and value.
    ListenPort float64
    MongoDB listen port.
    MachineTypeId string
    Data node machine type. Changes call ResizeUMongoDBInstance.
    Name string
    Cluster name, 6 to 63 characters.
    NodeCount float64
    Replica set node count. Only 3, 5, or 7.
    Quantity float64
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    RestartTrigger string
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    SecGroups []UmongodbReplicasetSecGroupArgs
    Security groups. Each block has id and priority from 1 to 5.
    State string
    Remote cluster state.
    Status string
    running or stopped. Default is running.
    SubnetId string
    Subnet ID. Read from the cluster when the API returns it.
    Tag string
    Business group. Read from the cluster when the API returns it.
    Timeouts UmongodbReplicasetTimeoutsArgs
    UmongodbReplicasetId string
    Cluster ID.
    VpcId string
    VPC ID. Read from the cluster when the API returns it.
    admin_password string
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    auto_backup_time string
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    auto_backup_week string
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    availability_zone string
    Availability zone.
    backup_disabled bool
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    charge_type string
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    connect_url string
    Connection address.
    create_time number
    Creation time as a Unix timestamp.
    cross_zones list(string)
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    db_version string
    MongoDB version, for example MongoDB 4.2.
    disk_space number
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    labels list(object)
    Resource labels. Each block has key and value.
    listen_port number
    MongoDB listen port.
    machine_type_id string
    Data node machine type. Changes call ResizeUMongoDBInstance.
    name string
    Cluster name, 6 to 63 characters.
    node_count number
    Replica set node count. Only 3, 5, or 7.
    quantity number
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    restart_trigger string
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    sec_groups list(object)
    Security groups. Each block has id and priority from 1 to 5.
    state string
    Remote cluster state.
    status string
    running or stopped. Default is running.
    subnet_id string
    Subnet ID. Read from the cluster when the API returns it.
    tag string
    Business group. Read from the cluster when the API returns it.
    timeouts object
    umongodb_replicaset_id string
    Cluster ID.
    vpc_id string
    VPC ID. Read from the cluster when the API returns it.
    adminPassword String
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    autoBackupTime String
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    autoBackupWeek String
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    availabilityZone String
    Availability zone.
    backupDisabled Boolean
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    chargeType String
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    connectUrl String
    Connection address.
    createTime Double
    Creation time as a Unix timestamp.
    crossZones List<String>
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    dbVersion String
    MongoDB version, for example MongoDB 4.2.
    diskSpace Double
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    labels List<UmongodbReplicasetLabel>
    Resource labels. Each block has key and value.
    listenPort Double
    MongoDB listen port.
    machineTypeId String
    Data node machine type. Changes call ResizeUMongoDBInstance.
    name String
    Cluster name, 6 to 63 characters.
    nodeCount Double
    Replica set node count. Only 3, 5, or 7.
    quantity Double
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    restartTrigger String
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    secGroups List<UmongodbReplicasetSecGroup>
    Security groups. Each block has id and priority from 1 to 5.
    state String
    Remote cluster state.
    status String
    running or stopped. Default is running.
    subnetId String
    Subnet ID. Read from the cluster when the API returns it.
    tag String
    Business group. Read from the cluster when the API returns it.
    timeouts UmongodbReplicasetTimeouts
    umongodbReplicasetId String
    Cluster ID.
    vpcId String
    VPC ID. Read from the cluster when the API returns it.
    adminPassword string
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    autoBackupTime string
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    autoBackupWeek string
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    availabilityZone string
    Availability zone.
    backupDisabled boolean
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    chargeType string
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    connectUrl string
    Connection address.
    createTime number
    Creation time as a Unix timestamp.
    crossZones string[]
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    dbVersion string
    MongoDB version, for example MongoDB 4.2.
    diskSpace number
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    labels UmongodbReplicasetLabel[]
    Resource labels. Each block has key and value.
    listenPort number
    MongoDB listen port.
    machineTypeId string
    Data node machine type. Changes call ResizeUMongoDBInstance.
    name string
    Cluster name, 6 to 63 characters.
    nodeCount number
    Replica set node count. Only 3, 5, or 7.
    quantity number
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    restartTrigger string
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    secGroups UmongodbReplicasetSecGroup[]
    Security groups. Each block has id and priority from 1 to 5.
    state string
    Remote cluster state.
    status string
    running or stopped. Default is running.
    subnetId string
    Subnet ID. Read from the cluster when the API returns it.
    tag string
    Business group. Read from the cluster when the API returns it.
    timeouts UmongodbReplicasetTimeouts
    umongodbReplicasetId string
    Cluster ID.
    vpcId string
    VPC ID. Read from the cluster when the API returns it.
    admin_password str
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    auto_backup_time str
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    auto_backup_week str
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    availability_zone str
    Availability zone.
    backup_disabled bool
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    charge_type str
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    connect_url str
    Connection address.
    create_time float
    Creation time as a Unix timestamp.
    cross_zones Sequence[str]
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    db_version str
    MongoDB version, for example MongoDB 4.2.
    disk_space float
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    labels Sequence[UmongodbReplicasetLabelArgs]
    Resource labels. Each block has key and value.
    listen_port float
    MongoDB listen port.
    machine_type_id str
    Data node machine type. Changes call ResizeUMongoDBInstance.
    name str
    Cluster name, 6 to 63 characters.
    node_count float
    Replica set node count. Only 3, 5, or 7.
    quantity float
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    restart_trigger str
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    sec_groups Sequence[UmongodbReplicasetSecGroupArgs]
    Security groups. Each block has id and priority from 1 to 5.
    state str
    Remote cluster state.
    status str
    running or stopped. Default is running.
    subnet_id str
    Subnet ID. Read from the cluster when the API returns it.
    tag str
    Business group. Read from the cluster when the API returns it.
    timeouts UmongodbReplicasetTimeoutsArgs
    umongodb_replicaset_id str
    Cluster ID.
    vpc_id str
    VPC ID. Read from the cluster when the API returns it.
    adminPassword String
    Administrator password. Updates are sent as raw-url base64. The cluster is started first when it is stopped, and stopped again when status stays stopped.
    autoBackupTime String
    Automatic backup window, for example 05:00~06:00. Set this together with auto_backup_week unless backup_disabled is true.
    autoBackupWeek String
    Automatic backup weekdays, for example 3,7. Set this together with auto_backup_time unless backup_disabled is true.
    availabilityZone String
    Availability zone.
    backupDisabled Boolean
    Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
    chargeType String
    year, month, dynamic, or trial. Default is month. The read API does not return it. An empty imported value matches month and does not replace the cluster.
    connectUrl String
    Connection address.
    createTime Number
    Creation time as a Unix timestamp.
    crossZones List<String>
    Extra availability zones for a cross-zone replica set. This is a set, so order does not matter. Not available on a sharded cluster.
    dbVersion String
    MongoDB version, for example MongoDB 4.2.
    diskSpace Number
    Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call ResizeUMongoDBInstance.
    labels List<Property Map>
    Resource labels. Each block has key and value.
    listenPort Number
    MongoDB listen port.
    machineTypeId String
    Data node machine type. Changes call ResizeUMongoDBInstance.
    name String
    Cluster name, 6 to 63 characters.
    nodeCount Number
    Replica set node count. Only 3, 5, or 7.
    quantity Number
    Purchase duration. Default is 1. The read API does not return it. An empty imported value matches 1 and does not replace the cluster.
    restartTrigger String
    Changing this value from one non-empty value to another restarts the cluster when status is running. The read API does not return it, and the first value after import does not restart the cluster.
    secGroups List<Property Map>
    Security groups. Each block has id and priority from 1 to 5.
    state String
    Remote cluster state.
    status String
    running or stopped. Default is running.
    subnetId String
    Subnet ID. Read from the cluster when the API returns it.
    tag String
    Business group. Read from the cluster when the API returns it.
    timeouts Property Map
    umongodbReplicasetId String
    Cluster ID.
    vpcId String
    VPC ID. Read from the cluster when the API returns it.

    Supporting Types

    UmongodbReplicasetLabel, UmongodbReplicasetLabelArgs

    Key string
    Value string
    Key string
    Value string
    key string
    value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    UmongodbReplicasetSecGroup, UmongodbReplicasetSecGroupArgs

    Id string
    Cluster ID.
    Priority double
    Id string
    Cluster ID.
    Priority float64
    id string
    Cluster ID.
    priority number
    id String
    Cluster ID.
    priority Double
    id string
    Cluster ID.
    priority number
    id str
    Cluster ID.
    priority float
    id String
    Cluster ID.
    priority Number

    UmongodbReplicasetTimeouts, UmongodbReplicasetTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create string
    delete string
    update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    $ pulumi import ucloud:index/umongodbReplicaset:UmongodbReplicaset example umongodb-rs-abc
    

    admin_password, listen_port, label, sec_group, and restart_trigger are not returned by the read API. Leave admin_password, listen_port, label, and sec_group unset after import, or the next apply replaces the cluster. charge_type and quantity can stay unset: empty imported values match the defaults month and 1. A different charge or quantity must be written in the configuration. Destroy stops a running cluster before deleting it. A cluster left in InitFailed or StartFailed after its replicas are deleted is removed from state.

    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 ucloud Terraform Provider.
    ucloud
    Viewing docs for ucloud 1.49.0
    published on Tuesday, Oct 27, 2026 by ucloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial