Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.21.0 published on Tuesday, Jun 14, 2022 by Pulumi

getMigrationJobs

This data source provides the Dts Migration Jobs of the current Alibaba Cloud user.

NOTE: Available in v1.157.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ids = Output.Create(AliCloud.Dts.GetMigrationJobs.InvokeAsync(new AliCloud.Dts.GetMigrationJobsArgs
        {
            Ids = 
            {
                "dts_job_id",
            },
        }));
        this.DtsMigrationJobId1 = ids.Apply(ids => ids.Jobs?[0]?.Id);
    }

    [Output("dtsMigrationJobId1")]
    public Output<string> DtsMigrationJobId1 { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dts"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := dts.GetMigrationJobs(ctx, &dts.GetMigrationJobsArgs{
			Ids: []string{
				"dts_job_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dtsMigrationJobId1", ids.Jobs[0].Id)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.dts.get_migration_jobs(ids=["dts_job_id"])
pulumi.export("dtsMigrationJobId1", ids.jobs[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.dts.getMigrationJobs({
    ids: ["dts_job_id"],
});
export const dtsMigrationJobId1 = ids.then(ids => ids.jobs?[0]?.id);

Coming soon!

Using getMigrationJobs

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 getMigrationJobs(args: GetMigrationJobsArgs, opts?: InvokeOptions): Promise<GetMigrationJobsResult>
function getMigrationJobsOutput(args: GetMigrationJobsOutputArgs, opts?: InvokeOptions): Output<GetMigrationJobsResult>
def get_migration_jobs(enable_details: Optional[bool] = None,
                       ids: Optional[Sequence[str]] = None,
                       name_regex: Optional[str] = None,
                       output_file: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetMigrationJobsResult
def get_migration_jobs_output(enable_details: Optional[pulumi.Input[bool]] = None,
                       ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       name_regex: Optional[pulumi.Input[str]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetMigrationJobsResult]
func GetMigrationJobs(ctx *Context, args *GetMigrationJobsArgs, opts ...InvokeOption) (*GetMigrationJobsResult, error)
func GetMigrationJobsOutput(ctx *Context, args *GetMigrationJobsOutputArgs, opts ...InvokeOption) GetMigrationJobsResultOutput

> Note: This function is named GetMigrationJobs in the Go SDK.

public static class GetMigrationJobs 
{
    public static Task<GetMigrationJobsResult> InvokeAsync(GetMigrationJobsArgs args, InvokeOptions? opts = null)
    public static Output<GetMigrationJobsResult> Invoke(GetMigrationJobsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMigrationJobsResult> getMigrationJobs(GetMigrationJobsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:dts/getMigrationJobs:getMigrationJobs
  Arguments:
    # Arguments dictionary

The following arguments are supported:

EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids List<string>

A list of Synchronization Job IDs.

NameRegex string

A regex string to filter results by Migration Job name.

OutputFile string
EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids []string

A list of Synchronization Job IDs.

NameRegex string

A regex string to filter results by Migration Job name.

OutputFile string
enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List<String>

A list of Synchronization Job IDs.

nameRegex String

A regex string to filter results by Migration Job name.

outputFile String
enableDetails boolean

Default to false. Set it to true can output more details about resource attributes.

ids string[]

A list of Synchronization Job IDs.

nameRegex string

A regex string to filter results by Migration Job name.

outputFile string
enable_details bool

Default to false. Set it to true can output more details about resource attributes.

ids Sequence[str]

A list of Synchronization Job IDs.

name_regex str

A regex string to filter results by Migration Job name.

output_file str
enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List<String>

A list of Synchronization Job IDs.

nameRegex String

A regex string to filter results by Migration Job name.

outputFile String

getMigrationJobs Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Jobs List<Pulumi.AliCloud.Dts.Outputs.GetMigrationJobsJob>
Names List<string>
EnableDetails bool
NameRegex string
OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Jobs []GetMigrationJobsJob
Names []string
EnableDetails bool
NameRegex string
OutputFile string
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
jobs List<GetMigrationJobsJob>
names List<String>
enableDetails Boolean
nameRegex String
outputFile String
id string

The provider-assigned unique ID for this managed resource.

ids string[]
jobs GetMigrationJobsJob[]
names string[]
enableDetails boolean
nameRegex string
outputFile string
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
jobs Sequence[GetMigrationJobsJob]
names Sequence[str]
enable_details bool
name_regex str
output_file str
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
jobs List<Property Map>
names List<String>
enableDetails Boolean
nameRegex String
outputFile String

Supporting Types

GetMigrationJobsJob

DataInitialization bool

Whether or not to execute DTS supports schema migration, full data migration, or full-data initialization.

DataSynchronization bool

Whether to perform incremental data migration for migration types or synchronization values include:

DbList string

The Migration object, in the format of JSON strings.

DestinationEndpointDataBaseName string

The name of migrate the database.

DestinationEndpointEngineName string

The type of destination database.

DestinationEndpointInstanceId string

The ID of destination instance.

DestinationEndpointInstanceType string

The type of destination instance.

DestinationEndpointIp string

The ip of source endpoint.

DestinationEndpointOracleSid string

The SID of Oracle database.

DestinationEndpointPort string

The port of source endpoint.

DestinationEndpointRegion string

The region of destination instance.

DestinationEndpointUserName string

The username of database account.

DtsInstanceId string

The Migration instance ID. The ID of alicloud.dts.MigrationInstance.

DtsJobId string

The ID of the Migration Job.

DtsJobName string

The name of synchronization job.

Id string

The ID of the Migration Job. Its value is same as dts_job_id.

PaymentType string

The payment type of the Migration Instance.

SourceEndpointDatabaseName string

The name of migrate the database.

SourceEndpointEngineName string

The type of source database.

SourceEndpointInstanceId string

The ID of source instance.

SourceEndpointInstanceType string

The type of source instance.

SourceEndpointIp string

The ip of source endpoint.

SourceEndpointOracleSid string

The SID of Oracle database.

SourceEndpointOwnerId string

The Alibaba Cloud account ID to which the source instance belongs.

SourceEndpointPort string

The port of source endpoint.

SourceEndpointRegion string

The region of source instance.

SourceEndpointRole string

The name of the role configured for the cloud account to which the source instance belongs.

SourceEndpointUserName string

The username of database account.

Status string

The status of the resource.

StructureInitialization bool

Whether to perform a database table structure to migrate or initialization.

DataInitialization bool

Whether or not to execute DTS supports schema migration, full data migration, or full-data initialization.

DataSynchronization bool

Whether to perform incremental data migration for migration types or synchronization values include:

DbList string

The Migration object, in the format of JSON strings.

DestinationEndpointDataBaseName string

The name of migrate the database.

DestinationEndpointEngineName string

The type of destination database.

DestinationEndpointInstanceId string

The ID of destination instance.

DestinationEndpointInstanceType string

The type of destination instance.

DestinationEndpointIp string

The ip of source endpoint.

DestinationEndpointOracleSid string

The SID of Oracle database.

DestinationEndpointPort string

The port of source endpoint.

DestinationEndpointRegion string

The region of destination instance.

DestinationEndpointUserName string

The username of database account.

DtsInstanceId string

The Migration instance ID. The ID of alicloud.dts.MigrationInstance.

DtsJobId string

The ID of the Migration Job.

DtsJobName string

The name of synchronization job.

Id string

The ID of the Migration Job. Its value is same as dts_job_id.

PaymentType string

The payment type of the Migration Instance.

SourceEndpointDatabaseName string

The name of migrate the database.

SourceEndpointEngineName string

The type of source database.

SourceEndpointInstanceId string

The ID of source instance.

SourceEndpointInstanceType string

The type of source instance.

SourceEndpointIp string

The ip of source endpoint.

SourceEndpointOracleSid string

The SID of Oracle database.

SourceEndpointOwnerId string

The Alibaba Cloud account ID to which the source instance belongs.

SourceEndpointPort string

The port of source endpoint.

SourceEndpointRegion string

The region of source instance.

SourceEndpointRole string

The name of the role configured for the cloud account to which the source instance belongs.

SourceEndpointUserName string

The username of database account.

Status string

The status of the resource.

StructureInitialization bool

Whether to perform a database table structure to migrate or initialization.

dataInitialization Boolean

Whether or not to execute DTS supports schema migration, full data migration, or full-data initialization.

dataSynchronization Boolean

Whether to perform incremental data migration for migration types or synchronization values include:

dbList String

The Migration object, in the format of JSON strings.

destinationEndpointDataBaseName String

The name of migrate the database.

destinationEndpointEngineName String

The type of destination database.

destinationEndpointInstanceId String

The ID of destination instance.

destinationEndpointInstanceType String

The type of destination instance.

destinationEndpointIp String

The ip of source endpoint.

destinationEndpointOracleSid String

The SID of Oracle database.

destinationEndpointPort String

The port of source endpoint.

destinationEndpointRegion String

The region of destination instance.

destinationEndpointUserName String

The username of database account.

dtsInstanceId String

The Migration instance ID. The ID of alicloud.dts.MigrationInstance.

dtsJobId String

The ID of the Migration Job.

dtsJobName String

The name of synchronization job.

id String

The ID of the Migration Job. Its value is same as dts_job_id.

paymentType String

The payment type of the Migration Instance.

sourceEndpointDatabaseName String

The name of migrate the database.

sourceEndpointEngineName String

The type of source database.

sourceEndpointInstanceId String

The ID of source instance.

sourceEndpointInstanceType String

The type of source instance.

sourceEndpointIp String

The ip of source endpoint.

sourceEndpointOracleSid String

The SID of Oracle database.

sourceEndpointOwnerId String

The Alibaba Cloud account ID to which the source instance belongs.

sourceEndpointPort String

The port of source endpoint.

sourceEndpointRegion String

The region of source instance.

sourceEndpointRole String

The name of the role configured for the cloud account to which the source instance belongs.

sourceEndpointUserName String

The username of database account.

status String

The status of the resource.

structureInitialization Boolean

Whether to perform a database table structure to migrate or initialization.

dataInitialization boolean

Whether or not to execute DTS supports schema migration, full data migration, or full-data initialization.

dataSynchronization boolean

Whether to perform incremental data migration for migration types or synchronization values include:

dbList string

The Migration object, in the format of JSON strings.

destinationEndpointDataBaseName string

The name of migrate the database.

destinationEndpointEngineName string

The type of destination database.

destinationEndpointInstanceId string

The ID of destination instance.

destinationEndpointInstanceType string

The type of destination instance.

destinationEndpointIp string

The ip of source endpoint.

destinationEndpointOracleSid string

The SID of Oracle database.

destinationEndpointPort string

The port of source endpoint.

destinationEndpointRegion string

The region of destination instance.

destinationEndpointUserName string

The username of database account.

dtsInstanceId string

The Migration instance ID. The ID of alicloud.dts.MigrationInstance.

dtsJobId string

The ID of the Migration Job.

dtsJobName string

The name of synchronization job.

id string

The ID of the Migration Job. Its value is same as dts_job_id.

paymentType string

The payment type of the Migration Instance.

sourceEndpointDatabaseName string

The name of migrate the database.

sourceEndpointEngineName string

The type of source database.

sourceEndpointInstanceId string

The ID of source instance.

sourceEndpointInstanceType string

The type of source instance.

sourceEndpointIp string

The ip of source endpoint.

sourceEndpointOracleSid string

The SID of Oracle database.

sourceEndpointOwnerId string

The Alibaba Cloud account ID to which the source instance belongs.

sourceEndpointPort string

The port of source endpoint.

sourceEndpointRegion string

The region of source instance.

sourceEndpointRole string

The name of the role configured for the cloud account to which the source instance belongs.

sourceEndpointUserName string

The username of database account.

status string

The status of the resource.

structureInitialization boolean

Whether to perform a database table structure to migrate or initialization.

data_initialization bool

Whether or not to execute DTS supports schema migration, full data migration, or full-data initialization.

data_synchronization bool

Whether to perform incremental data migration for migration types or synchronization values include:

db_list str

The Migration object, in the format of JSON strings.

destination_endpoint_data_base_name str

The name of migrate the database.

destination_endpoint_engine_name str

The type of destination database.

destination_endpoint_instance_id str

The ID of destination instance.

destination_endpoint_instance_type str

The type of destination instance.

destination_endpoint_ip str

The ip of source endpoint.

destination_endpoint_oracle_sid str

The SID of Oracle database.

destination_endpoint_port str

The port of source endpoint.

destination_endpoint_region str

The region of destination instance.

destination_endpoint_user_name str

The username of database account.

dts_instance_id str

The Migration instance ID. The ID of alicloud.dts.MigrationInstance.

dts_job_id str

The ID of the Migration Job.

dts_job_name str

The name of synchronization job.

id str

The ID of the Migration Job. Its value is same as dts_job_id.

payment_type str

The payment type of the Migration Instance.

source_endpoint_database_name str

The name of migrate the database.

source_endpoint_engine_name str

The type of source database.

source_endpoint_instance_id str

The ID of source instance.

source_endpoint_instance_type str

The type of source instance.

source_endpoint_ip str

The ip of source endpoint.

source_endpoint_oracle_sid str

The SID of Oracle database.

source_endpoint_owner_id str

The Alibaba Cloud account ID to which the source instance belongs.

source_endpoint_port str

The port of source endpoint.

source_endpoint_region str

The region of source instance.

source_endpoint_role str

The name of the role configured for the cloud account to which the source instance belongs.

source_endpoint_user_name str

The username of database account.

status str

The status of the resource.

structure_initialization bool

Whether to perform a database table structure to migrate or initialization.

dataInitialization Boolean

Whether or not to execute DTS supports schema migration, full data migration, or full-data initialization.

dataSynchronization Boolean

Whether to perform incremental data migration for migration types or synchronization values include:

dbList String

The Migration object, in the format of JSON strings.

destinationEndpointDataBaseName String

The name of migrate the database.

destinationEndpointEngineName String

The type of destination database.

destinationEndpointInstanceId String

The ID of destination instance.

destinationEndpointInstanceType String

The type of destination instance.

destinationEndpointIp String

The ip of source endpoint.

destinationEndpointOracleSid String

The SID of Oracle database.

destinationEndpointPort String

The port of source endpoint.

destinationEndpointRegion String

The region of destination instance.

destinationEndpointUserName String

The username of database account.

dtsInstanceId String

The Migration instance ID. The ID of alicloud.dts.MigrationInstance.

dtsJobId String

The ID of the Migration Job.

dtsJobName String

The name of synchronization job.

id String

The ID of the Migration Job. Its value is same as dts_job_id.

paymentType String

The payment type of the Migration Instance.

sourceEndpointDatabaseName String

The name of migrate the database.

sourceEndpointEngineName String

The type of source database.

sourceEndpointInstanceId String

The ID of source instance.

sourceEndpointInstanceType String

The type of source instance.

sourceEndpointIp String

The ip of source endpoint.

sourceEndpointOracleSid String

The SID of Oracle database.

sourceEndpointOwnerId String

The Alibaba Cloud account ID to which the source instance belongs.

sourceEndpointPort String

The port of source endpoint.

sourceEndpointRegion String

The region of source instance.

sourceEndpointRole String

The name of the role configured for the cloud account to which the source instance belongs.

sourceEndpointUserName String

The username of database account.

status String

The status of the resource.

structureInitialization Boolean

Whether to perform a database table structure to migrate or initialization.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.