This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.dbforpostgresql.getMigration
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets details of a migration. Azure REST API version: 2023-03-01-preview.
Other available API versions: 2021-06-15-privatepreview, 2022-05-01-preview, 2023-06-01-preview, 2023-12-01-preview, 2024-03-01-preview, 2024-08-01, 2024-11-01-preview.
Using getMigration
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 getMigration(args: GetMigrationArgs, opts?: InvokeOptions): Promise<GetMigrationResult>
function getMigrationOutput(args: GetMigrationOutputArgs, opts?: InvokeOptions): Output<GetMigrationResult>def get_migration(migration_name: Optional[str] = None,
                  resource_group_name: Optional[str] = None,
                  subscription_id: Optional[str] = None,
                  target_db_server_name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetMigrationResult
def get_migration_output(migration_name: Optional[pulumi.Input[str]] = None,
                  resource_group_name: Optional[pulumi.Input[str]] = None,
                  subscription_id: Optional[pulumi.Input[str]] = None,
                  target_db_server_name: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetMigrationResult]func LookupMigration(ctx *Context, args *LookupMigrationArgs, opts ...InvokeOption) (*LookupMigrationResult, error)
func LookupMigrationOutput(ctx *Context, args *LookupMigrationOutputArgs, opts ...InvokeOption) LookupMigrationResultOutput> Note: This function is named LookupMigration in the Go SDK.
public static class GetMigration 
{
    public static Task<GetMigrationResult> InvokeAsync(GetMigrationArgs args, InvokeOptions? opts = null)
    public static Output<GetMigrationResult> Invoke(GetMigrationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMigrationResult> getMigration(GetMigrationArgs args, InvokeOptions options)
public static Output<GetMigrationResult> getMigration(GetMigrationArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:dbforpostgresql:getMigration
  arguments:
    # arguments dictionaryThe following arguments are supported:
- MigrationName string
- The name of the migration.
- ResourceGroup stringName 
- The resource group name of the target database server.
- TargetDb stringServer Name 
- The name of the target database server.
- SubscriptionId string
- The subscription ID of the target database server.
- MigrationName string
- The name of the migration.
- ResourceGroup stringName 
- The resource group name of the target database server.
- TargetDb stringServer Name 
- The name of the target database server.
- SubscriptionId string
- The subscription ID of the target database server.
- migrationName String
- The name of the migration.
- resourceGroup StringName 
- The resource group name of the target database server.
- targetDb StringServer Name 
- The name of the target database server.
- subscriptionId String
- The subscription ID of the target database server.
- migrationName string
- The name of the migration.
- resourceGroup stringName 
- The resource group name of the target database server.
- targetDb stringServer Name 
- The name of the target database server.
- subscriptionId string
- The subscription ID of the target database server.
- migration_name str
- The name of the migration.
- resource_group_ strname 
- The resource group name of the target database server.
- target_db_ strserver_ name 
- The name of the target database server.
- subscription_id str
- The subscription ID of the target database server.
- migrationName String
- The name of the migration.
- resourceGroup StringName 
- The resource group name of the target database server.
- targetDb StringServer Name 
- The name of the target database server.
- subscriptionId String
- The subscription ID of the target database server.
getMigration Result
The following output properties are available:
- CurrentStatus Pulumi.Azure Native. DBfor Postgre SQL. Outputs. Migration Status Response 
- Current status of migration
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Location string
- The geo-location where the resource lives
- MigrationId string
- ID for migration, a GUID.
- Name string
- The name of the resource
- SourceDb Pulumi.Server Metadata Azure Native. DBfor Postgre SQL. Outputs. Db Server Metadata Response 
- Metadata of the source database server
- SystemData Pulumi.Azure Native. DBfor Postgre SQL. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- TargetDb Pulumi.Server Metadata Azure Native. DBfor Postgre SQL. Outputs. Db Server Metadata Response 
- Metadata of the target database server
- TargetDb stringServer Resource Id 
- ResourceId of the source database server
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Cancel string
- To trigger cancel for entire migration we need to send this flag as True
- DbsTo List<string>Cancel Migration On 
- When you want to trigger cancel for specific databases send cancel flag as True and database names in this array
- DbsTo List<string>Migrate 
- Number of databases to migrate
- DbsTo List<string>Trigger Cutover On 
- When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array
- MigrationMode string
- There are two types of migration modes Online and Offline
- MigrationWindow stringEnd Time In Utc 
- End time in UTC for migration window
- MigrationWindow stringStart Time In Utc 
- Start time in UTC for migration window
- OverwriteDbs stringIn Target 
- Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists.
- SetupLogical stringReplication On Source Db If Needed 
- Indicates whether to setup LogicalReplicationOnSourceDb, if needed
- SourceDb stringServer Fully Qualified Domain Name 
- Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection
- SourceDb stringServer Resource Id 
- ResourceId of the source database server
- StartData stringMigration 
- Indicates whether the data migration should start right away
- Dictionary<string, string>
- Resource tags.
- TargetDb stringServer Fully Qualified Domain Name 
- Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection
- TriggerCutover string
- To trigger cutover for entire migration we need to send this flag as True
- CurrentStatus MigrationStatus Response 
- Current status of migration
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Location string
- The geo-location where the resource lives
- MigrationId string
- ID for migration, a GUID.
- Name string
- The name of the resource
- SourceDb DbServer Metadata Server Metadata Response 
- Metadata of the source database server
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- TargetDb DbServer Metadata Server Metadata Response 
- Metadata of the target database server
- TargetDb stringServer Resource Id 
- ResourceId of the source database server
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Cancel string
- To trigger cancel for entire migration we need to send this flag as True
- DbsTo []stringCancel Migration On 
- When you want to trigger cancel for specific databases send cancel flag as True and database names in this array
- DbsTo []stringMigrate 
- Number of databases to migrate
- DbsTo []stringTrigger Cutover On 
- When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array
- MigrationMode string
- There are two types of migration modes Online and Offline
- MigrationWindow stringEnd Time In Utc 
- End time in UTC for migration window
- MigrationWindow stringStart Time In Utc 
- Start time in UTC for migration window
- OverwriteDbs stringIn Target 
- Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists.
- SetupLogical stringReplication On Source Db If Needed 
- Indicates whether to setup LogicalReplicationOnSourceDb, if needed
- SourceDb stringServer Fully Qualified Domain Name 
- Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection
- SourceDb stringServer Resource Id 
- ResourceId of the source database server
- StartData stringMigration 
- Indicates whether the data migration should start right away
- map[string]string
- Resource tags.
- TargetDb stringServer Fully Qualified Domain Name 
- Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection
- TriggerCutover string
- To trigger cutover for entire migration we need to send this flag as True
- currentStatus MigrationStatus Response 
- Current status of migration
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location String
- The geo-location where the resource lives
- migrationId String
- ID for migration, a GUID.
- name String
- The name of the resource
- sourceDb DbServer Metadata Server Metadata Response 
- Metadata of the source database server
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- targetDb DbServer Metadata Server Metadata Response 
- Metadata of the target database server
- targetDb StringServer Resource Id 
- ResourceId of the source database server
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- cancel String
- To trigger cancel for entire migration we need to send this flag as True
- dbsTo List<String>Cancel Migration On 
- When you want to trigger cancel for specific databases send cancel flag as True and database names in this array
- dbsTo List<String>Migrate 
- Number of databases to migrate
- dbsTo List<String>Trigger Cutover On 
- When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array
- migrationMode String
- There are two types of migration modes Online and Offline
- migrationWindow StringEnd Time In Utc 
- End time in UTC for migration window
- migrationWindow StringStart Time In Utc 
- Start time in UTC for migration window
- overwriteDbs StringIn Target 
- Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists.
- setupLogical StringReplication On Source Db If Needed 
- Indicates whether to setup LogicalReplicationOnSourceDb, if needed
- sourceDb StringServer Fully Qualified Domain Name 
- Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection
- sourceDb StringServer Resource Id 
- ResourceId of the source database server
- startData StringMigration 
- Indicates whether the data migration should start right away
- Map<String,String>
- Resource tags.
- targetDb StringServer Fully Qualified Domain Name 
- Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection
- triggerCutover String
- To trigger cutover for entire migration we need to send this flag as True
- currentStatus MigrationStatus Response 
- Current status of migration
- id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location string
- The geo-location where the resource lives
- migrationId string
- ID for migration, a GUID.
- name string
- The name of the resource
- sourceDb DbServer Metadata Server Metadata Response 
- Metadata of the source database server
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- targetDb DbServer Metadata Server Metadata Response 
- Metadata of the target database server
- targetDb stringServer Resource Id 
- ResourceId of the source database server
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- cancel string
- To trigger cancel for entire migration we need to send this flag as True
- dbsTo string[]Cancel Migration On 
- When you want to trigger cancel for specific databases send cancel flag as True and database names in this array
- dbsTo string[]Migrate 
- Number of databases to migrate
- dbsTo string[]Trigger Cutover On 
- When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array
- migrationMode string
- There are two types of migration modes Online and Offline
- migrationWindow stringEnd Time In Utc 
- End time in UTC for migration window
- migrationWindow stringStart Time In Utc 
- Start time in UTC for migration window
- overwriteDbs stringIn Target 
- Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists.
- setupLogical stringReplication On Source Db If Needed 
- Indicates whether to setup LogicalReplicationOnSourceDb, if needed
- sourceDb stringServer Fully Qualified Domain Name 
- Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection
- sourceDb stringServer Resource Id 
- ResourceId of the source database server
- startData stringMigration 
- Indicates whether the data migration should start right away
- {[key: string]: string}
- Resource tags.
- targetDb stringServer Fully Qualified Domain Name 
- Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection
- triggerCutover string
- To trigger cutover for entire migration we need to send this flag as True
- current_status MigrationStatus Response 
- Current status of migration
- id str
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location str
- The geo-location where the resource lives
- migration_id str
- ID for migration, a GUID.
- name str
- The name of the resource
- source_db_ Dbserver_ metadata Server Metadata Response 
- Metadata of the source database server
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- target_db_ Dbserver_ metadata Server Metadata Response 
- Metadata of the target database server
- target_db_ strserver_ resource_ id 
- ResourceId of the source database server
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- cancel str
- To trigger cancel for entire migration we need to send this flag as True
- dbs_to_ Sequence[str]cancel_ migration_ on 
- When you want to trigger cancel for specific databases send cancel flag as True and database names in this array
- dbs_to_ Sequence[str]migrate 
- Number of databases to migrate
- dbs_to_ Sequence[str]trigger_ cutover_ on 
- When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array
- migration_mode str
- There are two types of migration modes Online and Offline
- migration_window_ strend_ time_ in_ utc 
- End time in UTC for migration window
- migration_window_ strstart_ time_ in_ utc 
- Start time in UTC for migration window
- overwrite_dbs_ strin_ target 
- Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists.
- setup_logical_ strreplication_ on_ source_ db_ if_ needed 
- Indicates whether to setup LogicalReplicationOnSourceDb, if needed
- source_db_ strserver_ fully_ qualified_ domain_ name 
- Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection
- source_db_ strserver_ resource_ id 
- ResourceId of the source database server
- start_data_ strmigration 
- Indicates whether the data migration should start right away
- Mapping[str, str]
- Resource tags.
- target_db_ strserver_ fully_ qualified_ domain_ name 
- Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection
- trigger_cutover str
- To trigger cutover for entire migration we need to send this flag as True
- currentStatus Property Map
- Current status of migration
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location String
- The geo-location where the resource lives
- migrationId String
- ID for migration, a GUID.
- name String
- The name of the resource
- sourceDb Property MapServer Metadata 
- Metadata of the source database server
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- targetDb Property MapServer Metadata 
- Metadata of the target database server
- targetDb StringServer Resource Id 
- ResourceId of the source database server
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- cancel String
- To trigger cancel for entire migration we need to send this flag as True
- dbsTo List<String>Cancel Migration On 
- When you want to trigger cancel for specific databases send cancel flag as True and database names in this array
- dbsTo List<String>Migrate 
- Number of databases to migrate
- dbsTo List<String>Trigger Cutover On 
- When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array
- migrationMode String
- There are two types of migration modes Online and Offline
- migrationWindow StringEnd Time In Utc 
- End time in UTC for migration window
- migrationWindow StringStart Time In Utc 
- Start time in UTC for migration window
- overwriteDbs StringIn Target 
- Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists.
- setupLogical StringReplication On Source Db If Needed 
- Indicates whether to setup LogicalReplicationOnSourceDb, if needed
- sourceDb StringServer Fully Qualified Domain Name 
- Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection
- sourceDb StringServer Resource Id 
- ResourceId of the source database server
- startData StringMigration 
- Indicates whether the data migration should start right away
- Map<String>
- Resource tags.
- targetDb StringServer Fully Qualified Domain Name 
- Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection
- triggerCutover String
- To trigger cutover for entire migration we need to send this flag as True
Supporting Types
DbServerMetadataResponse   
- Location string
- Location of database server
- Sku
Pulumi.Azure Native. DBfor Postgre SQL. Inputs. Server Sku Response 
- SKU for the database server
- StorageMb int
- Storage size in MB for database server
- Version string
- Version for database engine
- Location string
- Location of database server
- Sku
ServerSku Response 
- SKU for the database server
- StorageMb int
- Storage size in MB for database server
- Version string
- Version for database engine
- location String
- Location of database server
- sku
ServerSku Response 
- SKU for the database server
- storageMb Integer
- Storage size in MB for database server
- version String
- Version for database engine
- location string
- Location of database server
- sku
ServerSku Response 
- SKU for the database server
- storageMb number
- Storage size in MB for database server
- version string
- Version for database engine
- location str
- Location of database server
- sku
ServerSku Response 
- SKU for the database server
- storage_mb int
- Storage size in MB for database server
- version str
- Version for database engine
- location String
- Location of database server
- sku Property Map
- SKU for the database server
- storageMb Number
- Storage size in MB for database server
- version String
- Version for database engine
MigrationStatusResponse  
- CurrentSub Pulumi.State Details Azure Native. DBfor Postgre SQL. Inputs. Migration Sub State Details Response 
- Current Migration sub state details.
- Error string
- Error message, if any, for the migration state
- State string
- State of migration
- CurrentSub MigrationState Details Sub State Details Response 
- Current Migration sub state details.
- Error string
- Error message, if any, for the migration state
- State string
- State of migration
- currentSub MigrationState Details Sub State Details Response 
- Current Migration sub state details.
- error String
- Error message, if any, for the migration state
- state String
- State of migration
- currentSub MigrationState Details Sub State Details Response 
- Current Migration sub state details.
- error string
- Error message, if any, for the migration state
- state string
- State of migration
- current_sub_ Migrationstate_ details Sub State Details Response 
- Current Migration sub state details.
- error str
- Error message, if any, for the migration state
- state str
- State of migration
- currentSub Property MapState Details 
- Current Migration sub state details.
- error String
- Error message, if any, for the migration state
- state String
- State of migration
MigrationSubStateDetailsResponse    
- CurrentSub stringState 
- Migration sub state.
- CurrentSub stringState 
- Migration sub state.
- currentSub StringState 
- Migration sub state.
- currentSub stringState 
- Migration sub state.
- current_sub_ strstate 
- Migration sub state.
- currentSub StringState 
- Migration sub state.
ServerSkuResponse  
SystemDataResponse  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi