UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

125 lines (124 loc) 4.71 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get Database Migration resource. * * Uses Azure REST API version 2023-07-15-preview. * * Other available API versions: 2025-03-15-preview, 2025-06-30. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native datamigration [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getDatabaseMigrationsMongoToCosmosDbRUMongo(args: GetDatabaseMigrationsMongoToCosmosDbRUMongoArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseMigrationsMongoToCosmosDbRUMongoResult>; export interface GetDatabaseMigrationsMongoToCosmosDbRUMongoArgs { /** * Name of the migration. */ migrationName: string; /** * Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. */ resourceGroupName: string; /** * The name of the target resource/account. */ targetResourceName: string; } /** * Database Migration Resource for Mongo to CosmosDb. */ export interface GetDatabaseMigrationsMongoToCosmosDbRUMongoResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * List of Mongo Collections to be migrated. */ readonly collectionList?: outputs.datamigration.MongoMigrationCollectionResponse[]; /** * Database migration end time. */ readonly endedOn: string; /** * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ readonly id: string; /** * * Expected value is 'MongoToCosmosDbMongo'. */ readonly kind: "MongoToCosmosDbMongo"; /** * Error details in case of migration failure. */ readonly migrationFailureError: outputs.datamigration.ErrorInfoResponse; /** * ID for current migration operation. */ readonly migrationOperationId?: string; /** * Resource Id of the Migration Service. */ readonly migrationService?: string; /** * Migration status. */ readonly migrationStatus: string; /** * The name of the resource */ readonly name: string; /** * Error message for migration provisioning failure, if any. */ readonly provisioningError?: string; /** * Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started. */ readonly provisioningState: string; /** * Resource Id of the target resource. */ readonly scope?: string; /** * Source Mongo connection details. */ readonly sourceMongoConnection?: outputs.datamigration.MongoConnectionInformationResponse; /** * Database migration start time. */ readonly startedOn: string; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ readonly systemData: outputs.datamigration.SystemDataResponse; /** * Target Cosmos DB Mongo connection details. */ readonly targetMongoConnection?: outputs.datamigration.MongoConnectionInformationResponse; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; } /** * Get Database Migration resource. * * Uses Azure REST API version 2023-07-15-preview. * * Other available API versions: 2025-03-15-preview, 2025-06-30. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native datamigration [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getDatabaseMigrationsMongoToCosmosDbRUMongoOutput(args: GetDatabaseMigrationsMongoToCosmosDbRUMongoOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabaseMigrationsMongoToCosmosDbRUMongoResult>; export interface GetDatabaseMigrationsMongoToCosmosDbRUMongoOutputArgs { /** * Name of the migration. */ migrationName: pulumi.Input<string>; /** * Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. */ resourceGroupName: pulumi.Input<string>; /** * The name of the target resource/account. */ targetResourceName: pulumi.Input<string>; }