We recommend using Azure Native.
Manages a MongoDB Cluster using vCore Architecture.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-rg",
location: "East US",
});
const exampleMongoCluster = new azure.mongocluster.MongoCluster("example", {
name: "example-mc",
resourceGroupName: example.name,
location: example.location,
administratorUsername: "adminTerraform",
administratorPassword: "QAZwsx123",
shardCount: 1,
computeTier: "Free",
highAvailabilityMode: "Disabled",
storageSizeInGb: 32,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-rg",
location="East US")
example_mongo_cluster = azure.mongocluster.MongoCluster("example",
name="example-mc",
resource_group_name=example.name,
location=example.location,
administrator_username="adminTerraform",
administrator_password="QAZwsx123",
shard_count=1,
compute_tier="Free",
high_availability_mode="Disabled",
storage_size_in_gb=32)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/mongocluster"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-rg"),
Location: pulumi.String("East US"),
})
if err != nil {
return err
}
_, err = mongocluster.NewMongoCluster(ctx, "example", &mongocluster.MongoClusterArgs{
Name: pulumi.String("example-mc"),
ResourceGroupName: example.Name,
Location: example.Location,
AdministratorUsername: pulumi.String("adminTerraform"),
AdministratorPassword: pulumi.String("QAZwsx123"),
ShardCount: pulumi.Int(1),
ComputeTier: pulumi.String("Free"),
HighAvailabilityMode: pulumi.String("Disabled"),
StorageSizeInGb: pulumi.Int(32),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-rg",
Location = "East US",
});
var exampleMongoCluster = new Azure.MongoCluster.MongoCluster("example", new()
{
Name = "example-mc",
ResourceGroupName = example.Name,
Location = example.Location,
AdministratorUsername = "adminTerraform",
AdministratorPassword = "QAZwsx123",
ShardCount = 1,
ComputeTier = "Free",
HighAvailabilityMode = "Disabled",
StorageSizeInGb = 32,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.mongocluster.MongoCluster;
import com.pulumi.azure.mongocluster.MongoClusterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-rg")
.location("East US")
.build());
var exampleMongoCluster = new MongoCluster("exampleMongoCluster", MongoClusterArgs.builder()
.name("example-mc")
.resourceGroupName(example.name())
.location(example.location())
.administratorUsername("adminTerraform")
.administratorPassword("QAZwsx123")
.shardCount(1)
.computeTier("Free")
.highAvailabilityMode("Disabled")
.storageSizeInGb(32)
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-rg
location: East US
exampleMongoCluster:
type: azure:mongocluster:MongoCluster
name: example
properties:
name: example-mc
resourceGroupName: ${example.name}
location: ${example.location}
administratorUsername: adminTerraform
administratorPassword: QAZwsx123
shardCount: '1'
computeTier: Free
highAvailabilityMode: Disabled
storageSizeInGb: '32'
Preview Feature GeoReplicas)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-rg",
location: "East US",
});
const exampleMongoCluster = new azure.mongocluster.MongoCluster("example", {
name: "example-mc",
resourceGroupName: example.name,
location: example.location,
administratorUsername: "adminTerraform",
administratorPassword: "QAZwsx123",
shardCount: 1,
computeTier: "M30",
highAvailabilityMode: "ZoneRedundantPreferred",
storageSizeInGb: 64,
previewFeatures: ["GeoReplicas"],
});
const exampleGeoReplica = new azure.mongocluster.MongoCluster("example_geo_replica", {
name: "example-mc-geo",
resourceGroupName: example.name,
location: "Central US",
sourceServerId: exampleMongoCluster.id,
sourceLocation: exampleMongoCluster.location,
createMode: "GeoReplica",
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-rg",
location="East US")
example_mongo_cluster = azure.mongocluster.MongoCluster("example",
name="example-mc",
resource_group_name=example.name,
location=example.location,
administrator_username="adminTerraform",
administrator_password="QAZwsx123",
shard_count=1,
compute_tier="M30",
high_availability_mode="ZoneRedundantPreferred",
storage_size_in_gb=64,
preview_features=["GeoReplicas"])
example_geo_replica = azure.mongocluster.MongoCluster("example_geo_replica",
name="example-mc-geo",
resource_group_name=example.name,
location="Central US",
source_server_id=example_mongo_cluster.id,
source_location=example_mongo_cluster.location,
create_mode="GeoReplica")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/mongocluster"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-rg"),
Location: pulumi.String("East US"),
})
if err != nil {
return err
}
exampleMongoCluster, err := mongocluster.NewMongoCluster(ctx, "example", &mongocluster.MongoClusterArgs{
Name: pulumi.String("example-mc"),
ResourceGroupName: example.Name,
Location: example.Location,
AdministratorUsername: pulumi.String("adminTerraform"),
AdministratorPassword: pulumi.String("QAZwsx123"),
ShardCount: pulumi.Int(1),
ComputeTier: pulumi.String("M30"),
HighAvailabilityMode: pulumi.String("ZoneRedundantPreferred"),
StorageSizeInGb: pulumi.Int(64),
PreviewFeatures: pulumi.StringArray{
pulumi.String("GeoReplicas"),
},
})
if err != nil {
return err
}
_, err = mongocluster.NewMongoCluster(ctx, "example_geo_replica", &mongocluster.MongoClusterArgs{
Name: pulumi.String("example-mc-geo"),
ResourceGroupName: example.Name,
Location: pulumi.String("Central US"),
SourceServerId: exampleMongoCluster.ID(),
SourceLocation: exampleMongoCluster.Location,
CreateMode: pulumi.String("GeoReplica"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-rg",
Location = "East US",
});
var exampleMongoCluster = new Azure.MongoCluster.MongoCluster("example", new()
{
Name = "example-mc",
ResourceGroupName = example.Name,
Location = example.Location,
AdministratorUsername = "adminTerraform",
AdministratorPassword = "QAZwsx123",
ShardCount = 1,
ComputeTier = "M30",
HighAvailabilityMode = "ZoneRedundantPreferred",
StorageSizeInGb = 64,
PreviewFeatures = new[]
{
"GeoReplicas",
},
});
var exampleGeoReplica = new Azure.MongoCluster.MongoCluster("example_geo_replica", new()
{
Name = "example-mc-geo",
ResourceGroupName = example.Name,
Location = "Central US",
SourceServerId = exampleMongoCluster.Id,
SourceLocation = exampleMongoCluster.Location,
CreateMode = "GeoReplica",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.mongocluster.MongoCluster;
import com.pulumi.azure.mongocluster.MongoClusterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-rg")
.location("East US")
.build());
var exampleMongoCluster = new MongoCluster("exampleMongoCluster", MongoClusterArgs.builder()
.name("example-mc")
.resourceGroupName(example.name())
.location(example.location())
.administratorUsername("adminTerraform")
.administratorPassword("QAZwsx123")
.shardCount(1)
.computeTier("M30")
.highAvailabilityMode("ZoneRedundantPreferred")
.storageSizeInGb(64)
.previewFeatures("GeoReplicas")
.build());
var exampleGeoReplica = new MongoCluster("exampleGeoReplica", MongoClusterArgs.builder()
.name("example-mc-geo")
.resourceGroupName(example.name())
.location("Central US")
.sourceServerId(exampleMongoCluster.id())
.sourceLocation(exampleMongoCluster.location())
.createMode("GeoReplica")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-rg
location: East US
exampleMongoCluster:
type: azure:mongocluster:MongoCluster
name: example
properties:
name: example-mc
resourceGroupName: ${example.name}
location: ${example.location}
administratorUsername: adminTerraform
administratorPassword: QAZwsx123
shardCount: '1'
computeTier: M30
highAvailabilityMode: ZoneRedundantPreferred
storageSizeInGb: '64'
previewFeatures:
- GeoReplicas
exampleGeoReplica:
type: azure:mongocluster:MongoCluster
name: example_geo_replica
properties:
name: example-mc-geo
resourceGroupName: ${example.name}
location: Central US
sourceServerId: ${exampleMongoCluster.id}
sourceLocation: ${exampleMongoCluster.location}
createMode: GeoReplica
API Providers
This resource uses the following Azure API Providers:
Microsoft.DocumentDB- 2025-09-01
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,
administrator_password: Optional[str] = None,
administrator_username: Optional[str] = None,
authentication_methods: Optional[Sequence[str]] = None,
compute_tier: Optional[str] = None,
create_mode: Optional[str] = None,
customer_managed_key: Optional[MongoClusterCustomerManagedKeyArgs] = None,
data_api_mode_enabled: Optional[bool] = None,
high_availability_mode: Optional[str] = None,
identity: Optional[MongoClusterIdentityArgs] = None,
location: Optional[str] = None,
name: Optional[str] = None,
preview_features: Optional[Sequence[str]] = None,
public_network_access: Optional[str] = None,
resource_group_name: Optional[str] = None,
restore: Optional[MongoClusterRestoreArgs] = None,
shard_count: Optional[int] = None,
source_location: Optional[str] = None,
source_server_id: Optional[str] = None,
storage_size_in_gb: Optional[int] = None,
storage_type: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
version: Optional[str] = None)func NewMongoCluster(ctx *Context, name string, args MongoClusterArgs, opts ...ResourceOption) (*MongoCluster, error)public MongoCluster(string name, MongoClusterArgs args, CustomResourceOptions? opts = null)
public MongoCluster(String name, MongoClusterArgs args)
public MongoCluster(String name, MongoClusterArgs args, CustomResourceOptions options)
type: azure:cosmosdb: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.
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:
- Resource
Group stringName - The name of the resource group in which to create the MongoDB Cluster. Changing this forces a new resource to be created.
- Administrator
Password string - The Password associated with the
administrator_usernamefor the MongoDB Cluster. - Administrator
Username string - The administrator username of the MongoDB Cluster. Changing this forces a new resource to be created.
- Authentication
Methods List<string> - A list of allowed authentication modes for the MongoDB Cluster. Possible values are
NativeAuthandMicrosoftEntraID. - Compute
Tier string - The compute tier to assign to the MongoDB Cluster. Possible values are
Free,M10,M20,M25,M30,M40,M50,M60,M80, andM200. - Create
Mode string - The creation mode for the MongoDB Cluster. Possible values are
Default,GeoReplicaandPointInTimeRestore. Defaults toDefault. Changing this forces a new resource to be created. - Customer
Managed MongoKey Cluster Customer Managed Key - A
customer_managed_keyblock as defined below. Changing this forces a new resource to be created. - Data
Api boolMode Enabled Is the Data API for the MongoDB Cluster enabled? Defaults to
false.Note:
data_api_mode_enabledcan only be set whencreate_modeisDefault. Once enabled, it can only be disabled by recreating the resource.- High
Availability stringMode - The high availability mode for the MongoDB Cluster. Possibles values are
DisabledandZoneRedundantPreferred. - Identity
Mongo
Cluster Identity An
identityblock as detailed below.Note: When adding or removing
identity, a resource recreation will be triggered.- Location string
- The supported Azure location where the MongoDB Cluster exists. Changing this forces a new resource to be created.
- Name string
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- Preview
Features List<string> - The preview features that can be enabled on the MongoDB Cluster. Changing this forces a new resource to be created.
- Public
Network stringAccess - The Public Network Access setting for the MongoDB Cluster. Possibles values are
DisabledandEnabled. Defaults toEnabled. - Restore
Mongo
Cluster Restore - int
- The Number of shards to provision on the MongoDB Cluster. Changing this forces a new resource to be created.
- Source
Location string - The location of the source MongoDB Cluster. Changing this forces a new resource to be created.
- Source
Server stringId - The ID of the replication source MongoDB Cluster. Changing this forces a new resource to be created.
- Storage
Size intIn Gb - The size of the data disk space for the MongoDB Cluster.
- Storage
Type string - The storage type for the MongoDB Cluster. Possible values are
PremiumSSDandPremiumSSDv2. Defaults toPremiumSSD. Changing this forces a new resource to be created. - Dictionary<string, string>
- A mapping of tags to assign to the MongoDB Cluster.
- Version string
- The version for the MongoDB Cluster. Possibles values are
5.0,6.0,7.0and8.0.
- Resource
Group stringName - The name of the resource group in which to create the MongoDB Cluster. Changing this forces a new resource to be created.
- Administrator
Password string - The Password associated with the
administrator_usernamefor the MongoDB Cluster. - Administrator
Username string - The administrator username of the MongoDB Cluster. Changing this forces a new resource to be created.
- Authentication
Methods []string - A list of allowed authentication modes for the MongoDB Cluster. Possible values are
NativeAuthandMicrosoftEntraID. - Compute
Tier string - The compute tier to assign to the MongoDB Cluster. Possible values are
Free,M10,M20,M25,M30,M40,M50,M60,M80, andM200. - Create
Mode string - The creation mode for the MongoDB Cluster. Possible values are
Default,GeoReplicaandPointInTimeRestore. Defaults toDefault. Changing this forces a new resource to be created. - Customer
Managed MongoKey Cluster Customer Managed Key Args - A
customer_managed_keyblock as defined below. Changing this forces a new resource to be created. - Data
Api boolMode Enabled Is the Data API for the MongoDB Cluster enabled? Defaults to
false.Note:
data_api_mode_enabledcan only be set whencreate_modeisDefault. Once enabled, it can only be disabled by recreating the resource.- High
Availability stringMode - The high availability mode for the MongoDB Cluster. Possibles values are
DisabledandZoneRedundantPreferred. - Identity
Mongo
Cluster Identity Args An
identityblock as detailed below.Note: When adding or removing
identity, a resource recreation will be triggered.- Location string
- The supported Azure location where the MongoDB Cluster exists. Changing this forces a new resource to be created.
- Name string
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- Preview
Features []string - The preview features that can be enabled on the MongoDB Cluster. Changing this forces a new resource to be created.
- Public
Network stringAccess - The Public Network Access setting for the MongoDB Cluster. Possibles values are
DisabledandEnabled. Defaults toEnabled. - Restore
Mongo
Cluster Restore Args - int
- The Number of shards to provision on the MongoDB Cluster. Changing this forces a new resource to be created.
- Source
Location string - The location of the source MongoDB Cluster. Changing this forces a new resource to be created.
- Source
Server stringId - The ID of the replication source MongoDB Cluster. Changing this forces a new resource to be created.
- Storage
Size intIn Gb - The size of the data disk space for the MongoDB Cluster.
- Storage
Type string - The storage type for the MongoDB Cluster. Possible values are
PremiumSSDandPremiumSSDv2. Defaults toPremiumSSD. Changing this forces a new resource to be created. - map[string]string
- A mapping of tags to assign to the MongoDB Cluster.
- Version string
- The version for the MongoDB Cluster. Possibles values are
5.0,6.0,7.0and8.0.
- resource
Group StringName - The name of the resource group in which to create the MongoDB Cluster. Changing this forces a new resource to be created.
- administrator
Password String - The Password associated with the
administrator_usernamefor the MongoDB Cluster. - administrator
Username String - The administrator username of the MongoDB Cluster. Changing this forces a new resource to be created.
- authentication
Methods List<String> - A list of allowed authentication modes for the MongoDB Cluster. Possible values are
NativeAuthandMicrosoftEntraID. - compute
Tier String - The compute tier to assign to the MongoDB Cluster. Possible values are
Free,M10,M20,M25,M30,M40,M50,M60,M80, andM200. - create
Mode String - The creation mode for the MongoDB Cluster. Possible values are
Default,GeoReplicaandPointInTimeRestore. Defaults toDefault. Changing this forces a new resource to be created. - customer
Managed MongoKey Cluster Customer Managed Key - A
customer_managed_keyblock as defined below. Changing this forces a new resource to be created. - data
Api BooleanMode Enabled Is the Data API for the MongoDB Cluster enabled? Defaults to
false.Note:
data_api_mode_enabledcan only be set whencreate_modeisDefault. Once enabled, it can only be disabled by recreating the resource.- high
Availability StringMode - The high availability mode for the MongoDB Cluster. Possibles values are
DisabledandZoneRedundantPreferred. - identity
Mongo
Cluster Identity An
identityblock as detailed below.Note: When adding or removing
identity, a resource recreation will be triggered.- location String
- The supported Azure location where the MongoDB Cluster exists. Changing this forces a new resource to be created.
- name String
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- preview
Features List<String> - The preview features that can be enabled on the MongoDB Cluster. Changing this forces a new resource to be created.
- public
Network StringAccess - The Public Network Access setting for the MongoDB Cluster. Possibles values are
DisabledandEnabled. Defaults toEnabled. - restore
Mongo
Cluster Restore - Integer
- The Number of shards to provision on the MongoDB Cluster. Changing this forces a new resource to be created.
- source
Location String - The location of the source MongoDB Cluster. Changing this forces a new resource to be created.
- source
Server StringId - The ID of the replication source MongoDB Cluster. Changing this forces a new resource to be created.
- storage
Size IntegerIn Gb - The size of the data disk space for the MongoDB Cluster.
- storage
Type String - The storage type for the MongoDB Cluster. Possible values are
PremiumSSDandPremiumSSDv2. Defaults toPremiumSSD. Changing this forces a new resource to be created. - Map<String,String>
- A mapping of tags to assign to the MongoDB Cluster.
- version String
- The version for the MongoDB Cluster. Possibles values are
5.0,6.0,7.0and8.0.
- resource
Group stringName - The name of the resource group in which to create the MongoDB Cluster. Changing this forces a new resource to be created.
- administrator
Password string - The Password associated with the
administrator_usernamefor the MongoDB Cluster. - administrator
Username string - The administrator username of the MongoDB Cluster. Changing this forces a new resource to be created.
- authentication
Methods string[] - A list of allowed authentication modes for the MongoDB Cluster. Possible values are
NativeAuthandMicrosoftEntraID. - compute
Tier string - The compute tier to assign to the MongoDB Cluster. Possible values are
Free,M10,M20,M25,M30,M40,M50,M60,M80, andM200. - create
Mode string - The creation mode for the MongoDB Cluster. Possible values are
Default,GeoReplicaandPointInTimeRestore. Defaults toDefault. Changing this forces a new resource to be created. - customer
Managed MongoKey Cluster Customer Managed Key - A
customer_managed_keyblock as defined below. Changing this forces a new resource to be created. - data
Api booleanMode Enabled Is the Data API for the MongoDB Cluster enabled? Defaults to
false.Note:
data_api_mode_enabledcan only be set whencreate_modeisDefault. Once enabled, it can only be disabled by recreating the resource.- high
Availability stringMode - The high availability mode for the MongoDB Cluster. Possibles values are
DisabledandZoneRedundantPreferred. - identity
Mongo
Cluster Identity An
identityblock as detailed below.Note: When adding or removing
identity, a resource recreation will be triggered.- location string
- The supported Azure location where the MongoDB Cluster exists. Changing this forces a new resource to be created.
- name string
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- preview
Features string[] - The preview features that can be enabled on the MongoDB Cluster. Changing this forces a new resource to be created.
- public
Network stringAccess - The Public Network Access setting for the MongoDB Cluster. Possibles values are
DisabledandEnabled. Defaults toEnabled. - restore
Mongo
Cluster Restore - number
- The Number of shards to provision on the MongoDB Cluster. Changing this forces a new resource to be created.
- source
Location string - The location of the source MongoDB Cluster. Changing this forces a new resource to be created.
- source
Server stringId - The ID of the replication source MongoDB Cluster. Changing this forces a new resource to be created.
- storage
Size numberIn Gb - The size of the data disk space for the MongoDB Cluster.
- storage
Type string - The storage type for the MongoDB Cluster. Possible values are
PremiumSSDandPremiumSSDv2. Defaults toPremiumSSD. Changing this forces a new resource to be created. - {[key: string]: string}
- A mapping of tags to assign to the MongoDB Cluster.
- version string
- The version for the MongoDB Cluster. Possibles values are
5.0,6.0,7.0and8.0.
- resource_
group_ strname - The name of the resource group in which to create the MongoDB Cluster. Changing this forces a new resource to be created.
- administrator_
password str - The Password associated with the
administrator_usernamefor the MongoDB Cluster. - administrator_
username str - The administrator username of the MongoDB Cluster. Changing this forces a new resource to be created.
- authentication_
methods Sequence[str] - A list of allowed authentication modes for the MongoDB Cluster. Possible values are
NativeAuthandMicrosoftEntraID. - compute_
tier str - The compute tier to assign to the MongoDB Cluster. Possible values are
Free,M10,M20,M25,M30,M40,M50,M60,M80, andM200. - create_
mode str - The creation mode for the MongoDB Cluster. Possible values are
Default,GeoReplicaandPointInTimeRestore. Defaults toDefault. Changing this forces a new resource to be created. - customer_
managed_ Mongokey Cluster Customer Managed Key Args - A
customer_managed_keyblock as defined below. Changing this forces a new resource to be created. - data_
api_ boolmode_ enabled Is the Data API for the MongoDB Cluster enabled? Defaults to
false.Note:
data_api_mode_enabledcan only be set whencreate_modeisDefault. Once enabled, it can only be disabled by recreating the resource.- high_
availability_ strmode - The high availability mode for the MongoDB Cluster. Possibles values are
DisabledandZoneRedundantPreferred. - identity
Mongo
Cluster Identity Args An
identityblock as detailed below.Note: When adding or removing
identity, a resource recreation will be triggered.- location str
- The supported Azure location where the MongoDB Cluster exists. Changing this forces a new resource to be created.
- name str
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- preview_
features Sequence[str] - The preview features that can be enabled on the MongoDB Cluster. Changing this forces a new resource to be created.
- public_
network_ straccess - The Public Network Access setting for the MongoDB Cluster. Possibles values are
DisabledandEnabled. Defaults toEnabled. - restore
Mongo
Cluster Restore Args - int
- The Number of shards to provision on the MongoDB Cluster. Changing this forces a new resource to be created.
- source_
location str - The location of the source MongoDB Cluster. Changing this forces a new resource to be created.
- source_
server_ strid - The ID of the replication source MongoDB Cluster. Changing this forces a new resource to be created.
- storage_
size_ intin_ gb - The size of the data disk space for the MongoDB Cluster.
- storage_
type str - The storage type for the MongoDB Cluster. Possible values are
PremiumSSDandPremiumSSDv2. Defaults toPremiumSSD. Changing this forces a new resource to be created. - Mapping[str, str]
- A mapping of tags to assign to the MongoDB Cluster.
- version str
- The version for the MongoDB Cluster. Possibles values are
5.0,6.0,7.0and8.0.
- resource
Group StringName - The name of the resource group in which to create the MongoDB Cluster. Changing this forces a new resource to be created.
- administrator
Password String - The Password associated with the
administrator_usernamefor the MongoDB Cluster. - administrator
Username String - The administrator username of the MongoDB Cluster. Changing this forces a new resource to be created.
- authentication
Methods List<String> - A list of allowed authentication modes for the MongoDB Cluster. Possible values are
NativeAuthandMicrosoftEntraID. - compute
Tier String - The compute tier to assign to the MongoDB Cluster. Possible values are
Free,M10,M20,M25,M30,M40,M50,M60,M80, andM200. - create
Mode String - The creation mode for the MongoDB Cluster. Possible values are
Default,GeoReplicaandPointInTimeRestore. Defaults toDefault. Changing this forces a new resource to be created. - customer
Managed Property MapKey - A
customer_managed_keyblock as defined below. Changing this forces a new resource to be created. - data
Api BooleanMode Enabled Is the Data API for the MongoDB Cluster enabled? Defaults to
false.Note:
data_api_mode_enabledcan only be set whencreate_modeisDefault. Once enabled, it can only be disabled by recreating the resource.- high
Availability StringMode - The high availability mode for the MongoDB Cluster. Possibles values are
DisabledandZoneRedundantPreferred. - identity Property Map
An
identityblock as detailed below.Note: When adding or removing
identity, a resource recreation will be triggered.- location String
- The supported Azure location where the MongoDB Cluster exists. Changing this forces a new resource to be created.
- name String
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- preview
Features List<String> - The preview features that can be enabled on the MongoDB Cluster. Changing this forces a new resource to be created.
- public
Network StringAccess - The Public Network Access setting for the MongoDB Cluster. Possibles values are
DisabledandEnabled. Defaults toEnabled. - restore Property Map
- Number
- The Number of shards to provision on the MongoDB Cluster. Changing this forces a new resource to be created.
- source
Location String - The location of the source MongoDB Cluster. Changing this forces a new resource to be created.
- source
Server StringId - The ID of the replication source MongoDB Cluster. Changing this forces a new resource to be created.
- storage
Size NumberIn Gb - The size of the data disk space for the MongoDB Cluster.
- storage
Type String - The storage type for the MongoDB Cluster. Possible values are
PremiumSSDandPremiumSSDv2. Defaults toPremiumSSD. Changing this forces a new resource to be created. - Map<String>
- A mapping of tags to assign to the MongoDB Cluster.
- version String
- The version for the MongoDB Cluster. Possibles values are
5.0,6.0,7.0and8.0.
Outputs
All input properties are implicitly available as output properties. Additionally, the MongoCluster resource produces the following output properties:
- Connection
Strings List<MongoCluster Connection String> - One or more
connection_stringsblocks as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- Connection
Strings []MongoCluster Connection String - One or more
connection_stringsblocks as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- connection
Strings List<MongoCluster Connection String> - One or more
connection_stringsblocks as defined below. - id String
- The provider-assigned unique ID for this managed resource.
- connection
Strings MongoCluster Connection String[] - One or more
connection_stringsblocks as defined below. - id string
- The provider-assigned unique ID for this managed resource.
- connection_
strings Sequence[MongoCluster Connection String] - One or more
connection_stringsblocks as defined below. - id str
- The provider-assigned unique ID for this managed resource.
- connection
Strings List<Property Map> - One or more
connection_stringsblocks as defined below. - id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MongoCluster Resource
Get an existing MongoCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MongoClusterState, opts?: CustomResourceOptions): MongoCluster@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
administrator_password: Optional[str] = None,
administrator_username: Optional[str] = None,
authentication_methods: Optional[Sequence[str]] = None,
compute_tier: Optional[str] = None,
connection_strings: Optional[Sequence[MongoClusterConnectionStringArgs]] = None,
create_mode: Optional[str] = None,
customer_managed_key: Optional[MongoClusterCustomerManagedKeyArgs] = None,
data_api_mode_enabled: Optional[bool] = None,
high_availability_mode: Optional[str] = None,
identity: Optional[MongoClusterIdentityArgs] = None,
location: Optional[str] = None,
name: Optional[str] = None,
preview_features: Optional[Sequence[str]] = None,
public_network_access: Optional[str] = None,
resource_group_name: Optional[str] = None,
restore: Optional[MongoClusterRestoreArgs] = None,
shard_count: Optional[int] = None,
source_location: Optional[str] = None,
source_server_id: Optional[str] = None,
storage_size_in_gb: Optional[int] = None,
storage_type: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
version: Optional[str] = None) -> MongoClusterfunc GetMongoCluster(ctx *Context, name string, id IDInput, state *MongoClusterState, opts ...ResourceOption) (*MongoCluster, error)public static MongoCluster Get(string name, Input<string> id, MongoClusterState? state, CustomResourceOptions? opts = null)public static MongoCluster get(String name, Output<String> id, MongoClusterState state, CustomResourceOptions options)resources: _: type: azure:cosmosdb:MongoCluster get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Administrator
Password string - The Password associated with the
administrator_usernamefor the MongoDB Cluster. - Administrator
Username string - The administrator username of the MongoDB Cluster. Changing this forces a new resource to be created.
- Authentication
Methods List<string> - A list of allowed authentication modes for the MongoDB Cluster. Possible values are
NativeAuthandMicrosoftEntraID. - Compute
Tier string - The compute tier to assign to the MongoDB Cluster. Possible values are
Free,M10,M20,M25,M30,M40,M50,M60,M80, andM200. - Connection
Strings List<MongoCluster Connection String> - One or more
connection_stringsblocks as defined below. - Create
Mode string - The creation mode for the MongoDB Cluster. Possible values are
Default,GeoReplicaandPointInTimeRestore. Defaults toDefault. Changing this forces a new resource to be created. - Customer
Managed MongoKey Cluster Customer Managed Key - A
customer_managed_keyblock as defined below. Changing this forces a new resource to be created. - Data
Api boolMode Enabled Is the Data API for the MongoDB Cluster enabled? Defaults to
false.Note:
data_api_mode_enabledcan only be set whencreate_modeisDefault. Once enabled, it can only be disabled by recreating the resource.- High
Availability stringMode - The high availability mode for the MongoDB Cluster. Possibles values are
DisabledandZoneRedundantPreferred. - Identity
Mongo
Cluster Identity An
identityblock as detailed below.Note: When adding or removing
identity, a resource recreation will be triggered.- Location string
- The supported Azure location where the MongoDB Cluster exists. Changing this forces a new resource to be created.
- Name string
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- Preview
Features List<string> - The preview features that can be enabled on the MongoDB Cluster. Changing this forces a new resource to be created.
- Public
Network stringAccess - The Public Network Access setting for the MongoDB Cluster. Possibles values are
DisabledandEnabled. Defaults toEnabled. - Resource
Group stringName - The name of the resource group in which to create the MongoDB Cluster. Changing this forces a new resource to be created.
- Restore
Mongo
Cluster Restore - Shard
Count int - The Number of shards to provision on the MongoDB Cluster. Changing this forces a new resource to be created.
- Source
Location string - The location of the source MongoDB Cluster. Changing this forces a new resource to be created.
- Source
Server stringId - The ID of the replication source MongoDB Cluster. Changing this forces a new resource to be created.
- Storage
Size intIn Gb - The size of the data disk space for the MongoDB Cluster.
- Storage
Type string - The storage type for the MongoDB Cluster. Possible values are
PremiumSSDandPremiumSSDv2. Defaults toPremiumSSD. Changing this forces a new resource to be created. - Dictionary<string, string>
- A mapping of tags to assign to the MongoDB Cluster.
- Version string
- The version for the MongoDB Cluster. Possibles values are
5.0,6.0,7.0and8.0.
- Administrator
Password string - The Password associated with the
administrator_usernamefor the MongoDB Cluster. - Administrator
Username string - The administrator username of the MongoDB Cluster. Changing this forces a new resource to be created.
- Authentication
Methods []string - A list of allowed authentication modes for the MongoDB Cluster. Possible values are
NativeAuthandMicrosoftEntraID. - Compute
Tier string - The compute tier to assign to the MongoDB Cluster. Possible values are
Free,M10,M20,M25,M30,M40,M50,M60,M80, andM200. - Connection
Strings []MongoCluster Connection String Args - One or more
connection_stringsblocks as defined below. - Create
Mode string - The creation mode for the MongoDB Cluster. Possible values are
Default,GeoReplicaandPointInTimeRestore. Defaults toDefault. Changing this forces a new resource to be created. - Customer
Managed MongoKey Cluster Customer Managed Key Args - A
customer_managed_keyblock as defined below. Changing this forces a new resource to be created. - Data
Api boolMode Enabled Is the Data API for the MongoDB Cluster enabled? Defaults to
false.Note:
data_api_mode_enabledcan only be set whencreate_modeisDefault. Once enabled, it can only be disabled by recreating the resource.- High
Availability stringMode - The high availability mode for the MongoDB Cluster. Possibles values are
DisabledandZoneRedundantPreferred. - Identity
Mongo
Cluster Identity Args An
identityblock as detailed below.Note: When adding or removing
identity, a resource recreation will be triggered.- Location string
- The supported Azure location where the MongoDB Cluster exists. Changing this forces a new resource to be created.
- Name string
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- Preview
Features []string - The preview features that can be enabled on the MongoDB Cluster. Changing this forces a new resource to be created.
- Public
Network stringAccess - The Public Network Access setting for the MongoDB Cluster. Possibles values are
DisabledandEnabled. Defaults toEnabled. - Resource
Group stringName - The name of the resource group in which to create the MongoDB Cluster. Changing this forces a new resource to be created.
- Restore
Mongo
Cluster Restore Args - Shard
Count int - The Number of shards to provision on the MongoDB Cluster. Changing this forces a new resource to be created.
- Source
Location string - The location of the source MongoDB Cluster. Changing this forces a new resource to be created.
- Source
Server stringId - The ID of the replication source MongoDB Cluster. Changing this forces a new resource to be created.
- Storage
Size intIn Gb - The size of the data disk space for the MongoDB Cluster.
- Storage
Type string - The storage type for the MongoDB Cluster. Possible values are
PremiumSSDandPremiumSSDv2. Defaults toPremiumSSD. Changing this forces a new resource to be created. - map[string]string
- A mapping of tags to assign to the MongoDB Cluster.
- Version string
- The version for the MongoDB Cluster. Possibles values are
5.0,6.0,7.0and8.0.
- administrator
Password String - The Password associated with the
administrator_usernamefor the MongoDB Cluster. - administrator
Username String - The administrator username of the MongoDB Cluster. Changing this forces a new resource to be created.
- authentication
Methods List<String> - A list of allowed authentication modes for the MongoDB Cluster. Possible values are
NativeAuthandMicrosoftEntraID. - compute
Tier String - The compute tier to assign to the MongoDB Cluster. Possible values are
Free,M10,M20,M25,M30,M40,M50,M60,M80, andM200. - connection
Strings List<MongoCluster Connection String> - One or more
connection_stringsblocks as defined below. - create
Mode String - The creation mode for the MongoDB Cluster. Possible values are
Default,GeoReplicaandPointInTimeRestore. Defaults toDefault. Changing this forces a new resource to be created. - customer
Managed MongoKey Cluster Customer Managed Key - A
customer_managed_keyblock as defined below. Changing this forces a new resource to be created. - data
Api BooleanMode Enabled Is the Data API for the MongoDB Cluster enabled? Defaults to
false.Note:
data_api_mode_enabledcan only be set whencreate_modeisDefault. Once enabled, it can only be disabled by recreating the resource.- high
Availability StringMode - The high availability mode for the MongoDB Cluster. Possibles values are
DisabledandZoneRedundantPreferred. - identity
Mongo
Cluster Identity An
identityblock as detailed below.Note: When adding or removing
identity, a resource recreation will be triggered.- location String
- The supported Azure location where the MongoDB Cluster exists. Changing this forces a new resource to be created.
- name String
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- preview
Features List<String> - The preview features that can be enabled on the MongoDB Cluster. Changing this forces a new resource to be created.
- public
Network StringAccess - The Public Network Access setting for the MongoDB Cluster. Possibles values are
DisabledandEnabled. Defaults toEnabled. - resource
Group StringName - The name of the resource group in which to create the MongoDB Cluster. Changing this forces a new resource to be created.
- restore
Mongo
Cluster Restore - shard
Count Integer - The Number of shards to provision on the MongoDB Cluster. Changing this forces a new resource to be created.
- source
Location String - The location of the source MongoDB Cluster. Changing this forces a new resource to be created.
- source
Server StringId - The ID of the replication source MongoDB Cluster. Changing this forces a new resource to be created.
- storage
Size IntegerIn Gb - The size of the data disk space for the MongoDB Cluster.
- storage
Type String - The storage type for the MongoDB Cluster. Possible values are
PremiumSSDandPremiumSSDv2. Defaults toPremiumSSD. Changing this forces a new resource to be created. - Map<String,String>
- A mapping of tags to assign to the MongoDB Cluster.
- version String
- The version for the MongoDB Cluster. Possibles values are
5.0,6.0,7.0and8.0.
- administrator
Password string - The Password associated with the
administrator_usernamefor the MongoDB Cluster. - administrator
Username string - The administrator username of the MongoDB Cluster. Changing this forces a new resource to be created.
- authentication
Methods string[] - A list of allowed authentication modes for the MongoDB Cluster. Possible values are
NativeAuthandMicrosoftEntraID. - compute
Tier string - The compute tier to assign to the MongoDB Cluster. Possible values are
Free,M10,M20,M25,M30,M40,M50,M60,M80, andM200. - connection
Strings MongoCluster Connection String[] - One or more
connection_stringsblocks as defined below. - create
Mode string - The creation mode for the MongoDB Cluster. Possible values are
Default,GeoReplicaandPointInTimeRestore. Defaults toDefault. Changing this forces a new resource to be created. - customer
Managed MongoKey Cluster Customer Managed Key - A
customer_managed_keyblock as defined below. Changing this forces a new resource to be created. - data
Api booleanMode Enabled Is the Data API for the MongoDB Cluster enabled? Defaults to
false.Note:
data_api_mode_enabledcan only be set whencreate_modeisDefault. Once enabled, it can only be disabled by recreating the resource.- high
Availability stringMode - The high availability mode for the MongoDB Cluster. Possibles values are
DisabledandZoneRedundantPreferred. - identity
Mongo
Cluster Identity An
identityblock as detailed below.Note: When adding or removing
identity, a resource recreation will be triggered.- location string
- The supported Azure location where the MongoDB Cluster exists. Changing this forces a new resource to be created.
- name string
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- preview
Features string[] - The preview features that can be enabled on the MongoDB Cluster. Changing this forces a new resource to be created.
- public
Network stringAccess - The Public Network Access setting for the MongoDB Cluster. Possibles values are
DisabledandEnabled. Defaults toEnabled. - resource
Group stringName - The name of the resource group in which to create the MongoDB Cluster. Changing this forces a new resource to be created.
- restore
Mongo
Cluster Restore - shard
Count number - The Number of shards to provision on the MongoDB Cluster. Changing this forces a new resource to be created.
- source
Location string - The location of the source MongoDB Cluster. Changing this forces a new resource to be created.
- source
Server stringId - The ID of the replication source MongoDB Cluster. Changing this forces a new resource to be created.
- storage
Size numberIn Gb - The size of the data disk space for the MongoDB Cluster.
- storage
Type string - The storage type for the MongoDB Cluster. Possible values are
PremiumSSDandPremiumSSDv2. Defaults toPremiumSSD. Changing this forces a new resource to be created. - {[key: string]: string}
- A mapping of tags to assign to the MongoDB Cluster.
- version string
- The version for the MongoDB Cluster. Possibles values are
5.0,6.0,7.0and8.0.
- administrator_
password str - The Password associated with the
administrator_usernamefor the MongoDB Cluster. - administrator_
username str - The administrator username of the MongoDB Cluster. Changing this forces a new resource to be created.
- authentication_
methods Sequence[str] - A list of allowed authentication modes for the MongoDB Cluster. Possible values are
NativeAuthandMicrosoftEntraID. - compute_
tier str - The compute tier to assign to the MongoDB Cluster. Possible values are
Free,M10,M20,M25,M30,M40,M50,M60,M80, andM200. - connection_
strings Sequence[MongoCluster Connection String Args] - One or more
connection_stringsblocks as defined below. - create_
mode str - The creation mode for the MongoDB Cluster. Possible values are
Default,GeoReplicaandPointInTimeRestore. Defaults toDefault. Changing this forces a new resource to be created. - customer_
managed_ Mongokey Cluster Customer Managed Key Args - A
customer_managed_keyblock as defined below. Changing this forces a new resource to be created. - data_
api_ boolmode_ enabled Is the Data API for the MongoDB Cluster enabled? Defaults to
false.Note:
data_api_mode_enabledcan only be set whencreate_modeisDefault. Once enabled, it can only be disabled by recreating the resource.- high_
availability_ strmode - The high availability mode for the MongoDB Cluster. Possibles values are
DisabledandZoneRedundantPreferred. - identity
Mongo
Cluster Identity Args An
identityblock as detailed below.Note: When adding or removing
identity, a resource recreation will be triggered.- location str
- The supported Azure location where the MongoDB Cluster exists. Changing this forces a new resource to be created.
- name str
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- preview_
features Sequence[str] - The preview features that can be enabled on the MongoDB Cluster. Changing this forces a new resource to be created.
- public_
network_ straccess - The Public Network Access setting for the MongoDB Cluster. Possibles values are
DisabledandEnabled. Defaults toEnabled. - resource_
group_ strname - The name of the resource group in which to create the MongoDB Cluster. Changing this forces a new resource to be created.
- restore
Mongo
Cluster Restore Args - shard_
count int - The Number of shards to provision on the MongoDB Cluster. Changing this forces a new resource to be created.
- source_
location str - The location of the source MongoDB Cluster. Changing this forces a new resource to be created.
- source_
server_ strid - The ID of the replication source MongoDB Cluster. Changing this forces a new resource to be created.
- storage_
size_ intin_ gb - The size of the data disk space for the MongoDB Cluster.
- storage_
type str - The storage type for the MongoDB Cluster. Possible values are
PremiumSSDandPremiumSSDv2. Defaults toPremiumSSD. Changing this forces a new resource to be created. - Mapping[str, str]
- A mapping of tags to assign to the MongoDB Cluster.
- version str
- The version for the MongoDB Cluster. Possibles values are
5.0,6.0,7.0and8.0.
- administrator
Password String - The Password associated with the
administrator_usernamefor the MongoDB Cluster. - administrator
Username String - The administrator username of the MongoDB Cluster. Changing this forces a new resource to be created.
- authentication
Methods List<String> - A list of allowed authentication modes for the MongoDB Cluster. Possible values are
NativeAuthandMicrosoftEntraID. - compute
Tier String - The compute tier to assign to the MongoDB Cluster. Possible values are
Free,M10,M20,M25,M30,M40,M50,M60,M80, andM200. - connection
Strings List<Property Map> - One or more
connection_stringsblocks as defined below. - create
Mode String - The creation mode for the MongoDB Cluster. Possible values are
Default,GeoReplicaandPointInTimeRestore. Defaults toDefault. Changing this forces a new resource to be created. - customer
Managed Property MapKey - A
customer_managed_keyblock as defined below. Changing this forces a new resource to be created. - data
Api BooleanMode Enabled Is the Data API for the MongoDB Cluster enabled? Defaults to
false.Note:
data_api_mode_enabledcan only be set whencreate_modeisDefault. Once enabled, it can only be disabled by recreating the resource.- high
Availability StringMode - The high availability mode for the MongoDB Cluster. Possibles values are
DisabledandZoneRedundantPreferred. - identity Property Map
An
identityblock as detailed below.Note: When adding or removing
identity, a resource recreation will be triggered.- location String
- The supported Azure location where the MongoDB Cluster exists. Changing this forces a new resource to be created.
- name String
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- preview
Features List<String> - The preview features that can be enabled on the MongoDB Cluster. Changing this forces a new resource to be created.
- public
Network StringAccess - The Public Network Access setting for the MongoDB Cluster. Possibles values are
DisabledandEnabled. Defaults toEnabled. - resource
Group StringName - The name of the resource group in which to create the MongoDB Cluster. Changing this forces a new resource to be created.
- restore Property Map
- shard
Count Number - The Number of shards to provision on the MongoDB Cluster. Changing this forces a new resource to be created.
- source
Location String - The location of the source MongoDB Cluster. Changing this forces a new resource to be created.
- source
Server StringId - The ID of the replication source MongoDB Cluster. Changing this forces a new resource to be created.
- storage
Size NumberIn Gb - The size of the data disk space for the MongoDB Cluster.
- storage
Type String - The storage type for the MongoDB Cluster. Possible values are
PremiumSSDandPremiumSSDv2. Defaults toPremiumSSD. Changing this forces a new resource to be created. - Map<String>
- A mapping of tags to assign to the MongoDB Cluster.
- version String
- The version for the MongoDB Cluster. Possibles values are
5.0,6.0,7.0and8.0.
Supporting Types
MongoClusterConnectionString, MongoClusterConnectionStringArgs
- Description string
- The description of the connection string.
- Name string
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- Value string
- The value of the Mongo Cluster connection string. The
<user>:<password>placeholder returned from API will be replaced by the realadministrator_usernameandadministrator_passwordif available in the state.
- Description string
- The description of the connection string.
- Name string
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- Value string
- The value of the Mongo Cluster connection string. The
<user>:<password>placeholder returned from API will be replaced by the realadministrator_usernameandadministrator_passwordif available in the state.
- description String
- The description of the connection string.
- name String
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- value String
- The value of the Mongo Cluster connection string. The
<user>:<password>placeholder returned from API will be replaced by the realadministrator_usernameandadministrator_passwordif available in the state.
- description string
- The description of the connection string.
- name string
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- value string
- The value of the Mongo Cluster connection string. The
<user>:<password>placeholder returned from API will be replaced by the realadministrator_usernameandadministrator_passwordif available in the state.
- description str
- The description of the connection string.
- name str
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- value str
- The value of the Mongo Cluster connection string. The
<user>:<password>placeholder returned from API will be replaced by the realadministrator_usernameandadministrator_passwordif available in the state.
- description String
- The description of the connection string.
- name String
- The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created.
- value String
- The value of the Mongo Cluster connection string. The
<user>:<password>placeholder returned from API will be replaced by the realadministrator_usernameandadministrator_passwordif available in the state.
MongoClusterCustomerManagedKey, MongoClusterCustomerManagedKeyArgs
- Key
Vault stringKey Id - The ID of the key vault key used for encryption. For example:
https://example-vault-name.vault.azure.net/keys/example-key-name. - User
Assigned stringIdentity Id - The ID of the User Assigned Identity that has access to the Key Vault Key.
- Key
Vault stringKey Id - The ID of the key vault key used for encryption. For example:
https://example-vault-name.vault.azure.net/keys/example-key-name. - User
Assigned stringIdentity Id - The ID of the User Assigned Identity that has access to the Key Vault Key.
- key
Vault StringKey Id - The ID of the key vault key used for encryption. For example:
https://example-vault-name.vault.azure.net/keys/example-key-name. - user
Assigned StringIdentity Id - The ID of the User Assigned Identity that has access to the Key Vault Key.
- key
Vault stringKey Id - The ID of the key vault key used for encryption. For example:
https://example-vault-name.vault.azure.net/keys/example-key-name. - user
Assigned stringIdentity Id - The ID of the User Assigned Identity that has access to the Key Vault Key.
- key_
vault_ strkey_ id - The ID of the key vault key used for encryption. For example:
https://example-vault-name.vault.azure.net/keys/example-key-name. - user_
assigned_ stridentity_ id - The ID of the User Assigned Identity that has access to the Key Vault Key.
- key
Vault StringKey Id - The ID of the key vault key used for encryption. For example:
https://example-vault-name.vault.azure.net/keys/example-key-name. - user
Assigned StringIdentity Id - The ID of the User Assigned Identity that has access to the Key Vault Key.
MongoClusterIdentity, MongoClusterIdentityArgs
- Identity
Ids List<string> A list of one or more Resource IDs for User Assigned Managed identities to assign.
Note: Required when
typeis set toUserAssigned.- Type string
- The type of managed identity to assign. Possible value is
UserAssigned.
- Identity
Ids []string A list of one or more Resource IDs for User Assigned Managed identities to assign.
Note: Required when
typeis set toUserAssigned.- Type string
- The type of managed identity to assign. Possible value is
UserAssigned.
- identity
Ids List<String> A list of one or more Resource IDs for User Assigned Managed identities to assign.
Note: Required when
typeis set toUserAssigned.- type String
- The type of managed identity to assign. Possible value is
UserAssigned.
- identity
Ids string[] A list of one or more Resource IDs for User Assigned Managed identities to assign.
Note: Required when
typeis set toUserAssigned.- type string
- The type of managed identity to assign. Possible value is
UserAssigned.
- identity_
ids Sequence[str] A list of one or more Resource IDs for User Assigned Managed identities to assign.
Note: Required when
typeis set toUserAssigned.- type str
- The type of managed identity to assign. Possible value is
UserAssigned.
- identity
Ids List<String> A list of one or more Resource IDs for User Assigned Managed identities to assign.
Note: Required when
typeis set toUserAssigned.- type String
- The type of managed identity to assign. Possible value is
UserAssigned.
MongoClusterRestore, MongoClusterRestoreArgs
- Point
In stringTime Utc - The point in time (in UTC) to restore from, in ISO 8601 format (e.g.,
2024-01-01T00:00:00Z). Changing this forces a new resource to be created. - Source
Id string - The ID of the source MongoDB Cluster to restore from. Changing this forces a new resource to be created.
- Point
In stringTime Utc - The point in time (in UTC) to restore from, in ISO 8601 format (e.g.,
2024-01-01T00:00:00Z). Changing this forces a new resource to be created. - Source
Id string - The ID of the source MongoDB Cluster to restore from. Changing this forces a new resource to be created.
- point
In StringTime Utc - The point in time (in UTC) to restore from, in ISO 8601 format (e.g.,
2024-01-01T00:00:00Z). Changing this forces a new resource to be created. - source
Id String - The ID of the source MongoDB Cluster to restore from. Changing this forces a new resource to be created.
- point
In stringTime Utc - The point in time (in UTC) to restore from, in ISO 8601 format (e.g.,
2024-01-01T00:00:00Z). Changing this forces a new resource to be created. - source
Id string - The ID of the source MongoDB Cluster to restore from. Changing this forces a new resource to be created.
- point_
in_ strtime_ utc - The point in time (in UTC) to restore from, in ISO 8601 format (e.g.,
2024-01-01T00:00:00Z). Changing this forces a new resource to be created. - source_
id str - The ID of the source MongoDB Cluster to restore from. Changing this forces a new resource to be created.
- point
In StringTime Utc - The point in time (in UTC) to restore from, in ISO 8601 format (e.g.,
2024-01-01T00:00:00Z). Changing this forces a new resource to be created. - source
Id String - The ID of the source MongoDB Cluster to restore from. Changing this forces a new resource to be created.
Import
MongoDB Clusters can be imported using the resource id, e.g.
$ pulumi import azure:cosmosdb/mongoCluster:MongoCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DocumentDB/mongoClusters/myMongoCluster
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
