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

86 lines (85 loc) 3.84 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Retrieve the specified database migration for a given SQL VM. * * Uses Azure REST API version 2025-06-30. * * Other available API versions: 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 getDatabaseMigrationsSqlVm(args: GetDatabaseMigrationsSqlVmArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseMigrationsSqlVmResult>; export interface GetDatabaseMigrationsSqlVmArgs { /** * 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; sqlVirtualMachineName: string; /** * The name of the target database. */ targetDbName: string; } /** * Database Migration Resource for SQL Virtual Machine. */ export interface GetDatabaseMigrationsSqlVmResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ readonly id: string; /** * The name of the resource */ readonly name: string; /** * Database Migration Resource properties for SQL Virtual Machine. */ readonly properties: outputs.datamigration.DatabaseMigrationPropertiesSqlVmResponse; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ readonly systemData: outputs.datamigration.SystemDataResponse; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; } /** * Retrieve the specified database migration for a given SQL VM. * * Uses Azure REST API version 2025-06-30. * * Other available API versions: 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 getDatabaseMigrationsSqlVmOutput(args: GetDatabaseMigrationsSqlVmOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabaseMigrationsSqlVmResult>; export interface GetDatabaseMigrationsSqlVmOutputArgs { /** * 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>; sqlVirtualMachineName: pulumi.Input<string>; /** * The name of the target database. */ targetDbName: pulumi.Input<string>; }