Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.dts.getMigrationJobs
Explore with Pulumi AI
This data source provides the Dts Migration Jobs of the current Alibaba Cloud user.
NOTE: Available in v1.157.0+.
Example Usage
Basic Usage
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);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.dts.get_migration_jobs(ids=["dts_job_id"])
pulumi.export("dtsMigrationJobId1", ids.jobs[0].id)
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Dts.GetMigrationJobs.Invoke(new()
{
Ids = new[]
{
"dts_job_id",
},
});
return new Dictionary<string, object?>
{
["dtsMigrationJobId1"] = ids.Apply(getMigrationJobsResult => getMigrationJobsResult.Jobs[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dts.DtsFunctions;
import com.pulumi.alicloud.dts.inputs.GetMigrationJobsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var ids = DtsFunctions.getMigrationJobs(GetMigrationJobsArgs.builder()
.ids("dts_job_id")
.build());
ctx.export("dtsMigrationJobId1", ids.applyValue(getMigrationJobsResult -> getMigrationJobsResult.jobs()[0].id()));
}
}
variables:
ids:
fn::invoke:
Function: alicloud:dts:getMigrationJobs
Arguments:
ids:
- dts_job_id
outputs:
dtsMigrationJobId1: ${ids.jobs[0].id}
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:
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids List<string>
- A list of Synchronization Job IDs.
- Name
Regex string - A regex string to filter results by Migration Job name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids []string
- A list of Synchronization Job IDs.
- Name
Regex string - A regex string to filter results by Migration Job name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Synchronization Job IDs.
- name
Regex String - A regex string to filter results by Migration Job name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids string[]
- A list of Synchronization Job IDs.
- name
Regex string - A regex string to filter results by Migration Job name.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- enable_
details bool - Default to
false
. Set it totrue
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 - File name where to save data source results (after running
pulumi preview
).
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Synchronization Job IDs.
- name
Regex String - A regex string to filter results by Migration Job name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
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.
Ali Cloud. Dts. Outputs. Get Migration Jobs Job> - Names List<string>
- Enable
Details bool - Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Jobs
[]Get
Migration Jobs Job - Names []string
- Enable
Details bool - Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- jobs
List<Get
Migration Jobs Job> - names List<String>
- enable
Details Boolean - name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- jobs
Get
Migration Jobs Job[] - names string[]
- enable
Details boolean - name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- jobs
Sequence[Get
Migration Jobs Job] - 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>
- enable
Details Boolean - name
Regex String - output
File String
Supporting Types
GetMigrationJobsJob
- 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 string - The Migration object, in the format of JSON strings.
- Destination
Endpoint stringData Base Name - The name of migrate the database.
- Destination
Endpoint stringEngine Name - The type of destination database.
- Destination
Endpoint stringInstance Id - The ID of destination instance.
- Destination
Endpoint stringInstance Type - The type of destination instance.
- Destination
Endpoint stringIp - The ip of source endpoint.
- Destination
Endpoint stringOracle Sid - The SID of Oracle database.
- Destination
Endpoint stringPort - The port of source endpoint.
- Destination
Endpoint stringRegion - The region of destination instance.
- Destination
Endpoint stringUser Name - The username of database account.
- Dts
Instance stringId - The Migration instance ID. The ID of
alicloud.dts.MigrationInstance
. - Dts
Job stringId - The ID of the Migration Job.
- Dts
Job stringName - The name of synchronization job.
- Id string
- The ID of the Migration Job. Its value is same as
dts_job_id
. - Payment
Type string - The payment type of the Migration Instance.
- Source
Endpoint stringDatabase Name - The name of migrate the database.
- Source
Endpoint stringEngine Name - The type of source database.
- Source
Endpoint stringInstance Id - The ID of source instance.
- Source
Endpoint stringInstance Type - The type of source instance.
- Source
Endpoint stringIp - The ip of source endpoint.
- Source
Endpoint stringOracle Sid - The SID of Oracle database.
- Source
Endpoint stringOwner Id - The Alibaba Cloud account ID to which the source instance belongs.
- Source
Endpoint stringPort - The port of source endpoint.
- Source
Endpoint stringRegion - The region of source instance.
- Source
Endpoint stringRole - The name of the role configured for the cloud account to which the source instance belongs.
- Source
Endpoint stringUser Name - The username of database account.
- Status string
- The status of the resource.
- Structure
Initialization bool - 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 string - The Migration object, in the format of JSON strings.
- Destination
Endpoint stringData Base Name - The name of migrate the database.
- Destination
Endpoint stringEngine Name - The type of destination database.
- Destination
Endpoint stringInstance Id - The ID of destination instance.
- Destination
Endpoint stringInstance Type - The type of destination instance.
- Destination
Endpoint stringIp - The ip of source endpoint.
- Destination
Endpoint stringOracle Sid - The SID of Oracle database.
- Destination
Endpoint stringPort - The port of source endpoint.
- Destination
Endpoint stringRegion - The region of destination instance.
- Destination
Endpoint stringUser Name - The username of database account.
- Dts
Instance stringId - The Migration instance ID. The ID of
alicloud.dts.MigrationInstance
. - Dts
Job stringId - The ID of the Migration Job.
- Dts
Job stringName - The name of synchronization job.
- Id string
- The ID of the Migration Job. Its value is same as
dts_job_id
. - Payment
Type string - The payment type of the Migration Instance.
- Source
Endpoint stringDatabase Name - The name of migrate the database.
- Source
Endpoint stringEngine Name - The type of source database.
- Source
Endpoint stringInstance Id - The ID of source instance.
- Source
Endpoint stringInstance Type - The type of source instance.
- Source
Endpoint stringIp - The ip of source endpoint.
- Source
Endpoint stringOracle Sid - The SID of Oracle database.
- Source
Endpoint stringOwner Id - The Alibaba Cloud account ID to which the source instance belongs.
- Source
Endpoint stringPort - The port of source endpoint.
- Source
Endpoint stringRegion - The region of source instance.
- Source
Endpoint stringRole - The name of the role configured for the cloud account to which the source instance belongs.
- Source
Endpoint stringUser Name - The username of database account.
- Status string
- The status of the resource.
- Structure
Initialization bool - Whether to perform a database table structure to migrate or initialization.
- data
Initialization Boolean - Whether or not to execute DTS supports schema migration, full data migration, or full-data initialization.
- data
Synchronization Boolean - Whether to perform incremental data migration for migration types or synchronization values include:
- db
List String - The Migration object, in the format of JSON strings.
- destination
Endpoint StringData Base Name - The name of migrate the database.
- destination
Endpoint StringEngine Name - The type of destination database.
- destination
Endpoint StringInstance Id - The ID of destination instance.
- destination
Endpoint StringInstance Type - The type of destination instance.
- destination
Endpoint StringIp - The ip of source endpoint.
- destination
Endpoint StringOracle Sid - The SID of Oracle database.
- destination
Endpoint StringPort - The port of source endpoint.
- destination
Endpoint StringRegion - The region of destination instance.
- destination
Endpoint StringUser Name - The username of database account.
- dts
Instance StringId - The Migration instance ID. The ID of
alicloud.dts.MigrationInstance
. - dts
Job StringId - The ID of the Migration Job.
- dts
Job StringName - The name of synchronization job.
- id String
- The ID of the Migration Job. Its value is same as
dts_job_id
. - payment
Type String - The payment type of the Migration Instance.
- source
Endpoint StringDatabase Name - The name of migrate the database.
- source
Endpoint StringEngine Name - The type of source database.
- source
Endpoint StringInstance Id - The ID of source instance.
- source
Endpoint StringInstance Type - The type of source instance.
- source
Endpoint StringIp - The ip of source endpoint.
- source
Endpoint StringOracle Sid - The SID of Oracle database.
- source
Endpoint StringOwner Id - The Alibaba Cloud account ID to which the source instance belongs.
- source
Endpoint StringPort - The port of source endpoint.
- source
Endpoint StringRegion - The region of source instance.
- source
Endpoint StringRole - The name of the role configured for the cloud account to which the source instance belongs.
- source
Endpoint StringUser Name - The username of database account.
- status String
- The status of the resource.
- structure
Initialization Boolean - Whether to perform a database table structure to migrate or initialization.
- data
Initialization boolean - Whether or not to execute DTS supports schema migration, full data migration, or full-data initialization.
- data
Synchronization boolean - Whether to perform incremental data migration for migration types or synchronization values include:
- db
List string - The Migration object, in the format of JSON strings.
- destination
Endpoint stringData Base Name - The name of migrate the database.
- destination
Endpoint stringEngine Name - The type of destination database.
- destination
Endpoint stringInstance Id - The ID of destination instance.
- destination
Endpoint stringInstance Type - The type of destination instance.
- destination
Endpoint stringIp - The ip of source endpoint.
- destination
Endpoint stringOracle Sid - The SID of Oracle database.
- destination
Endpoint stringPort - The port of source endpoint.
- destination
Endpoint stringRegion - The region of destination instance.
- destination
Endpoint stringUser Name - The username of database account.
- dts
Instance stringId - The Migration instance ID. The ID of
alicloud.dts.MigrationInstance
. - dts
Job stringId - The ID of the Migration Job.
- dts
Job stringName - The name of synchronization job.
- id string
- The ID of the Migration Job. Its value is same as
dts_job_id
. - payment
Type string - The payment type of the Migration Instance.
- source
Endpoint stringDatabase Name - The name of migrate the database.
- source
Endpoint stringEngine Name - The type of source database.
- source
Endpoint stringInstance Id - The ID of source instance.
- source
Endpoint stringInstance Type - The type of source instance.
- source
Endpoint stringIp - The ip of source endpoint.
- source
Endpoint stringOracle Sid - The SID of Oracle database.
- source
Endpoint stringOwner Id - The Alibaba Cloud account ID to which the source instance belongs.
- source
Endpoint stringPort - The port of source endpoint.
- source
Endpoint stringRegion - The region of source instance.
- source
Endpoint stringRole - The name of the role configured for the cloud account to which the source instance belongs.
- source
Endpoint stringUser Name - The username of database account.
- status string
- The status of the resource.
- structure
Initialization 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_ strdata_ base_ name - The name of migrate the database.
- destination_
endpoint_ strengine_ name - The type of destination database.
- destination_
endpoint_ strinstance_ id - The ID of destination instance.
- destination_
endpoint_ strinstance_ type - The type of destination instance.
- destination_
endpoint_ strip - The ip of source endpoint.
- destination_
endpoint_ stroracle_ sid - The SID of Oracle database.
- destination_
endpoint_ strport - The port of source endpoint.
- destination_
endpoint_ strregion - The region of destination instance.
- destination_
endpoint_ struser_ name - The username of database account.
- dts_
instance_ strid - The Migration instance ID. The ID of
alicloud.dts.MigrationInstance
. - dts_
job_ strid - The ID of the Migration Job.
- dts_
job_ strname - 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_ strdatabase_ name - The name of migrate the database.
- source_
endpoint_ strengine_ name - The type of source database.
- source_
endpoint_ strinstance_ id - The ID of source instance.
- source_
endpoint_ strinstance_ type - The type of source instance.
- source_
endpoint_ strip - The ip of source endpoint.
- source_
endpoint_ stroracle_ sid - The SID of Oracle database.
- source_
endpoint_ strowner_ id - The Alibaba Cloud account ID to which the source instance belongs.
- source_
endpoint_ strport - The port of source endpoint.
- source_
endpoint_ strregion - The region of source instance.
- source_
endpoint_ strrole - The name of the role configured for the cloud account to which the source instance belongs.
- source_
endpoint_ struser_ name - 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.
- data
Initialization Boolean - Whether or not to execute DTS supports schema migration, full data migration, or full-data initialization.
- data
Synchronization Boolean - Whether to perform incremental data migration for migration types or synchronization values include:
- db
List String - The Migration object, in the format of JSON strings.
- destination
Endpoint StringData Base Name - The name of migrate the database.
- destination
Endpoint StringEngine Name - The type of destination database.
- destination
Endpoint StringInstance Id - The ID of destination instance.
- destination
Endpoint StringInstance Type - The type of destination instance.
- destination
Endpoint StringIp - The ip of source endpoint.
- destination
Endpoint StringOracle Sid - The SID of Oracle database.
- destination
Endpoint StringPort - The port of source endpoint.
- destination
Endpoint StringRegion - The region of destination instance.
- destination
Endpoint StringUser Name - The username of database account.
- dts
Instance StringId - The Migration instance ID. The ID of
alicloud.dts.MigrationInstance
. - dts
Job StringId - The ID of the Migration Job.
- dts
Job StringName - The name of synchronization job.
- id String
- The ID of the Migration Job. Its value is same as
dts_job_id
. - payment
Type String - The payment type of the Migration Instance.
- source
Endpoint StringDatabase Name - The name of migrate the database.
- source
Endpoint StringEngine Name - The type of source database.
- source
Endpoint StringInstance Id - The ID of source instance.
- source
Endpoint StringInstance Type - The type of source instance.
- source
Endpoint StringIp - The ip of source endpoint.
- source
Endpoint StringOracle Sid - The SID of Oracle database.
- source
Endpoint StringOwner Id - The Alibaba Cloud account ID to which the source instance belongs.
- source
Endpoint StringPort - The port of source endpoint.
- source
Endpoint StringRegion - The region of source instance.
- source
Endpoint StringRole - The name of the role configured for the cloud account to which the source instance belongs.
- source
Endpoint StringUser Name - The username of database account.
- status String
- The status of the resource.
- structure
Initialization Boolean - Whether to perform a database table structure to migrate or initialization.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.