@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.5 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Retrieve the Database Migration resource.
*
* Uses Azure REST API version 2023-07-15-preview.
*
* Other available API versions: 2022-03-30-preview, 2025-03-15-preview, 2025-06-30, 2025-09-01-preview. 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 getDatabaseMigrationsSqlDb(args: GetDatabaseMigrationsSqlDbArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseMigrationsSqlDbResult>;
export interface GetDatabaseMigrationsSqlDbArgs {
/**
* Complete migration details be included in the response.
*/
expand?: string;
/**
* Optional migration operation ID. If this is provided, then details of migration operation for that ID are retrieved. If not provided (default), then details related to most recent or current operation are retrieved.
*/
migrationOperationId?: 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;
sqlDbInstanceName: string;
/**
* The name of the target database.
*/
targetDbName: string;
}
/**
* Database Migration Resource for SQL Database.
*/
export interface GetDatabaseMigrationsSqlDbResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
readonly id: string;
readonly name: string;
/**
* Database Migration Resource properties for SQL database.
*/
readonly properties: outputs.datamigration.DatabaseMigrationPropertiesSqlDbResponse;
/**
* Metadata pertaining to creation and last modification of the resource.
*/
readonly systemData: outputs.datamigration.SystemDataResponse;
readonly type: string;
}
/**
* Retrieve the Database Migration resource.
*
* Uses Azure REST API version 2023-07-15-preview.
*
* Other available API versions: 2022-03-30-preview, 2025-03-15-preview, 2025-06-30, 2025-09-01-preview. 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 getDatabaseMigrationsSqlDbOutput(args: GetDatabaseMigrationsSqlDbOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabaseMigrationsSqlDbResult>;
export interface GetDatabaseMigrationsSqlDbOutputArgs {
/**
* Complete migration details be included in the response.
*/
expand?: pulumi.Input<string>;
/**
* Optional migration operation ID. If this is provided, then details of migration operation for that ID are retrieved. If not provided (default), then details related to most recent or current operation are retrieved.
*/
migrationOperationId?: 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>;
sqlDbInstanceName: pulumi.Input<string>;
/**
* The name of the target database.
*/
targetDbName: pulumi.Input<string>;
}