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, 2025-04-01-preview, 2025-07-01-preview, 2025-08-01-preview, 2025-09-01, 2026-02-01-preview, 2026-06-01, 2026-06-15-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
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_mongocluster_mongo_cluster" "mongoCluster" {
lifecycle {
create_before_destroy = true
}
location = "westus2"
mongo_cluster_name = "myMongoCluster"
properties = {
create_mode = "PointInTimeRestore"
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"
}
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.ArrayList;
import java.util.Arrays;
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.0,
},
},
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
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_mongocluster_mongo_cluster" "mongoCluster" {
lifecycle {
create_before_destroy = true
}
location = "westus2"
mongo_cluster_name = "myMongoCluster"
properties = {
administrator = {
password = "password"
user_name = "mongoAdmin"
}
compute = {
tier = "M30"
}
high_availability = {
target_mode = "SameZone"
}
server_version = "5.0"
sharding = {
shard_count = 1
}
storage = {
size_gb = 128
}
}
resource_group_name = "TestResourceGroup"
}
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.ArrayList;
import java.util.Arrays;
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": float(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
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_mongocluster_mongo_cluster" "mongoCluster" {
lifecycle {
create_before_destroy = true
}
location = "centralus"
mongo_cluster_name = "myReplicaMongoCluster"
properties = {
create_mode = "GeoReplica"
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"
}
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.ArrayList;
import java.util.Arrays;
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
@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)
type: azure-native:mongocluster:MongoCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_mongocluster_mongo_cluster" "name" {
# resource properties
}
Parameters
- 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.
- 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 =
{
"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.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"),
},
})
resource "azure-native_mongocluster_mongo_cluster" "azure-nativeMongoClusterResource" {
lifecycle {
create_before_destroy = true
}
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"
}
}
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(com.pulumi.azurenative.mongocluster.inputs.MongoClusterRestoreParametersArgs.builder()
.pointInTimeUTC("string")
.sourceResourceId("string")
.build())
.serverVersion("string")
.sharding(ShardingPropertiesArgs.builder()
.shardCount(0)
.build())
.storage(com.pulumi.azurenative.mongocluster.inputs.StoragePropertiesArgs.builder()
.sizeGb(0.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": float(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.
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:
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
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
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
- system_data
object
- 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"
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 MongoCluster get(String name, Output<String> id, CustomResourceOptions options)
resources: existingMongoCluster: type: azure-native:mongocluster:MongoCluster get: id: ${id}
import {
to = azure-native_mongocluster_mongo_cluster.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
MongoClusterState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
AdministratorProperties, AdministratorPropertiesArgs
The local administrator login properties.- 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.
- user_name
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.
AdministratorPropertiesResponse, AdministratorPropertiesResponseArgs
The local administrator login properties.- UserName
string
- The administrator user name.
- UserName
string
- The administrator user name.
- userName
String
- The administrator user name.
- userName
string
- The administrator user name.
- userName
String
- The administrator user name.
BackupPropertiesResponse, BackupPropertiesResponseArgs
The backup properties of the cluster. This includes the earliest restore time and retention settings.ComputeProperties, ComputePropertiesArgs
The compute properties of the cluster. This includes the virtual-cores/memory and scaling options applied to servers in the cluster.- 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
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
The compute properties of the cluster. This includes the virtual-cores/memory and scaling options applied to servers in the cluster.- 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
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
The mode to create a mongo cluster.| Name | Value | Description |
|---|
| Default | Default | Create a new mongo cluster. |
| PointInTimeRestore | PointInTimeRestore | Create a mongo cluster from a restore point-in-time. |
| GeoReplica | GeoReplica | Create a replica cluster in distinct geographic region from the source cluster. |
| Replica | Replica | Create a replica cluster in the same geographic region as the source cluster. |
| Name | Value | Description |
|---|
| CreateModeDefault | Default | Create a new mongo cluster. |
| CreateModePointInTimeRestore | PointInTimeRestore | Create a mongo cluster from a restore point-in-time. |
| CreateModeGeoReplica | GeoReplica | Create a replica cluster in distinct geographic region from the source cluster. |
| CreateModeReplica | Replica | Create a replica cluster in the same geographic region as the source cluster. |
| Value | Description |
|---|
Default | Create a new mongo cluster. |
PointInTimeRestore | Create a mongo cluster from a restore point-in-time. |
GeoReplica | Create a replica cluster in distinct geographic region from the source cluster. |
Replica | Create a replica cluster in the same geographic region as the source cluster. |
| Name | Value | Description |
|---|
| Default | Default | Create a new mongo cluster. |
| PointInTimeRestore | PointInTimeRestore | Create a mongo cluster from a restore point-in-time. |
| GeoReplica | GeoReplica | Create a replica cluster in distinct geographic region from the source cluster. |
| Replica | Replica | Create a replica cluster in the same geographic region as the source cluster. |
| Name | Value | Description |
|---|
| Default | Default | Create a new mongo cluster. |
| PointInTimeRestore | PointInTimeRestore | Create a mongo cluster from a restore point-in-time. |
| GeoReplica | GeoReplica | Create a replica cluster in distinct geographic region from the source cluster. |
| Replica | Replica | Create a replica cluster in the same geographic region as the source cluster. |
| Name | Value | Description |
|---|
| DEFAULT | Default | Create a new mongo cluster. |
| POINT_IN_TIME_RESTORE | PointInTimeRestore | Create a mongo cluster from a restore point-in-time. |
| GEO_REPLICA | GeoReplica | Create a replica cluster in distinct geographic region from the source cluster. |
| REPLICA | Replica | Create a replica cluster in the same geographic region as the source cluster. |
| Value | Description |
|---|
Default | Create a new mongo cluster. |
PointInTimeRestore | Create a mongo cluster from a restore point-in-time. |
GeoReplica | Create a replica cluster in distinct geographic region from the source cluster. |
Replica | Create a replica cluster in the same geographic region as the source cluster. |
HighAvailabilityMode, HighAvailabilityModeArgs
The target high availability mode requested for the cluster.| Name | Value | Description |
|---|
| Disabled | Disabled | High availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production. |
| SameZone | SameZone | High availability mode is enabled, where each server in a shard is placed in the same availability zone. |
| ZoneRedundantPreferred | ZoneRedundantPreferred | High availability mode is enabled and preferences ZoneRedundant if availability zones capacity is available in the region, otherwise falls-back to provisioning with SameZone. |
| Name | Value | Description |
|---|
| HighAvailabilityModeDisabled | Disabled | High availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production. |
| HighAvailabilityModeSameZone | SameZone | High availability mode is enabled, where each server in a shard is placed in the same availability zone. |
| HighAvailabilityModeZoneRedundantPreferred | ZoneRedundantPreferred | High availability mode is enabled and preferences ZoneRedundant if availability zones capacity is available in the region, otherwise falls-back to provisioning with SameZone. |
| Value | Description |
|---|
Disabled | High availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production. |
SameZone | High availability mode is enabled, where each server in a shard is placed in the same availability zone. |
ZoneRedundantPreferred | High availability mode is enabled and preferences ZoneRedundant if availability zones capacity is available in the region, otherwise falls-back to provisioning with SameZone. |
| Name | Value | Description |
|---|
| Disabled | Disabled | High availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production. |
| SameZone | SameZone | High availability mode is enabled, where each server in a shard is placed in the same availability zone. |
| ZoneRedundantPreferred | ZoneRedundantPreferred | High availability mode is enabled and preferences ZoneRedundant if availability zones capacity is available in the region, otherwise falls-back to provisioning with SameZone. |
| Name | Value | Description |
|---|
| Disabled | Disabled | High availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production. |
| SameZone | SameZone | High availability mode is enabled, where each server in a shard is placed in the same availability zone. |
| ZoneRedundantPreferred | ZoneRedundantPreferred | High availability mode is enabled and preferences ZoneRedundant if availability zones capacity is available in the region, otherwise falls-back to provisioning with SameZone. |
| Name | Value | Description |
|---|
| DISABLED | Disabled | High availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production. |
| SAME_ZONE | SameZone | High availability mode is enabled, where each server in a shard is placed in the same availability zone. |
| ZONE_REDUNDANT_PREFERRED | ZoneRedundantPreferred | High availability mode is enabled and preferences ZoneRedundant if availability zones capacity is available in the region, otherwise falls-back to provisioning with SameZone. |
| Value | Description |
|---|
Disabled | High availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production. |
SameZone | High availability mode is enabled, where each server in a shard is placed in the same availability zone. |
ZoneRedundantPreferred | High 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
The high availability properties of the cluster.HighAvailabilityPropertiesResponse, HighAvailabilityPropertiesResponseArgs
The high availability properties of 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
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
The properties of a mongo cluster.MongoClusterPropertiesResponse, MongoClusterPropertiesResponseArgs
The properties of a mongo cluster.MongoClusterReplicaParameters, MongoClusterReplicaParametersArgs
Parameters used for replica operations.MongoClusterRestoreParameters, MongoClusterRestoreParametersArgs
Parameters used for restore operationsPreviewFeature, PreviewFeatureArgs
Preview features that can be enabled on a mongo cluster.| Name | Value | Description |
|---|
| GeoReplicas | GeoReplicas | Enables geo replicas preview feature. The feature must be set at create-time on new cluster to enable linking a geo-replica cluster to it. |
| Name | Value | Description |
|---|
| PreviewFeatureGeoReplicas | GeoReplicas | Enables geo replicas preview feature. The feature must be set at create-time on new cluster to enable linking a geo-replica cluster to it. |
| Value | Description |
|---|
GeoReplicas | Enables geo replicas preview feature. The feature must be set at create-time on new cluster to enable linking a geo-replica cluster to it. |
| Name | Value | Description |
|---|
| GeoReplicas | GeoReplicas | Enables geo replicas preview feature. The feature must be set at create-time on new cluster to enable linking a geo-replica cluster to it. |
| Name | Value | Description |
|---|
| GeoReplicas | GeoReplicas | Enables geo replicas preview feature. The feature must be set at create-time on new cluster to enable linking a geo-replica cluster to it. |
| Name | Value | Description |
|---|
| GEO_REPLICAS | GeoReplicas | Enables geo replicas preview feature. The feature must be set at create-time on new cluster to enable linking a geo-replica cluster to it. |
| Value | Description |
|---|
GeoReplicas | Enables 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
The private endpoint connection resource.- group_ids
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
- private_link_service_connection_state
object
- A collection of information about the state of the connection between service consumer and provider.
- provisioning_state
string
- The provisioning state of the private endpoint connection resource.
- system_data
object
- 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"
- private_endpoint
object
- 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
The private endpoint resource.- 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
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
A collection of information about the state of the connection between service consumer and provider.- 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
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
Whether or not public endpoint access is allowed for this mongo cluster.| Name | Value | Description |
|---|
| Enabled | Enabled | If set, mongo cluster can be accessed through private and public methods. |
| Disabled | Disabled | If set, the private endpoints are the exclusive access method. |
| Name | Value | Description |
|---|
| PublicNetworkAccessEnabled | Enabled | If set, mongo cluster can be accessed through private and public methods. |
| PublicNetworkAccessDisabled | Disabled | If set, the private endpoints are the exclusive access method. |
| Value | Description |
|---|
Enabled | If set, mongo cluster can be accessed through private and public methods. |
Disabled | If set, the private endpoints are the exclusive access method. |
| Name | Value | Description |
|---|
| Enabled | Enabled | If set, mongo cluster can be accessed through private and public methods. |
| Disabled | Disabled | If set, the private endpoints are the exclusive access method. |
| Name | Value | Description |
|---|
| Enabled | Enabled | If set, mongo cluster can be accessed through private and public methods. |
| Disabled | Disabled | If set, the private endpoints are the exclusive access method. |
| Name | Value | Description |
|---|
| ENABLED | Enabled | If set, mongo cluster can be accessed through private and public methods. |
| DISABLED | Disabled | If set, the private endpoints are the exclusive access method. |
| Value | Description |
|---|
Enabled | If set, mongo cluster can be accessed through private and public methods. |
Disabled | If set, the private endpoints are the exclusive access method. |
ReplicationPropertiesResponse, ReplicationPropertiesResponseArgs
Replica properties of the mongo 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
string
- The replication link state of the replica cluster.
- role
string
- The replication role of the cluster
- source_resource_id
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
The sharding properties of the cluster. This includes the shard count and scaling options for the cluster.- ShardCount
int
- Number of shards to provision on the cluster.
- ShardCount
int
- Number of shards to provision on the cluster.
- shard_count
number
- 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
The sharding properties of the cluster. This includes the shard count and scaling options for the cluster.- ShardCount
int
- Number of shards to provision on the cluster.
- ShardCount
int
- Number of shards to provision on the cluster.
- shard_count
number
- 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
The storage properties of the cluster. This includes the data storage size and scaling applied to servers in the cluster.- SizeGb
double
- The size of the data disk assigned to each server.
- SizeGb
float64
- The size of the data disk assigned to each server.
- size_gb
number
- 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
The storage properties of the cluster. This includes the data storage size and scaling applied to servers in the cluster.- SizeGb
double
- The size of the data disk assigned to each server.
- SizeGb
float64
- The size of the data disk assigned to each server.
- size_gb
number
- 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
Metadata pertaining to creation and last modification of 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.
- 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.
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