1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. DrsJob
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.DrsJob

Explore with Pulumi AI

Manages DRS job resource within FlexibleEngine.

Example Usage

Create DrsJob Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DrsJob(name: string, args: DrsJobArgs, opts?: CustomResourceOptions);
@overload
def DrsJob(resource_name: str,
           args: DrsJobArgs,
           opts: Optional[ResourceOptions] = None)

@overload
def DrsJob(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           engine_type: Optional[str] = None,
           destination_db: Optional[DrsJobDestinationDbArgs] = None,
           type: Optional[str] = None,
           direction: Optional[str] = None,
           source_db: Optional[DrsJobSourceDbArgs] = None,
           migrate_definer: Optional[bool] = None,
           multi_write: Optional[bool] = None,
           expired_days: Optional[float] = None,
           force_destroy: Optional[bool] = None,
           limit_speeds: Optional[Sequence[DrsJobLimitSpeedArgs]] = None,
           description: Optional[str] = None,
           migration_type: Optional[str] = None,
           enterprise_project_id: Optional[str] = None,
           name: Optional[str] = None,
           net_type: Optional[str] = None,
           region: Optional[str] = None,
           drs_job_id: Optional[str] = None,
           start_time: Optional[str] = None,
           tags: Optional[Mapping[str, str]] = None,
           timeouts: Optional[DrsJobTimeoutsArgs] = None,
           destination_db_readnoly: Optional[bool] = None)
func NewDrsJob(ctx *Context, name string, args DrsJobArgs, opts ...ResourceOption) (*DrsJob, error)
public DrsJob(string name, DrsJobArgs args, CustomResourceOptions? opts = null)
public DrsJob(String name, DrsJobArgs args)
public DrsJob(String name, DrsJobArgs args, CustomResourceOptions options)
type: flexibleengine:DrsJob
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DrsJobArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DrsJobArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DrsJobArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DrsJobArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DrsJobArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var drsJobResource = new Flexibleengine.DrsJob("drsJobResource", new()
{
    EngineType = "string",
    DestinationDb = new Flexibleengine.Inputs.DrsJobDestinationDbArgs
    {
        Port = 0,
        User = "string",
        Ip = "string",
        EngineType = "string",
        Password = "string",
        Region = "string",
        Name = "string",
        SslCertCheckSum = "string",
        SslCertKey = "string",
        SslCertName = "string",
        SslCertPassword = "string",
        SslEnabled = false,
        SubnetId = "string",
        InstanceId = "string",
    },
    Type = "string",
    Direction = "string",
    SourceDb = new Flexibleengine.Inputs.DrsJobSourceDbArgs
    {
        Port = 0,
        User = "string",
        Ip = "string",
        EngineType = "string",
        Password = "string",
        Region = "string",
        Name = "string",
        SslCertCheckSum = "string",
        SslCertKey = "string",
        SslCertName = "string",
        SslCertPassword = "string",
        SslEnabled = false,
        SubnetId = "string",
        InstanceId = "string",
    },
    MigrateDefiner = false,
    MultiWrite = false,
    ExpiredDays = 0,
    ForceDestroy = false,
    LimitSpeeds = new[]
    {
        new Flexibleengine.Inputs.DrsJobLimitSpeedArgs
        {
            EndTime = "string",
            Speed = "string",
            StartTime = "string",
        },
    },
    Description = "string",
    MigrationType = "string",
    EnterpriseProjectId = "string",
    Name = "string",
    NetType = "string",
    Region = "string",
    DrsJobId = "string",
    StartTime = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Timeouts = new Flexibleengine.Inputs.DrsJobTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
    DestinationDbReadnoly = false,
});
Copy
example, err := flexibleengine.NewDrsJob(ctx, "drsJobResource", &flexibleengine.DrsJobArgs{
EngineType: pulumi.String("string"),
DestinationDb: &.DrsJobDestinationDbArgs{
Port: pulumi.Float64(0),
User: pulumi.String("string"),
Ip: pulumi.String("string"),
EngineType: pulumi.String("string"),
Password: pulumi.String("string"),
Region: pulumi.String("string"),
Name: pulumi.String("string"),
SslCertCheckSum: pulumi.String("string"),
SslCertKey: pulumi.String("string"),
SslCertName: pulumi.String("string"),
SslCertPassword: pulumi.String("string"),
SslEnabled: pulumi.Bool(false),
SubnetId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
},
Type: pulumi.String("string"),
Direction: pulumi.String("string"),
SourceDb: &.DrsJobSourceDbArgs{
Port: pulumi.Float64(0),
User: pulumi.String("string"),
Ip: pulumi.String("string"),
EngineType: pulumi.String("string"),
Password: pulumi.String("string"),
Region: pulumi.String("string"),
Name: pulumi.String("string"),
SslCertCheckSum: pulumi.String("string"),
SslCertKey: pulumi.String("string"),
SslCertName: pulumi.String("string"),
SslCertPassword: pulumi.String("string"),
SslEnabled: pulumi.Bool(false),
SubnetId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
},
MigrateDefiner: pulumi.Bool(false),
MultiWrite: pulumi.Bool(false),
ExpiredDays: pulumi.Float64(0),
ForceDestroy: pulumi.Bool(false),
LimitSpeeds: .DrsJobLimitSpeedArray{
&.DrsJobLimitSpeedArgs{
EndTime: pulumi.String("string"),
Speed: pulumi.String("string"),
StartTime: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
MigrationType: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
Name: pulumi.String("string"),
NetType: pulumi.String("string"),
Region: pulumi.String("string"),
DrsJobId: pulumi.String("string"),
StartTime: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &.DrsJobTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
DestinationDbReadnoly: pulumi.Bool(false),
})
Copy
var drsJobResource = new DrsJob("drsJobResource", DrsJobArgs.builder()
    .engineType("string")
    .destinationDb(DrsJobDestinationDbArgs.builder()
        .port(0)
        .user("string")
        .ip("string")
        .engineType("string")
        .password("string")
        .region("string")
        .name("string")
        .sslCertCheckSum("string")
        .sslCertKey("string")
        .sslCertName("string")
        .sslCertPassword("string")
        .sslEnabled(false)
        .subnetId("string")
        .instanceId("string")
        .build())
    .type("string")
    .direction("string")
    .sourceDb(DrsJobSourceDbArgs.builder()
        .port(0)
        .user("string")
        .ip("string")
        .engineType("string")
        .password("string")
        .region("string")
        .name("string")
        .sslCertCheckSum("string")
        .sslCertKey("string")
        .sslCertName("string")
        .sslCertPassword("string")
        .sslEnabled(false)
        .subnetId("string")
        .instanceId("string")
        .build())
    .migrateDefiner(false)
    .multiWrite(false)
    .expiredDays(0)
    .forceDestroy(false)
    .limitSpeeds(DrsJobLimitSpeedArgs.builder()
        .endTime("string")
        .speed("string")
        .startTime("string")
        .build())
    .description("string")
    .migrationType("string")
    .enterpriseProjectId("string")
    .name("string")
    .netType("string")
    .region("string")
    .drsJobId("string")
    .startTime("string")
    .tags(Map.of("string", "string"))
    .timeouts(DrsJobTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .destinationDbReadnoly(false)
    .build());
Copy
drs_job_resource = flexibleengine.DrsJob("drsJobResource",
    engine_type="string",
    destination_db={
        "port": 0,
        "user": "string",
        "ip": "string",
        "engine_type": "string",
        "password": "string",
        "region": "string",
        "name": "string",
        "ssl_cert_check_sum": "string",
        "ssl_cert_key": "string",
        "ssl_cert_name": "string",
        "ssl_cert_password": "string",
        "ssl_enabled": False,
        "subnet_id": "string",
        "instance_id": "string",
    },
    type="string",
    direction="string",
    source_db={
        "port": 0,
        "user": "string",
        "ip": "string",
        "engine_type": "string",
        "password": "string",
        "region": "string",
        "name": "string",
        "ssl_cert_check_sum": "string",
        "ssl_cert_key": "string",
        "ssl_cert_name": "string",
        "ssl_cert_password": "string",
        "ssl_enabled": False,
        "subnet_id": "string",
        "instance_id": "string",
    },
    migrate_definer=False,
    multi_write=False,
    expired_days=0,
    force_destroy=False,
    limit_speeds=[{
        "end_time": "string",
        "speed": "string",
        "start_time": "string",
    }],
    description="string",
    migration_type="string",
    enterprise_project_id="string",
    name="string",
    net_type="string",
    region="string",
    drs_job_id="string",
    start_time="string",
    tags={
        "string": "string",
    },
    timeouts={
        "create": "string",
        "delete": "string",
    },
    destination_db_readnoly=False)
Copy
const drsJobResource = new flexibleengine.DrsJob("drsJobResource", {
    engineType: "string",
    destinationDb: {
        port: 0,
        user: "string",
        ip: "string",
        engineType: "string",
        password: "string",
        region: "string",
        name: "string",
        sslCertCheckSum: "string",
        sslCertKey: "string",
        sslCertName: "string",
        sslCertPassword: "string",
        sslEnabled: false,
        subnetId: "string",
        instanceId: "string",
    },
    type: "string",
    direction: "string",
    sourceDb: {
        port: 0,
        user: "string",
        ip: "string",
        engineType: "string",
        password: "string",
        region: "string",
        name: "string",
        sslCertCheckSum: "string",
        sslCertKey: "string",
        sslCertName: "string",
        sslCertPassword: "string",
        sslEnabled: false,
        subnetId: "string",
        instanceId: "string",
    },
    migrateDefiner: false,
    multiWrite: false,
    expiredDays: 0,
    forceDestroy: false,
    limitSpeeds: [{
        endTime: "string",
        speed: "string",
        startTime: "string",
    }],
    description: "string",
    migrationType: "string",
    enterpriseProjectId: "string",
    name: "string",
    netType: "string",
    region: "string",
    drsJobId: "string",
    startTime: "string",
    tags: {
        string: "string",
    },
    timeouts: {
        create: "string",
        "delete": "string",
    },
    destinationDbReadnoly: false,
});
Copy
type: flexibleengine:DrsJob
properties:
    description: string
    destinationDb:
        engineType: string
        instanceId: string
        ip: string
        name: string
        password: string
        port: 0
        region: string
        sslCertCheckSum: string
        sslCertKey: string
        sslCertName: string
        sslCertPassword: string
        sslEnabled: false
        subnetId: string
        user: string
    destinationDbReadnoly: false
    direction: string
    drsJobId: string
    engineType: string
    enterpriseProjectId: string
    expiredDays: 0
    forceDestroy: false
    limitSpeeds:
        - endTime: string
          speed: string
          startTime: string
    migrateDefiner: false
    migrationType: string
    multiWrite: false
    name: string
    netType: string
    region: string
    sourceDb:
        engineType: string
        instanceId: string
        ip: string
        name: string
        password: string
        port: 0
        region: string
        sslCertCheckSum: string
        sslCertKey: string
        sslCertName: string
        sslCertPassword: string
        sslEnabled: false
        subnetId: string
        user: string
    startTime: string
    tags:
        string: string
    timeouts:
        create: string
        delete: string
    type: string
Copy

DrsJob Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The DrsJob resource accepts the following input properties:

DestinationDb This property is required. DrsJobDestinationDb
Specifies the destination database configuration. The db_info object structure of the destination_db is documented below. Changing this parameter will create a new resource.
Direction This property is required. string
Specifies the direction of data flow. Changing this parameter will create a new resource. The options are as follows:

  • up: To the cloud. The destination database must be a database in the current cloud.
  • down: Out of the cloud. The source database must be a database in the current cloud.
  • non-dbs: self-built database.
EngineType This property is required. string
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
SourceDb This property is required. DrsJobSourceDb
Specifies the source database configuration. The db_info object structure of the source_db is documented below. Changing this parameter will create a new resource.
Type This property is required. string
Specifies the job type. Changing this parameter will create a new resource. The options are as follows:

  • migration: Online Migration.
  • sync: Data Synchronization.
Description string
Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
DestinationDbReadnoly bool
Specifies the destination DB instance as read-only helps ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to Read/Write. The default value is true. Changing this parameter will create a new resource.
DrsJobId string
The resource ID in UUID format.
EnterpriseProjectId string
Specifies the enterprise project id. Changing this parameter will create a new resource.
ExpiredDays double
Specifies how many days after the task is abnormal, it will automatically end. The value ranges from 14 to 100. the default value is 14. Changing this parameter will create a new resource.
ForceDestroy bool
Specifies whether to forcibly destroy the job even if it is running. The default value is false.
LimitSpeeds List<DrsJobLimitSpeed>
Specifies the migration speed by setting a time period. The default is no speed limit. The maximum length is 3. Structure is documented below. Changing this parameter will create a new resource.
MigrateDefiner bool
Specifies whether to migrate the definers of all source database objects to the user of destination_db. The default value is true. Changing this parameter will create a new resource.
MigrationType string

Specifies migration type. Changing this parameter will create a new resource. The options are as follows:

  • FULL_TRANS: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database objects and data, in a non-system database, to a destination database at a time.
  • INCR_TRANS: Incremental migration. Suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.
  • FULL_INCR_TRANS: Full+Incremental migration. This allows to migrate data with minimal downtime. After a full migration initializes the destination database, an incremental migration parses logs to ensure data consistency between the source and destination databases.

The default value is FULL_INCR_TRANS.

MultiWrite bool
Specifies whether to enable multi write. It is mandatory when type is cloudDataGuard. When the disaster recovery type is dual-active disaster recovery, set multi_write to true, otherwise to false. The default value is false. Changing this parameter will create a new resource.
Name string
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
NetType string

Specifies the network type. Changing this parameter will create a new resource. The options are as follows:

  • eip: suitable for migration from an on-premises or other cloud database to a destination cloud database. An EIP will be automatically bound to the replication instance and released after the replication task is complete.
  • vpc: suitable for migration from one cloud database to another.
  • vpn: suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.

The default value is eip.

Region string
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
StartTime string
Specifies the time to start the job. The time format is yyyy-MM-dd HH:mm:ss. Start immediately by default. Changing this parameter will create a new resource.
Tags Dictionary<string, string>
Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
Timeouts DrsJobTimeouts
DestinationDb This property is required. DrsJobDestinationDbArgs
Specifies the destination database configuration. The db_info object structure of the destination_db is documented below. Changing this parameter will create a new resource.
Direction This property is required. string
Specifies the direction of data flow. Changing this parameter will create a new resource. The options are as follows:

  • up: To the cloud. The destination database must be a database in the current cloud.
  • down: Out of the cloud. The source database must be a database in the current cloud.
  • non-dbs: self-built database.
EngineType This property is required. string
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
SourceDb This property is required. DrsJobSourceDbArgs
Specifies the source database configuration. The db_info object structure of the source_db is documented below. Changing this parameter will create a new resource.
Type This property is required. string
Specifies the job type. Changing this parameter will create a new resource. The options are as follows:

  • migration: Online Migration.
  • sync: Data Synchronization.
Description string
Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
DestinationDbReadnoly bool
Specifies the destination DB instance as read-only helps ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to Read/Write. The default value is true. Changing this parameter will create a new resource.
DrsJobId string
The resource ID in UUID format.
EnterpriseProjectId string
Specifies the enterprise project id. Changing this parameter will create a new resource.
ExpiredDays float64
Specifies how many days after the task is abnormal, it will automatically end. The value ranges from 14 to 100. the default value is 14. Changing this parameter will create a new resource.
ForceDestroy bool
Specifies whether to forcibly destroy the job even if it is running. The default value is false.
LimitSpeeds []DrsJobLimitSpeedArgs
Specifies the migration speed by setting a time period. The default is no speed limit. The maximum length is 3. Structure is documented below. Changing this parameter will create a new resource.
MigrateDefiner bool
Specifies whether to migrate the definers of all source database objects to the user of destination_db. The default value is true. Changing this parameter will create a new resource.
MigrationType string

Specifies migration type. Changing this parameter will create a new resource. The options are as follows:

  • FULL_TRANS: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database objects and data, in a non-system database, to a destination database at a time.
  • INCR_TRANS: Incremental migration. Suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.
  • FULL_INCR_TRANS: Full+Incremental migration. This allows to migrate data with minimal downtime. After a full migration initializes the destination database, an incremental migration parses logs to ensure data consistency between the source and destination databases.

The default value is FULL_INCR_TRANS.

MultiWrite bool
Specifies whether to enable multi write. It is mandatory when type is cloudDataGuard. When the disaster recovery type is dual-active disaster recovery, set multi_write to true, otherwise to false. The default value is false. Changing this parameter will create a new resource.
Name string
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
NetType string

Specifies the network type. Changing this parameter will create a new resource. The options are as follows:

  • eip: suitable for migration from an on-premises or other cloud database to a destination cloud database. An EIP will be automatically bound to the replication instance and released after the replication task is complete.
  • vpc: suitable for migration from one cloud database to another.
  • vpn: suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.

The default value is eip.

Region string
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
StartTime string
Specifies the time to start the job. The time format is yyyy-MM-dd HH:mm:ss. Start immediately by default. Changing this parameter will create a new resource.
Tags map[string]string
Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
Timeouts DrsJobTimeoutsArgs
destinationDb This property is required. DrsJobDestinationDb
Specifies the destination database configuration. The db_info object structure of the destination_db is documented below. Changing this parameter will create a new resource.
direction This property is required. String
Specifies the direction of data flow. Changing this parameter will create a new resource. The options are as follows:

  • up: To the cloud. The destination database must be a database in the current cloud.
  • down: Out of the cloud. The source database must be a database in the current cloud.
  • non-dbs: self-built database.
engineType This property is required. String
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
sourceDb This property is required. DrsJobSourceDb
Specifies the source database configuration. The db_info object structure of the source_db is documented below. Changing this parameter will create a new resource.
type This property is required. String
Specifies the job type. Changing this parameter will create a new resource. The options are as follows:

  • migration: Online Migration.
  • sync: Data Synchronization.
description String
Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
destinationDbReadnoly Boolean
Specifies the destination DB instance as read-only helps ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to Read/Write. The default value is true. Changing this parameter will create a new resource.
drsJobId String
The resource ID in UUID format.
enterpriseProjectId String
Specifies the enterprise project id. Changing this parameter will create a new resource.
expiredDays Double
Specifies how many days after the task is abnormal, it will automatically end. The value ranges from 14 to 100. the default value is 14. Changing this parameter will create a new resource.
forceDestroy Boolean
Specifies whether to forcibly destroy the job even if it is running. The default value is false.
limitSpeeds List<DrsJobLimitSpeed>
Specifies the migration speed by setting a time period. The default is no speed limit. The maximum length is 3. Structure is documented below. Changing this parameter will create a new resource.
migrateDefiner Boolean
Specifies whether to migrate the definers of all source database objects to the user of destination_db. The default value is true. Changing this parameter will create a new resource.
migrationType String

Specifies migration type. Changing this parameter will create a new resource. The options are as follows:

  • FULL_TRANS: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database objects and data, in a non-system database, to a destination database at a time.
  • INCR_TRANS: Incremental migration. Suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.
  • FULL_INCR_TRANS: Full+Incremental migration. This allows to migrate data with minimal downtime. After a full migration initializes the destination database, an incremental migration parses logs to ensure data consistency between the source and destination databases.

The default value is FULL_INCR_TRANS.

multiWrite Boolean
Specifies whether to enable multi write. It is mandatory when type is cloudDataGuard. When the disaster recovery type is dual-active disaster recovery, set multi_write to true, otherwise to false. The default value is false. Changing this parameter will create a new resource.
name String
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
netType String

Specifies the network type. Changing this parameter will create a new resource. The options are as follows:

  • eip: suitable for migration from an on-premises or other cloud database to a destination cloud database. An EIP will be automatically bound to the replication instance and released after the replication task is complete.
  • vpc: suitable for migration from one cloud database to another.
  • vpn: suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.

The default value is eip.

region String
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
startTime String
Specifies the time to start the job. The time format is yyyy-MM-dd HH:mm:ss. Start immediately by default. Changing this parameter will create a new resource.
tags Map<String,String>
Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
timeouts DrsJobTimeouts
destinationDb This property is required. DrsJobDestinationDb
Specifies the destination database configuration. The db_info object structure of the destination_db is documented below. Changing this parameter will create a new resource.
direction This property is required. string
Specifies the direction of data flow. Changing this parameter will create a new resource. The options are as follows:

  • up: To the cloud. The destination database must be a database in the current cloud.
  • down: Out of the cloud. The source database must be a database in the current cloud.
  • non-dbs: self-built database.
engineType This property is required. string
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
sourceDb This property is required. DrsJobSourceDb
Specifies the source database configuration. The db_info object structure of the source_db is documented below. Changing this parameter will create a new resource.
type This property is required. string
Specifies the job type. Changing this parameter will create a new resource. The options are as follows:

  • migration: Online Migration.
  • sync: Data Synchronization.
description string
Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
destinationDbReadnoly boolean
Specifies the destination DB instance as read-only helps ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to Read/Write. The default value is true. Changing this parameter will create a new resource.
drsJobId string
The resource ID in UUID format.
enterpriseProjectId string
Specifies the enterprise project id. Changing this parameter will create a new resource.
expiredDays number
Specifies how many days after the task is abnormal, it will automatically end. The value ranges from 14 to 100. the default value is 14. Changing this parameter will create a new resource.
forceDestroy boolean
Specifies whether to forcibly destroy the job even if it is running. The default value is false.
limitSpeeds DrsJobLimitSpeed[]
Specifies the migration speed by setting a time period. The default is no speed limit. The maximum length is 3. Structure is documented below. Changing this parameter will create a new resource.
migrateDefiner boolean
Specifies whether to migrate the definers of all source database objects to the user of destination_db. The default value is true. Changing this parameter will create a new resource.
migrationType string

Specifies migration type. Changing this parameter will create a new resource. The options are as follows:

  • FULL_TRANS: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database objects and data, in a non-system database, to a destination database at a time.
  • INCR_TRANS: Incremental migration. Suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.
  • FULL_INCR_TRANS: Full+Incremental migration. This allows to migrate data with minimal downtime. After a full migration initializes the destination database, an incremental migration parses logs to ensure data consistency between the source and destination databases.

The default value is FULL_INCR_TRANS.

multiWrite boolean
Specifies whether to enable multi write. It is mandatory when type is cloudDataGuard. When the disaster recovery type is dual-active disaster recovery, set multi_write to true, otherwise to false. The default value is false. Changing this parameter will create a new resource.
name string
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
netType string

Specifies the network type. Changing this parameter will create a new resource. The options are as follows:

  • eip: suitable for migration from an on-premises or other cloud database to a destination cloud database. An EIP will be automatically bound to the replication instance and released after the replication task is complete.
  • vpc: suitable for migration from one cloud database to another.
  • vpn: suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.

The default value is eip.

region string
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
startTime string
Specifies the time to start the job. The time format is yyyy-MM-dd HH:mm:ss. Start immediately by default. Changing this parameter will create a new resource.
tags {[key: string]: string}
Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
timeouts DrsJobTimeouts
destination_db This property is required. DrsJobDestinationDbArgs
Specifies the destination database configuration. The db_info object structure of the destination_db is documented below. Changing this parameter will create a new resource.
direction This property is required. str
Specifies the direction of data flow. Changing this parameter will create a new resource. The options are as follows:

  • up: To the cloud. The destination database must be a database in the current cloud.
  • down: Out of the cloud. The source database must be a database in the current cloud.
  • non-dbs: self-built database.
engine_type This property is required. str
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
source_db This property is required. DrsJobSourceDbArgs
Specifies the source database configuration. The db_info object structure of the source_db is documented below. Changing this parameter will create a new resource.
type This property is required. str
Specifies the job type. Changing this parameter will create a new resource. The options are as follows:

  • migration: Online Migration.
  • sync: Data Synchronization.
description str
Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
destination_db_readnoly bool
Specifies the destination DB instance as read-only helps ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to Read/Write. The default value is true. Changing this parameter will create a new resource.
drs_job_id str
The resource ID in UUID format.
enterprise_project_id str
Specifies the enterprise project id. Changing this parameter will create a new resource.
expired_days float
Specifies how many days after the task is abnormal, it will automatically end. The value ranges from 14 to 100. the default value is 14. Changing this parameter will create a new resource.
force_destroy bool
Specifies whether to forcibly destroy the job even if it is running. The default value is false.
limit_speeds Sequence[DrsJobLimitSpeedArgs]
Specifies the migration speed by setting a time period. The default is no speed limit. The maximum length is 3. Structure is documented below. Changing this parameter will create a new resource.
migrate_definer bool
Specifies whether to migrate the definers of all source database objects to the user of destination_db. The default value is true. Changing this parameter will create a new resource.
migration_type str

Specifies migration type. Changing this parameter will create a new resource. The options are as follows:

  • FULL_TRANS: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database objects and data, in a non-system database, to a destination database at a time.
  • INCR_TRANS: Incremental migration. Suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.
  • FULL_INCR_TRANS: Full+Incremental migration. This allows to migrate data with minimal downtime. After a full migration initializes the destination database, an incremental migration parses logs to ensure data consistency between the source and destination databases.

The default value is FULL_INCR_TRANS.

multi_write bool
Specifies whether to enable multi write. It is mandatory when type is cloudDataGuard. When the disaster recovery type is dual-active disaster recovery, set multi_write to true, otherwise to false. The default value is false. Changing this parameter will create a new resource.
name str
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
net_type str

Specifies the network type. Changing this parameter will create a new resource. The options are as follows:

  • eip: suitable for migration from an on-premises or other cloud database to a destination cloud database. An EIP will be automatically bound to the replication instance and released after the replication task is complete.
  • vpc: suitable for migration from one cloud database to another.
  • vpn: suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.

The default value is eip.

region str
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
start_time str
Specifies the time to start the job. The time format is yyyy-MM-dd HH:mm:ss. Start immediately by default. Changing this parameter will create a new resource.
tags Mapping[str, str]
Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
timeouts DrsJobTimeoutsArgs
destinationDb This property is required. Property Map
Specifies the destination database configuration. The db_info object structure of the destination_db is documented below. Changing this parameter will create a new resource.
direction This property is required. String
Specifies the direction of data flow. Changing this parameter will create a new resource. The options are as follows:

  • up: To the cloud. The destination database must be a database in the current cloud.
  • down: Out of the cloud. The source database must be a database in the current cloud.
  • non-dbs: self-built database.
engineType This property is required. String
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
sourceDb This property is required. Property Map
Specifies the source database configuration. The db_info object structure of the source_db is documented below. Changing this parameter will create a new resource.
type This property is required. String
Specifies the job type. Changing this parameter will create a new resource. The options are as follows:

  • migration: Online Migration.
  • sync: Data Synchronization.
description String
Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
destinationDbReadnoly Boolean
Specifies the destination DB instance as read-only helps ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to Read/Write. The default value is true. Changing this parameter will create a new resource.
drsJobId String
The resource ID in UUID format.
enterpriseProjectId String
Specifies the enterprise project id. Changing this parameter will create a new resource.
expiredDays Number
Specifies how many days after the task is abnormal, it will automatically end. The value ranges from 14 to 100. the default value is 14. Changing this parameter will create a new resource.
forceDestroy Boolean
Specifies whether to forcibly destroy the job even if it is running. The default value is false.
limitSpeeds List<Property Map>
Specifies the migration speed by setting a time period. The default is no speed limit. The maximum length is 3. Structure is documented below. Changing this parameter will create a new resource.
migrateDefiner Boolean
Specifies whether to migrate the definers of all source database objects to the user of destination_db. The default value is true. Changing this parameter will create a new resource.
migrationType String

Specifies migration type. Changing this parameter will create a new resource. The options are as follows:

  • FULL_TRANS: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database objects and data, in a non-system database, to a destination database at a time.
  • INCR_TRANS: Incremental migration. Suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.
  • FULL_INCR_TRANS: Full+Incremental migration. This allows to migrate data with minimal downtime. After a full migration initializes the destination database, an incremental migration parses logs to ensure data consistency between the source and destination databases.

The default value is FULL_INCR_TRANS.

multiWrite Boolean
Specifies whether to enable multi write. It is mandatory when type is cloudDataGuard. When the disaster recovery type is dual-active disaster recovery, set multi_write to true, otherwise to false. The default value is false. Changing this parameter will create a new resource.
name String
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
netType String

Specifies the network type. Changing this parameter will create a new resource. The options are as follows:

  • eip: suitable for migration from an on-premises or other cloud database to a destination cloud database. An EIP will be automatically bound to the replication instance and released after the replication task is complete.
  • vpc: suitable for migration from one cloud database to another.
  • vpn: suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.

The default value is eip.

region String
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
startTime String
Specifies the time to start the job. The time format is yyyy-MM-dd HH:mm:ss. Start immediately by default. Changing this parameter will create a new resource.
tags Map<String>
Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
timeouts Property Map

Outputs

All input properties are implicitly available as output properties. Additionally, the DrsJob resource produces the following output properties:

CreatedAt string
Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
Id string
The provider-assigned unique ID for this managed resource.
PrivateIp string
Private IP.
PublicIp string
Public IP.
Status string
Status.
CreatedAt string
Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
Id string
The provider-assigned unique ID for this managed resource.
PrivateIp string
Private IP.
PublicIp string
Public IP.
Status string
Status.
createdAt String
Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
id String
The provider-assigned unique ID for this managed resource.
privateIp String
Private IP.
publicIp String
Public IP.
status String
Status.
createdAt string
Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
id string
The provider-assigned unique ID for this managed resource.
privateIp string
Private IP.
publicIp string
Public IP.
status string
Status.
created_at str
Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
id str
The provider-assigned unique ID for this managed resource.
private_ip str
Private IP.
public_ip str
Public IP.
status str
Status.
createdAt String
Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
id String
The provider-assigned unique ID for this managed resource.
privateIp String
Private IP.
publicIp String
Public IP.
status String
Status.

Look up Existing DrsJob Resource

Get an existing DrsJob resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DrsJobState, opts?: CustomResourceOptions): DrsJob
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        destination_db: Optional[DrsJobDestinationDbArgs] = None,
        destination_db_readnoly: Optional[bool] = None,
        direction: Optional[str] = None,
        drs_job_id: Optional[str] = None,
        engine_type: Optional[str] = None,
        enterprise_project_id: Optional[str] = None,
        expired_days: Optional[float] = None,
        force_destroy: Optional[bool] = None,
        limit_speeds: Optional[Sequence[DrsJobLimitSpeedArgs]] = None,
        migrate_definer: Optional[bool] = None,
        migration_type: Optional[str] = None,
        multi_write: Optional[bool] = None,
        name: Optional[str] = None,
        net_type: Optional[str] = None,
        private_ip: Optional[str] = None,
        public_ip: Optional[str] = None,
        region: Optional[str] = None,
        source_db: Optional[DrsJobSourceDbArgs] = None,
        start_time: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        timeouts: Optional[DrsJobTimeoutsArgs] = None,
        type: Optional[str] = None) -> DrsJob
func GetDrsJob(ctx *Context, name string, id IDInput, state *DrsJobState, opts ...ResourceOption) (*DrsJob, error)
public static DrsJob Get(string name, Input<string> id, DrsJobState? state, CustomResourceOptions? opts = null)
public static DrsJob get(String name, Output<String> id, DrsJobState state, CustomResourceOptions options)
resources:  _:    type: flexibleengine:DrsJob    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreatedAt string
Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
Description string
Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
DestinationDb DrsJobDestinationDb
Specifies the destination database configuration. The db_info object structure of the destination_db is documented below. Changing this parameter will create a new resource.
DestinationDbReadnoly bool
Specifies the destination DB instance as read-only helps ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to Read/Write. The default value is true. Changing this parameter will create a new resource.
Direction string
Specifies the direction of data flow. Changing this parameter will create a new resource. The options are as follows:

  • up: To the cloud. The destination database must be a database in the current cloud.
  • down: Out of the cloud. The source database must be a database in the current cloud.
  • non-dbs: self-built database.
DrsJobId string
The resource ID in UUID format.
EngineType string
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
EnterpriseProjectId string
Specifies the enterprise project id. Changing this parameter will create a new resource.
ExpiredDays double
Specifies how many days after the task is abnormal, it will automatically end. The value ranges from 14 to 100. the default value is 14. Changing this parameter will create a new resource.
ForceDestroy bool
Specifies whether to forcibly destroy the job even if it is running. The default value is false.
LimitSpeeds List<DrsJobLimitSpeed>
Specifies the migration speed by setting a time period. The default is no speed limit. The maximum length is 3. Structure is documented below. Changing this parameter will create a new resource.
MigrateDefiner bool
Specifies whether to migrate the definers of all source database objects to the user of destination_db. The default value is true. Changing this parameter will create a new resource.
MigrationType string

Specifies migration type. Changing this parameter will create a new resource. The options are as follows:

  • FULL_TRANS: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database objects and data, in a non-system database, to a destination database at a time.
  • INCR_TRANS: Incremental migration. Suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.
  • FULL_INCR_TRANS: Full+Incremental migration. This allows to migrate data with minimal downtime. After a full migration initializes the destination database, an incremental migration parses logs to ensure data consistency between the source and destination databases.

The default value is FULL_INCR_TRANS.

MultiWrite bool
Specifies whether to enable multi write. It is mandatory when type is cloudDataGuard. When the disaster recovery type is dual-active disaster recovery, set multi_write to true, otherwise to false. The default value is false. Changing this parameter will create a new resource.
Name string
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
NetType string

Specifies the network type. Changing this parameter will create a new resource. The options are as follows:

  • eip: suitable for migration from an on-premises or other cloud database to a destination cloud database. An EIP will be automatically bound to the replication instance and released after the replication task is complete.
  • vpc: suitable for migration from one cloud database to another.
  • vpn: suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.

The default value is eip.

PrivateIp string
Private IP.
PublicIp string
Public IP.
Region string
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
SourceDb DrsJobSourceDb
Specifies the source database configuration. The db_info object structure of the source_db is documented below. Changing this parameter will create a new resource.
StartTime string
Specifies the time to start the job. The time format is yyyy-MM-dd HH:mm:ss. Start immediately by default. Changing this parameter will create a new resource.
Status string
Status.
Tags Dictionary<string, string>
Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
Timeouts DrsJobTimeouts
Type string
Specifies the job type. Changing this parameter will create a new resource. The options are as follows:

  • migration: Online Migration.
  • sync: Data Synchronization.
CreatedAt string
Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
Description string
Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
DestinationDb DrsJobDestinationDbArgs
Specifies the destination database configuration. The db_info object structure of the destination_db is documented below. Changing this parameter will create a new resource.
DestinationDbReadnoly bool
Specifies the destination DB instance as read-only helps ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to Read/Write. The default value is true. Changing this parameter will create a new resource.
Direction string
Specifies the direction of data flow. Changing this parameter will create a new resource. The options are as follows:

  • up: To the cloud. The destination database must be a database in the current cloud.
  • down: Out of the cloud. The source database must be a database in the current cloud.
  • non-dbs: self-built database.
DrsJobId string
The resource ID in UUID format.
EngineType string
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
EnterpriseProjectId string
Specifies the enterprise project id. Changing this parameter will create a new resource.
ExpiredDays float64
Specifies how many days after the task is abnormal, it will automatically end. The value ranges from 14 to 100. the default value is 14. Changing this parameter will create a new resource.
ForceDestroy bool
Specifies whether to forcibly destroy the job even if it is running. The default value is false.
LimitSpeeds []DrsJobLimitSpeedArgs
Specifies the migration speed by setting a time period. The default is no speed limit. The maximum length is 3. Structure is documented below. Changing this parameter will create a new resource.
MigrateDefiner bool
Specifies whether to migrate the definers of all source database objects to the user of destination_db. The default value is true. Changing this parameter will create a new resource.
MigrationType string

Specifies migration type. Changing this parameter will create a new resource. The options are as follows:

  • FULL_TRANS: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database objects and data, in a non-system database, to a destination database at a time.
  • INCR_TRANS: Incremental migration. Suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.
  • FULL_INCR_TRANS: Full+Incremental migration. This allows to migrate data with minimal downtime. After a full migration initializes the destination database, an incremental migration parses logs to ensure data consistency between the source and destination databases.

The default value is FULL_INCR_TRANS.

MultiWrite bool
Specifies whether to enable multi write. It is mandatory when type is cloudDataGuard. When the disaster recovery type is dual-active disaster recovery, set multi_write to true, otherwise to false. The default value is false. Changing this parameter will create a new resource.
Name string
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
NetType string

Specifies the network type. Changing this parameter will create a new resource. The options are as follows:

  • eip: suitable for migration from an on-premises or other cloud database to a destination cloud database. An EIP will be automatically bound to the replication instance and released after the replication task is complete.
  • vpc: suitable for migration from one cloud database to another.
  • vpn: suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.

The default value is eip.

PrivateIp string
Private IP.
PublicIp string
Public IP.
Region string
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
SourceDb DrsJobSourceDbArgs
Specifies the source database configuration. The db_info object structure of the source_db is documented below. Changing this parameter will create a new resource.
StartTime string
Specifies the time to start the job. The time format is yyyy-MM-dd HH:mm:ss. Start immediately by default. Changing this parameter will create a new resource.
Status string
Status.
Tags map[string]string
Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
Timeouts DrsJobTimeoutsArgs
Type string
Specifies the job type. Changing this parameter will create a new resource. The options are as follows:

  • migration: Online Migration.
  • sync: Data Synchronization.
createdAt String
Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
description String
Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
destinationDb DrsJobDestinationDb
Specifies the destination database configuration. The db_info object structure of the destination_db is documented below. Changing this parameter will create a new resource.
destinationDbReadnoly Boolean
Specifies the destination DB instance as read-only helps ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to Read/Write. The default value is true. Changing this parameter will create a new resource.
direction String
Specifies the direction of data flow. Changing this parameter will create a new resource. The options are as follows:

  • up: To the cloud. The destination database must be a database in the current cloud.
  • down: Out of the cloud. The source database must be a database in the current cloud.
  • non-dbs: self-built database.
drsJobId String
The resource ID in UUID format.
engineType String
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
enterpriseProjectId String
Specifies the enterprise project id. Changing this parameter will create a new resource.
expiredDays Double
Specifies how many days after the task is abnormal, it will automatically end. The value ranges from 14 to 100. the default value is 14. Changing this parameter will create a new resource.
forceDestroy Boolean
Specifies whether to forcibly destroy the job even if it is running. The default value is false.
limitSpeeds List<DrsJobLimitSpeed>
Specifies the migration speed by setting a time period. The default is no speed limit. The maximum length is 3. Structure is documented below. Changing this parameter will create a new resource.
migrateDefiner Boolean
Specifies whether to migrate the definers of all source database objects to the user of destination_db. The default value is true. Changing this parameter will create a new resource.
migrationType String

Specifies migration type. Changing this parameter will create a new resource. The options are as follows:

  • FULL_TRANS: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database objects and data, in a non-system database, to a destination database at a time.
  • INCR_TRANS: Incremental migration. Suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.
  • FULL_INCR_TRANS: Full+Incremental migration. This allows to migrate data with minimal downtime. After a full migration initializes the destination database, an incremental migration parses logs to ensure data consistency between the source and destination databases.

The default value is FULL_INCR_TRANS.

multiWrite Boolean
Specifies whether to enable multi write. It is mandatory when type is cloudDataGuard. When the disaster recovery type is dual-active disaster recovery, set multi_write to true, otherwise to false. The default value is false. Changing this parameter will create a new resource.
name String
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
netType String

Specifies the network type. Changing this parameter will create a new resource. The options are as follows:

  • eip: suitable for migration from an on-premises or other cloud database to a destination cloud database. An EIP will be automatically bound to the replication instance and released after the replication task is complete.
  • vpc: suitable for migration from one cloud database to another.
  • vpn: suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.

The default value is eip.

privateIp String
Private IP.
publicIp String
Public IP.
region String
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
sourceDb DrsJobSourceDb
Specifies the source database configuration. The db_info object structure of the source_db is documented below. Changing this parameter will create a new resource.
startTime String
Specifies the time to start the job. The time format is yyyy-MM-dd HH:mm:ss. Start immediately by default. Changing this parameter will create a new resource.
status String
Status.
tags Map<String,String>
Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
timeouts DrsJobTimeouts
type String
Specifies the job type. Changing this parameter will create a new resource. The options are as follows:

  • migration: Online Migration.
  • sync: Data Synchronization.
createdAt string
Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
description string
Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
destinationDb DrsJobDestinationDb
Specifies the destination database configuration. The db_info object structure of the destination_db is documented below. Changing this parameter will create a new resource.
destinationDbReadnoly boolean
Specifies the destination DB instance as read-only helps ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to Read/Write. The default value is true. Changing this parameter will create a new resource.
direction string
Specifies the direction of data flow. Changing this parameter will create a new resource. The options are as follows:

  • up: To the cloud. The destination database must be a database in the current cloud.
  • down: Out of the cloud. The source database must be a database in the current cloud.
  • non-dbs: self-built database.
drsJobId string
The resource ID in UUID format.
engineType string
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
enterpriseProjectId string
Specifies the enterprise project id. Changing this parameter will create a new resource.
expiredDays number
Specifies how many days after the task is abnormal, it will automatically end. The value ranges from 14 to 100. the default value is 14. Changing this parameter will create a new resource.
forceDestroy boolean
Specifies whether to forcibly destroy the job even if it is running. The default value is false.
limitSpeeds DrsJobLimitSpeed[]
Specifies the migration speed by setting a time period. The default is no speed limit. The maximum length is 3. Structure is documented below. Changing this parameter will create a new resource.
migrateDefiner boolean
Specifies whether to migrate the definers of all source database objects to the user of destination_db. The default value is true. Changing this parameter will create a new resource.
migrationType string

Specifies migration type. Changing this parameter will create a new resource. The options are as follows:

  • FULL_TRANS: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database objects and data, in a non-system database, to a destination database at a time.
  • INCR_TRANS: Incremental migration. Suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.
  • FULL_INCR_TRANS: Full+Incremental migration. This allows to migrate data with minimal downtime. After a full migration initializes the destination database, an incremental migration parses logs to ensure data consistency between the source and destination databases.

The default value is FULL_INCR_TRANS.

multiWrite boolean
Specifies whether to enable multi write. It is mandatory when type is cloudDataGuard. When the disaster recovery type is dual-active disaster recovery, set multi_write to true, otherwise to false. The default value is false. Changing this parameter will create a new resource.
name string
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
netType string

Specifies the network type. Changing this parameter will create a new resource. The options are as follows:

  • eip: suitable for migration from an on-premises or other cloud database to a destination cloud database. An EIP will be automatically bound to the replication instance and released after the replication task is complete.
  • vpc: suitable for migration from one cloud database to another.
  • vpn: suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.

The default value is eip.

privateIp string
Private IP.
publicIp string
Public IP.
region string
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
sourceDb DrsJobSourceDb
Specifies the source database configuration. The db_info object structure of the source_db is documented below. Changing this parameter will create a new resource.
startTime string
Specifies the time to start the job. The time format is yyyy-MM-dd HH:mm:ss. Start immediately by default. Changing this parameter will create a new resource.
status string
Status.
tags {[key: string]: string}
Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
timeouts DrsJobTimeouts
type string
Specifies the job type. Changing this parameter will create a new resource. The options are as follows:

  • migration: Online Migration.
  • sync: Data Synchronization.
created_at str
Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
description str
Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
destination_db DrsJobDestinationDbArgs
Specifies the destination database configuration. The db_info object structure of the destination_db is documented below. Changing this parameter will create a new resource.
destination_db_readnoly bool
Specifies the destination DB instance as read-only helps ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to Read/Write. The default value is true. Changing this parameter will create a new resource.
direction str
Specifies the direction of data flow. Changing this parameter will create a new resource. The options are as follows:

  • up: To the cloud. The destination database must be a database in the current cloud.
  • down: Out of the cloud. The source database must be a database in the current cloud.
  • non-dbs: self-built database.
drs_job_id str
The resource ID in UUID format.
engine_type str
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
enterprise_project_id str
Specifies the enterprise project id. Changing this parameter will create a new resource.
expired_days float
Specifies how many days after the task is abnormal, it will automatically end. The value ranges from 14 to 100. the default value is 14. Changing this parameter will create a new resource.
force_destroy bool
Specifies whether to forcibly destroy the job even if it is running. The default value is false.
limit_speeds Sequence[DrsJobLimitSpeedArgs]
Specifies the migration speed by setting a time period. The default is no speed limit. The maximum length is 3. Structure is documented below. Changing this parameter will create a new resource.
migrate_definer bool
Specifies whether to migrate the definers of all source database objects to the user of destination_db. The default value is true. Changing this parameter will create a new resource.
migration_type str

Specifies migration type. Changing this parameter will create a new resource. The options are as follows:

  • FULL_TRANS: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database objects and data, in a non-system database, to a destination database at a time.
  • INCR_TRANS: Incremental migration. Suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.
  • FULL_INCR_TRANS: Full+Incremental migration. This allows to migrate data with minimal downtime. After a full migration initializes the destination database, an incremental migration parses logs to ensure data consistency between the source and destination databases.

The default value is FULL_INCR_TRANS.

multi_write bool
Specifies whether to enable multi write. It is mandatory when type is cloudDataGuard. When the disaster recovery type is dual-active disaster recovery, set multi_write to true, otherwise to false. The default value is false. Changing this parameter will create a new resource.
name str
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
net_type str

Specifies the network type. Changing this parameter will create a new resource. The options are as follows:

  • eip: suitable for migration from an on-premises or other cloud database to a destination cloud database. An EIP will be automatically bound to the replication instance and released after the replication task is complete.
  • vpc: suitable for migration from one cloud database to another.
  • vpn: suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.

The default value is eip.

private_ip str
Private IP.
public_ip str
Public IP.
region str
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
source_db DrsJobSourceDbArgs
Specifies the source database configuration. The db_info object structure of the source_db is documented below. Changing this parameter will create a new resource.
start_time str
Specifies the time to start the job. The time format is yyyy-MM-dd HH:mm:ss. Start immediately by default. Changing this parameter will create a new resource.
status str
Status.
tags Mapping[str, str]
Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
timeouts DrsJobTimeoutsArgs
type str
Specifies the job type. Changing this parameter will create a new resource. The options are as follows:

  • migration: Online Migration.
  • sync: Data Synchronization.
createdAt String
Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
description String
Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
destinationDb Property Map
Specifies the destination database configuration. The db_info object structure of the destination_db is documented below. Changing this parameter will create a new resource.
destinationDbReadnoly Boolean
Specifies the destination DB instance as read-only helps ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to Read/Write. The default value is true. Changing this parameter will create a new resource.
direction String
Specifies the direction of data flow. Changing this parameter will create a new resource. The options are as follows:

  • up: To the cloud. The destination database must be a database in the current cloud.
  • down: Out of the cloud. The source database must be a database in the current cloud.
  • non-dbs: self-built database.
drsJobId String
The resource ID in UUID format.
engineType String
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
enterpriseProjectId String
Specifies the enterprise project id. Changing this parameter will create a new resource.
expiredDays Number
Specifies how many days after the task is abnormal, it will automatically end. The value ranges from 14 to 100. the default value is 14. Changing this parameter will create a new resource.
forceDestroy Boolean
Specifies whether to forcibly destroy the job even if it is running. The default value is false.
limitSpeeds List<Property Map>
Specifies the migration speed by setting a time period. The default is no speed limit. The maximum length is 3. Structure is documented below. Changing this parameter will create a new resource.
migrateDefiner Boolean
Specifies whether to migrate the definers of all source database objects to the user of destination_db. The default value is true. Changing this parameter will create a new resource.
migrationType String

Specifies migration type. Changing this parameter will create a new resource. The options are as follows:

  • FULL_TRANS: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database objects and data, in a non-system database, to a destination database at a time.
  • INCR_TRANS: Incremental migration. Suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.
  • FULL_INCR_TRANS: Full+Incremental migration. This allows to migrate data with minimal downtime. After a full migration initializes the destination database, an incremental migration parses logs to ensure data consistency between the source and destination databases.

The default value is FULL_INCR_TRANS.

multiWrite Boolean
Specifies whether to enable multi write. It is mandatory when type is cloudDataGuard. When the disaster recovery type is dual-active disaster recovery, set multi_write to true, otherwise to false. The default value is false. Changing this parameter will create a new resource.
name String
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
netType String

Specifies the network type. Changing this parameter will create a new resource. The options are as follows:

  • eip: suitable for migration from an on-premises or other cloud database to a destination cloud database. An EIP will be automatically bound to the replication instance and released after the replication task is complete.
  • vpc: suitable for migration from one cloud database to another.
  • vpn: suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.

The default value is eip.

privateIp String
Private IP.
publicIp String
Public IP.
region String
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
sourceDb Property Map
Specifies the source database configuration. The db_info object structure of the source_db is documented below. Changing this parameter will create a new resource.
startTime String
Specifies the time to start the job. The time format is yyyy-MM-dd HH:mm:ss. Start immediately by default. Changing this parameter will create a new resource.
status String
Status.
tags Map<String>
Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
timeouts Property Map
type String
Specifies the job type. Changing this parameter will create a new resource. The options are as follows:

  • migration: Online Migration.
  • sync: Data Synchronization.

Supporting Types

DrsJobDestinationDb
, DrsJobDestinationDbArgs

EngineType This property is required. string
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
Ip This property is required. string
Specifies the IP of database. Changing this parameter will create a new resource.
Password This property is required. string
Specifies the password of database. Changing this parameter will create a new resource.
Port This property is required. double
Specifies the port of database. Changing this parameter will create a new resource.
User This property is required. string
Specifies the user name of database. Changing this parameter will create a new resource.
InstanceId string
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
Name string
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
Region string
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
SslCertCheckSum string
Specifies the checksum of SSL certificate content. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
SslCertKey string
Specifies the SSL certificate content, encrypted with base64. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
SslCertName string
Specifies SSL certificate name. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
SslCertPassword string
Specifies SSL certificate password. It is mandatory when ssl_enabled is true and the certificate file suffix is .p12. Changing this parameter will create a new resource.
SslEnabled bool
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
SubnetId string
Specifies the ID of the VPC Subnet of database when it is a RDS database. It is mandatory when direction is down. Changing this parameter will create a new resource.
EngineType This property is required. string
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
Ip This property is required. string
Specifies the IP of database. Changing this parameter will create a new resource.
Password This property is required. string
Specifies the password of database. Changing this parameter will create a new resource.
Port This property is required. float64
Specifies the port of database. Changing this parameter will create a new resource.
User This property is required. string
Specifies the user name of database. Changing this parameter will create a new resource.
InstanceId string
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
Name string
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
Region string
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
SslCertCheckSum string
Specifies the checksum of SSL certificate content. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
SslCertKey string
Specifies the SSL certificate content, encrypted with base64. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
SslCertName string
Specifies SSL certificate name. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
SslCertPassword string
Specifies SSL certificate password. It is mandatory when ssl_enabled is true and the certificate file suffix is .p12. Changing this parameter will create a new resource.
SslEnabled bool
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
SubnetId string
Specifies the ID of the VPC Subnet of database when it is a RDS database. It is mandatory when direction is down. Changing this parameter will create a new resource.
engineType This property is required. String
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
ip This property is required. String
Specifies the IP of database. Changing this parameter will create a new resource.
password This property is required. String
Specifies the password of database. Changing this parameter will create a new resource.
port This property is required. Double
Specifies the port of database. Changing this parameter will create a new resource.
user This property is required. String
Specifies the user name of database. Changing this parameter will create a new resource.
instanceId String
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
name String
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
region String
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
sslCertCheckSum String
Specifies the checksum of SSL certificate content. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertKey String
Specifies the SSL certificate content, encrypted with base64. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertName String
Specifies SSL certificate name. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertPassword String
Specifies SSL certificate password. It is mandatory when ssl_enabled is true and the certificate file suffix is .p12. Changing this parameter will create a new resource.
sslEnabled Boolean
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
subnetId String
Specifies the ID of the VPC Subnet of database when it is a RDS database. It is mandatory when direction is down. Changing this parameter will create a new resource.
engineType This property is required. string
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
ip This property is required. string
Specifies the IP of database. Changing this parameter will create a new resource.
password This property is required. string
Specifies the password of database. Changing this parameter will create a new resource.
port This property is required. number
Specifies the port of database. Changing this parameter will create a new resource.
user This property is required. string
Specifies the user name of database. Changing this parameter will create a new resource.
instanceId string
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
name string
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
region string
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
sslCertCheckSum string
Specifies the checksum of SSL certificate content. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertKey string
Specifies the SSL certificate content, encrypted with base64. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertName string
Specifies SSL certificate name. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertPassword string
Specifies SSL certificate password. It is mandatory when ssl_enabled is true and the certificate file suffix is .p12. Changing this parameter will create a new resource.
sslEnabled boolean
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
subnetId string
Specifies the ID of the VPC Subnet of database when it is a RDS database. It is mandatory when direction is down. Changing this parameter will create a new resource.
engine_type This property is required. str
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
ip This property is required. str
Specifies the IP of database. Changing this parameter will create a new resource.
password This property is required. str
Specifies the password of database. Changing this parameter will create a new resource.
port This property is required. float
Specifies the port of database. Changing this parameter will create a new resource.
user This property is required. str
Specifies the user name of database. Changing this parameter will create a new resource.
instance_id str
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
name str
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
region str
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
ssl_cert_check_sum str
Specifies the checksum of SSL certificate content. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
ssl_cert_key str
Specifies the SSL certificate content, encrypted with base64. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
ssl_cert_name str
Specifies SSL certificate name. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
ssl_cert_password str
Specifies SSL certificate password. It is mandatory when ssl_enabled is true and the certificate file suffix is .p12. Changing this parameter will create a new resource.
ssl_enabled bool
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
subnet_id str
Specifies the ID of the VPC Subnet of database when it is a RDS database. It is mandatory when direction is down. Changing this parameter will create a new resource.
engineType This property is required. String
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
ip This property is required. String
Specifies the IP of database. Changing this parameter will create a new resource.
password This property is required. String
Specifies the password of database. Changing this parameter will create a new resource.
port This property is required. Number
Specifies the port of database. Changing this parameter will create a new resource.
user This property is required. String
Specifies the user name of database. Changing this parameter will create a new resource.
instanceId String
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
name String
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
region String
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
sslCertCheckSum String
Specifies the checksum of SSL certificate content. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertKey String
Specifies the SSL certificate content, encrypted with base64. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertName String
Specifies SSL certificate name. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertPassword String
Specifies SSL certificate password. It is mandatory when ssl_enabled is true and the certificate file suffix is .p12. Changing this parameter will create a new resource.
sslEnabled Boolean
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
subnetId String
Specifies the ID of the VPC Subnet of database when it is a RDS database. It is mandatory when direction is down. Changing this parameter will create a new resource.

DrsJobLimitSpeed
, DrsJobLimitSpeedArgs

EndTime This property is required. string
Specifies the time to end speed limit, this time is UTC time. The input must end at 59 minutes, the format is hh:mm, for example: 15:59. Changing this parameter will create a new resource.
Speed This property is required. string
Specifies the transmission speed, the value range is 1 to 9999, unit: MB/s. Changing this parameter will create a new resource.
StartTime This property is required. string
Specifies the time to start speed limit, this time is UTC time. The start time is the whole hour, if there is a minute, it will be ignored, the format is hh:mm, and the hour number is two digits, for example: 01:00. Changing this parameter will create a new resource.
EndTime This property is required. string
Specifies the time to end speed limit, this time is UTC time. The input must end at 59 minutes, the format is hh:mm, for example: 15:59. Changing this parameter will create a new resource.
Speed This property is required. string
Specifies the transmission speed, the value range is 1 to 9999, unit: MB/s. Changing this parameter will create a new resource.
StartTime This property is required. string
Specifies the time to start speed limit, this time is UTC time. The start time is the whole hour, if there is a minute, it will be ignored, the format is hh:mm, and the hour number is two digits, for example: 01:00. Changing this parameter will create a new resource.
endTime This property is required. String
Specifies the time to end speed limit, this time is UTC time. The input must end at 59 minutes, the format is hh:mm, for example: 15:59. Changing this parameter will create a new resource.
speed This property is required. String
Specifies the transmission speed, the value range is 1 to 9999, unit: MB/s. Changing this parameter will create a new resource.
startTime This property is required. String
Specifies the time to start speed limit, this time is UTC time. The start time is the whole hour, if there is a minute, it will be ignored, the format is hh:mm, and the hour number is two digits, for example: 01:00. Changing this parameter will create a new resource.
endTime This property is required. string
Specifies the time to end speed limit, this time is UTC time. The input must end at 59 minutes, the format is hh:mm, for example: 15:59. Changing this parameter will create a new resource.
speed This property is required. string
Specifies the transmission speed, the value range is 1 to 9999, unit: MB/s. Changing this parameter will create a new resource.
startTime This property is required. string
Specifies the time to start speed limit, this time is UTC time. The start time is the whole hour, if there is a minute, it will be ignored, the format is hh:mm, and the hour number is two digits, for example: 01:00. Changing this parameter will create a new resource.
end_time This property is required. str
Specifies the time to end speed limit, this time is UTC time. The input must end at 59 minutes, the format is hh:mm, for example: 15:59. Changing this parameter will create a new resource.
speed This property is required. str
Specifies the transmission speed, the value range is 1 to 9999, unit: MB/s. Changing this parameter will create a new resource.
start_time This property is required. str
Specifies the time to start speed limit, this time is UTC time. The start time is the whole hour, if there is a minute, it will be ignored, the format is hh:mm, and the hour number is two digits, for example: 01:00. Changing this parameter will create a new resource.
endTime This property is required. String
Specifies the time to end speed limit, this time is UTC time. The input must end at 59 minutes, the format is hh:mm, for example: 15:59. Changing this parameter will create a new resource.
speed This property is required. String
Specifies the transmission speed, the value range is 1 to 9999, unit: MB/s. Changing this parameter will create a new resource.
startTime This property is required. String
Specifies the time to start speed limit, this time is UTC time. The start time is the whole hour, if there is a minute, it will be ignored, the format is hh:mm, and the hour number is two digits, for example: 01:00. Changing this parameter will create a new resource.

DrsJobSourceDb
, DrsJobSourceDbArgs

EngineType This property is required. string
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
Ip This property is required. string
Specifies the IP of database. Changing this parameter will create a new resource.
Password This property is required. string
Specifies the password of database. Changing this parameter will create a new resource.
Port This property is required. double
Specifies the port of database. Changing this parameter will create a new resource.
User This property is required. string
Specifies the user name of database. Changing this parameter will create a new resource.
InstanceId string
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
Name string
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
Region string
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
SslCertCheckSum string
Specifies the checksum of SSL certificate content. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
SslCertKey string
Specifies the SSL certificate content, encrypted with base64. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
SslCertName string
Specifies SSL certificate name. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
SslCertPassword string
Specifies SSL certificate password. It is mandatory when ssl_enabled is true and the certificate file suffix is .p12. Changing this parameter will create a new resource.
SslEnabled bool
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
SubnetId string
Specifies the ID of the VPC Subnet of database when it is a RDS database. It is mandatory when direction is down. Changing this parameter will create a new resource.
EngineType This property is required. string
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
Ip This property is required. string
Specifies the IP of database. Changing this parameter will create a new resource.
Password This property is required. string
Specifies the password of database. Changing this parameter will create a new resource.
Port This property is required. float64
Specifies the port of database. Changing this parameter will create a new resource.
User This property is required. string
Specifies the user name of database. Changing this parameter will create a new resource.
InstanceId string
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
Name string
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
Region string
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
SslCertCheckSum string
Specifies the checksum of SSL certificate content. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
SslCertKey string
Specifies the SSL certificate content, encrypted with base64. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
SslCertName string
Specifies SSL certificate name. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
SslCertPassword string
Specifies SSL certificate password. It is mandatory when ssl_enabled is true and the certificate file suffix is .p12. Changing this parameter will create a new resource.
SslEnabled bool
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
SubnetId string
Specifies the ID of the VPC Subnet of database when it is a RDS database. It is mandatory when direction is down. Changing this parameter will create a new resource.
engineType This property is required. String
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
ip This property is required. String
Specifies the IP of database. Changing this parameter will create a new resource.
password This property is required. String
Specifies the password of database. Changing this parameter will create a new resource.
port This property is required. Double
Specifies the port of database. Changing this parameter will create a new resource.
user This property is required. String
Specifies the user name of database. Changing this parameter will create a new resource.
instanceId String
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
name String
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
region String
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
sslCertCheckSum String
Specifies the checksum of SSL certificate content. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertKey String
Specifies the SSL certificate content, encrypted with base64. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertName String
Specifies SSL certificate name. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertPassword String
Specifies SSL certificate password. It is mandatory when ssl_enabled is true and the certificate file suffix is .p12. Changing this parameter will create a new resource.
sslEnabled Boolean
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
subnetId String
Specifies the ID of the VPC Subnet of database when it is a RDS database. It is mandatory when direction is down. Changing this parameter will create a new resource.
engineType This property is required. string
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
ip This property is required. string
Specifies the IP of database. Changing this parameter will create a new resource.
password This property is required. string
Specifies the password of database. Changing this parameter will create a new resource.
port This property is required. number
Specifies the port of database. Changing this parameter will create a new resource.
user This property is required. string
Specifies the user name of database. Changing this parameter will create a new resource.
instanceId string
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
name string
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
region string
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
sslCertCheckSum string
Specifies the checksum of SSL certificate content. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertKey string
Specifies the SSL certificate content, encrypted with base64. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertName string
Specifies SSL certificate name. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertPassword string
Specifies SSL certificate password. It is mandatory when ssl_enabled is true and the certificate file suffix is .p12. Changing this parameter will create a new resource.
sslEnabled boolean
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
subnetId string
Specifies the ID of the VPC Subnet of database when it is a RDS database. It is mandatory when direction is down. Changing this parameter will create a new resource.
engine_type This property is required. str
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
ip This property is required. str
Specifies the IP of database. Changing this parameter will create a new resource.
password This property is required. str
Specifies the password of database. Changing this parameter will create a new resource.
port This property is required. float
Specifies the port of database. Changing this parameter will create a new resource.
user This property is required. str
Specifies the user name of database. Changing this parameter will create a new resource.
instance_id str
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
name str
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
region str
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
ssl_cert_check_sum str
Specifies the checksum of SSL certificate content. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
ssl_cert_key str
Specifies the SSL certificate content, encrypted with base64. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
ssl_cert_name str
Specifies SSL certificate name. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
ssl_cert_password str
Specifies SSL certificate password. It is mandatory when ssl_enabled is true and the certificate file suffix is .p12. Changing this parameter will create a new resource.
ssl_enabled bool
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
subnet_id str
Specifies the ID of the VPC Subnet of database when it is a RDS database. It is mandatory when direction is down. Changing this parameter will create a new resource.
engineType This property is required. String
Specifies the migration engine type. Changing this parameter will create a new resource. The options are as follows:

  • mysql: MySQL migration, MySQL synchronization use.
  • mongodb: Mongodb migration use.
  • cloudDataGuard-mysql: Disaster recovery use.
ip This property is required. String
Specifies the IP of database. Changing this parameter will create a new resource.
password This property is required. String
Specifies the password of database. Changing this parameter will create a new resource.
port This property is required. Number
Specifies the port of database. Changing this parameter will create a new resource.
user This property is required. String
Specifies the user name of database. Changing this parameter will create a new resource.
instanceId String
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
name String
Specifies the job name. The name consists of 4 to 50 characters, starting with a letter. Only letters, digits, underscores (_) and hyphens (-) are allowed.
region String
The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
sslCertCheckSum String
Specifies the checksum of SSL certificate content. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertKey String
Specifies the SSL certificate content, encrypted with base64. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertName String
Specifies SSL certificate name. It is mandatory when ssl_enabled is true. Changing this parameter will create a new resource.
sslCertPassword String
Specifies SSL certificate password. It is mandatory when ssl_enabled is true and the certificate file suffix is .p12. Changing this parameter will create a new resource.
sslEnabled Boolean
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
subnetId String
Specifies the ID of the VPC Subnet of database when it is a RDS database. It is mandatory when direction is down. Changing this parameter will create a new resource.

DrsJobTimeouts
, DrsJobTimeoutsArgs

Create string
Delete string
Create string
Delete string
create String
delete String
create string
delete string
create str
delete str
create String
delete String

Import

The DRS job can be imported by id. For example,

$ pulumi import flexibleengine:index/drsJob:DrsJob test b11b407c-e604-4e8d-8bc4-92398320b847
Copy

Note that the imported state may not be identical to your resource definition, due to some attributes missing from the

API response, security or some other reason. The missing attributes include: enterprise_project_id, tags,

force_destroy, source_db.0.password and destination_db.0.password.It is generally recommended running

pulumi preview after importing a job. You can then decide if changes should be applied to the job, or the resource

definition should be updated to align with the job. Also you can ignore changes as below.

hcl

resource “flexibleengine_drs_job” “test” {

...

lifecycle {

ignore_changes = [

  source_db.0.password,destination_db.0.password

]

}

}

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.