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.66.0 published on Wednesday, Oct 9, 2024 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.66.0 published on Wednesday, Oct 9, 2024 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.
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:dbforpostgresql:getMigration
arguments:
# arguments dictionary
The following arguments are supported:
- Migration
Name string - The name of the migration.
- Resource
Group stringName - The resource group name of the target database server.
- Target
Db stringServer Name - The name of the target database server.
- Subscription
Id string - The subscription ID of the target database server.
- Migration
Name string - The name of the migration.
- Resource
Group stringName - The resource group name of the target database server.
- Target
Db stringServer Name - The name of the target database server.
- Subscription
Id string - The subscription ID of the target database server.
- migration
Name String - The name of the migration.
- resource
Group StringName - The resource group name of the target database server.
- target
Db StringServer Name - The name of the target database server.
- subscription
Id String - The subscription ID of the target database server.
- migration
Name string - The name of the migration.
- resource
Group stringName - The resource group name of the target database server.
- target
Db stringServer Name - The name of the target database server.
- subscription
Id 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.
- migration
Name String - The name of the migration.
- resource
Group StringName - The resource group name of the target database server.
- target
Db StringServer Name - The name of the target database server.
- subscription
Id String - The subscription ID of the target database server.
getMigration Result
The following output properties are available:
- Current
Status 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
- Migration
Id string - ID for migration, a GUID.
- Name string
- The name of the resource
- Source
Db Pulumi.Server Metadata Azure Native. DBfor Postgre SQL. Outputs. Db Server Metadata Response - Metadata of the source database server
- System
Data Pulumi.Azure Native. DBfor Postgre SQL. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Target
Db Pulumi.Server Metadata Azure Native. DBfor Postgre SQL. Outputs. Db Server Metadata Response - Metadata of the target database server
- Target
Db 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
- Dbs
To 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
- Dbs
To List<string>Migrate - Number of databases to migrate
- Dbs
To 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
- Migration
Mode string - There are two types of migration modes Online and Offline
- Migration
Window stringEnd Time In Utc - End time in UTC for migration window
- Migration
Window stringStart Time In Utc - Start time in UTC for migration window
- Overwrite
Dbs 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.
- Setup
Logical stringReplication On Source Db If Needed - Indicates whether to setup LogicalReplicationOnSourceDb, if needed
- Source
Db 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
- Source
Db stringServer Resource Id - ResourceId of the source database server
- Start
Data stringMigration - Indicates whether the data migration should start right away
- Dictionary<string, string>
- Resource tags.
- Target
Db 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
- Trigger
Cutover string - To trigger cutover for entire migration we need to send this flag as True
- Current
Status 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
- Migration
Id string - ID for migration, a GUID.
- Name string
- 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 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
- Dbs
To []stringCancel Migration On - When you want to trigger cancel for specific databases send cancel flag as True and database names in this array
- Dbs
To []stringMigrate - Number of databases to migrate
- Dbs
To []stringTrigger Cutover On - When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array
- Migration
Mode string - There are two types of migration modes Online and Offline
- Migration
Window stringEnd Time In Utc - End time in UTC for migration window
- Migration
Window stringStart Time In Utc - Start time in UTC for migration window
- Overwrite
Dbs 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.
- Setup
Logical stringReplication On Source Db If Needed - Indicates whether to setup LogicalReplicationOnSourceDb, if needed
- Source
Db 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
- Source
Db stringServer Resource Id - ResourceId of the source database server
- Start
Data stringMigration - Indicates whether the data migration should start right away
- map[string]string
- Resource tags.
- Target
Db 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
- Trigger
Cutover string - To trigger cutover for entire migration we need to send this flag as True
- current
Status 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
- migration
Id String - ID for migration, a GUID.
- name String
- 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 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
- dbs
To 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
- dbs
To List<String>Migrate - Number of databases to migrate
- dbs
To 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
- migration
Mode String - There are two types of migration modes Online and Offline
- migration
Window StringEnd Time In Utc - End time in UTC for migration window
- migration
Window StringStart Time In Utc - Start time in UTC for migration window
- overwrite
Dbs 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.
- setup
Logical StringReplication On Source Db If Needed - Indicates whether to setup LogicalReplicationOnSourceDb, if needed
- source
Db 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
- source
Db StringServer Resource Id - ResourceId of the source database server
- start
Data StringMigration - Indicates whether the data migration should start right away
- Map<String,String>
- Resource tags.
- target
Db 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
- trigger
Cutover String - To trigger cutover for entire migration we need to send this flag as True
- current
Status 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
- migration
Id string - ID for migration, a GUID.
- name string
- 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 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
- dbs
To string[]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 string[]Migrate - Number of databases to migrate
- dbs
To string[]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 string - There are two types of migration modes Online and Offline
- migration
Window stringEnd Time In Utc - End time in UTC for migration window
- migration
Window stringStart Time In Utc - Start time in UTC for migration window
- overwrite
Dbs 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.
- setup
Logical stringReplication On Source Db If Needed - Indicates whether to setup LogicalReplicationOnSourceDb, if needed
- source
Db 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
- source
Db stringServer Resource Id - ResourceId of the source database server
- start
Data stringMigration - Indicates whether the data migration should start right away
- {[key: string]: string}
- Resource tags.
- target
Db 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
- trigger
Cutover 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
- current
Status 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
- migration
Id String - ID for migration, a GUID.
- name String
- The name of the resource
- source
Db Property MapServer Metadata - Metadata of the source database server
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- target
Db Property MapServer Metadata - Metadata of the target database server
- target
Db 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
- dbs
To 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
- dbs
To List<String>Migrate - Number of databases to migrate
- dbs
To 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
- migration
Mode String - There are two types of migration modes Online and Offline
- migration
Window StringEnd Time In Utc - End time in UTC for migration window
- migration
Window StringStart Time In Utc - Start time in UTC for migration window
- overwrite
Dbs 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.
- setup
Logical StringReplication On Source Db If Needed - Indicates whether to setup LogicalReplicationOnSourceDb, if needed
- source
Db 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
- source
Db StringServer Resource Id - ResourceId of the source database server
- start
Data StringMigration - Indicates whether the data migration should start right away
- Map<String>
- Resource tags.
- target
Db 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
- trigger
Cutover 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
- Storage
Mb int - Storage size in MB for database server
- Version string
- Version for database engine
- Location string
- Location of database server
- Sku
Server
Sku Response - SKU for the database server
- Storage
Mb int - Storage size in MB for database server
- Version string
- Version for database engine
- location String
- Location of database server
- sku
Server
Sku Response - SKU for the database server
- storage
Mb Integer - Storage size in MB for database server
- version String
- Version for database engine
- location string
- Location of database server
- sku
Server
Sku Response - SKU for the database server
- storage
Mb number - Storage size in MB for database server
- version string
- Version for database engine
- location str
- Location of database server
- sku
Server
Sku 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
- storage
Mb Number - Storage size in MB for database server
- version String
- Version for database engine
MigrationStatusResponse
- Current
Sub 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
- Current
Sub 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 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 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
- current
Sub Property MapState Details - Current Migration sub state details.
- error String
- Error message, if any, for the migration state
- state String
- State of migration
MigrationSubStateDetailsResponse
- Current
Sub stringState - Migration sub state.
- Current
Sub stringState - Migration sub state.
- current
Sub StringState - Migration sub state.
- current
Sub stringState - Migration sub state.
- current_
sub_ strstate - Migration sub state.
- current
Sub StringState - Migration sub state.
ServerSkuResponse
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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.66.0 published on Wednesday, Oct 9, 2024 by Pulumi