azure-native.datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo
Explore with Pulumi AI
Database Migration Resource for Mongo to CosmosDb. Azure REST API version: 2023-07-15-preview.
Example Usage
Create Mongo to CosmosDb Mongo(vCore) Database Migration resource with Maximum parameters.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var databaseMigrationsMongoToCosmosDbvCoreMongo = new AzureNative.DataMigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo("databaseMigrationsMongoToCosmosDbvCoreMongo", new()
{
CollectionList = new[]
{
new AzureNative.DataMigration.Inputs.MongoMigrationCollectionArgs
{
SourceCollection = "sourceCol1",
SourceDatabase = "sourceDb1",
TargetCollection = "targetCol1",
TargetDatabase = "targetDb1",
},
new AzureNative.DataMigration.Inputs.MongoMigrationCollectionArgs
{
SourceCollection = "sourceCol2",
SourceDatabase = "sourceDb2",
TargetCollection = "sourceCol2",
TargetDatabase = "sourceDb2",
},
},
Kind = "MongoToCosmosDbMongo",
MigrationName = "migrationRequest",
MigrationService = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService",
ResourceGroupName = "testrg",
Scope = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName",
SourceMongoConnection = new AzureNative.DataMigration.Inputs.MongoConnectionInformationArgs
{
Host = "abc.mongodb.com",
Password = "placeholder",
Port = 88,
UseSsl = true,
UserName = "abc",
},
TargetMongoConnection = new AzureNative.DataMigration.Inputs.MongoConnectionInformationArgs
{
Host = "xyz.mongocluster.cosmos.azure.com",
Password = "placeholder",
Port = 10255,
UseSsl = true,
UserName = "def",
},
TargetResourceName = "targetCosmosDbClusterName",
});
});
package main
import (
datamigration "github.com/pulumi/pulumi-azure-native-sdk/datamigration/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datamigration.NewDatabaseMigrationsMongoToCosmosDbvCoreMongo(ctx, "databaseMigrationsMongoToCosmosDbvCoreMongo", &datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs{
CollectionList: datamigration.MongoMigrationCollectionArray{
&datamigration.MongoMigrationCollectionArgs{
SourceCollection: pulumi.String("sourceCol1"),
SourceDatabase: pulumi.String("sourceDb1"),
TargetCollection: pulumi.String("targetCol1"),
TargetDatabase: pulumi.String("targetDb1"),
},
&datamigration.MongoMigrationCollectionArgs{
SourceCollection: pulumi.String("sourceCol2"),
SourceDatabase: pulumi.String("sourceDb2"),
TargetCollection: pulumi.String("sourceCol2"),
TargetDatabase: pulumi.String("sourceDb2"),
},
},
Kind: pulumi.String("MongoToCosmosDbMongo"),
MigrationName: pulumi.String("migrationRequest"),
MigrationService: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService"),
ResourceGroupName: pulumi.String("testrg"),
Scope: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
SourceMongoConnection: &datamigration.MongoConnectionInformationArgs{
Host: pulumi.String("abc.mongodb.com"),
Password: pulumi.String("placeholder"),
Port: pulumi.Int(88),
UseSsl: pulumi.Bool(true),
UserName: pulumi.String("abc"),
},
TargetMongoConnection: &datamigration.MongoConnectionInformationArgs{
Host: pulumi.String("xyz.mongocluster.cosmos.azure.com"),
Password: pulumi.String("placeholder"),
Port: pulumi.Int(10255),
UseSsl: pulumi.Bool(true),
UserName: pulumi.String("def"),
},
TargetResourceName: pulumi.String("targetCosmosDbClusterName"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo;
import com.pulumi.azurenative.datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs;
import com.pulumi.azurenative.datamigration.inputs.MongoMigrationCollectionArgs;
import com.pulumi.azurenative.datamigration.inputs.MongoConnectionInformationArgs;
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 databaseMigrationsMongoToCosmosDbvCoreMongo = new DatabaseMigrationsMongoToCosmosDbvCoreMongo("databaseMigrationsMongoToCosmosDbvCoreMongo", DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs.builder()
.collectionList(
MongoMigrationCollectionArgs.builder()
.sourceCollection("sourceCol1")
.sourceDatabase("sourceDb1")
.targetCollection("targetCol1")
.targetDatabase("targetDb1")
.build(),
MongoMigrationCollectionArgs.builder()
.sourceCollection("sourceCol2")
.sourceDatabase("sourceDb2")
.targetCollection("sourceCol2")
.targetDatabase("sourceDb2")
.build())
.kind("MongoToCosmosDbMongo")
.migrationName("migrationRequest")
.migrationService("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService")
.resourceGroupName("testrg")
.scope("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName")
.sourceMongoConnection(MongoConnectionInformationArgs.builder()
.host("abc.mongodb.com")
.password("placeholder")
.port(88)
.useSsl(true)
.userName("abc")
.build())
.targetMongoConnection(MongoConnectionInformationArgs.builder()
.host("xyz.mongocluster.cosmos.azure.com")
.password("placeholder")
.port(10255)
.useSsl(true)
.userName("def")
.build())
.targetResourceName("targetCosmosDbClusterName")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
database_migrations_mongo_to_cosmos_dbv_core_mongo = azure_native.datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo("databaseMigrationsMongoToCosmosDbvCoreMongo",
collection_list=[
{
"source_collection": "sourceCol1",
"source_database": "sourceDb1",
"target_collection": "targetCol1",
"target_database": "targetDb1",
},
{
"source_collection": "sourceCol2",
"source_database": "sourceDb2",
"target_collection": "sourceCol2",
"target_database": "sourceDb2",
},
],
kind="MongoToCosmosDbMongo",
migration_name="migrationRequest",
migration_service="/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService",
resource_group_name="testrg",
scope="/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName",
source_mongo_connection={
"host": "abc.mongodb.com",
"password": "placeholder",
"port": 88,
"use_ssl": True,
"user_name": "abc",
},
target_mongo_connection={
"host": "xyz.mongocluster.cosmos.azure.com",
"password": "placeholder",
"port": 10255,
"use_ssl": True,
"user_name": "def",
},
target_resource_name="targetCosmosDbClusterName")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const databaseMigrationsMongoToCosmosDbvCoreMongo = new azure_native.datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo("databaseMigrationsMongoToCosmosDbvCoreMongo", {
collectionList: [
{
sourceCollection: "sourceCol1",
sourceDatabase: "sourceDb1",
targetCollection: "targetCol1",
targetDatabase: "targetDb1",
},
{
sourceCollection: "sourceCol2",
sourceDatabase: "sourceDb2",
targetCollection: "sourceCol2",
targetDatabase: "sourceDb2",
},
],
kind: "MongoToCosmosDbMongo",
migrationName: "migrationRequest",
migrationService: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService",
resourceGroupName: "testrg",
scope: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName",
sourceMongoConnection: {
host: "abc.mongodb.com",
password: "placeholder",
port: 88,
useSsl: true,
userName: "abc",
},
targetMongoConnection: {
host: "xyz.mongocluster.cosmos.azure.com",
password: "placeholder",
port: 10255,
useSsl: true,
userName: "def",
},
targetResourceName: "targetCosmosDbClusterName",
});
resources:
databaseMigrationsMongoToCosmosDbvCoreMongo:
type: azure-native:datamigration:DatabaseMigrationsMongoToCosmosDbvCoreMongo
properties:
collectionList:
- sourceCollection: sourceCol1
sourceDatabase: sourceDb1
targetCollection: targetCol1
targetDatabase: targetDb1
- sourceCollection: sourceCol2
sourceDatabase: sourceDb2
targetCollection: sourceCol2
targetDatabase: sourceDb2
kind: MongoToCosmosDbMongo
migrationName: migrationRequest
migrationService: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService
resourceGroupName: testrg
scope: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName
sourceMongoConnection:
host: abc.mongodb.com
password: placeholder
port: 88
useSsl: true
userName: abc
targetMongoConnection:
host: xyz.mongocluster.cosmos.azure.com
password: placeholder
port: 10255
useSsl: true
userName: def
targetResourceName: targetCosmosDbClusterName
Create Mongo to CosmosDb Mongo(vCore) Database Migration resource with Minimum parameters.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var databaseMigrationsMongoToCosmosDbvCoreMongo = new AzureNative.DataMigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo("databaseMigrationsMongoToCosmosDbvCoreMongo", new()
{
CollectionList = new[]
{
new AzureNative.DataMigration.Inputs.MongoMigrationCollectionArgs
{
SourceCollection = "sourceCol1",
SourceDatabase = "sourceDb1",
TargetCollection = "targetCol1",
TargetDatabase = "targetDb1",
},
new AzureNative.DataMigration.Inputs.MongoMigrationCollectionArgs
{
SourceCollection = "sourceCol2",
SourceDatabase = "sourceDb2",
},
},
Kind = "MongoToCosmosDbMongo",
MigrationName = "migrationRequest",
MigrationService = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService",
ResourceGroupName = "testrg",
Scope = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName",
SourceMongoConnection = new AzureNative.DataMigration.Inputs.MongoConnectionInformationArgs
{
Host = "abc.mongodb.com",
Password = "placeholder",
Port = 88,
UseSsl = true,
UserName = "abc",
},
TargetMongoConnection = new AzureNative.DataMigration.Inputs.MongoConnectionInformationArgs
{
ConnectionString = "placeholder",
},
TargetResourceName = "targetCosmosDbClusterName",
});
});
package main
import (
datamigration "github.com/pulumi/pulumi-azure-native-sdk/datamigration/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datamigration.NewDatabaseMigrationsMongoToCosmosDbvCoreMongo(ctx, "databaseMigrationsMongoToCosmosDbvCoreMongo", &datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs{
CollectionList: datamigration.MongoMigrationCollectionArray{
&datamigration.MongoMigrationCollectionArgs{
SourceCollection: pulumi.String("sourceCol1"),
SourceDatabase: pulumi.String("sourceDb1"),
TargetCollection: pulumi.String("targetCol1"),
TargetDatabase: pulumi.String("targetDb1"),
},
&datamigration.MongoMigrationCollectionArgs{
SourceCollection: pulumi.String("sourceCol2"),
SourceDatabase: pulumi.String("sourceDb2"),
},
},
Kind: pulumi.String("MongoToCosmosDbMongo"),
MigrationName: pulumi.String("migrationRequest"),
MigrationService: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService"),
ResourceGroupName: pulumi.String("testrg"),
Scope: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
SourceMongoConnection: &datamigration.MongoConnectionInformationArgs{
Host: pulumi.String("abc.mongodb.com"),
Password: pulumi.String("placeholder"),
Port: pulumi.Int(88),
UseSsl: pulumi.Bool(true),
UserName: pulumi.String("abc"),
},
TargetMongoConnection: &datamigration.MongoConnectionInformationArgs{
ConnectionString: pulumi.String("placeholder"),
},
TargetResourceName: pulumi.String("targetCosmosDbClusterName"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo;
import com.pulumi.azurenative.datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs;
import com.pulumi.azurenative.datamigration.inputs.MongoMigrationCollectionArgs;
import com.pulumi.azurenative.datamigration.inputs.MongoConnectionInformationArgs;
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 databaseMigrationsMongoToCosmosDbvCoreMongo = new DatabaseMigrationsMongoToCosmosDbvCoreMongo("databaseMigrationsMongoToCosmosDbvCoreMongo", DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs.builder()
.collectionList(
MongoMigrationCollectionArgs.builder()
.sourceCollection("sourceCol1")
.sourceDatabase("sourceDb1")
.targetCollection("targetCol1")
.targetDatabase("targetDb1")
.build(),
MongoMigrationCollectionArgs.builder()
.sourceCollection("sourceCol2")
.sourceDatabase("sourceDb2")
.build())
.kind("MongoToCosmosDbMongo")
.migrationName("migrationRequest")
.migrationService("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService")
.resourceGroupName("testrg")
.scope("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName")
.sourceMongoConnection(MongoConnectionInformationArgs.builder()
.host("abc.mongodb.com")
.password("placeholder")
.port(88)
.useSsl(true)
.userName("abc")
.build())
.targetMongoConnection(MongoConnectionInformationArgs.builder()
.connectionString("placeholder")
.build())
.targetResourceName("targetCosmosDbClusterName")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
database_migrations_mongo_to_cosmos_dbv_core_mongo = azure_native.datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo("databaseMigrationsMongoToCosmosDbvCoreMongo",
collection_list=[
{
"source_collection": "sourceCol1",
"source_database": "sourceDb1",
"target_collection": "targetCol1",
"target_database": "targetDb1",
},
{
"source_collection": "sourceCol2",
"source_database": "sourceDb2",
},
],
kind="MongoToCosmosDbMongo",
migration_name="migrationRequest",
migration_service="/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService",
resource_group_name="testrg",
scope="/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName",
source_mongo_connection={
"host": "abc.mongodb.com",
"password": "placeholder",
"port": 88,
"use_ssl": True,
"user_name": "abc",
},
target_mongo_connection={
"connection_string": "placeholder",
},
target_resource_name="targetCosmosDbClusterName")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const databaseMigrationsMongoToCosmosDbvCoreMongo = new azure_native.datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo("databaseMigrationsMongoToCosmosDbvCoreMongo", {
collectionList: [
{
sourceCollection: "sourceCol1",
sourceDatabase: "sourceDb1",
targetCollection: "targetCol1",
targetDatabase: "targetDb1",
},
{
sourceCollection: "sourceCol2",
sourceDatabase: "sourceDb2",
},
],
kind: "MongoToCosmosDbMongo",
migrationName: "migrationRequest",
migrationService: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService",
resourceGroupName: "testrg",
scope: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName",
sourceMongoConnection: {
host: "abc.mongodb.com",
password: "placeholder",
port: 88,
useSsl: true,
userName: "abc",
},
targetMongoConnection: {
connectionString: "placeholder",
},
targetResourceName: "targetCosmosDbClusterName",
});
resources:
databaseMigrationsMongoToCosmosDbvCoreMongo:
type: azure-native:datamigration:DatabaseMigrationsMongoToCosmosDbvCoreMongo
properties:
collectionList:
- sourceCollection: sourceCol1
sourceDatabase: sourceDb1
targetCollection: targetCol1
targetDatabase: targetDb1
- sourceCollection: sourceCol2
sourceDatabase: sourceDb2
kind: MongoToCosmosDbMongo
migrationName: migrationRequest
migrationService: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService
resourceGroupName: testrg
scope: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName
sourceMongoConnection:
host: abc.mongodb.com
password: placeholder
port: 88
useSsl: true
userName: abc
targetMongoConnection:
connectionString: placeholder
targetResourceName: targetCosmosDbClusterName
Create DatabaseMigrationsMongoToCosmosDbvCoreMongo Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DatabaseMigrationsMongoToCosmosDbvCoreMongo(name: string, args: DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs, opts?: CustomResourceOptions);
@overload
def DatabaseMigrationsMongoToCosmosDbvCoreMongo(resource_name: str,
args: DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DatabaseMigrationsMongoToCosmosDbvCoreMongo(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
target_resource_name: Optional[str] = None,
collection_list: Optional[Sequence[MongoMigrationCollectionArgs]] = None,
migration_name: Optional[str] = None,
migration_operation_id: Optional[str] = None,
migration_service: Optional[str] = None,
provisioning_error: Optional[str] = None,
scope: Optional[str] = None,
source_mongo_connection: Optional[MongoConnectionInformationArgs] = None,
target_mongo_connection: Optional[MongoConnectionInformationArgs] = None)
func NewDatabaseMigrationsMongoToCosmosDbvCoreMongo(ctx *Context, name string, args DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs, opts ...ResourceOption) (*DatabaseMigrationsMongoToCosmosDbvCoreMongo, error)
public DatabaseMigrationsMongoToCosmosDbvCoreMongo(string name, DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs args, CustomResourceOptions? opts = null)
public DatabaseMigrationsMongoToCosmosDbvCoreMongo(String name, DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs args)
public DatabaseMigrationsMongoToCosmosDbvCoreMongo(String name, DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs args, CustomResourceOptions options)
type: azure-native:datamigration:DatabaseMigrationsMongoToCosmosDbvCoreMongo
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 DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs
- 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 DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs
- 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 DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs
- 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 databaseMigrationsMongoToCosmosDbvCoreMongoResource = new AzureNative.DataMigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo("databaseMigrationsMongoToCosmosDbvCoreMongoResource", new()
{
Kind = "string",
ResourceGroupName = "string",
TargetResourceName = "string",
CollectionList = new[]
{
new AzureNative.DataMigration.Inputs.MongoMigrationCollectionArgs
{
SourceCollection = "string",
SourceDatabase = "string",
TargetCollection = "string",
TargetDatabase = "string",
},
},
MigrationName = "string",
MigrationOperationId = "string",
MigrationService = "string",
ProvisioningError = "string",
Scope = "string",
SourceMongoConnection = new AzureNative.DataMigration.Inputs.MongoConnectionInformationArgs
{
ConnectionString = "string",
Host = "string",
Password = "string",
Port = 0,
UseSsl = false,
UserName = "string",
},
TargetMongoConnection = new AzureNative.DataMigration.Inputs.MongoConnectionInformationArgs
{
ConnectionString = "string",
Host = "string",
Password = "string",
Port = 0,
UseSsl = false,
UserName = "string",
},
});
example, err := datamigration.NewDatabaseMigrationsMongoToCosmosDbvCoreMongo(ctx, "databaseMigrationsMongoToCosmosDbvCoreMongoResource", &datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs{
Kind: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
TargetResourceName: pulumi.String("string"),
CollectionList: datamigration.MongoMigrationCollectionArray{
&datamigration.MongoMigrationCollectionArgs{
SourceCollection: pulumi.String("string"),
SourceDatabase: pulumi.String("string"),
TargetCollection: pulumi.String("string"),
TargetDatabase: pulumi.String("string"),
},
},
MigrationName: pulumi.String("string"),
MigrationOperationId: pulumi.String("string"),
MigrationService: pulumi.String("string"),
ProvisioningError: pulumi.String("string"),
Scope: pulumi.String("string"),
SourceMongoConnection: &datamigration.MongoConnectionInformationArgs{
ConnectionString: pulumi.String("string"),
Host: pulumi.String("string"),
Password: pulumi.String("string"),
Port: pulumi.Int(0),
UseSsl: pulumi.Bool(false),
UserName: pulumi.String("string"),
},
TargetMongoConnection: &datamigration.MongoConnectionInformationArgs{
ConnectionString: pulumi.String("string"),
Host: pulumi.String("string"),
Password: pulumi.String("string"),
Port: pulumi.Int(0),
UseSsl: pulumi.Bool(false),
UserName: pulumi.String("string"),
},
})
var databaseMigrationsMongoToCosmosDbvCoreMongoResource = new DatabaseMigrationsMongoToCosmosDbvCoreMongo("databaseMigrationsMongoToCosmosDbvCoreMongoResource", DatabaseMigrationsMongoToCosmosDbvCoreMongoArgs.builder()
.kind("string")
.resourceGroupName("string")
.targetResourceName("string")
.collectionList(MongoMigrationCollectionArgs.builder()
.sourceCollection("string")
.sourceDatabase("string")
.targetCollection("string")
.targetDatabase("string")
.build())
.migrationName("string")
.migrationOperationId("string")
.migrationService("string")
.provisioningError("string")
.scope("string")
.sourceMongoConnection(MongoConnectionInformationArgs.builder()
.connectionString("string")
.host("string")
.password("string")
.port(0)
.useSsl(false)
.userName("string")
.build())
.targetMongoConnection(MongoConnectionInformationArgs.builder()
.connectionString("string")
.host("string")
.password("string")
.port(0)
.useSsl(false)
.userName("string")
.build())
.build());
database_migrations_mongo_to_cosmos_dbv_core_mongo_resource = azure_native.datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo("databaseMigrationsMongoToCosmosDbvCoreMongoResource",
kind="string",
resource_group_name="string",
target_resource_name="string",
collection_list=[{
"sourceCollection": "string",
"sourceDatabase": "string",
"targetCollection": "string",
"targetDatabase": "string",
}],
migration_name="string",
migration_operation_id="string",
migration_service="string",
provisioning_error="string",
scope="string",
source_mongo_connection={
"connectionString": "string",
"host": "string",
"password": "string",
"port": 0,
"useSsl": False,
"userName": "string",
},
target_mongo_connection={
"connectionString": "string",
"host": "string",
"password": "string",
"port": 0,
"useSsl": False,
"userName": "string",
})
const databaseMigrationsMongoToCosmosDbvCoreMongoResource = new azure_native.datamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo("databaseMigrationsMongoToCosmosDbvCoreMongoResource", {
kind: "string",
resourceGroupName: "string",
targetResourceName: "string",
collectionList: [{
sourceCollection: "string",
sourceDatabase: "string",
targetCollection: "string",
targetDatabase: "string",
}],
migrationName: "string",
migrationOperationId: "string",
migrationService: "string",
provisioningError: "string",
scope: "string",
sourceMongoConnection: {
connectionString: "string",
host: "string",
password: "string",
port: 0,
useSsl: false,
userName: "string",
},
targetMongoConnection: {
connectionString: "string",
host: "string",
password: "string",
port: 0,
useSsl: false,
userName: "string",
},
});
type: azure-native:datamigration:DatabaseMigrationsMongoToCosmosDbvCoreMongo
properties:
collectionList:
- sourceCollection: string
sourceDatabase: string
targetCollection: string
targetDatabase: string
kind: string
migrationName: string
migrationOperationId: string
migrationService: string
provisioningError: string
resourceGroupName: string
scope: string
sourceMongoConnection:
connectionString: string
host: string
password: string
port: 0
useSsl: false
userName: string
targetMongoConnection:
connectionString: string
host: string
password: string
port: 0
useSsl: false
userName: string
targetResourceName: string
DatabaseMigrationsMongoToCosmosDbvCoreMongo Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DatabaseMigrationsMongoToCosmosDbvCoreMongo resource accepts the following input properties:
- Resource
Group stringName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Target
Resource stringName - The name of the target resource/account.
- Collection
List List<Pulumi.Azure Native. Data Migration. Inputs. Mongo Migration Collection> - List of Mongo Collections to be migrated.
- Migration
Name string - Name of the migration.
- Migration
Operation stringId - ID for current migration operation.
- Migration
Service string - Resource Id of the Migration Service.
- Provisioning
Error string - Error message for migration provisioning failure, if any.
- Scope string
- Resource Id of the target resource.
- Source
Mongo Pulumi.Connection Azure Native. Data Migration. Inputs. Mongo Connection Information - Source Mongo connection details.
- Target
Mongo Pulumi.Connection Azure Native. Data Migration. Inputs. Mongo Connection Information - Target Cosmos DB Mongo connection details.
- Resource
Group stringName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Target
Resource stringName - The name of the target resource/account.
- Collection
List []MongoMigration Collection Args - List of Mongo Collections to be migrated.
- Migration
Name string - Name of the migration.
- Migration
Operation stringId - ID for current migration operation.
- Migration
Service string - Resource Id of the Migration Service.
- Provisioning
Error string - Error message for migration provisioning failure, if any.
- Scope string
- Resource Id of the target resource.
- Source
Mongo MongoConnection Connection Information Args - Source Mongo connection details.
- Target
Mongo MongoConnection Connection Information Args - Target Cosmos DB Mongo connection details.
- resource
Group StringName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- target
Resource StringName - The name of the target resource/account.
- collection
List List<MongoMigration Collection> - List of Mongo Collections to be migrated.
- migration
Name String - Name of the migration.
- migration
Operation StringId - ID for current migration operation.
- migration
Service String - Resource Id of the Migration Service.
- provisioning
Error String - Error message for migration provisioning failure, if any.
- scope String
- Resource Id of the target resource.
- source
Mongo MongoConnection Connection Information - Source Mongo connection details.
- target
Mongo MongoConnection Connection Information - Target Cosmos DB Mongo connection details.
- resource
Group stringName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- target
Resource stringName - The name of the target resource/account.
- collection
List MongoMigration Collection[] - List of Mongo Collections to be migrated.
- migration
Name string - Name of the migration.
- migration
Operation stringId - ID for current migration operation.
- migration
Service string - Resource Id of the Migration Service.
- provisioning
Error string - Error message for migration provisioning failure, if any.
- scope string
- Resource Id of the target resource.
- source
Mongo MongoConnection Connection Information - Source Mongo connection details.
- target
Mongo MongoConnection Connection Information - Target Cosmos DB Mongo connection details.
- resource_
group_ strname - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- target_
resource_ strname - The name of the target resource/account.
- collection_
list Sequence[MongoMigration Collection Args] - List of Mongo Collections to be migrated.
- migration_
name str - Name of the migration.
- migration_
operation_ strid - ID for current migration operation.
- migration_
service str - Resource Id of the Migration Service.
- provisioning_
error str - Error message for migration provisioning failure, if any.
- scope str
- Resource Id of the target resource.
- source_
mongo_ Mongoconnection Connection Information Args - Source Mongo connection details.
- target_
mongo_ Mongoconnection Connection Information Args - Target Cosmos DB Mongo connection details.
- resource
Group StringName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- target
Resource StringName - The name of the target resource/account.
- collection
List List<Property Map> - List of Mongo Collections to be migrated.
- migration
Name String - Name of the migration.
- migration
Operation StringId - ID for current migration operation.
- migration
Service String - Resource Id of the Migration Service.
- provisioning
Error String - Error message for migration provisioning failure, if any.
- scope String
- Resource Id of the target resource.
- source
Mongo Property MapConnection - Source Mongo connection details.
- target
Mongo Property MapConnection - Target Cosmos DB Mongo connection details.
Outputs
All input properties are implicitly available as output properties. Additionally, the DatabaseMigrationsMongoToCosmosDbvCoreMongo resource produces the following output properties:
- Ended
On string - Database migration end time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Migration
Failure Pulumi.Error Azure Native. Data Migration. Outputs. Error Info Response - Error details in case of migration failure.
- Migration
Status string - Migration status.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.
- Started
On string - Database migration start time.
- System
Data Pulumi.Azure Native. Data Migration. Outputs. System Data Response - 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"
- Ended
On string - Database migration end time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Migration
Failure ErrorError Info Response - Error details in case of migration failure.
- Migration
Status string - Migration status.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.
- Started
On string - Database migration start time.
- System
Data SystemData Response - 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"
- ended
On String - Database migration end time.
- id String
- The provider-assigned unique ID for this managed resource.
- migration
Failure ErrorError Info Response - Error details in case of migration failure.
- migration
Status String - Migration status.
- name String
- The name of the resource
- provisioning
State String - Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.
- started
On String - Database migration start time.
- system
Data SystemData Response - 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"
- ended
On string - Database migration end time.
- id string
- The provider-assigned unique ID for this managed resource.
- migration
Failure ErrorError Info Response - Error details in case of migration failure.
- migration
Status string - Migration status.
- name string
- The name of the resource
- provisioning
State string - Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.
- started
On string - Database migration start time.
- system
Data SystemData Response - 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"
- ended_
on str - Database migration end time.
- id str
- The provider-assigned unique ID for this managed resource.
- migration_
failure_ Errorerror Info Response - Error details in case of migration failure.
- migration_
status str - Migration status.
- name str
- The name of the resource
- provisioning_
state str - Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.
- started_
on str - Database migration start time.
- system_
data SystemData Response - 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"
- ended
On String - Database migration end time.
- id String
- The provider-assigned unique ID for this managed resource.
- migration
Failure Property MapError - Error details in case of migration failure.
- migration
Status String - Migration status.
- name String
- The name of the resource
- provisioning
State String - Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.
- started
On String - Database migration start time.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ErrorInfoResponse, ErrorInfoResponseArgs
MongoConnectionInformation, MongoConnectionInformationArgs
- connection
String String - ConnectionString to connect to Mongo.
- host String
- Host of mongo connection.
- password String
- Password to connect to Mongo.
- port Integer
- Port of mongo connection.
- use
Ssl Boolean - Whether to UseSsl or UseTls to connect to Mongo. Default is true.
- user
Name String - User name to connect to Mongo.
- connection
String string - ConnectionString to connect to Mongo.
- host string
- Host of mongo connection.
- password string
- Password to connect to Mongo.
- port number
- Port of mongo connection.
- use
Ssl boolean - Whether to UseSsl or UseTls to connect to Mongo. Default is true.
- user
Name string - User name to connect to Mongo.
- connection
String String - ConnectionString to connect to Mongo.
- host String
- Host of mongo connection.
- password String
- Password to connect to Mongo.
- port Number
- Port of mongo connection.
- use
Ssl Boolean - Whether to UseSsl or UseTls to connect to Mongo. Default is true.
- user
Name String - User name to connect to Mongo.
MongoConnectionInformationResponse, MongoConnectionInformationResponseArgs
MongoMigrationCollection, MongoMigrationCollectionArgs
- Source
Collection string - Source collection name.
- Source
Database string - Source database name.
- Target
Collection string - Target collection name.
- Target
Database string - Target database name.
- Source
Collection string - Source collection name.
- Source
Database string - Source database name.
- Target
Collection string - Target collection name.
- Target
Database string - Target database name.
- source
Collection String - Source collection name.
- source
Database String - Source database name.
- target
Collection String - Target collection name.
- target
Database String - Target database name.
- source
Collection string - Source collection name.
- source
Database string - Source database name.
- target
Collection string - Target collection name.
- target
Database string - Target database name.
- source_
collection str - Source collection name.
- source_
database str - Source database name.
- target_
collection str - Target collection name.
- target_
database str - Target database name.
- source
Collection String - Source collection name.
- source
Database String - Source database name.
- target
Collection String - Target collection name.
- target
Database String - Target database name.
MongoMigrationCollectionResponse, MongoMigrationCollectionResponseArgs
- Migration
Progress Pulumi.Details Azure Native. Data Migration. Inputs. Mongo Migration Progress Details Response - Detailed migration status. Not included by default.
- Source
Collection string - Source collection name.
- Source
Database string - Source database name.
- Target
Collection string - Target collection name.
- Target
Database string - Target database name.
- Migration
Progress MongoDetails Migration Progress Details Response - Detailed migration status. Not included by default.
- Source
Collection string - Source collection name.
- Source
Database string - Source database name.
- Target
Collection string - Target collection name.
- Target
Database string - Target database name.
- migration
Progress MongoDetails Migration Progress Details Response - Detailed migration status. Not included by default.
- source
Collection String - Source collection name.
- source
Database String - Source database name.
- target
Collection String - Target collection name.
- target
Database String - Target database name.
- migration
Progress MongoDetails Migration Progress Details Response - Detailed migration status. Not included by default.
- source
Collection string - Source collection name.
- source
Database string - Source database name.
- target
Collection string - Target collection name.
- target
Database string - Target database name.
- migration_
progress_ Mongodetails Migration Progress Details Response - Detailed migration status. Not included by default.
- source_
collection str - Source collection name.
- source_
database str - Source database name.
- target_
collection str - Target collection name.
- target_
database str - Target database name.
- migration
Progress Property MapDetails - Detailed migration status. Not included by default.
- source
Collection String - Source collection name.
- source
Database String - Source database name.
- target
Collection String - Target collection name.
- target
Database String - Target database name.
MongoMigrationProgressDetailsResponse, MongoMigrationProgressDetailsResponseArgs
- Duration
In intSeconds - Migration duration
- Migration
Error string - Migration Error
- Migration
Status string - Migration Status
- Processed
Document doubleCount - Processed Document Count
- Source
Document doubleCount - Source Document Count
- Duration
In intSeconds - Migration duration
- Migration
Error string - Migration Error
- Migration
Status string - Migration Status
- Processed
Document float64Count - Processed Document Count
- Source
Document float64Count - Source Document Count
- duration
In IntegerSeconds - Migration duration
- migration
Error String - Migration Error
- migration
Status String - Migration Status
- processed
Document DoubleCount - Processed Document Count
- source
Document DoubleCount - Source Document Count
- duration
In numberSeconds - Migration duration
- migration
Error string - Migration Error
- migration
Status string - Migration Status
- processed
Document numberCount - Processed Document Count
- source
Document numberCount - Source Document Count
- duration_
in_ intseconds - Migration duration
- migration_
error str - Migration Error
- migration_
status str - Migration Status
- processed_
document_ floatcount - Processed Document Count
- source_
document_ floatcount - Source Document Count
- duration
In NumberSeconds - Migration duration
- migration
Error String - Migration Error
- migration
Status String - Migration Status
- processed
Document NumberCount - Processed Document Count
- source
Document NumberCount - Source Document Count
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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:datamigration:DatabaseMigrationsMongoToCosmosDbvCoreMongo migrationRequest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0