1. Packages
  2. Azure Native
  3. API Docs
  4. mongocluster
  5. MongoCluster
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.mongocluster.MongoCluster

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

    Represents a mongo cluster resource.

    Uses Azure REST API version 2024-07-01.

    Other available API versions: 2024-03-01-preview, 2024-06-01-preview, 2024-10-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native mongocluster [ApiVersion]. See the version guide for details.

    Example Usage

    Creates a Mongo Cluster resource from a point in time restore

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var mongoCluster = new AzureNative.MongoCluster.MongoCluster("mongoCluster", new()
        {
            Location = "westus2",
            MongoClusterName = "myMongoCluster",
            Properties = new AzureNative.MongoCluster.Inputs.MongoClusterPropertiesArgs
            {
                CreateMode = AzureNative.MongoCluster.CreateMode.PointInTimeRestore,
                RestoreParameters = new AzureNative.MongoCluster.Inputs.MongoClusterRestoreParametersArgs
                {
                    PointInTimeUTC = "2023-01-13T20:07:35Z",
                    SourceResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/myOtherMongoCluster",
                },
            },
            ResourceGroupName = "TestResourceGroup",
        });
    
    });
    
    package main
    
    import (
    	mongocluster "github.com/pulumi/pulumi-azure-native-sdk/mongocluster/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := mongocluster.NewMongoCluster(ctx, "mongoCluster", &mongocluster.MongoClusterArgs{
    			Location:         pulumi.String("westus2"),
    			MongoClusterName: pulumi.String("myMongoCluster"),
    			Properties: &mongocluster.MongoClusterPropertiesArgs{
    				CreateMode: pulumi.String(mongocluster.CreateModePointInTimeRestore),
    				RestoreParameters: &mongocluster.MongoClusterRestoreParametersArgs{
    					PointInTimeUTC:   pulumi.String("2023-01-13T20:07:35Z"),
    					SourceResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/myOtherMongoCluster"),
    				},
    			},
    			ResourceGroupName: pulumi.String("TestResourceGroup"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.mongocluster.MongoCluster;
    import com.pulumi.azurenative.mongocluster.MongoClusterArgs;
    import com.pulumi.azurenative.mongocluster.inputs.MongoClusterPropertiesArgs;
    import com.pulumi.azurenative.mongocluster.inputs.MongoClusterRestoreParametersArgs;
    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 mongoCluster = new MongoCluster("mongoCluster", MongoClusterArgs.builder()
                .location("westus2")
                .mongoClusterName("myMongoCluster")
                .properties(MongoClusterPropertiesArgs.builder()
                    .createMode("PointInTimeRestore")
                    .restoreParameters(MongoClusterRestoreParametersArgs.builder()
                        .pointInTimeUTC("2023-01-13T20:07:35Z")
                        .sourceResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/myOtherMongoCluster")
                        .build())
                    .build())
                .resourceGroupName("TestResourceGroup")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const mongoCluster = new azure_native.mongocluster.MongoCluster("mongoCluster", {
        location: "westus2",
        mongoClusterName: "myMongoCluster",
        properties: {
            createMode: azure_native.mongocluster.CreateMode.PointInTimeRestore,
            restoreParameters: {
                pointInTimeUTC: "2023-01-13T20:07:35Z",
                sourceResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/myOtherMongoCluster",
            },
        },
        resourceGroupName: "TestResourceGroup",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    mongo_cluster = azure_native.mongocluster.MongoCluster("mongoCluster",
        location="westus2",
        mongo_cluster_name="myMongoCluster",
        properties={
            "create_mode": azure_native.mongocluster.CreateMode.POINT_IN_TIME_RESTORE,
            "restore_parameters": {
                "point_in_time_utc": "2023-01-13T20:07:35Z",
                "source_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/myOtherMongoCluster",
            },
        },
        resource_group_name="TestResourceGroup")
    
    resources:
      mongoCluster:
        type: azure-native:mongocluster:MongoCluster
        properties:
          location: westus2
          mongoClusterName: myMongoCluster
          properties:
            createMode: PointInTimeRestore
            restoreParameters:
              pointInTimeUTC: 2023-01-13T20:07:35Z
              sourceResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/myOtherMongoCluster
          resourceGroupName: TestResourceGroup
    

    Creates a new Mongo Cluster resource.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var mongoCluster = new AzureNative.MongoCluster.MongoCluster("mongoCluster", new()
        {
            Location = "westus2",
            MongoClusterName = "myMongoCluster",
            Properties = new AzureNative.MongoCluster.Inputs.MongoClusterPropertiesArgs
            {
                Administrator = new AzureNative.MongoCluster.Inputs.AdministratorPropertiesArgs
                {
                    Password = "password",
                    UserName = "mongoAdmin",
                },
                Compute = new AzureNative.MongoCluster.Inputs.ComputePropertiesArgs
                {
                    Tier = "M30",
                },
                HighAvailability = new AzureNative.MongoCluster.Inputs.HighAvailabilityPropertiesArgs
                {
                    TargetMode = AzureNative.MongoCluster.HighAvailabilityMode.SameZone,
                },
                ServerVersion = "5.0",
                Sharding = new AzureNative.MongoCluster.Inputs.ShardingPropertiesArgs
                {
                    ShardCount = 1,
                },
                Storage = new AzureNative.MongoCluster.Inputs.StoragePropertiesArgs
                {
                    SizeGb = 128,
                },
            },
            ResourceGroupName = "TestResourceGroup",
        });
    
    });
    
    package main
    
    import (
    	mongocluster "github.com/pulumi/pulumi-azure-native-sdk/mongocluster/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := mongocluster.NewMongoCluster(ctx, "mongoCluster", &mongocluster.MongoClusterArgs{
    			Location:         pulumi.String("westus2"),
    			MongoClusterName: pulumi.String("myMongoCluster"),
    			Properties: &mongocluster.MongoClusterPropertiesArgs{
    				Administrator: &mongocluster.AdministratorPropertiesArgs{
    					Password: pulumi.String("password"),
    					UserName: pulumi.String("mongoAdmin"),
    				},
    				Compute: &mongocluster.ComputePropertiesArgs{
    					Tier: pulumi.String("M30"),
    				},
    				HighAvailability: &mongocluster.HighAvailabilityPropertiesArgs{
    					TargetMode: pulumi.String(mongocluster.HighAvailabilityModeSameZone),
    				},
    				ServerVersion: pulumi.String("5.0"),
    				Sharding: &mongocluster.ShardingPropertiesArgs{
    					ShardCount: pulumi.Int(1),
    				},
    				Storage: &mongocluster.StoragePropertiesArgs{
    					SizeGb: pulumi.Float64(128),
    				},
    			},
    			ResourceGroupName: pulumi.String("TestResourceGroup"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.mongocluster.MongoCluster;
    import com.pulumi.azurenative.mongocluster.MongoClusterArgs;
    import com.pulumi.azurenative.mongocluster.inputs.MongoClusterPropertiesArgs;
    import com.pulumi.azurenative.mongocluster.inputs.AdministratorPropertiesArgs;
    import com.pulumi.azurenative.mongocluster.inputs.ComputePropertiesArgs;
    import com.pulumi.azurenative.mongocluster.inputs.HighAvailabilityPropertiesArgs;
    import com.pulumi.azurenative.mongocluster.inputs.ShardingPropertiesArgs;
    import com.pulumi.azurenative.mongocluster.inputs.StoragePropertiesArgs;
    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 mongoCluster = new MongoCluster("mongoCluster", MongoClusterArgs.builder()
                .location("westus2")
                .mongoClusterName("myMongoCluster")
                .properties(MongoClusterPropertiesArgs.builder()
                    .administrator(AdministratorPropertiesArgs.builder()
                        .password("password")
                        .userName("mongoAdmin")
                        .build())
                    .compute(ComputePropertiesArgs.builder()
                        .tier("M30")
                        .build())
                    .highAvailability(HighAvailabilityPropertiesArgs.builder()
                        .targetMode("SameZone")
                        .build())
                    .serverVersion("5.0")
                    .sharding(ShardingPropertiesArgs.builder()
                        .shardCount(1)
                        .build())
                    .storage(StoragePropertiesArgs.builder()
                        .sizeGb(128.0)
                        .build())
                    .build())
                .resourceGroupName("TestResourceGroup")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const mongoCluster = new azure_native.mongocluster.MongoCluster("mongoCluster", {
        location: "westus2",
        mongoClusterName: "myMongoCluster",
        properties: {
            administrator: {
                password: "password",
                userName: "mongoAdmin",
            },
            compute: {
                tier: "M30",
            },
            highAvailability: {
                targetMode: azure_native.mongocluster.HighAvailabilityMode.SameZone,
            },
            serverVersion: "5.0",
            sharding: {
                shardCount: 1,
            },
            storage: {
                sizeGb: 128,
            },
        },
        resourceGroupName: "TestResourceGroup",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    mongo_cluster = azure_native.mongocluster.MongoCluster("mongoCluster",
        location="westus2",
        mongo_cluster_name="myMongoCluster",
        properties={
            "administrator": {
                "password": "password",
                "user_name": "mongoAdmin",
            },
            "compute": {
                "tier": "M30",
            },
            "high_availability": {
                "target_mode": azure_native.mongocluster.HighAvailabilityMode.SAME_ZONE,
            },
            "server_version": "5.0",
            "sharding": {
                "shard_count": 1,
            },
            "storage": {
                "size_gb": 128,
            },
        },
        resource_group_name="TestResourceGroup")
    
    resources:
      mongoCluster:
        type: azure-native:mongocluster:MongoCluster
        properties:
          location: westus2
          mongoClusterName: myMongoCluster
          properties:
            administrator:
              password: password
              userName: mongoAdmin
            compute:
              tier: M30
            highAvailability:
              targetMode: SameZone
            serverVersion: '5.0'
            sharding:
              shardCount: 1
            storage:
              sizeGb: 128
          resourceGroupName: TestResourceGroup
    

    Creates a replica Mongo Cluster resource from a source resource.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var mongoCluster = new AzureNative.MongoCluster.MongoCluster("mongoCluster", new()
        {
            Location = "centralus",
            MongoClusterName = "myReplicaMongoCluster",
            Properties = new AzureNative.MongoCluster.Inputs.MongoClusterPropertiesArgs
            {
                CreateMode = AzureNative.MongoCluster.CreateMode.GeoReplica,
                ReplicaParameters = new AzureNative.MongoCluster.Inputs.MongoClusterReplicaParametersArgs
                {
                    SourceLocation = "eastus",
                    SourceResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/mySourceMongoCluster",
                },
            },
            ResourceGroupName = "TestResourceGroup",
        });
    
    });
    
    package main
    
    import (
    	mongocluster "github.com/pulumi/pulumi-azure-native-sdk/mongocluster/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := mongocluster.NewMongoCluster(ctx, "mongoCluster", &mongocluster.MongoClusterArgs{
    			Location:         pulumi.String("centralus"),
    			MongoClusterName: pulumi.String("myReplicaMongoCluster"),
    			Properties: &mongocluster.MongoClusterPropertiesArgs{
    				CreateMode: pulumi.String(mongocluster.CreateModeGeoReplica),
    				ReplicaParameters: &mongocluster.MongoClusterReplicaParametersArgs{
    					SourceLocation:   pulumi.String("eastus"),
    					SourceResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/mySourceMongoCluster"),
    				},
    			},
    			ResourceGroupName: pulumi.String("TestResourceGroup"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.mongocluster.MongoCluster;
    import com.pulumi.azurenative.mongocluster.MongoClusterArgs;
    import com.pulumi.azurenative.mongocluster.inputs.MongoClusterPropertiesArgs;
    import com.pulumi.azurenative.mongocluster.inputs.MongoClusterReplicaParametersArgs;
    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 mongoCluster = new MongoCluster("mongoCluster", MongoClusterArgs.builder()
                .location("centralus")
                .mongoClusterName("myReplicaMongoCluster")
                .properties(MongoClusterPropertiesArgs.builder()
                    .createMode("GeoReplica")
                    .replicaParameters(MongoClusterReplicaParametersArgs.builder()
                        .sourceLocation("eastus")
                        .sourceResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/mySourceMongoCluster")
                        .build())
                    .build())
                .resourceGroupName("TestResourceGroup")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const mongoCluster = new azure_native.mongocluster.MongoCluster("mongoCluster", {
        location: "centralus",
        mongoClusterName: "myReplicaMongoCluster",
        properties: {
            createMode: azure_native.mongocluster.CreateMode.GeoReplica,
            replicaParameters: {
                sourceLocation: "eastus",
                sourceResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/mySourceMongoCluster",
            },
        },
        resourceGroupName: "TestResourceGroup",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    mongo_cluster = azure_native.mongocluster.MongoCluster("mongoCluster",
        location="centralus",
        mongo_cluster_name="myReplicaMongoCluster",
        properties={
            "create_mode": azure_native.mongocluster.CreateMode.GEO_REPLICA,
            "replica_parameters": {
                "source_location": "eastus",
                "source_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/mySourceMongoCluster",
            },
        },
        resource_group_name="TestResourceGroup")
    
    resources:
      mongoCluster:
        type: azure-native:mongocluster:MongoCluster
        properties:
          location: centralus
          mongoClusterName: myReplicaMongoCluster
          properties:
            createMode: GeoReplica
            replicaParameters:
              sourceLocation: eastus
              sourceResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/mySourceMongoCluster
          resourceGroupName: TestResourceGroup
    

    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,
                     resource_group_name: Optional[str] = None,
                     location: Optional[str] = None,
                     mongo_cluster_name: Optional[str] = None,
                     properties: Optional[MongoClusterPropertiesArgs] = None,
                     tags: Optional[Mapping[str, 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: azure-native:mongocluster: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 azure_nativeMongoClusterResource = new AzureNative.MongoCluster.MongoCluster("azure-nativeMongoClusterResource", new()
    {
        ResourceGroupName = "string",
        Location = "string",
        MongoClusterName = "string",
        Properties = new AzureNative.MongoCluster.Inputs.MongoClusterPropertiesArgs
        {
            Administrator = new AzureNative.MongoCluster.Inputs.AdministratorPropertiesArgs
            {
                Password = "string",
                UserName = "string",
            },
            Compute = new AzureNative.MongoCluster.Inputs.ComputePropertiesArgs
            {
                Tier = "string",
            },
            CreateMode = "string",
            HighAvailability = new AzureNative.MongoCluster.Inputs.HighAvailabilityPropertiesArgs
            {
                TargetMode = "string",
            },
            PreviewFeatures = new[]
            {
                "string",
            },
            PublicNetworkAccess = "string",
            ReplicaParameters = new AzureNative.MongoCluster.Inputs.MongoClusterReplicaParametersArgs
            {
                SourceLocation = "string",
                SourceResourceId = "string",
            },
            RestoreParameters = new AzureNative.MongoCluster.Inputs.MongoClusterRestoreParametersArgs
            {
                PointInTimeUTC = "string",
                SourceResourceId = "string",
            },
            ServerVersion = "string",
            Sharding = new AzureNative.MongoCluster.Inputs.ShardingPropertiesArgs
            {
                ShardCount = 0,
            },
            Storage = new AzureNative.MongoCluster.Inputs.StoragePropertiesArgs
            {
                SizeGb = 0,
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := mongocluster.NewMongoCluster(ctx, "azure-nativeMongoClusterResource", &mongocluster.MongoClusterArgs{
    	ResourceGroupName: pulumi.String("string"),
    	Location:          pulumi.String("string"),
    	MongoClusterName:  pulumi.String("string"),
    	Properties: &mongocluster.MongoClusterPropertiesArgs{
    		Administrator: &mongocluster.AdministratorPropertiesArgs{
    			Password: pulumi.String("string"),
    			UserName: pulumi.String("string"),
    		},
    		Compute: &mongocluster.ComputePropertiesArgs{
    			Tier: pulumi.String("string"),
    		},
    		CreateMode: pulumi.String("string"),
    		HighAvailability: &mongocluster.HighAvailabilityPropertiesArgs{
    			TargetMode: pulumi.String("string"),
    		},
    		PreviewFeatures: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		PublicNetworkAccess: pulumi.String("string"),
    		ReplicaParameters: &mongocluster.MongoClusterReplicaParametersArgs{
    			SourceLocation:   pulumi.String("string"),
    			SourceResourceId: pulumi.String("string"),
    		},
    		RestoreParameters: &mongocluster.MongoClusterRestoreParametersArgs{
    			PointInTimeUTC:   pulumi.String("string"),
    			SourceResourceId: pulumi.String("string"),
    		},
    		ServerVersion: pulumi.String("string"),
    		Sharding: &mongocluster.ShardingPropertiesArgs{
    			ShardCount: pulumi.Int(0),
    		},
    		Storage: &mongocluster.StoragePropertiesArgs{
    			SizeGb: pulumi.Float64(0),
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var azure_nativeMongoClusterResource = new com.pulumi.azurenative.mongocluster.MongoCluster("azure-nativeMongoClusterResource", com.pulumi.azurenative.mongocluster.MongoClusterArgs.builder()
        .resourceGroupName("string")
        .location("string")
        .mongoClusterName("string")
        .properties(MongoClusterPropertiesArgs.builder()
            .administrator(AdministratorPropertiesArgs.builder()
                .password("string")
                .userName("string")
                .build())
            .compute(ComputePropertiesArgs.builder()
                .tier("string")
                .build())
            .createMode("string")
            .highAvailability(HighAvailabilityPropertiesArgs.builder()
                .targetMode("string")
                .build())
            .previewFeatures("string")
            .publicNetworkAccess("string")
            .replicaParameters(MongoClusterReplicaParametersArgs.builder()
                .sourceLocation("string")
                .sourceResourceId("string")
                .build())
            .restoreParameters(MongoClusterRestoreParametersArgs.builder()
                .pointInTimeUTC("string")
                .sourceResourceId("string")
                .build())
            .serverVersion("string")
            .sharding(ShardingPropertiesArgs.builder()
                .shardCount(0)
                .build())
            .storage(StoragePropertiesArgs.builder()
                .sizeGb(0)
                .build())
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    azure_native_mongo_cluster_resource = azure_native.mongocluster.MongoCluster("azure-nativeMongoClusterResource",
        resource_group_name="string",
        location="string",
        mongo_cluster_name="string",
        properties={
            "administrator": {
                "password": "string",
                "user_name": "string",
            },
            "compute": {
                "tier": "string",
            },
            "create_mode": "string",
            "high_availability": {
                "target_mode": "string",
            },
            "preview_features": ["string"],
            "public_network_access": "string",
            "replica_parameters": {
                "source_location": "string",
                "source_resource_id": "string",
            },
            "restore_parameters": {
                "point_in_time_utc": "string",
                "source_resource_id": "string",
            },
            "server_version": "string",
            "sharding": {
                "shard_count": 0,
            },
            "storage": {
                "size_gb": 0,
            },
        },
        tags={
            "string": "string",
        })
    
    const azure_nativeMongoClusterResource = new azure_native.mongocluster.MongoCluster("azure-nativeMongoClusterResource", {
        resourceGroupName: "string",
        location: "string",
        mongoClusterName: "string",
        properties: {
            administrator: {
                password: "string",
                userName: "string",
            },
            compute: {
                tier: "string",
            },
            createMode: "string",
            highAvailability: {
                targetMode: "string",
            },
            previewFeatures: ["string"],
            publicNetworkAccess: "string",
            replicaParameters: {
                sourceLocation: "string",
                sourceResourceId: "string",
            },
            restoreParameters: {
                pointInTimeUTC: "string",
                sourceResourceId: "string",
            },
            serverVersion: "string",
            sharding: {
                shardCount: 0,
            },
            storage: {
                sizeGb: 0,
            },
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:mongocluster:MongoCluster
    properties:
        location: string
        mongoClusterName: string
        properties:
            administrator:
                password: string
                userName: string
            compute:
                tier: string
            createMode: string
            highAvailability:
                targetMode: string
            previewFeatures:
                - string
            publicNetworkAccess: string
            replicaParameters:
                sourceLocation: string
                sourceResourceId: string
            restoreParameters:
                pointInTimeUTC: string
                sourceResourceId: string
            serverVersion: string
            sharding:
                shardCount: 0
            storage:
                sizeGb: 0
        resourceGroupName: string
        tags:
            string: 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:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Location string
    The geo-location where the resource lives
    MongoClusterName string
    The name of the mongo cluster.
    Properties Pulumi.AzureNative.MongoCluster.Inputs.MongoClusterProperties
    The resource-specific properties for this resource.
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Location string
    The geo-location where the resource lives
    MongoClusterName string
    The name of the mongo cluster.
    Properties MongoClusterPropertiesArgs
    The resource-specific properties for this resource.
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    location String
    The geo-location where the resource lives
    mongoClusterName String
    The name of the mongo cluster.
    properties MongoClusterProperties
    The resource-specific properties for this resource.
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    location string
    The geo-location where the resource lives
    mongoClusterName string
    The name of the mongo cluster.
    properties MongoClusterProperties
    The resource-specific properties for this resource.
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    location str
    The geo-location where the resource lives
    mongo_cluster_name str
    The name of the mongo cluster.
    properties MongoClusterPropertiesArgs
    The resource-specific properties for this resource.
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    location String
    The geo-location where the resource lives
    mongoClusterName String
    The name of the mongo cluster.
    properties Property Map
    The resource-specific properties for this resource.
    tags Map<String>
    Resource tags.

    Outputs

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

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.MongoCluster.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version str
    The Azure API version of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    AdministratorProperties, AdministratorPropertiesArgs

    Password string
    The administrator password.
    UserName string
    The administrator user name.
    Password string
    The administrator password.
    UserName string
    The administrator user name.
    password String
    The administrator password.
    userName String
    The administrator user name.
    password string
    The administrator password.
    userName string
    The administrator user name.
    password str
    The administrator password.
    user_name str
    The administrator user name.
    password String
    The administrator password.
    userName String
    The administrator user name.

    AdministratorPropertiesResponse, AdministratorPropertiesResponseArgs

    UserName string
    The administrator user name.
    UserName string
    The administrator user name.
    userName String
    The administrator user name.
    userName string
    The administrator user name.
    user_name str
    The administrator user name.
    userName String
    The administrator user name.

    BackupPropertiesResponse, BackupPropertiesResponseArgs

    EarliestRestoreTime string
    Earliest restore timestamp in UTC ISO8601 format.
    EarliestRestoreTime string
    Earliest restore timestamp in UTC ISO8601 format.
    earliestRestoreTime String
    Earliest restore timestamp in UTC ISO8601 format.
    earliestRestoreTime string
    Earliest restore timestamp in UTC ISO8601 format.
    earliest_restore_time str
    Earliest restore timestamp in UTC ISO8601 format.
    earliestRestoreTime String
    Earliest restore timestamp in UTC ISO8601 format.

    ComputeProperties, ComputePropertiesArgs

    Tier string
    The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', 'M40'.
    Tier string
    The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', 'M40'.
    tier String
    The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', 'M40'.
    tier string
    The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', 'M40'.
    tier str
    The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', 'M40'.
    tier String
    The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', 'M40'.

    ComputePropertiesResponse, ComputePropertiesResponseArgs

    Tier string
    The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', 'M40'.
    Tier string
    The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', 'M40'.
    tier String
    The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', 'M40'.
    tier string
    The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', 'M40'.
    tier str
    The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', 'M40'.
    tier String
    The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', 'M40'.

    CreateMode, CreateModeArgs

    Default
    DefaultCreate a new mongo cluster.
    PointInTimeRestore
    PointInTimeRestoreCreate a mongo cluster from a restore point-in-time.
    GeoReplica
    GeoReplicaCreate a replica cluster in distinct geographic region from the source cluster.
    Replica
    ReplicaCreate a replica cluster in the same geographic region as the source cluster.
    CreateModeDefault
    DefaultCreate a new mongo cluster.
    CreateModePointInTimeRestore
    PointInTimeRestoreCreate a mongo cluster from a restore point-in-time.
    CreateModeGeoReplica
    GeoReplicaCreate a replica cluster in distinct geographic region from the source cluster.
    CreateModeReplica
    ReplicaCreate a replica cluster in the same geographic region as the source cluster.
    Default
    DefaultCreate a new mongo cluster.
    PointInTimeRestore
    PointInTimeRestoreCreate a mongo cluster from a restore point-in-time.
    GeoReplica
    GeoReplicaCreate a replica cluster in distinct geographic region from the source cluster.
    Replica
    ReplicaCreate a replica cluster in the same geographic region as the source cluster.
    Default
    DefaultCreate a new mongo cluster.
    PointInTimeRestore
    PointInTimeRestoreCreate a mongo cluster from a restore point-in-time.
    GeoReplica
    GeoReplicaCreate a replica cluster in distinct geographic region from the source cluster.
    Replica
    ReplicaCreate a replica cluster in the same geographic region as the source cluster.
    DEFAULT
    DefaultCreate a new mongo cluster.
    POINT_IN_TIME_RESTORE
    PointInTimeRestoreCreate a mongo cluster from a restore point-in-time.
    GEO_REPLICA
    GeoReplicaCreate a replica cluster in distinct geographic region from the source cluster.
    REPLICA
    ReplicaCreate a replica cluster in the same geographic region as the source cluster.
    "Default"
    DefaultCreate a new mongo cluster.
    "PointInTimeRestore"
    PointInTimeRestoreCreate a mongo cluster from a restore point-in-time.
    "GeoReplica"
    GeoReplicaCreate a replica cluster in distinct geographic region from the source cluster.
    "Replica"
    ReplicaCreate a replica cluster in the same geographic region as the source cluster.

    HighAvailabilityMode, HighAvailabilityModeArgs

    Disabled
    DisabledHigh availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production.
    SameZone
    SameZoneHigh availability mode is enabled, where each server in a shard is placed in the same availability zone.
    ZoneRedundantPreferred
    ZoneRedundantPreferredHigh availability mode is enabled and preferences ZoneRedundant if availability zones capacity is available in the region, otherwise falls-back to provisioning with SameZone.
    HighAvailabilityModeDisabled
    DisabledHigh availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production.
    HighAvailabilityModeSameZone
    SameZoneHigh availability mode is enabled, where each server in a shard is placed in the same availability zone.
    HighAvailabilityModeZoneRedundantPreferred
    ZoneRedundantPreferredHigh availability mode is enabled and preferences ZoneRedundant if availability zones capacity is available in the region, otherwise falls-back to provisioning with SameZone.
    Disabled
    DisabledHigh availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production.
    SameZone
    SameZoneHigh availability mode is enabled, where each server in a shard is placed in the same availability zone.
    ZoneRedundantPreferred
    ZoneRedundantPreferredHigh availability mode is enabled and preferences ZoneRedundant if availability zones capacity is available in the region, otherwise falls-back to provisioning with SameZone.
    Disabled
    DisabledHigh availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production.
    SameZone
    SameZoneHigh availability mode is enabled, where each server in a shard is placed in the same availability zone.
    ZoneRedundantPreferred
    ZoneRedundantPreferredHigh availability mode is enabled and preferences ZoneRedundant if availability zones capacity is available in the region, otherwise falls-back to provisioning with SameZone.
    DISABLED
    DisabledHigh availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production.
    SAME_ZONE
    SameZoneHigh availability mode is enabled, where each server in a shard is placed in the same availability zone.
    ZONE_REDUNDANT_PREFERRED
    ZoneRedundantPreferredHigh availability mode is enabled and preferences ZoneRedundant if availability zones capacity is available in the region, otherwise falls-back to provisioning with SameZone.
    "Disabled"
    DisabledHigh availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production.
    "SameZone"
    SameZoneHigh availability mode is enabled, where each server in a shard is placed in the same availability zone.
    "ZoneRedundantPreferred"
    ZoneRedundantPreferredHigh availability mode is enabled and preferences ZoneRedundant if availability zones capacity is available in the region, otherwise falls-back to provisioning with SameZone.

    HighAvailabilityProperties, HighAvailabilityPropertiesArgs

    TargetMode string | Pulumi.AzureNative.MongoCluster.HighAvailabilityMode
    The target high availability mode requested for the cluster.
    TargetMode string | HighAvailabilityMode
    The target high availability mode requested for the cluster.
    targetMode String | HighAvailabilityMode
    The target high availability mode requested for the cluster.
    targetMode string | HighAvailabilityMode
    The target high availability mode requested for the cluster.
    target_mode str | HighAvailabilityMode
    The target high availability mode requested for the cluster.
    targetMode String | "Disabled" | "SameZone" | "ZoneRedundantPreferred"
    The target high availability mode requested for the cluster.

    HighAvailabilityPropertiesResponse, HighAvailabilityPropertiesResponseArgs

    TargetMode string
    The target high availability mode requested for the cluster.
    TargetMode string
    The target high availability mode requested for the cluster.
    targetMode String
    The target high availability mode requested for the cluster.
    targetMode string
    The target high availability mode requested for the cluster.
    target_mode str
    The target high availability mode requested for the cluster.
    targetMode String
    The target high availability mode requested for the cluster.

    MongoClusterProperties, MongoClusterPropertiesArgs

    Administrator Pulumi.AzureNative.MongoCluster.Inputs.AdministratorProperties
    The local administrator properties for the mongo cluster.
    Compute Pulumi.AzureNative.MongoCluster.Inputs.ComputeProperties
    The compute properties of the mongo cluster.
    CreateMode string | Pulumi.AzureNative.MongoCluster.CreateMode
    The mode to create a mongo cluster.
    HighAvailability Pulumi.AzureNative.MongoCluster.Inputs.HighAvailabilityProperties
    The high availability properties of the mongo cluster.
    PreviewFeatures List<Union<string, Pulumi.AzureNative.MongoCluster.PreviewFeature>>
    List of private endpoint connections.
    PublicNetworkAccess string | Pulumi.AzureNative.MongoCluster.PublicNetworkAccess
    Whether or not public endpoint access is allowed for this mongo cluster.
    ReplicaParameters Pulumi.AzureNative.MongoCluster.Inputs.MongoClusterReplicaParameters
    The parameters to create a replica mongo cluster.
    RestoreParameters Pulumi.AzureNative.MongoCluster.Inputs.MongoClusterRestoreParameters
    The parameters to create a point-in-time restore mongo cluster.
    ServerVersion string
    The Mongo DB server version. Defaults to the latest available version if not specified.
    Sharding Pulumi.AzureNative.MongoCluster.Inputs.ShardingProperties
    The sharding properties of the mongo cluster.
    Storage Pulumi.AzureNative.MongoCluster.Inputs.StorageProperties
    The storage properties of the mongo cluster.
    Administrator AdministratorProperties
    The local administrator properties for the mongo cluster.
    Compute ComputeProperties
    The compute properties of the mongo cluster.
    CreateMode string | CreateMode
    The mode to create a mongo cluster.
    HighAvailability HighAvailabilityProperties
    The high availability properties of the mongo cluster.
    PreviewFeatures []string
    List of private endpoint connections.
    PublicNetworkAccess string | PublicNetworkAccess
    Whether or not public endpoint access is allowed for this mongo cluster.
    ReplicaParameters MongoClusterReplicaParameters
    The parameters to create a replica mongo cluster.
    RestoreParameters MongoClusterRestoreParameters
    The parameters to create a point-in-time restore mongo cluster.
    ServerVersion string
    The Mongo DB server version. Defaults to the latest available version if not specified.
    Sharding ShardingProperties
    The sharding properties of the mongo cluster.
    Storage StorageProperties
    The storage properties of the mongo cluster.
    administrator AdministratorProperties
    The local administrator properties for the mongo cluster.
    compute ComputeProperties
    The compute properties of the mongo cluster.
    createMode String | CreateMode
    The mode to create a mongo cluster.
    highAvailability HighAvailabilityProperties
    The high availability properties of the mongo cluster.
    previewFeatures List<Either<String,PreviewFeature>>
    List of private endpoint connections.
    publicNetworkAccess String | PublicNetworkAccess
    Whether or not public endpoint access is allowed for this mongo cluster.
    replicaParameters MongoClusterReplicaParameters
    The parameters to create a replica mongo cluster.
    restoreParameters MongoClusterRestoreParameters
    The parameters to create a point-in-time restore mongo cluster.
    serverVersion String
    The Mongo DB server version. Defaults to the latest available version if not specified.
    sharding ShardingProperties
    The sharding properties of the mongo cluster.
    storage StorageProperties
    The storage properties of the mongo cluster.
    administrator AdministratorProperties
    The local administrator properties for the mongo cluster.
    compute ComputeProperties
    The compute properties of the mongo cluster.
    createMode string | CreateMode
    The mode to create a mongo cluster.
    highAvailability HighAvailabilityProperties
    The high availability properties of the mongo cluster.
    previewFeatures (string | PreviewFeature)[]
    List of private endpoint connections.
    publicNetworkAccess string | PublicNetworkAccess
    Whether or not public endpoint access is allowed for this mongo cluster.
    replicaParameters MongoClusterReplicaParameters
    The parameters to create a replica mongo cluster.
    restoreParameters MongoClusterRestoreParameters
    The parameters to create a point-in-time restore mongo cluster.
    serverVersion string
    The Mongo DB server version. Defaults to the latest available version if not specified.
    sharding ShardingProperties
    The sharding properties of the mongo cluster.
    storage StorageProperties
    The storage properties of the mongo cluster.
    administrator AdministratorProperties
    The local administrator properties for the mongo cluster.
    compute ComputeProperties
    The compute properties of the mongo cluster.
    create_mode str | CreateMode
    The mode to create a mongo cluster.
    high_availability HighAvailabilityProperties
    The high availability properties of the mongo cluster.
    preview_features Sequence[Union[str, PreviewFeature]]
    List of private endpoint connections.
    public_network_access str | PublicNetworkAccess
    Whether or not public endpoint access is allowed for this mongo cluster.
    replica_parameters MongoClusterReplicaParameters
    The parameters to create a replica mongo cluster.
    restore_parameters MongoClusterRestoreParameters
    The parameters to create a point-in-time restore mongo cluster.
    server_version str
    The Mongo DB server version. Defaults to the latest available version if not specified.
    sharding ShardingProperties
    The sharding properties of the mongo cluster.
    storage StorageProperties
    The storage properties of the mongo cluster.
    administrator Property Map
    The local administrator properties for the mongo cluster.
    compute Property Map
    The compute properties of the mongo cluster.
    createMode String | "Default" | "PointInTimeRestore" | "GeoReplica" | "Replica"
    The mode to create a mongo cluster.
    highAvailability Property Map
    The high availability properties of the mongo cluster.
    previewFeatures List<String | "GeoReplicas">
    List of private endpoint connections.
    publicNetworkAccess String | "Enabled" | "Disabled"
    Whether or not public endpoint access is allowed for this mongo cluster.
    replicaParameters Property Map
    The parameters to create a replica mongo cluster.
    restoreParameters Property Map
    The parameters to create a point-in-time restore mongo cluster.
    serverVersion String
    The Mongo DB server version. Defaults to the latest available version if not specified.
    sharding Property Map
    The sharding properties of the mongo cluster.
    storage Property Map
    The storage properties of the mongo cluster.

    MongoClusterPropertiesResponse, MongoClusterPropertiesResponseArgs

    ClusterStatus string
    The status of the mongo cluster.
    ConnectionString string
    The default mongo connection string for the cluster.
    InfrastructureVersion string
    The infrastructure version the cluster is provisioned on.
    PrivateEndpointConnections List<Pulumi.AzureNative.MongoCluster.Inputs.PrivateEndpointConnectionResponse>
    List of private endpoint connections.
    ProvisioningState string
    The provisioning state of the mongo cluster.
    Replica Pulumi.AzureNative.MongoCluster.Inputs.ReplicationPropertiesResponse
    The replication properties for the mongo cluster
    Administrator Pulumi.AzureNative.MongoCluster.Inputs.AdministratorPropertiesResponse
    The local administrator properties for the mongo cluster.
    Backup Pulumi.AzureNative.MongoCluster.Inputs.BackupPropertiesResponse
    The backup properties of the mongo cluster.
    Compute Pulumi.AzureNative.MongoCluster.Inputs.ComputePropertiesResponse
    The compute properties of the mongo cluster.
    HighAvailability Pulumi.AzureNative.MongoCluster.Inputs.HighAvailabilityPropertiesResponse
    The high availability properties of the mongo cluster.
    PreviewFeatures List<string>
    List of private endpoint connections.
    PublicNetworkAccess string
    Whether or not public endpoint access is allowed for this mongo cluster.
    ServerVersion string
    The Mongo DB server version. Defaults to the latest available version if not specified.
    Sharding Pulumi.AzureNative.MongoCluster.Inputs.ShardingPropertiesResponse
    The sharding properties of the mongo cluster.
    Storage Pulumi.AzureNative.MongoCluster.Inputs.StoragePropertiesResponse
    The storage properties of the mongo cluster.
    ClusterStatus string
    The status of the mongo cluster.
    ConnectionString string
    The default mongo connection string for the cluster.
    InfrastructureVersion string
    The infrastructure version the cluster is provisioned on.
    PrivateEndpointConnections []PrivateEndpointConnectionResponse
    List of private endpoint connections.
    ProvisioningState string
    The provisioning state of the mongo cluster.
    Replica ReplicationPropertiesResponse
    The replication properties for the mongo cluster
    Administrator AdministratorPropertiesResponse
    The local administrator properties for the mongo cluster.
    Backup BackupPropertiesResponse
    The backup properties of the mongo cluster.
    Compute ComputePropertiesResponse
    The compute properties of the mongo cluster.
    HighAvailability HighAvailabilityPropertiesResponse
    The high availability properties of the mongo cluster.
    PreviewFeatures []string
    List of private endpoint connections.
    PublicNetworkAccess string
    Whether or not public endpoint access is allowed for this mongo cluster.
    ServerVersion string
    The Mongo DB server version. Defaults to the latest available version if not specified.
    Sharding ShardingPropertiesResponse
    The sharding properties of the mongo cluster.
    Storage StoragePropertiesResponse
    The storage properties of the mongo cluster.
    clusterStatus String
    The status of the mongo cluster.
    connectionString String
    The default mongo connection string for the cluster.
    infrastructureVersion String
    The infrastructure version the cluster is provisioned on.
    privateEndpointConnections List<PrivateEndpointConnectionResponse>
    List of private endpoint connections.
    provisioningState String
    The provisioning state of the mongo cluster.
    replica ReplicationPropertiesResponse
    The replication properties for the mongo cluster
    administrator AdministratorPropertiesResponse
    The local administrator properties for the mongo cluster.
    backup BackupPropertiesResponse
    The backup properties of the mongo cluster.
    compute ComputePropertiesResponse
    The compute properties of the mongo cluster.
    highAvailability HighAvailabilityPropertiesResponse
    The high availability properties of the mongo cluster.
    previewFeatures List<String>
    List of private endpoint connections.
    publicNetworkAccess String
    Whether or not public endpoint access is allowed for this mongo cluster.
    serverVersion String
    The Mongo DB server version. Defaults to the latest available version if not specified.
    sharding ShardingPropertiesResponse
    The sharding properties of the mongo cluster.
    storage StoragePropertiesResponse
    The storage properties of the mongo cluster.
    clusterStatus string
    The status of the mongo cluster.
    connectionString string
    The default mongo connection string for the cluster.
    infrastructureVersion string
    The infrastructure version the cluster is provisioned on.
    privateEndpointConnections PrivateEndpointConnectionResponse[]
    List of private endpoint connections.
    provisioningState string
    The provisioning state of the mongo cluster.
    replica ReplicationPropertiesResponse
    The replication properties for the mongo cluster
    administrator AdministratorPropertiesResponse
    The local administrator properties for the mongo cluster.
    backup BackupPropertiesResponse
    The backup properties of the mongo cluster.
    compute ComputePropertiesResponse
    The compute properties of the mongo cluster.
    highAvailability HighAvailabilityPropertiesResponse
    The high availability properties of the mongo cluster.
    previewFeatures string[]
    List of private endpoint connections.
    publicNetworkAccess string
    Whether or not public endpoint access is allowed for this mongo cluster.
    serverVersion string
    The Mongo DB server version. Defaults to the latest available version if not specified.
    sharding ShardingPropertiesResponse
    The sharding properties of the mongo cluster.
    storage StoragePropertiesResponse
    The storage properties of the mongo cluster.
    cluster_status str
    The status of the mongo cluster.
    connection_string str
    The default mongo connection string for the cluster.
    infrastructure_version str
    The infrastructure version the cluster is provisioned on.
    private_endpoint_connections Sequence[PrivateEndpointConnectionResponse]
    List of private endpoint connections.
    provisioning_state str
    The provisioning state of the mongo cluster.
    replica ReplicationPropertiesResponse
    The replication properties for the mongo cluster
    administrator AdministratorPropertiesResponse
    The local administrator properties for the mongo cluster.
    backup BackupPropertiesResponse
    The backup properties of the mongo cluster.
    compute ComputePropertiesResponse
    The compute properties of the mongo cluster.
    high_availability HighAvailabilityPropertiesResponse
    The high availability properties of the mongo cluster.
    preview_features Sequence[str]
    List of private endpoint connections.
    public_network_access str
    Whether or not public endpoint access is allowed for this mongo cluster.
    server_version str
    The Mongo DB server version. Defaults to the latest available version if not specified.
    sharding ShardingPropertiesResponse
    The sharding properties of the mongo cluster.
    storage StoragePropertiesResponse
    The storage properties of the mongo cluster.
    clusterStatus String
    The status of the mongo cluster.
    connectionString String
    The default mongo connection string for the cluster.
    infrastructureVersion String
    The infrastructure version the cluster is provisioned on.
    privateEndpointConnections List<Property Map>
    List of private endpoint connections.
    provisioningState String
    The provisioning state of the mongo cluster.
    replica Property Map
    The replication properties for the mongo cluster
    administrator Property Map
    The local administrator properties for the mongo cluster.
    backup Property Map
    The backup properties of the mongo cluster.
    compute Property Map
    The compute properties of the mongo cluster.
    highAvailability Property Map
    The high availability properties of the mongo cluster.
    previewFeatures List<String>
    List of private endpoint connections.
    publicNetworkAccess String
    Whether or not public endpoint access is allowed for this mongo cluster.
    serverVersion String
    The Mongo DB server version. Defaults to the latest available version if not specified.
    sharding Property Map
    The sharding properties of the mongo cluster.
    storage Property Map
    The storage properties of the mongo cluster.

    MongoClusterReplicaParameters, MongoClusterReplicaParametersArgs

    SourceLocation string
    The location of the source cluster
    SourceResourceId string
    The id of the replication source cluster.
    SourceLocation string
    The location of the source cluster
    SourceResourceId string
    The id of the replication source cluster.
    sourceLocation String
    The location of the source cluster
    sourceResourceId String
    The id of the replication source cluster.
    sourceLocation string
    The location of the source cluster
    sourceResourceId string
    The id of the replication source cluster.
    source_location str
    The location of the source cluster
    source_resource_id str
    The id of the replication source cluster.
    sourceLocation String
    The location of the source cluster
    sourceResourceId String
    The id of the replication source cluster.

    MongoClusterRestoreParameters, MongoClusterRestoreParametersArgs

    PointInTimeUTC string
    UTC point in time to restore a mongo cluster
    SourceResourceId string
    Resource ID to locate the source cluster to restore
    PointInTimeUTC string
    UTC point in time to restore a mongo cluster
    SourceResourceId string
    Resource ID to locate the source cluster to restore
    pointInTimeUTC String
    UTC point in time to restore a mongo cluster
    sourceResourceId String
    Resource ID to locate the source cluster to restore
    pointInTimeUTC string
    UTC point in time to restore a mongo cluster
    sourceResourceId string
    Resource ID to locate the source cluster to restore
    point_in_time_utc str
    UTC point in time to restore a mongo cluster
    source_resource_id str
    Resource ID to locate the source cluster to restore
    pointInTimeUTC String
    UTC point in time to restore a mongo cluster
    sourceResourceId String
    Resource ID to locate the source cluster to restore

    PreviewFeature, PreviewFeatureArgs

    GeoReplicas
    GeoReplicasEnables geo replicas preview feature. The feature must be set at create-time on new cluster to enable linking a geo-replica cluster to it.
    PreviewFeatureGeoReplicas
    GeoReplicasEnables geo replicas preview feature. The feature must be set at create-time on new cluster to enable linking a geo-replica cluster to it.
    GeoReplicas
    GeoReplicasEnables geo replicas preview feature. The feature must be set at create-time on new cluster to enable linking a geo-replica cluster to it.
    GeoReplicas
    GeoReplicasEnables geo replicas preview feature. The feature must be set at create-time on new cluster to enable linking a geo-replica cluster to it.
    GEO_REPLICAS
    GeoReplicasEnables geo replicas preview feature. The feature must be set at create-time on new cluster to enable linking a geo-replica cluster to it.
    "GeoReplicas"
    GeoReplicasEnables geo replicas preview feature. The feature must be set at create-time on new cluster to enable linking a geo-replica cluster to it.

    PrivateEndpointConnectionResponse, PrivateEndpointConnectionResponseArgs

    GroupIds List<string>
    The group ids for the private endpoint resource.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Name string
    The name of the resource
    PrivateLinkServiceConnectionState Pulumi.AzureNative.MongoCluster.Inputs.PrivateLinkServiceConnectionStateResponse
    A collection of information about the state of the connection between service consumer and provider.
    ProvisioningState string
    The provisioning state of the private endpoint connection resource.
    SystemData Pulumi.AzureNative.MongoCluster.Inputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    PrivateEndpoint Pulumi.AzureNative.MongoCluster.Inputs.PrivateEndpointResponse
    The private endpoint resource.
    GroupIds []string
    The group ids for the private endpoint resource.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Name string
    The name of the resource
    PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponse
    A collection of information about the state of the connection between service consumer and provider.
    ProvisioningState string
    The provisioning state of the private endpoint connection resource.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    PrivateEndpoint PrivateEndpointResponse
    The private endpoint resource.
    groupIds List<String>
    The group ids for the private endpoint resource.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name String
    The name of the resource
    privateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponse
    A collection of information about the state of the connection between service consumer and provider.
    provisioningState String
    The provisioning state of the private endpoint connection resource.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    privateEndpoint PrivateEndpointResponse
    The private endpoint resource.
    groupIds string[]
    The group ids for the private endpoint resource.
    id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name string
    The name of the resource
    privateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponse
    A collection of information about the state of the connection between service consumer and provider.
    provisioningState string
    The provisioning state of the private endpoint connection resource.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    privateEndpoint PrivateEndpointResponse
    The private endpoint resource.
    group_ids Sequence[str]
    The group ids for the private endpoint resource.
    id str
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name str
    The name of the resource
    private_link_service_connection_state PrivateLinkServiceConnectionStateResponse
    A collection of information about the state of the connection between service consumer and provider.
    provisioning_state str
    The provisioning state of the private endpoint connection resource.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    private_endpoint PrivateEndpointResponse
    The private endpoint resource.
    groupIds List<String>
    The group ids for the private endpoint resource.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name String
    The name of the resource
    privateLinkServiceConnectionState Property Map
    A collection of information about the state of the connection between service consumer and provider.
    provisioningState String
    The provisioning state of the private endpoint connection resource.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    privateEndpoint Property Map
    The private endpoint resource.

    PrivateEndpointResponse, PrivateEndpointResponseArgs

    Id string
    The ARM identifier for private endpoint.
    Id string
    The ARM identifier for private endpoint.
    id String
    The ARM identifier for private endpoint.
    id string
    The ARM identifier for private endpoint.
    id str
    The ARM identifier for private endpoint.
    id String
    The ARM identifier for private endpoint.

    PrivateLinkServiceConnectionStateResponse, PrivateLinkServiceConnectionStateResponseArgs

    ActionsRequired string
    A message indicating if changes on the service provider require any updates on the consumer.
    Description string
    The reason for approval/rejection of the connection.
    Status string
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    ActionsRequired string
    A message indicating if changes on the service provider require any updates on the consumer.
    Description string
    The reason for approval/rejection of the connection.
    Status string
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    actionsRequired String
    A message indicating if changes on the service provider require any updates on the consumer.
    description String
    The reason for approval/rejection of the connection.
    status String
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    actionsRequired string
    A message indicating if changes on the service provider require any updates on the consumer.
    description string
    The reason for approval/rejection of the connection.
    status string
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    actions_required str
    A message indicating if changes on the service provider require any updates on the consumer.
    description str
    The reason for approval/rejection of the connection.
    status str
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    actionsRequired String
    A message indicating if changes on the service provider require any updates on the consumer.
    description String
    The reason for approval/rejection of the connection.
    status String
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.

    PublicNetworkAccess, PublicNetworkAccessArgs

    Enabled
    EnabledIf set, mongo cluster can be accessed through private and public methods.
    Disabled
    DisabledIf set, the private endpoints are the exclusive access method.
    PublicNetworkAccessEnabled
    EnabledIf set, mongo cluster can be accessed through private and public methods.
    PublicNetworkAccessDisabled
    DisabledIf set, the private endpoints are the exclusive access method.
    Enabled
    EnabledIf set, mongo cluster can be accessed through private and public methods.
    Disabled
    DisabledIf set, the private endpoints are the exclusive access method.
    Enabled
    EnabledIf set, mongo cluster can be accessed through private and public methods.
    Disabled
    DisabledIf set, the private endpoints are the exclusive access method.
    ENABLED
    EnabledIf set, mongo cluster can be accessed through private and public methods.
    DISABLED
    DisabledIf set, the private endpoints are the exclusive access method.
    "Enabled"
    EnabledIf set, mongo cluster can be accessed through private and public methods.
    "Disabled"
    DisabledIf set, the private endpoints are the exclusive access method.

    ReplicationPropertiesResponse, ReplicationPropertiesResponseArgs

    ReplicationState string
    The replication link state of the replica cluster.
    Role string
    The replication role of the cluster
    SourceResourceId string
    The resource id the source cluster for the replica cluster.
    ReplicationState string
    The replication link state of the replica cluster.
    Role string
    The replication role of the cluster
    SourceResourceId string
    The resource id the source cluster for the replica cluster.
    replicationState String
    The replication link state of the replica cluster.
    role String
    The replication role of the cluster
    sourceResourceId String
    The resource id the source cluster for the replica cluster.
    replicationState string
    The replication link state of the replica cluster.
    role string
    The replication role of the cluster
    sourceResourceId string
    The resource id the source cluster for the replica cluster.
    replication_state str
    The replication link state of the replica cluster.
    role str
    The replication role of the cluster
    source_resource_id str
    The resource id the source cluster for the replica cluster.
    replicationState String
    The replication link state of the replica cluster.
    role String
    The replication role of the cluster
    sourceResourceId String
    The resource id the source cluster for the replica cluster.

    ShardingProperties, ShardingPropertiesArgs

    ShardCount int
    Number of shards to provision on the cluster.
    ShardCount int
    Number of shards to provision on the cluster.
    shardCount Integer
    Number of shards to provision on the cluster.
    shardCount number
    Number of shards to provision on the cluster.
    shard_count int
    Number of shards to provision on the cluster.
    shardCount Number
    Number of shards to provision on the cluster.

    ShardingPropertiesResponse, ShardingPropertiesResponseArgs

    ShardCount int
    Number of shards to provision on the cluster.
    ShardCount int
    Number of shards to provision on the cluster.
    shardCount Integer
    Number of shards to provision on the cluster.
    shardCount number
    Number of shards to provision on the cluster.
    shard_count int
    Number of shards to provision on the cluster.
    shardCount Number
    Number of shards to provision on the cluster.

    StorageProperties, StoragePropertiesArgs

    SizeGb double
    The size of the data disk assigned to each server.
    SizeGb float64
    The size of the data disk assigned to each server.
    sizeGb Double
    The size of the data disk assigned to each server.
    sizeGb number
    The size of the data disk assigned to each server.
    size_gb float
    The size of the data disk assigned to each server.
    sizeGb Number
    The size of the data disk assigned to each server.

    StoragePropertiesResponse, StoragePropertiesResponseArgs

    SizeGb double
    The size of the data disk assigned to each server.
    SizeGb float64
    The size of the data disk assigned to each server.
    sizeGb Double
    The size of the data disk assigned to each server.
    sizeGb number
    The size of the data disk assigned to each server.
    size_gb float
    The size of the data disk assigned to each server.
    sizeGb Number
    The size of the data disk assigned to each server.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:mongocluster:MongoCluster myReplicaMongoCluster /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi