published on Tuesday, Oct 27, 2026 by ucloud
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:
- 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
statusstaysstopped. - Availability
Zone string - Availability zone.
- Db
Version string - MongoDB version, for example
MongoDB 4.2. - Disk
Space double - Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call
ResizeUMongoDBInstance. - Machine
Type stringId - Data node machine type. Changes call
ResizeUMongoDBInstance. - Node
Count double - Replica set node count. Only 3, 5, or 7.
- Auto
Backup stringTime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - Auto
Backup stringWeek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis 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, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand 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<Umongodb
Replicaset Label> - Resource labels. Each block has
keyandvalue. - Listen
Port 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
1and does not replace the cluster. - Restart
Trigger string - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. The read API does not return it, and the first value after import does not restart the cluster. - Sec
Groups List<UmongodbReplicaset Sec Group> - Security groups. Each block has
idandpriorityfrom 1 to 5. - Status string
runningorstopped. Default isrunning.- 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
Umongodb
Replicaset Timeouts - Umongodb
Replicaset stringId - Cluster ID.
- Vpc
Id 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
statusstaysstopped. - Availability
Zone string - Availability zone.
- Db
Version string - MongoDB version, for example
MongoDB 4.2. - Disk
Space float64 - Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call
ResizeUMongoDBInstance. - Machine
Type stringId - Data node machine type. Changes call
ResizeUMongoDBInstance. - Node
Count float64 - Replica set node count. Only 3, 5, or 7.
- Auto
Backup stringTime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - Auto
Backup stringWeek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis 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, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand does not replace the cluster.- Cross
Zones []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
[]Umongodb
Replicaset Label Args - Resource labels. Each block has
keyandvalue. - Listen
Port 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
1and does not replace the cluster. - Restart
Trigger string - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. The read API does not return it, and the first value after import does not restart the cluster. - Sec
Groups []UmongodbReplicaset Sec Group Args - Security groups. Each block has
idandpriorityfrom 1 to 5. - Status string
runningorstopped. Default isrunning.- 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
Umongodb
Replicaset Timeouts Args - Umongodb
Replicaset stringId - Cluster ID.
- Vpc
Id 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
statusstaysstopped. - 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_ stringid - Data node machine type. Changes call
ResizeUMongoDBInstance. - node_
count number - Replica set node count. Only 3, 5, or 7.
- auto_
backup_ stringtime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - auto_
backup_ stringweek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis 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, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand 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
keyandvalue. - 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
1and does not replace the cluster. - restart_
trigger string - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. 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
idandpriorityfrom 1 to 5. - status string
runningorstopped. Default isrunning.- 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_ stringid - Cluster ID.
- vpc_
id 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
statusstaysstopped. - availability
Zone String - Availability zone.
- db
Version String - MongoDB version, for example
MongoDB 4.2. - disk
Space Double - Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call
ResizeUMongoDBInstance. - machine
Type StringId - Data node machine type. Changes call
ResizeUMongoDBInstance. - node
Count Double - Replica set node count. Only 3, 5, or 7.
- auto
Backup StringTime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - auto
Backup StringWeek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis true. - backup
Disabled Boolean - Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
- charge
Type String year,month,dynamic, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand 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<Umongodb
Replicaset Label> - Resource labels. Each block has
keyandvalue. - listen
Port 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
1and does not replace the cluster. - restart
Trigger String - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. The read API does not return it, and the first value after import does not restart the cluster. - sec
Groups List<UmongodbReplicaset Sec Group> - Security groups. Each block has
idandpriorityfrom 1 to 5. - status String
runningorstopped. Default isrunning.- 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
Umongodb
Replicaset Timeouts - umongodb
Replicaset StringId - Cluster ID.
- vpc
Id 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
statusstaysstopped. - 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 stringId - Data node machine type. Changes call
ResizeUMongoDBInstance. - node
Count number - Replica set node count. Only 3, 5, or 7.
- auto
Backup stringTime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - auto
Backup stringWeek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis true. - backup
Disabled boolean - Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
- charge
Type string year,month,dynamic, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand does not replace the cluster.- cross
Zones 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
Umongodb
Replicaset Label[] - Resource labels. Each block has
keyandvalue. - 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
1and does not replace the cluster. - restart
Trigger string - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. The read API does not return it, and the first value after import does not restart the cluster. - sec
Groups UmongodbReplicaset Sec Group[] - Security groups. Each block has
idandpriorityfrom 1 to 5. - status string
runningorstopped. Default isrunning.- 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
Umongodb
Replicaset Timeouts - umongodb
Replicaset stringId - Cluster ID.
- vpc
Id 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
statusstaysstopped. - 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_ strid - Data node machine type. Changes call
ResizeUMongoDBInstance. - node_
count float - Replica set node count. Only 3, 5, or 7.
- auto_
backup_ strtime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - auto_
backup_ strweek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis 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, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand 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[Umongodb
Replicaset Label Args] - Resource labels. Each block has
keyandvalue. - 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
1and does not replace the cluster. - restart_
trigger str - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. The read API does not return it, and the first value after import does not restart the cluster. - sec_
groups Sequence[UmongodbReplicaset Sec Group Args] - Security groups. Each block has
idandpriorityfrom 1 to 5. - status str
runningorstopped. Default isrunning.- 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
Umongodb
Replicaset Timeouts Args - umongodb_
replicaset_ strid - Cluster ID.
- vpc_
id str - 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
statusstaysstopped. - 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 StringId - Data node machine type. Changes call
ResizeUMongoDBInstance. - node
Count Number - Replica set node count. Only 3, 5, or 7.
- auto
Backup StringTime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - auto
Backup StringWeek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis true. - backup
Disabled Boolean - Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
- charge
Type String year,month,dynamic, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand 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<Property Map>
- Resource labels. Each block has
keyandvalue. - 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
1and does not replace the cluster. - restart
Trigger String - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. The read API does not return it, and the first value after import does not restart the cluster. - sec
Groups List<Property Map> - Security groups. Each block has
idandpriorityfrom 1 to 5. - status String
runningorstopped. Default isrunning.- 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 Property Map
- umongodb
Replicaset StringId - Cluster ID.
- vpc
Id 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:
- Connect
Url string - Connection address.
- Create
Time double - 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 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.
- connect
Url String - Connection address.
- create
Time Double - 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.
- 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.
- 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.
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) -> UmongodbReplicasetfunc 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.
- 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
statusstaysstopped. - Auto
Backup stringTime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - Auto
Backup stringWeek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis 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, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand does not replace the cluster.- Connect
Url string - Connection address.
- Create
Time double - 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 double - Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call
ResizeUMongoDBInstance. - Labels
List<Umongodb
Replicaset Label> - Resource labels. Each block has
keyandvalue. - Listen
Port double - MongoDB listen port.
- Machine
Type stringId - Data node machine type. Changes call
ResizeUMongoDBInstance. - Name string
- Cluster name, 6 to 63 characters.
- Node
Count 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
1and does not replace the cluster. - Restart
Trigger string - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. The read API does not return it, and the first value after import does not restart the cluster. - Sec
Groups List<UmongodbReplicaset Sec Group> - Security groups. Each block has
idandpriorityfrom 1 to 5. - State string
- Remote cluster state.
- Status string
runningorstopped. Default isrunning.- 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
Umongodb
Replicaset Timeouts - Umongodb
Replicaset stringId - Cluster ID.
- Vpc
Id 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
statusstaysstopped. - Auto
Backup stringTime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - Auto
Backup stringWeek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis 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, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand does not replace the cluster.- Connect
Url string - Connection address.
- Create
Time float64 - Creation time as a Unix timestamp.
- Cross
Zones []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 float64 - Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call
ResizeUMongoDBInstance. - Labels
[]Umongodb
Replicaset Label Args - Resource labels. Each block has
keyandvalue. - Listen
Port float64 - MongoDB listen port.
- Machine
Type stringId - Data node machine type. Changes call
ResizeUMongoDBInstance. - Name string
- Cluster name, 6 to 63 characters.
- Node
Count 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
1and does not replace the cluster. - Restart
Trigger string - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. The read API does not return it, and the first value after import does not restart the cluster. - Sec
Groups []UmongodbReplicaset Sec Group Args - Security groups. Each block has
idandpriorityfrom 1 to 5. - State string
- Remote cluster state.
- Status string
runningorstopped. Default isrunning.- 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
Umongodb
Replicaset Timeouts Args - Umongodb
Replicaset stringId - Cluster ID.
- Vpc
Id 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
statusstaysstopped. - auto_
backup_ stringtime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - auto_
backup_ stringweek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis 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, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand 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
keyandvalue. - listen_
port number - MongoDB listen port.
- machine_
type_ stringid - 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
1and does not replace the cluster. - restart_
trigger string - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. 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
idandpriorityfrom 1 to 5. - state string
- Remote cluster state.
- status string
runningorstopped. Default isrunning.- 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_ stringid - Cluster ID.
- vpc_
id 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
statusstaysstopped. - auto
Backup StringTime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - auto
Backup StringWeek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis true. - availability
Zone String - Availability zone.
- backup
Disabled Boolean - Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
- charge
Type String year,month,dynamic, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand does not replace the cluster.- connect
Url String - Connection address.
- create
Time Double - 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 Double - Data disk size in GB. Multiple of 10, from 20 to 32000. Changes call
ResizeUMongoDBInstance. - labels
List<Umongodb
Replicaset Label> - Resource labels. Each block has
keyandvalue. - listen
Port Double - MongoDB listen port.
- machine
Type StringId - Data node machine type. Changes call
ResizeUMongoDBInstance. - name String
- Cluster name, 6 to 63 characters.
- node
Count 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
1and does not replace the cluster. - restart
Trigger String - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. The read API does not return it, and the first value after import does not restart the cluster. - sec
Groups List<UmongodbReplicaset Sec Group> - Security groups. Each block has
idandpriorityfrom 1 to 5. - state String
- Remote cluster state.
- status String
runningorstopped. Default isrunning.- 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
Umongodb
Replicaset Timeouts - umongodb
Replicaset StringId - Cluster ID.
- vpc
Id 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
statusstaysstopped. - auto
Backup stringTime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - auto
Backup stringWeek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis true. - availability
Zone string - Availability zone.
- backup
Disabled boolean - Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
- charge
Type string year,month,dynamic, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand does not replace the cluster.- connect
Url string - Connection address.
- create
Time number - Creation time as a Unix timestamp.
- cross
Zones 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
Umongodb
Replicaset Label[] - Resource labels. Each block has
keyandvalue. - listen
Port number - MongoDB listen port.
- machine
Type stringId - 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
1and does not replace the cluster. - restart
Trigger string - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. The read API does not return it, and the first value after import does not restart the cluster. - sec
Groups UmongodbReplicaset Sec Group[] - Security groups. Each block has
idandpriorityfrom 1 to 5. - state string
- Remote cluster state.
- status string
runningorstopped. Default isrunning.- 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
Umongodb
Replicaset Timeouts - umongodb
Replicaset stringId - Cluster ID.
- vpc
Id 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
statusstaysstopped. - auto_
backup_ strtime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - auto_
backup_ strweek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis 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, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand 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[Umongodb
Replicaset Label Args] - Resource labels. Each block has
keyandvalue. - listen_
port float - MongoDB listen port.
- machine_
type_ strid - 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
1and does not replace the cluster. - restart_
trigger str - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. The read API does not return it, and the first value after import does not restart the cluster. - sec_
groups Sequence[UmongodbReplicaset Sec Group Args] - Security groups. Each block has
idandpriorityfrom 1 to 5. - state str
- Remote cluster state.
- status str
runningorstopped. Default isrunning.- 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
Umongodb
Replicaset Timeouts Args - umongodb_
replicaset_ strid - Cluster ID.
- vpc_
id str - 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
statusstaysstopped. - auto
Backup StringTime - Automatic backup window, for example
05:00~06:00. Set this together withauto_backup_weekunlessbackup_disabledis true. - auto
Backup StringWeek - Automatic backup weekdays, for example
3,7. Set this together withauto_backup_timeunlessbackup_disabledis true. - availability
Zone String - Availability zone.
- backup
Disabled Boolean - Disable automatic backup when true. The weekday and window are not stored while backup is disabled.
- charge
Type String year,month,dynamic, ortrial. Default ismonth. The read API does not return it. An empty imported value matchesmonthand 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<Property Map>
- Resource labels. Each block has
keyandvalue. - listen
Port Number - MongoDB listen port.
- machine
Type StringId - 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
1and does not replace the cluster. - restart
Trigger String - Changing this value from one non-empty value to another restarts the cluster when
statusisrunning. The read API does not return it, and the first value after import does not restart the cluster. - sec
Groups List<Property Map> - Security groups. Each block has
idandpriorityfrom 1 to 5. - state String
- Remote cluster state.
- status String
runningorstopped. Default isrunning.- 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 Property Map
- umongodb
Replicaset StringId - Cluster ID.
- vpc
Id String - VPC ID. Read from the cluster when the API returns it.
Supporting Types
UmongodbReplicasetLabel, UmongodbReplicasetLabelArgs
UmongodbReplicasetSecGroup, UmongodbReplicasetSecGroupArgs
UmongodbReplicasetTimeouts, UmongodbReplicasetTimeoutsArgs
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
ucloudTerraform Provider.
published on Tuesday, Oct 27, 2026 by ucloud