ionoscloud.dbaas.MongoCluster
Explore with Pulumi AI
Manages a DbaaS Mongo Cluster.
Example Usage
Playground Or Business Editions. They Require Template_id Defined.
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
import * as random from "@pulumi/random";
const datacenterExample = new ionoscloud.compute.Datacenter("datacenter_example", {
name: "example",
location: "de/txl",
description: "Datacenter for testing dbaas cluster",
});
const lanExample = new ionoscloud.compute.Lan("lan_example", {
datacenterId: datacenterExample.id,
"public": false,
name: "example",
});
const exampleMongoCluster = new ionoscloud.dbaas.MongoCluster("example_mongo_cluster", {
maintenanceWindow: {
dayOfTheWeek: "Sunday",
time: "09:00:00",
},
mongodbVersion: "5.0",
instances: 1,
displayName: "example_mongo_cluster",
location: datacenterExample.location,
connections: {
datacenterId: datacenterExample.id,
lanId: lanExample.id,
cidrLists: ["192.168.1.108/24"],
},
templateId: "6b78ea06-ee0e-4689-998c-fc9c46e781f6",
});
const clusterPassword = new random.index.Password("cluster_password", {
length: 16,
special: true,
overrideSpecial: "!#$%&*()-_=+[]{}<>:?",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
import pulumi_random as random
datacenter_example = ionoscloud.compute.Datacenter("datacenter_example",
name="example",
location="de/txl",
description="Datacenter for testing dbaas cluster")
lan_example = ionoscloud.compute.Lan("lan_example",
datacenter_id=datacenter_example.id,
public=False,
name="example")
example_mongo_cluster = ionoscloud.dbaas.MongoCluster("example_mongo_cluster",
maintenance_window={
"day_of_the_week": "Sunday",
"time": "09:00:00",
},
mongodb_version="5.0",
instances=1,
display_name="example_mongo_cluster",
location=datacenter_example.location,
connections={
"datacenter_id": datacenter_example.id,
"lan_id": lan_example.id,
"cidr_lists": ["192.168.1.108/24"],
},
template_id="6b78ea06-ee0e-4689-998c-fc9c46e781f6")
cluster_password = random.index.Password("cluster_password",
length=16,
special=True,
override_special=!#$%&*()-_=+[]{}<>:?)
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/dbaas"
"github.com/pulumi/pulumi-random/sdk/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
datacenterExample, err := compute.NewDatacenter(ctx, "datacenter_example", &compute.DatacenterArgs{
Name: pulumi.String("example"),
Location: pulumi.String("de/txl"),
Description: pulumi.String("Datacenter for testing dbaas cluster"),
})
if err != nil {
return err
}
lanExample, err := compute.NewLan(ctx, "lan_example", &compute.LanArgs{
DatacenterId: datacenterExample.ID(),
Public: pulumi.Bool(false),
Name: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = dbaas.NewMongoCluster(ctx, "example_mongo_cluster", &dbaas.MongoClusterArgs{
MaintenanceWindow: &dbaas.MongoClusterMaintenanceWindowArgs{
DayOfTheWeek: pulumi.String("Sunday"),
Time: pulumi.String("09:00:00"),
},
MongodbVersion: pulumi.String("5.0"),
Instances: pulumi.Int(1),
DisplayName: pulumi.String("example_mongo_cluster"),
Location: datacenterExample.Location,
Connections: &dbaas.MongoClusterConnectionsArgs{
DatacenterId: datacenterExample.ID(),
LanId: lanExample.ID(),
CidrLists: pulumi.StringArray{
pulumi.String("192.168.1.108/24"),
},
},
TemplateId: pulumi.String("6b78ea06-ee0e-4689-998c-fc9c46e781f6"),
})
if err != nil {
return err
}
_, err = random.NewPassword(ctx, "cluster_password", &random.PasswordArgs{
Length: 16,
Special: true,
OverrideSpecial: "!#$%&*()-_=+[]{}<>:?",
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var datacenterExample = new Ionoscloud.Compute.Datacenter("datacenter_example", new()
{
Name = "example",
Location = "de/txl",
Description = "Datacenter for testing dbaas cluster",
});
var lanExample = new Ionoscloud.Compute.Lan("lan_example", new()
{
DatacenterId = datacenterExample.Id,
Public = false,
Name = "example",
});
var exampleMongoCluster = new Ionoscloud.Dbaas.MongoCluster("example_mongo_cluster", new()
{
MaintenanceWindow = new Ionoscloud.Dbaas.Inputs.MongoClusterMaintenanceWindowArgs
{
DayOfTheWeek = "Sunday",
Time = "09:00:00",
},
MongodbVersion = "5.0",
Instances = 1,
DisplayName = "example_mongo_cluster",
Location = datacenterExample.Location,
Connections = new Ionoscloud.Dbaas.Inputs.MongoClusterConnectionsArgs
{
DatacenterId = datacenterExample.Id,
LanId = lanExample.Id,
CidrLists = new[]
{
"192.168.1.108/24",
},
},
TemplateId = "6b78ea06-ee0e-4689-998c-fc9c46e781f6",
});
var clusterPassword = new Random.Index.Password("cluster_password", new()
{
Length = 16,
Special = true,
OverrideSpecial = "!#$%&*()-_=+[]{}<>:?",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.compute.Datacenter;
import com.pulumi.ionoscloud.compute.DatacenterArgs;
import com.pulumi.ionoscloud.compute.Lan;
import com.pulumi.ionoscloud.compute.LanArgs;
import com.pulumi.ionoscloud.dbaas.MongoCluster;
import com.pulumi.ionoscloud.dbaas.MongoClusterArgs;
import com.pulumi.ionoscloud.dbaas.inputs.MongoClusterMaintenanceWindowArgs;
import com.pulumi.ionoscloud.dbaas.inputs.MongoClusterConnectionsArgs;
import com.pulumi.random.password;
import com.pulumi.random.PasswordArgs;
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 datacenterExample = new Datacenter("datacenterExample", DatacenterArgs.builder()
.name("example")
.location("de/txl")
.description("Datacenter for testing dbaas cluster")
.build());
var lanExample = new Lan("lanExample", LanArgs.builder()
.datacenterId(datacenterExample.id())
.public_(false)
.name("example")
.build());
var exampleMongoCluster = new MongoCluster("exampleMongoCluster", MongoClusterArgs.builder()
.maintenanceWindow(MongoClusterMaintenanceWindowArgs.builder()
.dayOfTheWeek("Sunday")
.time("09:00:00")
.build())
.mongodbVersion("5.0")
.instances(1)
.displayName("example_mongo_cluster")
.location(datacenterExample.location())
.connections(MongoClusterConnectionsArgs.builder()
.datacenterId(datacenterExample.id())
.lanId(lanExample.id())
.cidrLists("192.168.1.108/24")
.build())
.templateId("6b78ea06-ee0e-4689-998c-fc9c46e781f6")
.build());
var clusterPassword = new Password("clusterPassword", PasswordArgs.builder()
.length(16)
.special(true)
.overrideSpecial("!#$%&*()-_=+[]{}<>:?")
.build());
}
}
resources:
datacenterExample:
type: ionoscloud:compute:Datacenter
name: datacenter_example
properties:
name: example
location: de/txl
description: Datacenter for testing dbaas cluster
lanExample:
type: ionoscloud:compute:Lan
name: lan_example
properties:
datacenterId: ${datacenterExample.id}
public: false
name: example
exampleMongoCluster:
type: ionoscloud:dbaas:MongoCluster
name: example_mongo_cluster
properties:
maintenanceWindow:
dayOfTheWeek: Sunday
time: 09:00:00
mongodbVersion: '5.0'
instances: 1
displayName: example_mongo_cluster
location: ${datacenterExample.location}
connections:
datacenterId: ${datacenterExample.id}
lanId: ${lanExample.id}
cidrLists:
- 192.168.1.108/24
templateId: 6b78ea06-ee0e-4689-998c-fc9c46e781f6
clusterPassword:
type: random:password
name: cluster_password
properties:
length: 16
special: true
overrideSpecial: '!#$%&*()-_=+[]{}<>:?'
Enterprise Edition
Enterprise Support: With MongoDB Enterprise, you gain access to professional support from the MongoDB team ensuring that you receive timely assistance and expert guidance when needed. IONOS offers enterprise-grade Service Level Agreements (SLAs), guaranteeing rapid response times and 24/7 support to address any critical issues that may arise.
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
import * as random from "@pulumi/random";
const datacenterExample = new ionoscloud.compute.Datacenter("datacenter_example", {
name: "example",
location: "de/txl",
description: "Datacenter for testing dbaas cluster",
});
const lanExample = new ionoscloud.compute.Lan("lan_example", {
datacenterId: datacenterExample.id,
"public": false,
name: "example",
});
const exampleMongoCluster = new ionoscloud.dbaas.MongoCluster("example_mongo_cluster", {
maintenanceWindow: {
dayOfTheWeek: "Sunday",
time: "09:00:00",
},
mongodbVersion: "5.0",
instances: 3,
displayName: "example_mongo_cluster",
location: datacenterExample.location,
connections: {
datacenterId: datacenterExample.id,
lanId: lanExample.id,
cidrLists: [
"192.168.1.108/24",
"192.168.1.109/24",
"192.168.1.110/24",
],
},
type: "sharded-cluster",
shards: 2,
edition: "enterprise",
ram: 2048,
cores: 1,
storageSize: 5120,
storageType: "HDD",
});
const clusterPassword = new random.index.Password("cluster_password", {
length: 16,
special: true,
overrideSpecial: "!#$%&*()-_=+[]{}<>:?",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
import pulumi_random as random
datacenter_example = ionoscloud.compute.Datacenter("datacenter_example",
name="example",
location="de/txl",
description="Datacenter for testing dbaas cluster")
lan_example = ionoscloud.compute.Lan("lan_example",
datacenter_id=datacenter_example.id,
public=False,
name="example")
example_mongo_cluster = ionoscloud.dbaas.MongoCluster("example_mongo_cluster",
maintenance_window={
"day_of_the_week": "Sunday",
"time": "09:00:00",
},
mongodb_version="5.0",
instances=3,
display_name="example_mongo_cluster",
location=datacenter_example.location,
connections={
"datacenter_id": datacenter_example.id,
"lan_id": lan_example.id,
"cidr_lists": [
"192.168.1.108/24",
"192.168.1.109/24",
"192.168.1.110/24",
],
},
type="sharded-cluster",
shards=2,
edition="enterprise",
ram=2048,
cores=1,
storage_size=5120,
storage_type="HDD")
cluster_password = random.index.Password("cluster_password",
length=16,
special=True,
override_special=!#$%&*()-_=+[]{}<>:?)
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/dbaas"
"github.com/pulumi/pulumi-random/sdk/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
datacenterExample, err := compute.NewDatacenter(ctx, "datacenter_example", &compute.DatacenterArgs{
Name: pulumi.String("example"),
Location: pulumi.String("de/txl"),
Description: pulumi.String("Datacenter for testing dbaas cluster"),
})
if err != nil {
return err
}
lanExample, err := compute.NewLan(ctx, "lan_example", &compute.LanArgs{
DatacenterId: datacenterExample.ID(),
Public: pulumi.Bool(false),
Name: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = dbaas.NewMongoCluster(ctx, "example_mongo_cluster", &dbaas.MongoClusterArgs{
MaintenanceWindow: &dbaas.MongoClusterMaintenanceWindowArgs{
DayOfTheWeek: pulumi.String("Sunday"),
Time: pulumi.String("09:00:00"),
},
MongodbVersion: pulumi.String("5.0"),
Instances: pulumi.Int(3),
DisplayName: pulumi.String("example_mongo_cluster"),
Location: datacenterExample.Location,
Connections: &dbaas.MongoClusterConnectionsArgs{
DatacenterId: datacenterExample.ID(),
LanId: lanExample.ID(),
CidrLists: pulumi.StringArray{
pulumi.String("192.168.1.108/24"),
pulumi.String("192.168.1.109/24"),
pulumi.String("192.168.1.110/24"),
},
},
Type: pulumi.String("sharded-cluster"),
Shards: pulumi.Int(2),
Edition: pulumi.String("enterprise"),
Ram: pulumi.Int(2048),
Cores: pulumi.Int(1),
StorageSize: pulumi.Int(5120),
StorageType: pulumi.String("HDD"),
})
if err != nil {
return err
}
_, err = random.NewPassword(ctx, "cluster_password", &random.PasswordArgs{
Length: 16,
Special: true,
OverrideSpecial: "!#$%&*()-_=+[]{}<>:?",
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var datacenterExample = new Ionoscloud.Compute.Datacenter("datacenter_example", new()
{
Name = "example",
Location = "de/txl",
Description = "Datacenter for testing dbaas cluster",
});
var lanExample = new Ionoscloud.Compute.Lan("lan_example", new()
{
DatacenterId = datacenterExample.Id,
Public = false,
Name = "example",
});
var exampleMongoCluster = new Ionoscloud.Dbaas.MongoCluster("example_mongo_cluster", new()
{
MaintenanceWindow = new Ionoscloud.Dbaas.Inputs.MongoClusterMaintenanceWindowArgs
{
DayOfTheWeek = "Sunday",
Time = "09:00:00",
},
MongodbVersion = "5.0",
Instances = 3,
DisplayName = "example_mongo_cluster",
Location = datacenterExample.Location,
Connections = new Ionoscloud.Dbaas.Inputs.MongoClusterConnectionsArgs
{
DatacenterId = datacenterExample.Id,
LanId = lanExample.Id,
CidrLists = new[]
{
"192.168.1.108/24",
"192.168.1.109/24",
"192.168.1.110/24",
},
},
Type = "sharded-cluster",
Shards = 2,
Edition = "enterprise",
Ram = 2048,
Cores = 1,
StorageSize = 5120,
StorageType = "HDD",
});
var clusterPassword = new Random.Index.Password("cluster_password", new()
{
Length = 16,
Special = true,
OverrideSpecial = "!#$%&*()-_=+[]{}<>:?",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.compute.Datacenter;
import com.pulumi.ionoscloud.compute.DatacenterArgs;
import com.pulumi.ionoscloud.compute.Lan;
import com.pulumi.ionoscloud.compute.LanArgs;
import com.pulumi.ionoscloud.dbaas.MongoCluster;
import com.pulumi.ionoscloud.dbaas.MongoClusterArgs;
import com.pulumi.ionoscloud.dbaas.inputs.MongoClusterMaintenanceWindowArgs;
import com.pulumi.ionoscloud.dbaas.inputs.MongoClusterConnectionsArgs;
import com.pulumi.random.password;
import com.pulumi.random.PasswordArgs;
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 datacenterExample = new Datacenter("datacenterExample", DatacenterArgs.builder()
.name("example")
.location("de/txl")
.description("Datacenter for testing dbaas cluster")
.build());
var lanExample = new Lan("lanExample", LanArgs.builder()
.datacenterId(datacenterExample.id())
.public_(false)
.name("example")
.build());
var exampleMongoCluster = new MongoCluster("exampleMongoCluster", MongoClusterArgs.builder()
.maintenanceWindow(MongoClusterMaintenanceWindowArgs.builder()
.dayOfTheWeek("Sunday")
.time("09:00:00")
.build())
.mongodbVersion("5.0")
.instances(3)
.displayName("example_mongo_cluster")
.location(datacenterExample.location())
.connections(MongoClusterConnectionsArgs.builder()
.datacenterId(datacenterExample.id())
.lanId(lanExample.id())
.cidrLists(
"192.168.1.108/24",
"192.168.1.109/24",
"192.168.1.110/24")
.build())
.type("sharded-cluster")
.shards(2)
.edition("enterprise")
.ram(2048)
.cores(1)
.storageSize(5120)
.storageType("HDD")
.build());
var clusterPassword = new Password("clusterPassword", PasswordArgs.builder()
.length(16)
.special(true)
.overrideSpecial("!#$%&*()-_=+[]{}<>:?")
.build());
}
}
resources:
datacenterExample:
type: ionoscloud:compute:Datacenter
name: datacenter_example
properties:
name: example
location: de/txl
description: Datacenter for testing dbaas cluster
lanExample:
type: ionoscloud:compute:Lan
name: lan_example
properties:
datacenterId: ${datacenterExample.id}
public: false
name: example
exampleMongoCluster:
type: ionoscloud:dbaas:MongoCluster
name: example_mongo_cluster
properties:
maintenanceWindow:
dayOfTheWeek: Sunday
time: 09:00:00
mongodbVersion: '5.0'
instances: 3
displayName: example_mongo_cluster
location: ${datacenterExample.location}
connections:
datacenterId: ${datacenterExample.id}
lanId: ${lanExample.id}
cidrLists:
- 192.168.1.108/24
- 192.168.1.109/24
- 192.168.1.110/24
type: sharded-cluster
shards: 2
edition: enterprise
ram: 2048
cores: 1
storageSize: 5120
storageType: HDD
clusterPassword:
type: random:password
name: cluster_password
properties:
length: 16
special: true
overrideSpecial: '!#$%&*()-_=+[]{}<>:?'
Create MongoCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MongoCluster(name: string, args: MongoClusterArgs, opts?: CustomResourceOptions);
@overload
def MongoCluster(resource_name: str,
args: MongoClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MongoCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
instances: Optional[int] = None,
mongodb_version: Optional[str] = None,
connections: Optional[MongoClusterConnectionsArgs] = None,
location: Optional[str] = None,
display_name: Optional[str] = None,
maintenance_window: Optional[MongoClusterMaintenanceWindowArgs] = None,
edition: Optional[str] = None,
cores: Optional[int] = None,
backup: Optional[MongoClusterBackupArgs] = None,
bi_connector: Optional[MongoClusterBiConnectorArgs] = None,
ram: Optional[int] = None,
shards: Optional[int] = None,
storage_size: Optional[int] = None,
storage_type: Optional[str] = None,
template_id: Optional[str] = None,
type: Optional[str] = None)
func NewMongoCluster(ctx *Context, name string, args MongoClusterArgs, opts ...ResourceOption) (*MongoCluster, error)
public MongoCluster(string name, MongoClusterArgs args, CustomResourceOptions? opts = null)
public MongoCluster(String name, MongoClusterArgs args)
public MongoCluster(String name, MongoClusterArgs args, CustomResourceOptions options)
type: ionoscloud:dbaas:MongoCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MongoClusterArgs
- 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 MongoClusterArgs
- 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 MongoClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MongoClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MongoClusterArgs
- 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 mongoClusterResource = new Ionoscloud.Dbaas.MongoCluster("mongoClusterResource", new()
{
Instances = 0,
MongodbVersion = "string",
Connections = new Ionoscloud.Dbaas.Inputs.MongoClusterConnectionsArgs
{
CidrLists = new[]
{
"string",
},
DatacenterId = "string",
LanId = "string",
},
Location = "string",
DisplayName = "string",
MaintenanceWindow = new Ionoscloud.Dbaas.Inputs.MongoClusterMaintenanceWindowArgs
{
DayOfTheWeek = "string",
Time = "string",
},
Edition = "string",
Cores = 0,
Backup = new Ionoscloud.Dbaas.Inputs.MongoClusterBackupArgs
{
Location = "string",
PointInTimeWindowHours = 0,
SnapshotIntervalHours = 0,
},
BiConnector = new Ionoscloud.Dbaas.Inputs.MongoClusterBiConnectorArgs
{
Enabled = false,
Host = "string",
Port = "string",
},
Ram = 0,
Shards = 0,
StorageSize = 0,
StorageType = "string",
TemplateId = "string",
Type = "string",
});
example, err := dbaas.NewMongoCluster(ctx, "mongoClusterResource", &dbaas.MongoClusterArgs{
Instances: pulumi.Int(0),
MongodbVersion: pulumi.String("string"),
Connections: &dbaas.MongoClusterConnectionsArgs{
CidrLists: pulumi.StringArray{
pulumi.String("string"),
},
DatacenterId: pulumi.String("string"),
LanId: pulumi.String("string"),
},
Location: pulumi.String("string"),
DisplayName: pulumi.String("string"),
MaintenanceWindow: &dbaas.MongoClusterMaintenanceWindowArgs{
DayOfTheWeek: pulumi.String("string"),
Time: pulumi.String("string"),
},
Edition: pulumi.String("string"),
Cores: pulumi.Int(0),
Backup: &dbaas.MongoClusterBackupArgs{
Location: pulumi.String("string"),
PointInTimeWindowHours: pulumi.Int(0),
SnapshotIntervalHours: pulumi.Int(0),
},
BiConnector: &dbaas.MongoClusterBiConnectorArgs{
Enabled: pulumi.Bool(false),
Host: pulumi.String("string"),
Port: pulumi.String("string"),
},
Ram: pulumi.Int(0),
Shards: pulumi.Int(0),
StorageSize: pulumi.Int(0),
StorageType: pulumi.String("string"),
TemplateId: pulumi.String("string"),
Type: pulumi.String("string"),
})
var mongoClusterResource = new MongoCluster("mongoClusterResource", MongoClusterArgs.builder()
.instances(0)
.mongodbVersion("string")
.connections(MongoClusterConnectionsArgs.builder()
.cidrLists("string")
.datacenterId("string")
.lanId("string")
.build())
.location("string")
.displayName("string")
.maintenanceWindow(MongoClusterMaintenanceWindowArgs.builder()
.dayOfTheWeek("string")
.time("string")
.build())
.edition("string")
.cores(0)
.backup(MongoClusterBackupArgs.builder()
.location("string")
.pointInTimeWindowHours(0)
.snapshotIntervalHours(0)
.build())
.biConnector(MongoClusterBiConnectorArgs.builder()
.enabled(false)
.host("string")
.port("string")
.build())
.ram(0)
.shards(0)
.storageSize(0)
.storageType("string")
.templateId("string")
.type("string")
.build());
mongo_cluster_resource = ionoscloud.dbaas.MongoCluster("mongoClusterResource",
instances=0,
mongodb_version="string",
connections={
"cidr_lists": ["string"],
"datacenter_id": "string",
"lan_id": "string",
},
location="string",
display_name="string",
maintenance_window={
"day_of_the_week": "string",
"time": "string",
},
edition="string",
cores=0,
backup={
"location": "string",
"point_in_time_window_hours": 0,
"snapshot_interval_hours": 0,
},
bi_connector={
"enabled": False,
"host": "string",
"port": "string",
},
ram=0,
shards=0,
storage_size=0,
storage_type="string",
template_id="string",
type="string")
const mongoClusterResource = new ionoscloud.dbaas.MongoCluster("mongoClusterResource", {
instances: 0,
mongodbVersion: "string",
connections: {
cidrLists: ["string"],
datacenterId: "string",
lanId: "string",
},
location: "string",
displayName: "string",
maintenanceWindow: {
dayOfTheWeek: "string",
time: "string",
},
edition: "string",
cores: 0,
backup: {
location: "string",
pointInTimeWindowHours: 0,
snapshotIntervalHours: 0,
},
biConnector: {
enabled: false,
host: "string",
port: "string",
},
ram: 0,
shards: 0,
storageSize: 0,
storageType: "string",
templateId: "string",
type: "string",
});
type: ionoscloud:dbaas:MongoCluster
properties:
backup:
location: string
pointInTimeWindowHours: 0
snapshotIntervalHours: 0
biConnector:
enabled: false
host: string
port: string
connections:
cidrLists:
- string
datacenterId: string
lanId: string
cores: 0
displayName: string
edition: string
instances: 0
location: string
maintenanceWindow:
dayOfTheWeek: string
time: string
mongodbVersion: string
ram: 0
shards: 0
storageSize: 0
storageType: string
templateId: string
type: string
MongoCluster 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 MongoCluster resource accepts the following input properties:
- Connections
Ionoscloud.
Mongo Cluster Connections - [List] Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- Display
Name string - [string] The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- Instances int
- [int] The total number of instances in the cluster (one master and n-1 standbys). Example: 1, 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- Location string
- [string] The physical location where the cluster will be created. Property cannot be modified after datacenter creation (disallowed in update requests). Available locations: de/txl, gb/lhr, es/vit. Update forces cluster re-creation.
- Mongodb
Version string - [string] The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- Backup
Ionoscloud.
Mongo Cluster Backup - [list]
- Bi
Connector Ionoscloud.Mongo Cluster Bi Connector - (Computed)The MongoDB Connector for Business Intelligence allows you to query a MongoDB database using SQL commands to aid in data analysis.
- Cores int
- (Computed)[int] The number of CPU cores per replica. Required for enterprise edition.
- Edition string
- (Computed)[string] Cluster edition. Playground, business or enterprise.
- Maintenance
Window Ionoscloud.Mongo Cluster Maintenance Window - (Computed) A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- Ram int
- (Computed)[int]The amount of memory per instance in megabytes. Required for enterprise edition.
- int
- [int]The total number of shards in the cluster.
- Storage
Size int - (Computed)[int] The amount of storage per instance in MB. Required for enterprise edition.
- Storage
Type string - (Computed)[String] The storage type used in your cluster. Required for enterprise edition.
- Template
Id string - [string] The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created. Required for playground and business editions. Must not be provided for enterprise edition.
- Type string
- (Computed)[string]The cluster type, either
replicaset
orsharded-cluster
.
- Connections
Mongo
Cluster Connections Args - [List] Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- Display
Name string - [string] The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- Instances int
- [int] The total number of instances in the cluster (one master and n-1 standbys). Example: 1, 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- Location string
- [string] The physical location where the cluster will be created. Property cannot be modified after datacenter creation (disallowed in update requests). Available locations: de/txl, gb/lhr, es/vit. Update forces cluster re-creation.
- Mongodb
Version string - [string] The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- Backup
Mongo
Cluster Backup Args - [list]
- Bi
Connector MongoCluster Bi Connector Args - (Computed)The MongoDB Connector for Business Intelligence allows you to query a MongoDB database using SQL commands to aid in data analysis.
- Cores int
- (Computed)[int] The number of CPU cores per replica. Required for enterprise edition.
- Edition string
- (Computed)[string] Cluster edition. Playground, business or enterprise.
- Maintenance
Window MongoCluster Maintenance Window Args - (Computed) A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- Ram int
- (Computed)[int]The amount of memory per instance in megabytes. Required for enterprise edition.
- int
- [int]The total number of shards in the cluster.
- Storage
Size int - (Computed)[int] The amount of storage per instance in MB. Required for enterprise edition.
- Storage
Type string - (Computed)[String] The storage type used in your cluster. Required for enterprise edition.
- Template
Id string - [string] The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created. Required for playground and business editions. Must not be provided for enterprise edition.
- Type string
- (Computed)[string]The cluster type, either
replicaset
orsharded-cluster
.
- connections
Mongo
Cluster Connections - [List] Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- display
Name String - [string] The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- instances Integer
- [int] The total number of instances in the cluster (one master and n-1 standbys). Example: 1, 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- location String
- [string] The physical location where the cluster will be created. Property cannot be modified after datacenter creation (disallowed in update requests). Available locations: de/txl, gb/lhr, es/vit. Update forces cluster re-creation.
- mongodb
Version String - [string] The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- backup
Mongo
Cluster Backup - [list]
- bi
Connector MongoCluster Bi Connector - (Computed)The MongoDB Connector for Business Intelligence allows you to query a MongoDB database using SQL commands to aid in data analysis.
- cores Integer
- (Computed)[int] The number of CPU cores per replica. Required for enterprise edition.
- edition String
- (Computed)[string] Cluster edition. Playground, business or enterprise.
- maintenance
Window MongoCluster Maintenance Window - (Computed) A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- ram Integer
- (Computed)[int]The amount of memory per instance in megabytes. Required for enterprise edition.
- Integer
- [int]The total number of shards in the cluster.
- storage
Size Integer - (Computed)[int] The amount of storage per instance in MB. Required for enterprise edition.
- storage
Type String - (Computed)[String] The storage type used in your cluster. Required for enterprise edition.
- template
Id String - [string] The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created. Required for playground and business editions. Must not be provided for enterprise edition.
- type String
- (Computed)[string]The cluster type, either
replicaset
orsharded-cluster
.
- connections
Mongo
Cluster Connections - [List] Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- display
Name string - [string] The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- instances number
- [int] The total number of instances in the cluster (one master and n-1 standbys). Example: 1, 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- location string
- [string] The physical location where the cluster will be created. Property cannot be modified after datacenter creation (disallowed in update requests). Available locations: de/txl, gb/lhr, es/vit. Update forces cluster re-creation.
- mongodb
Version string - [string] The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- backup
Mongo
Cluster Backup - [list]
- bi
Connector MongoCluster Bi Connector - (Computed)The MongoDB Connector for Business Intelligence allows you to query a MongoDB database using SQL commands to aid in data analysis.
- cores number
- (Computed)[int] The number of CPU cores per replica. Required for enterprise edition.
- edition string
- (Computed)[string] Cluster edition. Playground, business or enterprise.
- maintenance
Window MongoCluster Maintenance Window - (Computed) A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- ram number
- (Computed)[int]The amount of memory per instance in megabytes. Required for enterprise edition.
- number
- [int]The total number of shards in the cluster.
- storage
Size number - (Computed)[int] The amount of storage per instance in MB. Required for enterprise edition.
- storage
Type string - (Computed)[String] The storage type used in your cluster. Required for enterprise edition.
- template
Id string - [string] The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created. Required for playground and business editions. Must not be provided for enterprise edition.
- type string
- (Computed)[string]The cluster type, either
replicaset
orsharded-cluster
.
- connections
Mongo
Cluster Connections Args - [List] Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- display_
name str - [string] The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- instances int
- [int] The total number of instances in the cluster (one master and n-1 standbys). Example: 1, 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- location str
- [string] The physical location where the cluster will be created. Property cannot be modified after datacenter creation (disallowed in update requests). Available locations: de/txl, gb/lhr, es/vit. Update forces cluster re-creation.
- mongodb_
version str - [string] The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- backup
Mongo
Cluster Backup Args - [list]
- bi_
connector MongoCluster Bi Connector Args - (Computed)The MongoDB Connector for Business Intelligence allows you to query a MongoDB database using SQL commands to aid in data analysis.
- cores int
- (Computed)[int] The number of CPU cores per replica. Required for enterprise edition.
- edition str
- (Computed)[string] Cluster edition. Playground, business or enterprise.
- maintenance_
window MongoCluster Maintenance Window Args - (Computed) A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- ram int
- (Computed)[int]The amount of memory per instance in megabytes. Required for enterprise edition.
- int
- [int]The total number of shards in the cluster.
- storage_
size int - (Computed)[int] The amount of storage per instance in MB. Required for enterprise edition.
- storage_
type str - (Computed)[String] The storage type used in your cluster. Required for enterprise edition.
- template_
id str - [string] The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created. Required for playground and business editions. Must not be provided for enterprise edition.
- type str
- (Computed)[string]The cluster type, either
replicaset
orsharded-cluster
.
- connections Property Map
- [List] Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- display
Name String - [string] The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- instances Number
- [int] The total number of instances in the cluster (one master and n-1 standbys). Example: 1, 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- location String
- [string] The physical location where the cluster will be created. Property cannot be modified after datacenter creation (disallowed in update requests). Available locations: de/txl, gb/lhr, es/vit. Update forces cluster re-creation.
- mongodb
Version String - [string] The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- backup Property Map
- [list]
- bi
Connector Property Map - (Computed)The MongoDB Connector for Business Intelligence allows you to query a MongoDB database using SQL commands to aid in data analysis.
- cores Number
- (Computed)[int] The number of CPU cores per replica. Required for enterprise edition.
- edition String
- (Computed)[string] Cluster edition. Playground, business or enterprise.
- maintenance
Window Property Map - (Computed) A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- ram Number
- (Computed)[int]The amount of memory per instance in megabytes. Required for enterprise edition.
- Number
- [int]The total number of shards in the cluster.
- storage
Size Number - (Computed)[int] The amount of storage per instance in MB. Required for enterprise edition.
- storage
Type String - (Computed)[String] The storage type used in your cluster. Required for enterprise edition.
- template
Id String - [string] The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created. Required for playground and business editions. Must not be provided for enterprise edition.
- type String
- (Computed)[string]The cluster type, either
replicaset
orsharded-cluster
.
Outputs
All input properties are implicitly available as output properties. Additionally, the MongoCluster resource produces the following output properties:
- Connection
String string - [string] The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit
- Id string
- The provider-assigned unique ID for this managed resource.
- Connection
String string - [string] The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit
- Id string
- The provider-assigned unique ID for this managed resource.
- connection
String String - [string] The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit
- id String
- The provider-assigned unique ID for this managed resource.
- connection
String string - [string] The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit
- id string
- The provider-assigned unique ID for this managed resource.
- connection_
string str - [string] The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit
- id str
- The provider-assigned unique ID for this managed resource.
- connection
String String - [string] The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MongoCluster Resource
Get an existing MongoCluster 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?: MongoClusterState, opts?: CustomResourceOptions): MongoCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup: Optional[MongoClusterBackupArgs] = None,
bi_connector: Optional[MongoClusterBiConnectorArgs] = None,
connection_string: Optional[str] = None,
connections: Optional[MongoClusterConnectionsArgs] = None,
cores: Optional[int] = None,
display_name: Optional[str] = None,
edition: Optional[str] = None,
instances: Optional[int] = None,
location: Optional[str] = None,
maintenance_window: Optional[MongoClusterMaintenanceWindowArgs] = None,
mongodb_version: Optional[str] = None,
ram: Optional[int] = None,
shards: Optional[int] = None,
storage_size: Optional[int] = None,
storage_type: Optional[str] = None,
template_id: Optional[str] = None,
type: Optional[str] = None) -> MongoCluster
func GetMongoCluster(ctx *Context, name string, id IDInput, state *MongoClusterState, opts ...ResourceOption) (*MongoCluster, error)
public static MongoCluster Get(string name, Input<string> id, MongoClusterState? state, CustomResourceOptions? opts = null)
public static MongoCluster get(String name, Output<String> id, MongoClusterState state, CustomResourceOptions options)
resources: _: type: ionoscloud:dbaas:MongoCluster get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Backup
Ionoscloud.
Mongo Cluster Backup - [list]
- Bi
Connector Ionoscloud.Mongo Cluster Bi Connector - (Computed)The MongoDB Connector for Business Intelligence allows you to query a MongoDB database using SQL commands to aid in data analysis.
- Connection
String string - [string] The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit
- Connections
Ionoscloud.
Mongo Cluster Connections - [List] Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- Cores int
- (Computed)[int] The number of CPU cores per replica. Required for enterprise edition.
- Display
Name string - [string] The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- Edition string
- (Computed)[string] Cluster edition. Playground, business or enterprise.
- Instances int
- [int] The total number of instances in the cluster (one master and n-1 standbys). Example: 1, 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- Location string
- [string] The physical location where the cluster will be created. Property cannot be modified after datacenter creation (disallowed in update requests). Available locations: de/txl, gb/lhr, es/vit. Update forces cluster re-creation.
- Maintenance
Window Ionoscloud.Mongo Cluster Maintenance Window - (Computed) A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- Mongodb
Version string - [string] The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- Ram int
- (Computed)[int]The amount of memory per instance in megabytes. Required for enterprise edition.
- Shards int
- [int]The total number of shards in the cluster.
- Storage
Size int - (Computed)[int] The amount of storage per instance in MB. Required for enterprise edition.
- Storage
Type string - (Computed)[String] The storage type used in your cluster. Required for enterprise edition.
- Template
Id string - [string] The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created. Required for playground and business editions. Must not be provided for enterprise edition.
- Type string
- (Computed)[string]The cluster type, either
replicaset
orsharded-cluster
.
- Backup
Mongo
Cluster Backup Args - [list]
- Bi
Connector MongoCluster Bi Connector Args - (Computed)The MongoDB Connector for Business Intelligence allows you to query a MongoDB database using SQL commands to aid in data analysis.
- Connection
String string - [string] The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit
- Connections
Mongo
Cluster Connections Args - [List] Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- Cores int
- (Computed)[int] The number of CPU cores per replica. Required for enterprise edition.
- Display
Name string - [string] The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- Edition string
- (Computed)[string] Cluster edition. Playground, business or enterprise.
- Instances int
- [int] The total number of instances in the cluster (one master and n-1 standbys). Example: 1, 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- Location string
- [string] The physical location where the cluster will be created. Property cannot be modified after datacenter creation (disallowed in update requests). Available locations: de/txl, gb/lhr, es/vit. Update forces cluster re-creation.
- Maintenance
Window MongoCluster Maintenance Window Args - (Computed) A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- Mongodb
Version string - [string] The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- Ram int
- (Computed)[int]The amount of memory per instance in megabytes. Required for enterprise edition.
- Shards int
- [int]The total number of shards in the cluster.
- Storage
Size int - (Computed)[int] The amount of storage per instance in MB. Required for enterprise edition.
- Storage
Type string - (Computed)[String] The storage type used in your cluster. Required for enterprise edition.
- Template
Id string - [string] The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created. Required for playground and business editions. Must not be provided for enterprise edition.
- Type string
- (Computed)[string]The cluster type, either
replicaset
orsharded-cluster
.
- backup
Mongo
Cluster Backup - [list]
- bi
Connector MongoCluster Bi Connector - (Computed)The MongoDB Connector for Business Intelligence allows you to query a MongoDB database using SQL commands to aid in data analysis.
- connection
String String - [string] The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit
- connections
Mongo
Cluster Connections - [List] Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- cores Integer
- (Computed)[int] The number of CPU cores per replica. Required for enterprise edition.
- display
Name String - [string] The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- edition String
- (Computed)[string] Cluster edition. Playground, business or enterprise.
- instances Integer
- [int] The total number of instances in the cluster (one master and n-1 standbys). Example: 1, 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- location String
- [string] The physical location where the cluster will be created. Property cannot be modified after datacenter creation (disallowed in update requests). Available locations: de/txl, gb/lhr, es/vit. Update forces cluster re-creation.
- maintenance
Window MongoCluster Maintenance Window - (Computed) A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- mongodb
Version String - [string] The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- ram Integer
- (Computed)[int]The amount of memory per instance in megabytes. Required for enterprise edition.
- shards Integer
- [int]The total number of shards in the cluster.
- storage
Size Integer - (Computed)[int] The amount of storage per instance in MB. Required for enterprise edition.
- storage
Type String - (Computed)[String] The storage type used in your cluster. Required for enterprise edition.
- template
Id String - [string] The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created. Required for playground and business editions. Must not be provided for enterprise edition.
- type String
- (Computed)[string]The cluster type, either
replicaset
orsharded-cluster
.
- backup
Mongo
Cluster Backup - [list]
- bi
Connector MongoCluster Bi Connector - (Computed)The MongoDB Connector for Business Intelligence allows you to query a MongoDB database using SQL commands to aid in data analysis.
- connection
String string - [string] The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit
- connections
Mongo
Cluster Connections - [List] Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- cores number
- (Computed)[int] The number of CPU cores per replica. Required for enterprise edition.
- display
Name string - [string] The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- edition string
- (Computed)[string] Cluster edition. Playground, business or enterprise.
- instances number
- [int] The total number of instances in the cluster (one master and n-1 standbys). Example: 1, 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- location string
- [string] The physical location where the cluster will be created. Property cannot be modified after datacenter creation (disallowed in update requests). Available locations: de/txl, gb/lhr, es/vit. Update forces cluster re-creation.
- maintenance
Window MongoCluster Maintenance Window - (Computed) A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- mongodb
Version string - [string] The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- ram number
- (Computed)[int]The amount of memory per instance in megabytes. Required for enterprise edition.
- shards number
- [int]The total number of shards in the cluster.
- storage
Size number - (Computed)[int] The amount of storage per instance in MB. Required for enterprise edition.
- storage
Type string - (Computed)[String] The storage type used in your cluster. Required for enterprise edition.
- template
Id string - [string] The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created. Required for playground and business editions. Must not be provided for enterprise edition.
- type string
- (Computed)[string]The cluster type, either
replicaset
orsharded-cluster
.
- backup
Mongo
Cluster Backup Args - [list]
- bi_
connector MongoCluster Bi Connector Args - (Computed)The MongoDB Connector for Business Intelligence allows you to query a MongoDB database using SQL commands to aid in data analysis.
- connection_
string str - [string] The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit
- connections
Mongo
Cluster Connections Args - [List] Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- cores int
- (Computed)[int] The number of CPU cores per replica. Required for enterprise edition.
- display_
name str - [string] The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- edition str
- (Computed)[string] Cluster edition. Playground, business or enterprise.
- instances int
- [int] The total number of instances in the cluster (one master and n-1 standbys). Example: 1, 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- location str
- [string] The physical location where the cluster will be created. Property cannot be modified after datacenter creation (disallowed in update requests). Available locations: de/txl, gb/lhr, es/vit. Update forces cluster re-creation.
- maintenance_
window MongoCluster Maintenance Window Args - (Computed) A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- mongodb_
version str - [string] The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- ram int
- (Computed)[int]The amount of memory per instance in megabytes. Required for enterprise edition.
- shards int
- [int]The total number of shards in the cluster.
- storage_
size int - (Computed)[int] The amount of storage per instance in MB. Required for enterprise edition.
- storage_
type str - (Computed)[String] The storage type used in your cluster. Required for enterprise edition.
- template_
id str - [string] The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created. Required for playground and business editions. Must not be provided for enterprise edition.
- type str
- (Computed)[string]The cluster type, either
replicaset
orsharded-cluster
.
- backup Property Map
- [list]
- bi
Connector Property Map - (Computed)The MongoDB Connector for Business Intelligence allows you to query a MongoDB database using SQL commands to aid in data analysis.
- connection
String String - [string] The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit
- connections Property Map
- [List] Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- cores Number
- (Computed)[int] The number of CPU cores per replica. Required for enterprise edition.
- display
Name String - [string] The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- edition String
- (Computed)[string] Cluster edition. Playground, business or enterprise.
- instances Number
- [int] The total number of instances in the cluster (one master and n-1 standbys). Example: 1, 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- location String
- [string] The physical location where the cluster will be created. Property cannot be modified after datacenter creation (disallowed in update requests). Available locations: de/txl, gb/lhr, es/vit. Update forces cluster re-creation.
- maintenance
Window Property Map - (Computed) A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- mongodb
Version String - [string] The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- ram Number
- (Computed)[int]The amount of memory per instance in megabytes. Required for enterprise edition.
- shards Number
- [int]The total number of shards in the cluster.
- storage
Size Number - (Computed)[int] The amount of storage per instance in MB. Required for enterprise edition.
- storage
Type String - (Computed)[String] The storage type used in your cluster. Required for enterprise edition.
- template
Id String - [string] The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created. Required for playground and business editions. Must not be provided for enterprise edition.
- type String
- (Computed)[string]The cluster type, either
replicaset
orsharded-cluster
.
Supporting Types
MongoClusterBackup, MongoClusterBackupArgs
- Location string
- [string] - The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- Point
In intTime Window Hours - Number of hours in the past for which a point-in-time snapshot can be created.
- Snapshot
Interval intHours - Number of hours between snapshots.
- Location string
- [string] - The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- Point
In intTime Window Hours - Number of hours in the past for which a point-in-time snapshot can be created.
- Snapshot
Interval intHours - Number of hours between snapshots.
- location String
- [string] - The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- point
In IntegerTime Window Hours - Number of hours in the past for which a point-in-time snapshot can be created.
- snapshot
Interval IntegerHours - Number of hours between snapshots.
- location string
- [string] - The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- point
In numberTime Window Hours - Number of hours in the past for which a point-in-time snapshot can be created.
- snapshot
Interval numberHours - Number of hours between snapshots.
- location str
- [string] - The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- point_
in_ inttime_ window_ hours - Number of hours in the past for which a point-in-time snapshot can be created.
- snapshot_
interval_ inthours - Number of hours between snapshots.
- location String
- [string] - The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- point
In NumberTime Window Hours - Number of hours in the past for which a point-in-time snapshot can be created.
- snapshot
Interval NumberHours - Number of hours between snapshots.
MongoClusterBiConnector, MongoClusterBiConnectorArgs
MongoClusterConnections, MongoClusterConnectionsArgs
- Cidr
Lists List<string> - [List] The list of IPs and subnet for your cluster. Note the following unavailable IP ranges:10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. example: [192.168.1.100/24, 192.168.1.101/24]. See Private IPs and Cluster Setup - Preparing the network.
- Datacenter
Id string - [string] The datacenter to connect your cluster to.
- Lan
Id string - [string] The LAN to connect your cluster to.
- Cidr
Lists []string - [List] The list of IPs and subnet for your cluster. Note the following unavailable IP ranges:10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. example: [192.168.1.100/24, 192.168.1.101/24]. See Private IPs and Cluster Setup - Preparing the network.
- Datacenter
Id string - [string] The datacenter to connect your cluster to.
- Lan
Id string - [string] The LAN to connect your cluster to.
- cidr
Lists List<String> - [List] The list of IPs and subnet for your cluster. Note the following unavailable IP ranges:10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. example: [192.168.1.100/24, 192.168.1.101/24]. See Private IPs and Cluster Setup - Preparing the network.
- datacenter
Id String - [string] The datacenter to connect your cluster to.
- lan
Id String - [string] The LAN to connect your cluster to.
- cidr
Lists string[] - [List] The list of IPs and subnet for your cluster. Note the following unavailable IP ranges:10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. example: [192.168.1.100/24, 192.168.1.101/24]. See Private IPs and Cluster Setup - Preparing the network.
- datacenter
Id string - [string] The datacenter to connect your cluster to.
- lan
Id string - [string] The LAN to connect your cluster to.
- cidr_
lists Sequence[str] - [List] The list of IPs and subnet for your cluster. Note the following unavailable IP ranges:10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. example: [192.168.1.100/24, 192.168.1.101/24]. See Private IPs and Cluster Setup - Preparing the network.
- datacenter_
id str - [string] The datacenter to connect your cluster to.
- lan_
id str - [string] The LAN to connect your cluster to.
- cidr
Lists List<String> - [List] The list of IPs and subnet for your cluster. Note the following unavailable IP ranges:10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. example: [192.168.1.100/24, 192.168.1.101/24]. See Private IPs and Cluster Setup - Preparing the network.
- datacenter
Id String - [string] The datacenter to connect your cluster to.
- lan
Id String - [string] The LAN to connect your cluster to.
MongoClusterMaintenanceWindow, MongoClusterMaintenanceWindowArgs
- Day
Of stringThe Week - [string]
- Time string
- [string]
- Day
Of stringThe Week - [string]
- Time string
- [string]
- day
Of StringThe Week - [string]
- time String
- [string]
- day
Of stringThe Week - [string]
- time string
- [string]
- day_
of_ strthe_ week - [string]
- time str
- [string]
- day
Of StringThe Week - [string]
- time String
- [string]
Import
Resource DbaaS MongoDb Cluster can be imported using the cluster_id
, e.g.
$ pulumi import ionoscloud:dbaas/mongoCluster:MongoCluster mycluser cluster uuid
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.