1. Packages
  2. Azure Native v2
  3. API Docs
  4. datamigration
  5. getDatabaseMigrationsMongoToCosmosDbvCoreMongo
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.datamigration.getDatabaseMigrationsMongoToCosmosDbvCoreMongo

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Get Database Migration resource. Azure REST API version: 2023-07-15-preview.

Using getDatabaseMigrationsMongoToCosmosDbvCoreMongo

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getDatabaseMigrationsMongoToCosmosDbvCoreMongo(args: GetDatabaseMigrationsMongoToCosmosDbvCoreMongoArgs, opts?: InvokeOptions): Promise<GetDatabaseMigrationsMongoToCosmosDbvCoreMongoResult>
function getDatabaseMigrationsMongoToCosmosDbvCoreMongoOutput(args: GetDatabaseMigrationsMongoToCosmosDbvCoreMongoOutputArgs, opts?: InvokeOptions): Output<GetDatabaseMigrationsMongoToCosmosDbvCoreMongoResult>
Copy
def get_database_migrations_mongo_to_cosmos_dbv_core_mongo(migration_name: Optional[str] = None,
                                                           resource_group_name: Optional[str] = None,
                                                           target_resource_name: Optional[str] = None,
                                                           opts: Optional[InvokeOptions] = None) -> GetDatabaseMigrationsMongoToCosmosDbvCoreMongoResult
def get_database_migrations_mongo_to_cosmos_dbv_core_mongo_output(migration_name: Optional[pulumi.Input[str]] = None,
                                                           resource_group_name: Optional[pulumi.Input[str]] = None,
                                                           target_resource_name: Optional[pulumi.Input[str]] = None,
                                                           opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseMigrationsMongoToCosmosDbvCoreMongoResult]
Copy
func LookupDatabaseMigrationsMongoToCosmosDbvCoreMongo(ctx *Context, args *LookupDatabaseMigrationsMongoToCosmosDbvCoreMongoArgs, opts ...InvokeOption) (*LookupDatabaseMigrationsMongoToCosmosDbvCoreMongoResult, error)
func LookupDatabaseMigrationsMongoToCosmosDbvCoreMongoOutput(ctx *Context, args *LookupDatabaseMigrationsMongoToCosmosDbvCoreMongoOutputArgs, opts ...InvokeOption) LookupDatabaseMigrationsMongoToCosmosDbvCoreMongoResultOutput
Copy

> Note: This function is named LookupDatabaseMigrationsMongoToCosmosDbvCoreMongo in the Go SDK.

public static class GetDatabaseMigrationsMongoToCosmosDbvCoreMongo 
{
    public static Task<GetDatabaseMigrationsMongoToCosmosDbvCoreMongoResult> InvokeAsync(GetDatabaseMigrationsMongoToCosmosDbvCoreMongoArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseMigrationsMongoToCosmosDbvCoreMongoResult> Invoke(GetDatabaseMigrationsMongoToCosmosDbvCoreMongoInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDatabaseMigrationsMongoToCosmosDbvCoreMongoResult> getDatabaseMigrationsMongoToCosmosDbvCoreMongo(GetDatabaseMigrationsMongoToCosmosDbvCoreMongoArgs args, InvokeOptions options)
public static Output<GetDatabaseMigrationsMongoToCosmosDbvCoreMongoResult> getDatabaseMigrationsMongoToCosmosDbvCoreMongo(GetDatabaseMigrationsMongoToCosmosDbvCoreMongoArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:datamigration:getDatabaseMigrationsMongoToCosmosDbvCoreMongo
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

MigrationName
This property is required.
Changes to this property will trigger replacement.
string
Name of the migration.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
TargetResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the target resource/account.
MigrationName
This property is required.
Changes to this property will trigger replacement.
string
Name of the migration.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
TargetResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the target resource/account.
migrationName
This property is required.
Changes to this property will trigger replacement.
String
Name of the migration.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
targetResourceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the target resource/account.
migrationName
This property is required.
Changes to this property will trigger replacement.
string
Name of the migration.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
targetResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the target resource/account.
migration_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the migration.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
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_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the target resource/account.
migrationName
This property is required.
Changes to this property will trigger replacement.
String
Name of the migration.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
targetResourceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the target resource/account.

getDatabaseMigrationsMongoToCosmosDbvCoreMongo Result

The following output properties are available:

EndedOn string
Database migration end time.
Id string
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
MigrationFailureError Pulumi.AzureNative.DataMigration.Outputs.ErrorInfoResponse
Error details in case of migration failure.
MigrationStatus string
Migration status.
Name string
The name of the resource
ProvisioningState string
Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.
StartedOn string
Database migration start time.
SystemData Pulumi.AzureNative.DataMigration.Outputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
CollectionList List<Pulumi.AzureNative.DataMigration.Outputs.MongoMigrationCollectionResponse>
List of Mongo Collections to be migrated.
MigrationOperationId string
ID for current migration operation.
MigrationService string
Resource Id of the Migration Service.
ProvisioningError string
Error message for migration provisioning failure, if any.
Scope string
Resource Id of the target resource.
SourceMongoConnection Pulumi.AzureNative.DataMigration.Outputs.MongoConnectionInformationResponse
Source Mongo connection details.
TargetMongoConnection Pulumi.AzureNative.DataMigration.Outputs.MongoConnectionInformationResponse
Target Cosmos DB Mongo connection details.
EndedOn string
Database migration end time.
Id string
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
MigrationFailureError ErrorInfoResponse
Error details in case of migration failure.
MigrationStatus string
Migration status.
Name string
The name of the resource
ProvisioningState string
Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.
StartedOn string
Database migration start time.
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"
CollectionList []MongoMigrationCollectionResponse
List of Mongo Collections to be migrated.
MigrationOperationId string
ID for current migration operation.
MigrationService string
Resource Id of the Migration Service.
ProvisioningError string
Error message for migration provisioning failure, if any.
Scope string
Resource Id of the target resource.
SourceMongoConnection MongoConnectionInformationResponse
Source Mongo connection details.
TargetMongoConnection MongoConnectionInformationResponse
Target Cosmos DB Mongo connection details.
endedOn String
Database migration end time.
id String
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
migrationFailureError ErrorInfoResponse
Error details in case of migration failure.
migrationStatus String
Migration status.
name String
The name of the resource
provisioningState String
Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.
startedOn String
Database migration start time.
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"
collectionList List<MongoMigrationCollectionResponse>
List of Mongo Collections to be migrated.
migrationOperationId String
ID for current migration operation.
migrationService String
Resource Id of the Migration Service.
provisioningError String
Error message for migration provisioning failure, if any.
scope String
Resource Id of the target resource.
sourceMongoConnection MongoConnectionInformationResponse
Source Mongo connection details.
targetMongoConnection MongoConnectionInformationResponse
Target Cosmos DB Mongo connection details.
endedOn string
Database migration end time.
id string
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
migrationFailureError ErrorInfoResponse
Error details in case of migration failure.
migrationStatus string
Migration status.
name string
The name of the resource
provisioningState string
Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.
startedOn string
Database migration start time.
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"
collectionList MongoMigrationCollectionResponse[]
List of Mongo Collections to be migrated.
migrationOperationId string
ID for current migration operation.
migrationService string
Resource Id of the Migration Service.
provisioningError string
Error message for migration provisioning failure, if any.
scope string
Resource Id of the target resource.
sourceMongoConnection MongoConnectionInformationResponse
Source Mongo connection details.
targetMongoConnection MongoConnectionInformationResponse
Target Cosmos DB Mongo connection details.
ended_on str
Database migration end time.
id str
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
migration_failure_error ErrorInfoResponse
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 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"
collection_list Sequence[MongoMigrationCollectionResponse]
List of Mongo Collections to be migrated.
migration_operation_id str
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_connection MongoConnectionInformationResponse
Source Mongo connection details.
target_mongo_connection MongoConnectionInformationResponse
Target Cosmos DB Mongo connection details.
endedOn String
Database migration end time.
id String
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
migrationFailureError Property Map
Error details in case of migration failure.
migrationStatus String
Migration status.
name String
The name of the resource
provisioningState String
Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.
startedOn String
Database migration start time.
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"
collectionList List<Property Map>
List of Mongo Collections to be migrated.
migrationOperationId String
ID for current migration operation.
migrationService String
Resource Id of the Migration Service.
provisioningError String
Error message for migration provisioning failure, if any.
scope String
Resource Id of the target resource.
sourceMongoConnection Property Map
Source Mongo connection details.
targetMongoConnection Property Map
Target Cosmos DB Mongo connection details.

Supporting Types

ErrorInfoResponse

Code This property is required. string
Error code.
Message This property is required. string
Error message.
Code This property is required. string
Error code.
Message This property is required. string
Error message.
code This property is required. String
Error code.
message This property is required. String
Error message.
code This property is required. string
Error code.
message This property is required. string
Error message.
code This property is required. str
Error code.
message This property is required. str
Error message.
code This property is required. String
Error code.
message This property is required. String
Error message.

MongoConnectionInformationResponse

Host string
Host of mongo connection.
Port int
Port of mongo connection.
Host string
Host of mongo connection.
Port int
Port of mongo connection.
host String
Host of mongo connection.
port Integer
Port of mongo connection.
host string
Host of mongo connection.
port number
Port of mongo connection.
host str
Host of mongo connection.
port int
Port of mongo connection.
host String
Host of mongo connection.
port Number
Port of mongo connection.

MongoMigrationCollectionResponse

MigrationProgressDetails This property is required. Pulumi.AzureNative.DataMigration.Inputs.MongoMigrationProgressDetailsResponse
Detailed migration status. Not included by default.
SourceCollection string
Source collection name.
SourceDatabase string
Source database name.
TargetCollection string
Target collection name.
TargetDatabase string
Target database name.
MigrationProgressDetails This property is required. MongoMigrationProgressDetailsResponse
Detailed migration status. Not included by default.
SourceCollection string
Source collection name.
SourceDatabase string
Source database name.
TargetCollection string
Target collection name.
TargetDatabase string
Target database name.
migrationProgressDetails This property is required. MongoMigrationProgressDetailsResponse
Detailed migration status. Not included by default.
sourceCollection String
Source collection name.
sourceDatabase String
Source database name.
targetCollection String
Target collection name.
targetDatabase String
Target database name.
migrationProgressDetails This property is required. MongoMigrationProgressDetailsResponse
Detailed migration status. Not included by default.
sourceCollection string
Source collection name.
sourceDatabase string
Source database name.
targetCollection string
Target collection name.
targetDatabase string
Target database name.
migration_progress_details This property is required. MongoMigrationProgressDetailsResponse
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.
migrationProgressDetails This property is required. Property Map
Detailed migration status. Not included by default.
sourceCollection String
Source collection name.
sourceDatabase String
Source database name.
targetCollection String
Target collection name.
targetDatabase String
Target database name.

MongoMigrationProgressDetailsResponse

DurationInSeconds This property is required. int
Migration duration
MigrationError This property is required. string
Migration Error
MigrationStatus This property is required. string
Migration Status
ProcessedDocumentCount This property is required. double
Processed Document Count
SourceDocumentCount This property is required. double
Source Document Count
DurationInSeconds This property is required. int
Migration duration
MigrationError This property is required. string
Migration Error
MigrationStatus This property is required. string
Migration Status
ProcessedDocumentCount This property is required. float64
Processed Document Count
SourceDocumentCount This property is required. float64
Source Document Count
durationInSeconds This property is required. Integer
Migration duration
migrationError This property is required. String
Migration Error
migrationStatus This property is required. String
Migration Status
processedDocumentCount This property is required. Double
Processed Document Count
sourceDocumentCount This property is required. Double
Source Document Count
durationInSeconds This property is required. number
Migration duration
migrationError This property is required. string
Migration Error
migrationStatus This property is required. string
Migration Status
processedDocumentCount This property is required. number
Processed Document Count
sourceDocumentCount This property is required. number
Source Document Count
duration_in_seconds This property is required. int
Migration duration
migration_error This property is required. str
Migration Error
migration_status This property is required. str
Migration Status
processed_document_count This property is required. float
Processed Document Count
source_document_count This property is required. float
Source Document Count
durationInSeconds This property is required. Number
Migration duration
migrationError This property is required. String
Migration Error
migrationStatus This property is required. String
Migration Status
processedDocumentCount This property is required. Number
Processed Document Count
sourceDocumentCount This property is required. Number
Source Document Count

SystemDataResponse

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

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi