1. Packages
  2. Yandex
  3. API Docs
  4. MdbMongodbCluster
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.MdbMongodbCluster

Explore with Pulumi AI

Manages a MongoDB cluster within the Yandex.Cloud. For more information, see the official documentation.

Example Usage

Example of creating a Single Node MongoDB.

using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var fooVpcNetwork = new Yandex.VpcNetwork("fooVpcNetwork", new Yandex.VpcNetworkArgs
        {
        });
        var fooVpcSubnet = new Yandex.VpcSubnet("fooVpcSubnet", new Yandex.VpcSubnetArgs
        {
            NetworkId = fooVpcNetwork.Id,
            V4CidrBlocks = 
            {
                "10.1.0.0/24",
            },
            Zone = "ru-central1-a",
        });
        var fooMdbMongodbCluster = new Yandex.MdbMongodbCluster("fooMdbMongodbCluster", new Yandex.MdbMongodbClusterArgs
        {
            ClusterConfig = new Yandex.Inputs.MdbMongodbClusterClusterConfigArgs
            {
                Version = "4.2",
            },
            Databases = 
            {
                new Yandex.Inputs.MdbMongodbClusterDatabaseArgs
                {
                    Name = "testdb",
                },
            },
            Environment = "PRESTABLE",
            Hosts = 
            {
                new Yandex.Inputs.MdbMongodbClusterHostArgs
                {
                    SubnetId = fooVpcSubnet.Id,
                    ZoneId = "ru-central1-a",
                },
            },
            Labels = 
            {
                { "test_key", "test_value" },
            },
            MaintenanceWindow = new Yandex.Inputs.MdbMongodbClusterMaintenanceWindowArgs
            {
                Type = "ANYTIME",
            },
            NetworkId = fooVpcNetwork.Id,
            Resources = new Yandex.Inputs.MdbMongodbClusterResourcesArgs
            {
                DiskSize = 16,
                DiskTypeId = "network-hdd",
                ResourcePresetId = "b1.nano",
            },
            Users = 
            {
                new Yandex.Inputs.MdbMongodbClusterUserArgs
                {
                    Name = "john",
                    Password = "password",
                    Permissions = 
                    {
                        new Yandex.Inputs.MdbMongodbClusterUserPermissionArgs
                        {
                            DatabaseName = "testdb",
                        },
                    },
                },
            },
        });
    }

}
Copy
package main

import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooVpcNetwork, err := yandex.NewVpcNetwork(ctx, "fooVpcNetwork", nil)
		if err != nil {
			return err
		}
		fooVpcSubnet, err := yandex.NewVpcSubnet(ctx, "fooVpcSubnet", &yandex.VpcSubnetArgs{
			NetworkId: fooVpcNetwork.ID(),
			V4CidrBlocks: pulumi.StringArray{
				pulumi.String("10.1.0.0/24"),
			},
			Zone: pulumi.String("ru-central1-a"),
		})
		if err != nil {
			return err
		}
		_, err = yandex.NewMdbMongodbCluster(ctx, "fooMdbMongodbCluster", &yandex.MdbMongodbClusterArgs{
			ClusterConfig: &MdbMongodbClusterClusterConfigArgs{
				Version: pulumi.String("4.2"),
			},
			Databases: MdbMongodbClusterDatabaseArray{
				&MdbMongodbClusterDatabaseArgs{
					Name: pulumi.String("testdb"),
				},
			},
			Environment: pulumi.String("PRESTABLE"),
			Hosts: MdbMongodbClusterHostArray{
				&MdbMongodbClusterHostArgs{
					SubnetId: fooVpcSubnet.ID(),
					ZoneId:   pulumi.String("ru-central1-a"),
				},
			},
			Labels: pulumi.StringMap{
				"test_key": pulumi.String("test_value"),
			},
			MaintenanceWindow: &MdbMongodbClusterMaintenanceWindowArgs{
				Type: pulumi.String("ANYTIME"),
			},
			NetworkId: fooVpcNetwork.ID(),
			Resources: &MdbMongodbClusterResourcesArgs{
				DiskSize:         pulumi.Int(16),
				DiskTypeId:       pulumi.String("network-hdd"),
				ResourcePresetId: pulumi.String("b1.nano"),
			},
			Users: MdbMongodbClusterUserArray{
				&MdbMongodbClusterUserArgs{
					Name:     pulumi.String("john"),
					Password: pulumi.String("password"),
					Permissions: MdbMongodbClusterUserPermissionArray{
						&MdbMongodbClusterUserPermissionArgs{
							DatabaseName: pulumi.String("testdb"),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy

Coming soon!

import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";

const fooVpcNetwork = new yandex.VpcNetwork("foo", {});
const fooVpcSubnet = new yandex.VpcSubnet("foo", {
    networkId: fooVpcNetwork.id,
    v4CidrBlocks: ["10.1.0.0/24"],
    zone: "ru-central1-a",
});
const fooMdbMongodbCluster = new yandex.MdbMongodbCluster("foo", {
    clusterConfig: {
        version: "4.2",
    },
    databases: [{
        name: "testdb",
    }],
    environment: "PRESTABLE",
    hosts: [{
        subnetId: fooVpcSubnet.id,
        zoneId: "ru-central1-a",
    }],
    labels: {
        test_key: "test_value",
    },
    maintenanceWindow: {
        type: "ANYTIME",
    },
    networkId: fooVpcNetwork.id,
    resources: {
        diskSize: 16,
        diskTypeId: "network-hdd",
        resourcePresetId: "b1.nano",
    },
    users: [{
        name: "john",
        password: "password",
        permissions: [{
            databaseName: "testdb",
        }],
    }],
});
Copy
import pulumi
import pulumi_yandex as yandex

foo_vpc_network = yandex.VpcNetwork("fooVpcNetwork")
foo_vpc_subnet = yandex.VpcSubnet("fooVpcSubnet",
    network_id=foo_vpc_network.id,
    v4_cidr_blocks=["10.1.0.0/24"],
    zone="ru-central1-a")
foo_mdb_mongodb_cluster = yandex.MdbMongodbCluster("fooMdbMongodbCluster",
    cluster_config=yandex.MdbMongodbClusterClusterConfigArgs(
        version="4.2",
    ),
    databases=[yandex.MdbMongodbClusterDatabaseArgs(
        name="testdb",
    )],
    environment="PRESTABLE",
    hosts=[yandex.MdbMongodbClusterHostArgs(
        subnet_id=foo_vpc_subnet.id,
        zone_id="ru-central1-a",
    )],
    labels={
        "test_key": "test_value",
    },
    maintenance_window=yandex.MdbMongodbClusterMaintenanceWindowArgs(
        type="ANYTIME",
    ),
    network_id=foo_vpc_network.id,
    resources=yandex.MdbMongodbClusterResourcesArgs(
        disk_size=16,
        disk_type_id="network-hdd",
        resource_preset_id="b1.nano",
    ),
    users=[yandex.MdbMongodbClusterUserArgs(
        name="john",
        password="password",
        permissions=[yandex.MdbMongodbClusterUserPermissionArgs(
            database_name="testdb",
        )],
    )])
Copy

Coming soon!

Create MdbMongodbCluster Resource

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

Constructor syntax

new MdbMongodbCluster(name: string, args: MdbMongodbClusterArgs, opts?: CustomResourceOptions);
@overload
def MdbMongodbCluster(resource_name: str,
                      args: MdbMongodbClusterArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def MdbMongodbCluster(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      hosts: Optional[Sequence[MdbMongodbClusterHostArgs]] = None,
                      users: Optional[Sequence[MdbMongodbClusterUserArgs]] = None,
                      databases: Optional[Sequence[MdbMongodbClusterDatabaseArgs]] = None,
                      resources: Optional[MdbMongodbClusterResourcesArgs] = None,
                      network_id: Optional[str] = None,
                      environment: Optional[str] = None,
                      cluster_config: Optional[MdbMongodbClusterClusterConfigArgs] = None,
                      folder_id: Optional[str] = None,
                      labels: Optional[Mapping[str, str]] = None,
                      maintenance_window: Optional[MdbMongodbClusterMaintenanceWindowArgs] = None,
                      name: Optional[str] = None,
                      description: Optional[str] = None,
                      deletion_protection: Optional[bool] = None,
                      security_group_ids: Optional[Sequence[str]] = None,
                      cluster_id: Optional[str] = None)
func NewMdbMongodbCluster(ctx *Context, name string, args MdbMongodbClusterArgs, opts ...ResourceOption) (*MdbMongodbCluster, error)
public MdbMongodbCluster(string name, MdbMongodbClusterArgs args, CustomResourceOptions? opts = null)
public MdbMongodbCluster(String name, MdbMongodbClusterArgs args)
public MdbMongodbCluster(String name, MdbMongodbClusterArgs args, CustomResourceOptions options)
type: yandex:MdbMongodbCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. MdbMongodbClusterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. MdbMongodbClusterArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. MdbMongodbClusterArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. MdbMongodbClusterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. MdbMongodbClusterArgs
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 mdbMongodbClusterResource = new Yandex.MdbMongodbCluster("mdbMongodbClusterResource", new()
{
    Hosts = new[]
    {
        new Yandex.Inputs.MdbMongodbClusterHostArgs
        {
            SubnetId = "string",
            ZoneId = "string",
            AssignPublicIp = false,
            Health = "string",
            Name = "string",
            Role = "string",
            ShardName = "string",
            Type = "string",
        },
    },
    Users = new[]
    {
        new Yandex.Inputs.MdbMongodbClusterUserArgs
        {
            Name = "string",
            Password = "string",
            Permissions = new[]
            {
                new Yandex.Inputs.MdbMongodbClusterUserPermissionArgs
                {
                    DatabaseName = "string",
                    Roles = new[]
                    {
                        "string",
                    },
                },
            },
        },
    },
    Databases = new[]
    {
        new Yandex.Inputs.MdbMongodbClusterDatabaseArgs
        {
            Name = "string",
        },
    },
    Resources = new Yandex.Inputs.MdbMongodbClusterResourcesArgs
    {
        DiskSize = 0,
        DiskTypeId = "string",
        ResourcePresetId = "string",
    },
    NetworkId = "string",
    Environment = "string",
    ClusterConfig = new Yandex.Inputs.MdbMongodbClusterClusterConfigArgs
    {
        Version = "string",
        Access = new Yandex.Inputs.MdbMongodbClusterClusterConfigAccessArgs
        {
            DataLens = false,
        },
        BackupWindowStart = new Yandex.Inputs.MdbMongodbClusterClusterConfigBackupWindowStartArgs
        {
            Hours = 0,
            Minutes = 0,
        },
        FeatureCompatibilityVersion = "string",
    },
    FolderId = "string",
    Labels = 
    {
        { "string", "string" },
    },
    MaintenanceWindow = new Yandex.Inputs.MdbMongodbClusterMaintenanceWindowArgs
    {
        Type = "string",
        Day = "string",
        Hour = 0,
    },
    Name = "string",
    Description = "string",
    DeletionProtection = false,
    SecurityGroupIds = new[]
    {
        "string",
    },
    ClusterId = "string",
});
Copy
example, err := yandex.NewMdbMongodbCluster(ctx, "mdbMongodbClusterResource", &yandex.MdbMongodbClusterArgs{
	Hosts: yandex.MdbMongodbClusterHostArray{
		&yandex.MdbMongodbClusterHostArgs{
			SubnetId:       pulumi.String("string"),
			ZoneId:         pulumi.String("string"),
			AssignPublicIp: pulumi.Bool(false),
			Health:         pulumi.String("string"),
			Name:           pulumi.String("string"),
			Role:           pulumi.String("string"),
			ShardName:      pulumi.String("string"),
			Type:           pulumi.String("string"),
		},
	},
	Users: yandex.MdbMongodbClusterUserArray{
		&yandex.MdbMongodbClusterUserArgs{
			Name:     pulumi.String("string"),
			Password: pulumi.String("string"),
			Permissions: yandex.MdbMongodbClusterUserPermissionArray{
				&yandex.MdbMongodbClusterUserPermissionArgs{
					DatabaseName: pulumi.String("string"),
					Roles: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
		},
	},
	Databases: yandex.MdbMongodbClusterDatabaseArray{
		&yandex.MdbMongodbClusterDatabaseArgs{
			Name: pulumi.String("string"),
		},
	},
	Resources: &yandex.MdbMongodbClusterResourcesArgs{
		DiskSize:         pulumi.Int(0),
		DiskTypeId:       pulumi.String("string"),
		ResourcePresetId: pulumi.String("string"),
	},
	NetworkId:   pulumi.String("string"),
	Environment: pulumi.String("string"),
	ClusterConfig: &yandex.MdbMongodbClusterClusterConfigArgs{
		Version: pulumi.String("string"),
		Access: &yandex.MdbMongodbClusterClusterConfigAccessArgs{
			DataLens: pulumi.Bool(false),
		},
		BackupWindowStart: &yandex.MdbMongodbClusterClusterConfigBackupWindowStartArgs{
			Hours:   pulumi.Int(0),
			Minutes: pulumi.Int(0),
		},
		FeatureCompatibilityVersion: pulumi.String("string"),
	},
	FolderId: pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	MaintenanceWindow: &yandex.MdbMongodbClusterMaintenanceWindowArgs{
		Type: pulumi.String("string"),
		Day:  pulumi.String("string"),
		Hour: pulumi.Int(0),
	},
	Name:               pulumi.String("string"),
	Description:        pulumi.String("string"),
	DeletionProtection: pulumi.Bool(false),
	SecurityGroupIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	ClusterId: pulumi.String("string"),
})
Copy
var mdbMongodbClusterResource = new MdbMongodbCluster("mdbMongodbClusterResource", MdbMongodbClusterArgs.builder()
    .hosts(MdbMongodbClusterHostArgs.builder()
        .subnetId("string")
        .zoneId("string")
        .assignPublicIp(false)
        .health("string")
        .name("string")
        .role("string")
        .shardName("string")
        .type("string")
        .build())
    .users(MdbMongodbClusterUserArgs.builder()
        .name("string")
        .password("string")
        .permissions(MdbMongodbClusterUserPermissionArgs.builder()
            .databaseName("string")
            .roles("string")
            .build())
        .build())
    .databases(MdbMongodbClusterDatabaseArgs.builder()
        .name("string")
        .build())
    .resources(MdbMongodbClusterResourcesArgs.builder()
        .diskSize(0)
        .diskTypeId("string")
        .resourcePresetId("string")
        .build())
    .networkId("string")
    .environment("string")
    .clusterConfig(MdbMongodbClusterClusterConfigArgs.builder()
        .version("string")
        .access(MdbMongodbClusterClusterConfigAccessArgs.builder()
            .dataLens(false)
            .build())
        .backupWindowStart(MdbMongodbClusterClusterConfigBackupWindowStartArgs.builder()
            .hours(0)
            .minutes(0)
            .build())
        .featureCompatibilityVersion("string")
        .build())
    .folderId("string")
    .labels(Map.of("string", "string"))
    .maintenanceWindow(MdbMongodbClusterMaintenanceWindowArgs.builder()
        .type("string")
        .day("string")
        .hour(0)
        .build())
    .name("string")
    .description("string")
    .deletionProtection(false)
    .securityGroupIds("string")
    .clusterId("string")
    .build());
Copy
mdb_mongodb_cluster_resource = yandex.MdbMongodbCluster("mdbMongodbClusterResource",
    hosts=[{
        "subnet_id": "string",
        "zone_id": "string",
        "assign_public_ip": False,
        "health": "string",
        "name": "string",
        "role": "string",
        "shard_name": "string",
        "type": "string",
    }],
    users=[{
        "name": "string",
        "password": "string",
        "permissions": [{
            "database_name": "string",
            "roles": ["string"],
        }],
    }],
    databases=[{
        "name": "string",
    }],
    resources={
        "disk_size": 0,
        "disk_type_id": "string",
        "resource_preset_id": "string",
    },
    network_id="string",
    environment="string",
    cluster_config={
        "version": "string",
        "access": {
            "data_lens": False,
        },
        "backup_window_start": {
            "hours": 0,
            "minutes": 0,
        },
        "feature_compatibility_version": "string",
    },
    folder_id="string",
    labels={
        "string": "string",
    },
    maintenance_window={
        "type": "string",
        "day": "string",
        "hour": 0,
    },
    name="string",
    description="string",
    deletion_protection=False,
    security_group_ids=["string"],
    cluster_id="string")
Copy
const mdbMongodbClusterResource = new yandex.MdbMongodbCluster("mdbMongodbClusterResource", {
    hosts: [{
        subnetId: "string",
        zoneId: "string",
        assignPublicIp: false,
        health: "string",
        name: "string",
        role: "string",
        shardName: "string",
        type: "string",
    }],
    users: [{
        name: "string",
        password: "string",
        permissions: [{
            databaseName: "string",
            roles: ["string"],
        }],
    }],
    databases: [{
        name: "string",
    }],
    resources: {
        diskSize: 0,
        diskTypeId: "string",
        resourcePresetId: "string",
    },
    networkId: "string",
    environment: "string",
    clusterConfig: {
        version: "string",
        access: {
            dataLens: false,
        },
        backupWindowStart: {
            hours: 0,
            minutes: 0,
        },
        featureCompatibilityVersion: "string",
    },
    folderId: "string",
    labels: {
        string: "string",
    },
    maintenanceWindow: {
        type: "string",
        day: "string",
        hour: 0,
    },
    name: "string",
    description: "string",
    deletionProtection: false,
    securityGroupIds: ["string"],
    clusterId: "string",
});
Copy
type: yandex:MdbMongodbCluster
properties:
    clusterConfig:
        access:
            dataLens: false
        backupWindowStart:
            hours: 0
            minutes: 0
        featureCompatibilityVersion: string
        version: string
    clusterId: string
    databases:
        - name: string
    deletionProtection: false
    description: string
    environment: string
    folderId: string
    hosts:
        - assignPublicIp: false
          health: string
          name: string
          role: string
          shardName: string
          subnetId: string
          type: string
          zoneId: string
    labels:
        string: string
    maintenanceWindow:
        day: string
        hour: 0
        type: string
    name: string
    networkId: string
    resources:
        diskSize: 0
        diskTypeId: string
        resourcePresetId: string
    securityGroupIds:
        - string
    users:
        - name: string
          password: string
          permissions:
            - databaseName: string
              roles:
                - string
Copy

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

ClusterConfig This property is required. MdbMongodbClusterClusterConfig
Configuration of the MongoDB subcluster. The structure is documented below.
Databases This property is required. List<MdbMongodbClusterDatabase>
A database of the MongoDB cluster. The structure is documented below.
Environment This property is required. string
Deployment environment of the MongoDB cluster. Can be either PRESTABLE or PRODUCTION.
Hosts This property is required. List<MdbMongodbClusterHost>
A host of the MongoDB cluster. The structure is documented below.
NetworkId This property is required. string
ID of the network, to which the MongoDB cluster belongs.
Resources This property is required. MdbMongodbClusterResources
Resources allocated to hosts of the MongoDB cluster. The structure is documented below.
Users This property is required. List<MdbMongodbClusterUser>
A user of the MongoDB cluster. The structure is documented below.
ClusterId string
The ID of the cluster.
DeletionProtection bool
Inhibits deletion of the cluster. Can be either true or false.


Description string
Description of the MongoDB cluster.
FolderId string
The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
Labels Dictionary<string, string>
A set of key/value label pairs to assign to the MongoDB cluster.
MaintenanceWindow MdbMongodbClusterMaintenanceWindow
Name string
The fully qualified domain name of the host. Computed on server side.
SecurityGroupIds List<string>
A set of ids of security groups assigned to hosts of the cluster.
ClusterConfig This property is required. MdbMongodbClusterClusterConfigArgs
Configuration of the MongoDB subcluster. The structure is documented below.
Databases This property is required. []MdbMongodbClusterDatabaseArgs
A database of the MongoDB cluster. The structure is documented below.
Environment This property is required. string
Deployment environment of the MongoDB cluster. Can be either PRESTABLE or PRODUCTION.
Hosts This property is required. []MdbMongodbClusterHostArgs
A host of the MongoDB cluster. The structure is documented below.
NetworkId This property is required. string
ID of the network, to which the MongoDB cluster belongs.
Resources This property is required. MdbMongodbClusterResourcesArgs
Resources allocated to hosts of the MongoDB cluster. The structure is documented below.
Users This property is required. []MdbMongodbClusterUserArgs
A user of the MongoDB cluster. The structure is documented below.
ClusterId string
The ID of the cluster.
DeletionProtection bool
Inhibits deletion of the cluster. Can be either true or false.


Description string
Description of the MongoDB cluster.
FolderId string
The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
Labels map[string]string
A set of key/value label pairs to assign to the MongoDB cluster.
MaintenanceWindow MdbMongodbClusterMaintenanceWindowArgs
Name string
The fully qualified domain name of the host. Computed on server side.
SecurityGroupIds []string
A set of ids of security groups assigned to hosts of the cluster.
clusterConfig This property is required. MdbMongodbClusterClusterConfig
Configuration of the MongoDB subcluster. The structure is documented below.
databases This property is required. List<MdbMongodbClusterDatabase>
A database of the MongoDB cluster. The structure is documented below.
environment This property is required. String
Deployment environment of the MongoDB cluster. Can be either PRESTABLE or PRODUCTION.
hosts This property is required. List<MdbMongodbClusterHost>
A host of the MongoDB cluster. The structure is documented below.
networkId This property is required. String
ID of the network, to which the MongoDB cluster belongs.
resources This property is required. MdbMongodbClusterResources
Resources allocated to hosts of the MongoDB cluster. The structure is documented below.
users This property is required. List<MdbMongodbClusterUser>
A user of the MongoDB cluster. The structure is documented below.
clusterId String
The ID of the cluster.
deletionProtection Boolean
Inhibits deletion of the cluster. Can be either true or false.


description String
Description of the MongoDB cluster.
folderId String
The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
labels Map<String,String>
A set of key/value label pairs to assign to the MongoDB cluster.
maintenanceWindow MdbMongodbClusterMaintenanceWindow
name String
The fully qualified domain name of the host. Computed on server side.
securityGroupIds List<String>
A set of ids of security groups assigned to hosts of the cluster.
clusterConfig This property is required. MdbMongodbClusterClusterConfig
Configuration of the MongoDB subcluster. The structure is documented below.
databases This property is required. MdbMongodbClusterDatabase[]
A database of the MongoDB cluster. The structure is documented below.
environment This property is required. string
Deployment environment of the MongoDB cluster. Can be either PRESTABLE or PRODUCTION.
hosts This property is required. MdbMongodbClusterHost[]
A host of the MongoDB cluster. The structure is documented below.
networkId This property is required. string
ID of the network, to which the MongoDB cluster belongs.
resources This property is required. MdbMongodbClusterResources
Resources allocated to hosts of the MongoDB cluster. The structure is documented below.
users This property is required. MdbMongodbClusterUser[]
A user of the MongoDB cluster. The structure is documented below.
clusterId string
The ID of the cluster.
deletionProtection boolean
Inhibits deletion of the cluster. Can be either true or false.


description string
Description of the MongoDB cluster.
folderId string
The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
labels {[key: string]: string}
A set of key/value label pairs to assign to the MongoDB cluster.
maintenanceWindow MdbMongodbClusterMaintenanceWindow
name string
The fully qualified domain name of the host. Computed on server side.
securityGroupIds string[]
A set of ids of security groups assigned to hosts of the cluster.
cluster_config This property is required. MdbMongodbClusterClusterConfigArgs
Configuration of the MongoDB subcluster. The structure is documented below.
databases This property is required. Sequence[MdbMongodbClusterDatabaseArgs]
A database of the MongoDB cluster. The structure is documented below.
environment This property is required. str
Deployment environment of the MongoDB cluster. Can be either PRESTABLE or PRODUCTION.
hosts This property is required. Sequence[MdbMongodbClusterHostArgs]
A host of the MongoDB cluster. The structure is documented below.
network_id This property is required. str
ID of the network, to which the MongoDB cluster belongs.
resources This property is required. MdbMongodbClusterResourcesArgs
Resources allocated to hosts of the MongoDB cluster. The structure is documented below.
users This property is required. Sequence[MdbMongodbClusterUserArgs]
A user of the MongoDB cluster. The structure is documented below.
cluster_id str
The ID of the cluster.
deletion_protection bool
Inhibits deletion of the cluster. Can be either true or false.


description str
Description of the MongoDB cluster.
folder_id str
The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
labels Mapping[str, str]
A set of key/value label pairs to assign to the MongoDB cluster.
maintenance_window MdbMongodbClusterMaintenanceWindowArgs
name str
The fully qualified domain name of the host. Computed on server side.
security_group_ids Sequence[str]
A set of ids of security groups assigned to hosts of the cluster.
clusterConfig This property is required. Property Map
Configuration of the MongoDB subcluster. The structure is documented below.
databases This property is required. List<Property Map>
A database of the MongoDB cluster. The structure is documented below.
environment This property is required. String
Deployment environment of the MongoDB cluster. Can be either PRESTABLE or PRODUCTION.
hosts This property is required. List<Property Map>
A host of the MongoDB cluster. The structure is documented below.
networkId This property is required. String
ID of the network, to which the MongoDB cluster belongs.
resources This property is required. Property Map
Resources allocated to hosts of the MongoDB cluster. The structure is documented below.
users This property is required. List<Property Map>
A user of the MongoDB cluster. The structure is documented below.
clusterId String
The ID of the cluster.
deletionProtection Boolean
Inhibits deletion of the cluster. Can be either true or false.


description String
Description of the MongoDB cluster.
folderId String
The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
labels Map<String>
A set of key/value label pairs to assign to the MongoDB cluster.
maintenanceWindow Property Map
name String
The fully qualified domain name of the host. Computed on server side.
securityGroupIds List<String>
A set of ids of security groups assigned to hosts of the cluster.

Outputs

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

CreatedAt string
Creation timestamp of the key.
Health string
The health of the host.
Id string
The provider-assigned unique ID for this managed resource.
Sharded bool
MongoDB Cluster mode enabled/disabled.
Status string
Status of the cluster. Can be either CREATING, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR or STATUS_UNKNOWN. For more information see status field of JSON representation in the official documentation.
CreatedAt string
Creation timestamp of the key.
Health string
The health of the host.
Id string
The provider-assigned unique ID for this managed resource.
Sharded bool
MongoDB Cluster mode enabled/disabled.
Status string
Status of the cluster. Can be either CREATING, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR or STATUS_UNKNOWN. For more information see status field of JSON representation in the official documentation.
createdAt String
Creation timestamp of the key.
health String
The health of the host.
id String
The provider-assigned unique ID for this managed resource.
sharded Boolean
MongoDB Cluster mode enabled/disabled.
status String
Status of the cluster. Can be either CREATING, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR or STATUS_UNKNOWN. For more information see status field of JSON representation in the official documentation.
createdAt string
Creation timestamp of the key.
health string
The health of the host.
id string
The provider-assigned unique ID for this managed resource.
sharded boolean
MongoDB Cluster mode enabled/disabled.
status string
Status of the cluster. Can be either CREATING, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR or STATUS_UNKNOWN. For more information see status field of JSON representation in the official documentation.
created_at str
Creation timestamp of the key.
health str
The health of the host.
id str
The provider-assigned unique ID for this managed resource.
sharded bool
MongoDB Cluster mode enabled/disabled.
status str
Status of the cluster. Can be either CREATING, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR or STATUS_UNKNOWN. For more information see status field of JSON representation in the official documentation.
createdAt String
Creation timestamp of the key.
health String
The health of the host.
id String
The provider-assigned unique ID for this managed resource.
sharded Boolean
MongoDB Cluster mode enabled/disabled.
status String
Status of the cluster. Can be either CREATING, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR or STATUS_UNKNOWN. For more information see status field of JSON representation in the official documentation.

Look up Existing MdbMongodbCluster Resource

Get an existing MdbMongodbCluster 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?: MdbMongodbClusterState, opts?: CustomResourceOptions): MdbMongodbCluster
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_config: Optional[MdbMongodbClusterClusterConfigArgs] = None,
        cluster_id: Optional[str] = None,
        created_at: Optional[str] = None,
        databases: Optional[Sequence[MdbMongodbClusterDatabaseArgs]] = None,
        deletion_protection: Optional[bool] = None,
        description: Optional[str] = None,
        environment: Optional[str] = None,
        folder_id: Optional[str] = None,
        health: Optional[str] = None,
        hosts: Optional[Sequence[MdbMongodbClusterHostArgs]] = None,
        labels: Optional[Mapping[str, str]] = None,
        maintenance_window: Optional[MdbMongodbClusterMaintenanceWindowArgs] = None,
        name: Optional[str] = None,
        network_id: Optional[str] = None,
        resources: Optional[MdbMongodbClusterResourcesArgs] = None,
        security_group_ids: Optional[Sequence[str]] = None,
        sharded: Optional[bool] = None,
        status: Optional[str] = None,
        users: Optional[Sequence[MdbMongodbClusterUserArgs]] = None) -> MdbMongodbCluster
func GetMdbMongodbCluster(ctx *Context, name string, id IDInput, state *MdbMongodbClusterState, opts ...ResourceOption) (*MdbMongodbCluster, error)
public static MdbMongodbCluster Get(string name, Input<string> id, MdbMongodbClusterState? state, CustomResourceOptions? opts = null)
public static MdbMongodbCluster get(String name, Output<String> id, MdbMongodbClusterState state, CustomResourceOptions options)
resources:  _:    type: yandex:MdbMongodbCluster    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ClusterConfig MdbMongodbClusterClusterConfig
Configuration of the MongoDB subcluster. The structure is documented below.
ClusterId string
The ID of the cluster.
CreatedAt string
Creation timestamp of the key.
Databases List<MdbMongodbClusterDatabase>
A database of the MongoDB cluster. The structure is documented below.
DeletionProtection bool
Inhibits deletion of the cluster. Can be either true or false.


Description string
Description of the MongoDB cluster.
Environment string
Deployment environment of the MongoDB cluster. Can be either PRESTABLE or PRODUCTION.
FolderId string
The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
Health string
The health of the host.
Hosts List<MdbMongodbClusterHost>
A host of the MongoDB cluster. The structure is documented below.
Labels Dictionary<string, string>
A set of key/value label pairs to assign to the MongoDB cluster.
MaintenanceWindow MdbMongodbClusterMaintenanceWindow
Name string
The fully qualified domain name of the host. Computed on server side.
NetworkId string
ID of the network, to which the MongoDB cluster belongs.
Resources MdbMongodbClusterResources
Resources allocated to hosts of the MongoDB cluster. The structure is documented below.
SecurityGroupIds List<string>
A set of ids of security groups assigned to hosts of the cluster.
Sharded bool
MongoDB Cluster mode enabled/disabled.
Status string
Status of the cluster. Can be either CREATING, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR or STATUS_UNKNOWN. For more information see status field of JSON representation in the official documentation.
Users List<MdbMongodbClusterUser>
A user of the MongoDB cluster. The structure is documented below.
ClusterConfig MdbMongodbClusterClusterConfigArgs
Configuration of the MongoDB subcluster. The structure is documented below.
ClusterId string
The ID of the cluster.
CreatedAt string
Creation timestamp of the key.
Databases []MdbMongodbClusterDatabaseArgs
A database of the MongoDB cluster. The structure is documented below.
DeletionProtection bool
Inhibits deletion of the cluster. Can be either true or false.


Description string
Description of the MongoDB cluster.
Environment string
Deployment environment of the MongoDB cluster. Can be either PRESTABLE or PRODUCTION.
FolderId string
The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
Health string
The health of the host.
Hosts []MdbMongodbClusterHostArgs
A host of the MongoDB cluster. The structure is documented below.
Labels map[string]string
A set of key/value label pairs to assign to the MongoDB cluster.
MaintenanceWindow MdbMongodbClusterMaintenanceWindowArgs
Name string
The fully qualified domain name of the host. Computed on server side.
NetworkId string
ID of the network, to which the MongoDB cluster belongs.
Resources MdbMongodbClusterResourcesArgs
Resources allocated to hosts of the MongoDB cluster. The structure is documented below.
SecurityGroupIds []string
A set of ids of security groups assigned to hosts of the cluster.
Sharded bool
MongoDB Cluster mode enabled/disabled.
Status string
Status of the cluster. Can be either CREATING, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR or STATUS_UNKNOWN. For more information see status field of JSON representation in the official documentation.
Users []MdbMongodbClusterUserArgs
A user of the MongoDB cluster. The structure is documented below.
clusterConfig MdbMongodbClusterClusterConfig
Configuration of the MongoDB subcluster. The structure is documented below.
clusterId String
The ID of the cluster.
createdAt String
Creation timestamp of the key.
databases List<MdbMongodbClusterDatabase>
A database of the MongoDB cluster. The structure is documented below.
deletionProtection Boolean
Inhibits deletion of the cluster. Can be either true or false.


description String
Description of the MongoDB cluster.
environment String
Deployment environment of the MongoDB cluster. Can be either PRESTABLE or PRODUCTION.
folderId String
The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
health String
The health of the host.
hosts List<MdbMongodbClusterHost>
A host of the MongoDB cluster. The structure is documented below.
labels Map<String,String>
A set of key/value label pairs to assign to the MongoDB cluster.
maintenanceWindow MdbMongodbClusterMaintenanceWindow
name String
The fully qualified domain name of the host. Computed on server side.
networkId String
ID of the network, to which the MongoDB cluster belongs.
resources MdbMongodbClusterResources
Resources allocated to hosts of the MongoDB cluster. The structure is documented below.
securityGroupIds List<String>
A set of ids of security groups assigned to hosts of the cluster.
sharded Boolean
MongoDB Cluster mode enabled/disabled.
status String
Status of the cluster. Can be either CREATING, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR or STATUS_UNKNOWN. For more information see status field of JSON representation in the official documentation.
users List<MdbMongodbClusterUser>
A user of the MongoDB cluster. The structure is documented below.
clusterConfig MdbMongodbClusterClusterConfig
Configuration of the MongoDB subcluster. The structure is documented below.
clusterId string
The ID of the cluster.
createdAt string
Creation timestamp of the key.
databases MdbMongodbClusterDatabase[]
A database of the MongoDB cluster. The structure is documented below.
deletionProtection boolean
Inhibits deletion of the cluster. Can be either true or false.


description string
Description of the MongoDB cluster.
environment string
Deployment environment of the MongoDB cluster. Can be either PRESTABLE or PRODUCTION.
folderId string
The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
health string
The health of the host.
hosts MdbMongodbClusterHost[]
A host of the MongoDB cluster. The structure is documented below.
labels {[key: string]: string}
A set of key/value label pairs to assign to the MongoDB cluster.
maintenanceWindow MdbMongodbClusterMaintenanceWindow
name string
The fully qualified domain name of the host. Computed on server side.
networkId string
ID of the network, to which the MongoDB cluster belongs.
resources MdbMongodbClusterResources
Resources allocated to hosts of the MongoDB cluster. The structure is documented below.
securityGroupIds string[]
A set of ids of security groups assigned to hosts of the cluster.
sharded boolean
MongoDB Cluster mode enabled/disabled.
status string
Status of the cluster. Can be either CREATING, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR or STATUS_UNKNOWN. For more information see status field of JSON representation in the official documentation.
users MdbMongodbClusterUser[]
A user of the MongoDB cluster. The structure is documented below.
cluster_config MdbMongodbClusterClusterConfigArgs
Configuration of the MongoDB subcluster. The structure is documented below.
cluster_id str
The ID of the cluster.
created_at str
Creation timestamp of the key.
databases Sequence[MdbMongodbClusterDatabaseArgs]
A database of the MongoDB cluster. The structure is documented below.
deletion_protection bool
Inhibits deletion of the cluster. Can be either true or false.


description str
Description of the MongoDB cluster.
environment str
Deployment environment of the MongoDB cluster. Can be either PRESTABLE or PRODUCTION.
folder_id str
The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
health str
The health of the host.
hosts Sequence[MdbMongodbClusterHostArgs]
A host of the MongoDB cluster. The structure is documented below.
labels Mapping[str, str]
A set of key/value label pairs to assign to the MongoDB cluster.
maintenance_window MdbMongodbClusterMaintenanceWindowArgs
name str
The fully qualified domain name of the host. Computed on server side.
network_id str
ID of the network, to which the MongoDB cluster belongs.
resources MdbMongodbClusterResourcesArgs
Resources allocated to hosts of the MongoDB cluster. The structure is documented below.
security_group_ids Sequence[str]
A set of ids of security groups assigned to hosts of the cluster.
sharded bool
MongoDB Cluster mode enabled/disabled.
status str
Status of the cluster. Can be either CREATING, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR or STATUS_UNKNOWN. For more information see status field of JSON representation in the official documentation.
users Sequence[MdbMongodbClusterUserArgs]
A user of the MongoDB cluster. The structure is documented below.
clusterConfig Property Map
Configuration of the MongoDB subcluster. The structure is documented below.
clusterId String
The ID of the cluster.
createdAt String
Creation timestamp of the key.
databases List<Property Map>
A database of the MongoDB cluster. The structure is documented below.
deletionProtection Boolean
Inhibits deletion of the cluster. Can be either true or false.


description String
Description of the MongoDB cluster.
environment String
Deployment environment of the MongoDB cluster. Can be either PRESTABLE or PRODUCTION.
folderId String
The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
health String
The health of the host.
hosts List<Property Map>
A host of the MongoDB cluster. The structure is documented below.
labels Map<String>
A set of key/value label pairs to assign to the MongoDB cluster.
maintenanceWindow Property Map
name String
The fully qualified domain name of the host. Computed on server side.
networkId String
ID of the network, to which the MongoDB cluster belongs.
resources Property Map
Resources allocated to hosts of the MongoDB cluster. The structure is documented below.
securityGroupIds List<String>
A set of ids of security groups assigned to hosts of the cluster.
sharded Boolean
MongoDB Cluster mode enabled/disabled.
status String
Status of the cluster. Can be either CREATING, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR or STATUS_UNKNOWN. For more information see status field of JSON representation in the official documentation.
users List<Property Map>
A user of the MongoDB cluster. The structure is documented below.

Supporting Types

MdbMongodbClusterClusterConfig
, MdbMongodbClusterClusterConfigArgs

Version This property is required. string
Version of MongoDB (either 5.0, 4.4, 4.2 or 4.0).
Access MdbMongodbClusterClusterConfigAccess
Shows whether cluster has access to data lens. The structure is documented below.
BackupWindowStart MdbMongodbClusterClusterConfigBackupWindowStart
Time to start the daily backup, in the UTC timezone. The structure is documented below.
FeatureCompatibilityVersion string
Feature compatibility version of MongoDB. If not provided version is taken. Can be either 5.0, 4.4, 4.2 and 4.0.
Version This property is required. string
Version of MongoDB (either 5.0, 4.4, 4.2 or 4.0).
Access MdbMongodbClusterClusterConfigAccess
Shows whether cluster has access to data lens. The structure is documented below.
BackupWindowStart MdbMongodbClusterClusterConfigBackupWindowStart
Time to start the daily backup, in the UTC timezone. The structure is documented below.
FeatureCompatibilityVersion string
Feature compatibility version of MongoDB. If not provided version is taken. Can be either 5.0, 4.4, 4.2 and 4.0.
version This property is required. String
Version of MongoDB (either 5.0, 4.4, 4.2 or 4.0).
access MdbMongodbClusterClusterConfigAccess
Shows whether cluster has access to data lens. The structure is documented below.
backupWindowStart MdbMongodbClusterClusterConfigBackupWindowStart
Time to start the daily backup, in the UTC timezone. The structure is documented below.
featureCompatibilityVersion String
Feature compatibility version of MongoDB. If not provided version is taken. Can be either 5.0, 4.4, 4.2 and 4.0.
version This property is required. string
Version of MongoDB (either 5.0, 4.4, 4.2 or 4.0).
access MdbMongodbClusterClusterConfigAccess
Shows whether cluster has access to data lens. The structure is documented below.
backupWindowStart MdbMongodbClusterClusterConfigBackupWindowStart
Time to start the daily backup, in the UTC timezone. The structure is documented below.
featureCompatibilityVersion string
Feature compatibility version of MongoDB. If not provided version is taken. Can be either 5.0, 4.4, 4.2 and 4.0.
version This property is required. str
Version of MongoDB (either 5.0, 4.4, 4.2 or 4.0).
access MdbMongodbClusterClusterConfigAccess
Shows whether cluster has access to data lens. The structure is documented below.
backup_window_start MdbMongodbClusterClusterConfigBackupWindowStart
Time to start the daily backup, in the UTC timezone. The structure is documented below.
feature_compatibility_version str
Feature compatibility version of MongoDB. If not provided version is taken. Can be either 5.0, 4.4, 4.2 and 4.0.
version This property is required. String
Version of MongoDB (either 5.0, 4.4, 4.2 or 4.0).
access Property Map
Shows whether cluster has access to data lens. The structure is documented below.
backupWindowStart Property Map
Time to start the daily backup, in the UTC timezone. The structure is documented below.
featureCompatibilityVersion String
Feature compatibility version of MongoDB. If not provided version is taken. Can be either 5.0, 4.4, 4.2 and 4.0.

MdbMongodbClusterClusterConfigAccess
, MdbMongodbClusterClusterConfigAccessArgs

DataLens bool
Allow access for DataLens.
DataLens bool
Allow access for DataLens.
dataLens Boolean
Allow access for DataLens.
dataLens boolean
Allow access for DataLens.
data_lens bool
Allow access for DataLens.
dataLens Boolean
Allow access for DataLens.

MdbMongodbClusterClusterConfigBackupWindowStart
, MdbMongodbClusterClusterConfigBackupWindowStartArgs

Hours int
The hour at which backup will be started.
Minutes int
The minute at which backup will be started.
Hours int
The hour at which backup will be started.
Minutes int
The minute at which backup will be started.
hours Integer
The hour at which backup will be started.
minutes Integer
The minute at which backup will be started.
hours number
The hour at which backup will be started.
minutes number
The minute at which backup will be started.
hours int
The hour at which backup will be started.
minutes int
The minute at which backup will be started.
hours Number
The hour at which backup will be started.
minutes Number
The minute at which backup will be started.

MdbMongodbClusterDatabase
, MdbMongodbClusterDatabaseArgs

Name This property is required. string
The fully qualified domain name of the host. Computed on server side.
Name This property is required. string
The fully qualified domain name of the host. Computed on server side.
name This property is required. String
The fully qualified domain name of the host. Computed on server side.
name This property is required. string
The fully qualified domain name of the host. Computed on server side.
name This property is required. str
The fully qualified domain name of the host. Computed on server side.
name This property is required. String
The fully qualified domain name of the host. Computed on server side.

MdbMongodbClusterHost
, MdbMongodbClusterHostArgs

SubnetId This property is required. string
The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
ZoneId This property is required. string
The availability zone where the MongoDB host will be created. For more information see the official documentation.
AssignPublicIp bool
-(Optional) Should this host have assigned public IP assigned. Can be either true or false.
Health string
The health of the host.
Name string
The fully qualified domain name of the host. Computed on server side.
Role string
The role of the cluster (either PRIMARY or SECONDARY).
ShardName string
The name of the shard to which the host belongs.
Type string
Type of maintenance window. Can be either ANYTIME or WEEKLY. A day and hour of window need to be specified with weekly window.
SubnetId This property is required. string
The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
ZoneId This property is required. string
The availability zone where the MongoDB host will be created. For more information see the official documentation.
AssignPublicIp bool
-(Optional) Should this host have assigned public IP assigned. Can be either true or false.
Health string
The health of the host.
Name string
The fully qualified domain name of the host. Computed on server side.
Role string
The role of the cluster (either PRIMARY or SECONDARY).
ShardName string
The name of the shard to which the host belongs.
Type string
Type of maintenance window. Can be either ANYTIME or WEEKLY. A day and hour of window need to be specified with weekly window.
subnetId This property is required. String
The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
zoneId This property is required. String
The availability zone where the MongoDB host will be created. For more information see the official documentation.
assignPublicIp Boolean
-(Optional) Should this host have assigned public IP assigned. Can be either true or false.
health String
The health of the host.
name String
The fully qualified domain name of the host. Computed on server side.
role String
The role of the cluster (either PRIMARY or SECONDARY).
shardName String
The name of the shard to which the host belongs.
type String
Type of maintenance window. Can be either ANYTIME or WEEKLY. A day and hour of window need to be specified with weekly window.
subnetId This property is required. string
The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
zoneId This property is required. string
The availability zone where the MongoDB host will be created. For more information see the official documentation.
assignPublicIp boolean
-(Optional) Should this host have assigned public IP assigned. Can be either true or false.
health string
The health of the host.
name string
The fully qualified domain name of the host. Computed on server side.
role string
The role of the cluster (either PRIMARY or SECONDARY).
shardName string
The name of the shard to which the host belongs.
type string
Type of maintenance window. Can be either ANYTIME or WEEKLY. A day and hour of window need to be specified with weekly window.
subnet_id This property is required. str
The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
zone_id This property is required. str
The availability zone where the MongoDB host will be created. For more information see the official documentation.
assign_public_ip bool
-(Optional) Should this host have assigned public IP assigned. Can be either true or false.
health str
The health of the host.
name str
The fully qualified domain name of the host. Computed on server side.
role str
The role of the cluster (either PRIMARY or SECONDARY).
shard_name str
The name of the shard to which the host belongs.
type str
Type of maintenance window. Can be either ANYTIME or WEEKLY. A day and hour of window need to be specified with weekly window.
subnetId This property is required. String
The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
zoneId This property is required. String
The availability zone where the MongoDB host will be created. For more information see the official documentation.
assignPublicIp Boolean
-(Optional) Should this host have assigned public IP assigned. Can be either true or false.
health String
The health of the host.
name String
The fully qualified domain name of the host. Computed on server side.
role String
The role of the cluster (either PRIMARY or SECONDARY).
shardName String
The name of the shard to which the host belongs.
type String
Type of maintenance window. Can be either ANYTIME or WEEKLY. A day and hour of window need to be specified with weekly window.

MdbMongodbClusterMaintenanceWindow
, MdbMongodbClusterMaintenanceWindowArgs

Type This property is required. string
Type of maintenance window. Can be either ANYTIME or WEEKLY. A day and hour of window need to be specified with weekly window.
Day string
Day of week for maintenance window if window type is weekly. Possible values: MON, TUE, WED, THU, FRI, SAT, SUN.
Hour int
Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
Type This property is required. string
Type of maintenance window. Can be either ANYTIME or WEEKLY. A day and hour of window need to be specified with weekly window.
Day string
Day of week for maintenance window if window type is weekly. Possible values: MON, TUE, WED, THU, FRI, SAT, SUN.
Hour int
Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
type This property is required. String
Type of maintenance window. Can be either ANYTIME or WEEKLY. A day and hour of window need to be specified with weekly window.
day String
Day of week for maintenance window if window type is weekly. Possible values: MON, TUE, WED, THU, FRI, SAT, SUN.
hour Integer
Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
type This property is required. string
Type of maintenance window. Can be either ANYTIME or WEEKLY. A day and hour of window need to be specified with weekly window.
day string
Day of week for maintenance window if window type is weekly. Possible values: MON, TUE, WED, THU, FRI, SAT, SUN.
hour number
Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
type This property is required. str
Type of maintenance window. Can be either ANYTIME or WEEKLY. A day and hour of window need to be specified with weekly window.
day str
Day of week for maintenance window if window type is weekly. Possible values: MON, TUE, WED, THU, FRI, SAT, SUN.
hour int
Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
type This property is required. String
Type of maintenance window. Can be either ANYTIME or WEEKLY. A day and hour of window need to be specified with weekly window.
day String
Day of week for maintenance window if window type is weekly. Possible values: MON, TUE, WED, THU, FRI, SAT, SUN.
hour Number
Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.

MdbMongodbClusterResources
, MdbMongodbClusterResourcesArgs

DiskSize This property is required. int
Volume of the storage available to a MongoDB host, in gigabytes.
DiskTypeId This property is required. string
Type of the storage of MongoDB hosts. For more information see the official documentation.
ResourcePresetId This property is required. string
DiskSize This property is required. int
Volume of the storage available to a MongoDB host, in gigabytes.
DiskTypeId This property is required. string
Type of the storage of MongoDB hosts. For more information see the official documentation.
ResourcePresetId This property is required. string
diskSize This property is required. Integer
Volume of the storage available to a MongoDB host, in gigabytes.
diskTypeId This property is required. String
Type of the storage of MongoDB hosts. For more information see the official documentation.
resourcePresetId This property is required. String
diskSize This property is required. number
Volume of the storage available to a MongoDB host, in gigabytes.
diskTypeId This property is required. string
Type of the storage of MongoDB hosts. For more information see the official documentation.
resourcePresetId This property is required. string
disk_size This property is required. int
Volume of the storage available to a MongoDB host, in gigabytes.
disk_type_id This property is required. str
Type of the storage of MongoDB hosts. For more information see the official documentation.
resource_preset_id This property is required. str
diskSize This property is required. Number
Volume of the storage available to a MongoDB host, in gigabytes.
diskTypeId This property is required. String
Type of the storage of MongoDB hosts. For more information see the official documentation.
resourcePresetId This property is required. String

MdbMongodbClusterUser
, MdbMongodbClusterUserArgs

Name This property is required. string
The fully qualified domain name of the host. Computed on server side.
Password This property is required. string
The password of the user.
Permissions List<MdbMongodbClusterUserPermission>
Set of permissions granted to the user. The structure is documented below.
Name This property is required. string
The fully qualified domain name of the host. Computed on server side.
Password This property is required. string
The password of the user.
Permissions []MdbMongodbClusterUserPermission
Set of permissions granted to the user. The structure is documented below.
name This property is required. String
The fully qualified domain name of the host. Computed on server side.
password This property is required. String
The password of the user.
permissions List<MdbMongodbClusterUserPermission>
Set of permissions granted to the user. The structure is documented below.
name This property is required. string
The fully qualified domain name of the host. Computed on server side.
password This property is required. string
The password of the user.
permissions MdbMongodbClusterUserPermission[]
Set of permissions granted to the user. The structure is documented below.
name This property is required. str
The fully qualified domain name of the host. Computed on server side.
password This property is required. str
The password of the user.
permissions Sequence[MdbMongodbClusterUserPermission]
Set of permissions granted to the user. The structure is documented below.
name This property is required. String
The fully qualified domain name of the host. Computed on server side.
password This property is required. String
The password of the user.
permissions List<Property Map>
Set of permissions granted to the user. The structure is documented below.

MdbMongodbClusterUserPermission
, MdbMongodbClusterUserPermissionArgs

DatabaseName This property is required. string
The name of the database that the permission grants access to.
Roles List<string>
The roles of the user in this database. For more information see the official documentation.
DatabaseName This property is required. string
The name of the database that the permission grants access to.
Roles []string
The roles of the user in this database. For more information see the official documentation.
databaseName This property is required. String
The name of the database that the permission grants access to.
roles List<String>
The roles of the user in this database. For more information see the official documentation.
databaseName This property is required. string
The name of the database that the permission grants access to.
roles string[]
The roles of the user in this database. For more information see the official documentation.
database_name This property is required. str
The name of the database that the permission grants access to.
roles Sequence[str]
The roles of the user in this database. For more information see the official documentation.
databaseName This property is required. String
The name of the database that the permission grants access to.
roles List<String>
The roles of the user in this database. For more information see the official documentation.

Import

A cluster can be imported using the id of the resource, e.g.

 $ pulumi import yandex:index/mdbMongodbCluster:MdbMongodbCluster foo cluster_id
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Yandex pulumi/pulumi-yandex
License
Apache-2.0
Notes
This Pulumi package is based on the yandex Terraform Provider.