Skip to main content

database_migrations_mongo_to_cosmos_db_ru_mongo

Creates, updates, deletes, gets or lists a database_migrations_mongo_to_cosmos_db_ru_mongo resource.

Overview

Namedatabase_migrations_mongo_to_cosmos_db_ru_mongo
TypeResource
Idazure.data_migration.database_migrations_mongo_to_cosmos_db_ru_mongo

Fields

NameDatatypeDescription
idtextfield from the properties object
nametextfield from the properties object
collection_listtextfield from the properties object
ended_ontextfield from the properties object
kindtextfield from the properties object
migrationNametextfield from the properties object
migration_failure_errortextfield from the properties object
migration_operation_idtextfield from the properties object
migration_servicetextfield from the properties object
migration_statustextfield from the properties object
provisioning_errortextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
scopetextfield from the properties object
source_mongo_connectiontextfield from the properties object
started_ontextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
targetResourceNametextfield from the properties object
target_mongo_connectiontextfield from the properties object
typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmigrationName, resourceGroupName, subscriptionId, targetResourceNameGet Database Migration resource.
createINSERTmigrationName, resourceGroupName, subscriptionId, targetResourceNameCreate or Update Database Migration resource.
deleteDELETEmigrationName, resourceGroupName, subscriptionId, targetResourceNameDelete Database Migration resource.

SELECT examples

Get Database Migration resource.

SELECT
id,
name,
collection_list,
ended_on,
kind,
migrationName,
migration_failure_error,
migration_operation_id,
migration_service,
migration_status,
provisioning_error,
provisioning_state,
resourceGroupName,
scope,
source_mongo_connection,
started_on,
subscriptionId,
system_data,
targetResourceName,
target_mongo_connection,
type
FROM azure.data_migration.vw_database_migrations_mongo_to_cosmos_db_ru_mongo
WHERE migrationName = '{{ migrationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND targetResourceName = '{{ targetResourceName }}';

INSERT example

Use the following StackQL query and manifest file to create a new database_migrations_mongo_to_cosmos_db_ru_mongo resource.

/*+ create */
INSERT INTO azure.data_migration.database_migrations_mongo_to_cosmos_db_ru_mongo (
migrationName,
resourceGroupName,
subscriptionId,
targetResourceName,
properties
)
SELECT
'{{ migrationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ targetResourceName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified database_migrations_mongo_to_cosmos_db_ru_mongo resource.

/*+ delete */
DELETE FROM azure.data_migration.database_migrations_mongo_to_cosmos_db_ru_mongo
WHERE migrationName = '{{ migrationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND targetResourceName = '{{ targetResourceName }}';