opentelekomcloud.DrsTaskV3
Explore with Pulumi AI
Up-to-date reference of API arguments for DRS task you can get at documentation portal
Manages DRS task resource within OpenTelekomCloud.
Example Usage
Create a DRS task to migrate data to the OpenTelekomCloud RDS database
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const fip1 = new opentelekomcloud.NetworkingFloatingipV2("fip1", {});
const fip2 = new opentelekomcloud.NetworkingFloatingipV2("fip2", {});
const mysql1 = new opentelekomcloud.RdsInstanceV3("mysql1", {});
const mysql2 = new opentelekomcloud.RdsInstanceV3("mysql2", {});
const test = new opentelekomcloud.DrsTaskV3("test", {
type: "migration",
engineType: "mysql",
direction: "down",
netType: "eip",
migrationType: "FULL_TRANS",
description: "TEST",
forceDestroy: true,
sourceDb: {
engineType: "mysql",
ip: fip1.address,
port: 3306,
user: "root",
password: "MySql_120521",
instanceId: mysql1.rdsInstanceV3Id,
subnetId: data.opentelekomcloud_vpc_subnet_v1.shared_subnet.id,
},
destinationDb: {
engineType: "mysql",
ip: fip2.address,
port: 3306,
user: "root",
password: "MySql_120521",
instanceId: mysql2.rdsInstanceV3Id,
subnetId: data.opentelekomcloud_vpc_subnet_v1.shared_subnet.id,
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
fip1 = opentelekomcloud.NetworkingFloatingipV2("fip1")
fip2 = opentelekomcloud.NetworkingFloatingipV2("fip2")
mysql1 = opentelekomcloud.RdsInstanceV3("mysql1")
mysql2 = opentelekomcloud.RdsInstanceV3("mysql2")
test = opentelekomcloud.DrsTaskV3("test",
type="migration",
engine_type="mysql",
direction="down",
net_type="eip",
migration_type="FULL_TRANS",
description="TEST",
force_destroy=True,
source_db={
"engine_type": "mysql",
"ip": fip1.address,
"port": 3306,
"user": "root",
"password": "MySql_120521",
"instance_id": mysql1.rds_instance_v3_id,
"subnet_id": data["opentelekomcloud_vpc_subnet_v1"]["shared_subnet"]["id"],
},
destination_db={
"engine_type": "mysql",
"ip": fip2.address,
"port": 3306,
"user": "root",
"password": "MySql_120521",
"instance_id": mysql2.rds_instance_v3_id,
"subnet_id": data["opentelekomcloud_vpc_subnet_v1"]["shared_subnet"]["id"],
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fip1, err := opentelekomcloud.NewNetworkingFloatingipV2(ctx, "fip1", nil)
if err != nil {
return err
}
fip2, err := opentelekomcloud.NewNetworkingFloatingipV2(ctx, "fip2", nil)
if err != nil {
return err
}
mysql1, err := opentelekomcloud.NewRdsInstanceV3(ctx, "mysql1", nil)
if err != nil {
return err
}
mysql2, err := opentelekomcloud.NewRdsInstanceV3(ctx, "mysql2", nil)
if err != nil {
return err
}
_, err = opentelekomcloud.NewDrsTaskV3(ctx, "test", &opentelekomcloud.DrsTaskV3Args{
Type: pulumi.String("migration"),
EngineType: pulumi.String("mysql"),
Direction: pulumi.String("down"),
NetType: pulumi.String("eip"),
MigrationType: pulumi.String("FULL_TRANS"),
Description: pulumi.String("TEST"),
ForceDestroy: pulumi.Bool(true),
SourceDb: &opentelekomcloud.DrsTaskV3SourceDbArgs{
EngineType: pulumi.String("mysql"),
Ip: fip1.Address,
Port: pulumi.Float64(3306),
User: pulumi.String("root"),
Password: pulumi.String("MySql_120521"),
InstanceId: mysql1.RdsInstanceV3Id,
SubnetId: pulumi.Any(data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Id),
},
DestinationDb: &opentelekomcloud.DrsTaskV3DestinationDbArgs{
EngineType: pulumi.String("mysql"),
Ip: fip2.Address,
Port: pulumi.Float64(3306),
User: pulumi.String("root"),
Password: pulumi.String("MySql_120521"),
InstanceId: mysql2.RdsInstanceV3Id,
SubnetId: pulumi.Any(data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Id),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var fip1 = new Opentelekomcloud.NetworkingFloatingipV2("fip1");
var fip2 = new Opentelekomcloud.NetworkingFloatingipV2("fip2");
var mysql1 = new Opentelekomcloud.RdsInstanceV3("mysql1");
var mysql2 = new Opentelekomcloud.RdsInstanceV3("mysql2");
var test = new Opentelekomcloud.DrsTaskV3("test", new()
{
Type = "migration",
EngineType = "mysql",
Direction = "down",
NetType = "eip",
MigrationType = "FULL_TRANS",
Description = "TEST",
ForceDestroy = true,
SourceDb = new Opentelekomcloud.Inputs.DrsTaskV3SourceDbArgs
{
EngineType = "mysql",
Ip = fip1.Address,
Port = 3306,
User = "root",
Password = "MySql_120521",
InstanceId = mysql1.RdsInstanceV3Id,
SubnetId = data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Id,
},
DestinationDb = new Opentelekomcloud.Inputs.DrsTaskV3DestinationDbArgs
{
EngineType = "mysql",
Ip = fip2.Address,
Port = 3306,
User = "root",
Password = "MySql_120521",
InstanceId = mysql2.RdsInstanceV3Id,
SubnetId = data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.NetworkingFloatingipV2;
import com.pulumi.opentelekomcloud.RdsInstanceV3;
import com.pulumi.opentelekomcloud.DrsTaskV3;
import com.pulumi.opentelekomcloud.DrsTaskV3Args;
import com.pulumi.opentelekomcloud.inputs.DrsTaskV3SourceDbArgs;
import com.pulumi.opentelekomcloud.inputs.DrsTaskV3DestinationDbArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var fip1 = new NetworkingFloatingipV2("fip1");
var fip2 = new NetworkingFloatingipV2("fip2");
var mysql1 = new RdsInstanceV3("mysql1");
var mysql2 = new RdsInstanceV3("mysql2");
var test = new DrsTaskV3("test", DrsTaskV3Args.builder()
.type("migration")
.engineType("mysql")
.direction("down")
.netType("eip")
.migrationType("FULL_TRANS")
.description("TEST")
.forceDestroy("true")
.sourceDb(DrsTaskV3SourceDbArgs.builder()
.engineType("mysql")
.ip(fip1.address())
.port("3306")
.user("root")
.password("MySql_120521")
.instanceId(mysql1.rdsInstanceV3Id())
.subnetId(data.opentelekomcloud_vpc_subnet_v1().shared_subnet().id())
.build())
.destinationDb(DrsTaskV3DestinationDbArgs.builder()
.engineType("mysql")
.ip(fip2.address())
.port(3306)
.user("root")
.password("MySql_120521")
.instanceId(mysql2.rdsInstanceV3Id())
.subnetId(data.opentelekomcloud_vpc_subnet_v1().shared_subnet().id())
.build())
.build());
}
}
resources:
fip1:
type: opentelekomcloud:NetworkingFloatingipV2
fip2:
type: opentelekomcloud:NetworkingFloatingipV2
mysql1:
type: opentelekomcloud:RdsInstanceV3
mysql2:
type: opentelekomcloud:RdsInstanceV3
test:
type: opentelekomcloud:DrsTaskV3
properties:
type: migration
engineType: mysql
direction: down
netType: eip
migrationType: FULL_TRANS
description: TEST
forceDestroy: 'true'
sourceDb:
engineType: mysql
ip: ${fip1.address}
port: '3306'
user: root
password: MySql_120521
instanceId: ${mysql1.rdsInstanceV3Id}
subnetId: ${data.opentelekomcloud_vpc_subnet_v1.shared_subnet.id}
destinationDb:
engineType: mysql
ip: ${fip2.address}
port: 3306
user: root
password: MySql_120521
instanceId: ${mysql2.rdsInstanceV3Id}
subnetId: ${data.opentelekomcloud_vpc_subnet_v1.shared_subnet.id}
Create DrsTaskV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DrsTaskV3(name: string, args: DrsTaskV3Args, opts?: CustomResourceOptions);
@overload
def DrsTaskV3(resource_name: str,
args: DrsTaskV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def DrsTaskV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
source_db: Optional[DrsTaskV3SourceDbArgs] = None,
destination_db: Optional[DrsTaskV3DestinationDbArgs] = None,
type: Optional[str] = None,
direction: Optional[str] = None,
engine_type: Optional[str] = None,
net_type: Optional[str] = None,
description: Optional[str] = None,
force_destroy: Optional[bool] = None,
migrate_definer: Optional[bool] = None,
limit_speeds: Optional[Sequence[DrsTaskV3LimitSpeedArgs]] = None,
drs_task_v3_id: Optional[str] = None,
expired_days: Optional[float] = None,
multi_write: Optional[bool] = None,
name: Optional[str] = None,
node_num: Optional[float] = None,
migration_type: Optional[str] = None,
start_time: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DrsTaskV3TimeoutsArgs] = None,
destination_db_readonly: Optional[bool] = None)
func NewDrsTaskV3(ctx *Context, name string, args DrsTaskV3Args, opts ...ResourceOption) (*DrsTaskV3, error)
public DrsTaskV3(string name, DrsTaskV3Args args, CustomResourceOptions? opts = null)
public DrsTaskV3(String name, DrsTaskV3Args args)
public DrsTaskV3(String name, DrsTaskV3Args args, CustomResourceOptions options)
type: opentelekomcloud:DrsTaskV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DrsTaskV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DrsTaskV3Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DrsTaskV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DrsTaskV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DrsTaskV3Args
- 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 drsTaskV3Resource = new Opentelekomcloud.DrsTaskV3("drsTaskV3Resource", new()
{
SourceDb = new Opentelekomcloud.Inputs.DrsTaskV3SourceDbArgs
{
Port = 0,
User = "string",
Ip = "string",
EngineType = "string",
Password = "string",
PrivateIp = "string",
Name = "string",
Region = "string",
SslCertCheckSum = "string",
SslCertKey = "string",
SslCertName = "string",
SslCertPassword = "string",
SslEnabled = false,
SubnetId = "string",
InstanceId = "string",
},
DestinationDb = new Opentelekomcloud.Inputs.DrsTaskV3DestinationDbArgs
{
Port = 0,
User = "string",
Ip = "string",
EngineType = "string",
Password = "string",
PrivateIp = "string",
Name = "string",
Region = "string",
SslCertCheckSum = "string",
SslCertKey = "string",
SslCertName = "string",
SslCertPassword = "string",
SslEnabled = false,
SubnetId = "string",
InstanceId = "string",
},
Type = "string",
Direction = "string",
EngineType = "string",
NetType = "string",
Description = "string",
ForceDestroy = false,
MigrateDefiner = false,
LimitSpeeds = new[]
{
new Opentelekomcloud.Inputs.DrsTaskV3LimitSpeedArgs
{
EndTime = "string",
Speed = "string",
StartTime = "string",
},
},
DrsTaskV3Id = "string",
ExpiredDays = 0,
MultiWrite = false,
Name = "string",
NodeNum = 0,
MigrationType = "string",
StartTime = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Opentelekomcloud.Inputs.DrsTaskV3TimeoutsArgs
{
Create = "string",
Delete = "string",
},
DestinationDbReadonly = false,
});
example, err := opentelekomcloud.NewDrsTaskV3(ctx, "drsTaskV3Resource", &opentelekomcloud.DrsTaskV3Args{
SourceDb: &opentelekomcloud.DrsTaskV3SourceDbArgs{
Port: pulumi.Float64(0),
User: pulumi.String("string"),
Ip: pulumi.String("string"),
EngineType: pulumi.String("string"),
Password: pulumi.String("string"),
PrivateIp: pulumi.String("string"),
Name: pulumi.String("string"),
Region: 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"),
},
DestinationDb: &opentelekomcloud.DrsTaskV3DestinationDbArgs{
Port: pulumi.Float64(0),
User: pulumi.String("string"),
Ip: pulumi.String("string"),
EngineType: pulumi.String("string"),
Password: pulumi.String("string"),
PrivateIp: pulumi.String("string"),
Name: pulumi.String("string"),
Region: 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"),
EngineType: pulumi.String("string"),
NetType: pulumi.String("string"),
Description: pulumi.String("string"),
ForceDestroy: pulumi.Bool(false),
MigrateDefiner: pulumi.Bool(false),
LimitSpeeds: opentelekomcloud.DrsTaskV3LimitSpeedArray{
&opentelekomcloud.DrsTaskV3LimitSpeedArgs{
EndTime: pulumi.String("string"),
Speed: pulumi.String("string"),
StartTime: pulumi.String("string"),
},
},
DrsTaskV3Id: pulumi.String("string"),
ExpiredDays: pulumi.Float64(0),
MultiWrite: pulumi.Bool(false),
Name: pulumi.String("string"),
NodeNum: pulumi.Float64(0),
MigrationType: pulumi.String("string"),
StartTime: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &opentelekomcloud.DrsTaskV3TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
DestinationDbReadonly: pulumi.Bool(false),
})
var drsTaskV3Resource = new DrsTaskV3("drsTaskV3Resource", DrsTaskV3Args.builder()
.sourceDb(DrsTaskV3SourceDbArgs.builder()
.port(0)
.user("string")
.ip("string")
.engineType("string")
.password("string")
.privateIp("string")
.name("string")
.region("string")
.sslCertCheckSum("string")
.sslCertKey("string")
.sslCertName("string")
.sslCertPassword("string")
.sslEnabled(false)
.subnetId("string")
.instanceId("string")
.build())
.destinationDb(DrsTaskV3DestinationDbArgs.builder()
.port(0)
.user("string")
.ip("string")
.engineType("string")
.password("string")
.privateIp("string")
.name("string")
.region("string")
.sslCertCheckSum("string")
.sslCertKey("string")
.sslCertName("string")
.sslCertPassword("string")
.sslEnabled(false)
.subnetId("string")
.instanceId("string")
.build())
.type("string")
.direction("string")
.engineType("string")
.netType("string")
.description("string")
.forceDestroy(false)
.migrateDefiner(false)
.limitSpeeds(DrsTaskV3LimitSpeedArgs.builder()
.endTime("string")
.speed("string")
.startTime("string")
.build())
.drsTaskV3Id("string")
.expiredDays(0)
.multiWrite(false)
.name("string")
.nodeNum(0)
.migrationType("string")
.startTime("string")
.tags(Map.of("string", "string"))
.timeouts(DrsTaskV3TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.destinationDbReadonly(false)
.build());
drs_task_v3_resource = opentelekomcloud.DrsTaskV3("drsTaskV3Resource",
source_db={
"port": 0,
"user": "string",
"ip": "string",
"engine_type": "string",
"password": "string",
"private_ip": "string",
"name": "string",
"region": "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",
},
destination_db={
"port": 0,
"user": "string",
"ip": "string",
"engine_type": "string",
"password": "string",
"private_ip": "string",
"name": "string",
"region": "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",
engine_type="string",
net_type="string",
description="string",
force_destroy=False,
migrate_definer=False,
limit_speeds=[{
"end_time": "string",
"speed": "string",
"start_time": "string",
}],
drs_task_v3_id="string",
expired_days=0,
multi_write=False,
name="string",
node_num=0,
migration_type="string",
start_time="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
},
destination_db_readonly=False)
const drsTaskV3Resource = new opentelekomcloud.DrsTaskV3("drsTaskV3Resource", {
sourceDb: {
port: 0,
user: "string",
ip: "string",
engineType: "string",
password: "string",
privateIp: "string",
name: "string",
region: "string",
sslCertCheckSum: "string",
sslCertKey: "string",
sslCertName: "string",
sslCertPassword: "string",
sslEnabled: false,
subnetId: "string",
instanceId: "string",
},
destinationDb: {
port: 0,
user: "string",
ip: "string",
engineType: "string",
password: "string",
privateIp: "string",
name: "string",
region: "string",
sslCertCheckSum: "string",
sslCertKey: "string",
sslCertName: "string",
sslCertPassword: "string",
sslEnabled: false,
subnetId: "string",
instanceId: "string",
},
type: "string",
direction: "string",
engineType: "string",
netType: "string",
description: "string",
forceDestroy: false,
migrateDefiner: false,
limitSpeeds: [{
endTime: "string",
speed: "string",
startTime: "string",
}],
drsTaskV3Id: "string",
expiredDays: 0,
multiWrite: false,
name: "string",
nodeNum: 0,
migrationType: "string",
startTime: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
destinationDbReadonly: false,
});
type: opentelekomcloud:DrsTaskV3
properties:
description: string
destinationDb:
engineType: string
instanceId: string
ip: string
name: string
password: string
port: 0
privateIp: string
region: string
sslCertCheckSum: string
sslCertKey: string
sslCertName: string
sslCertPassword: string
sslEnabled: false
subnetId: string
user: string
destinationDbReadonly: false
direction: string
drsTaskV3Id: string
engineType: string
expiredDays: 0
forceDestroy: false
limitSpeeds:
- endTime: string
speed: string
startTime: string
migrateDefiner: false
migrationType: string
multiWrite: false
name: string
netType: string
nodeNum: 0
sourceDb:
engineType: string
instanceId: string
ip: string
name: string
password: string
port: 0
privateIp: string
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
DrsTaskV3 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 DrsTaskV3 resource accepts the following input properties:
- Destination
Db DrsTask V3Destination Db - Specifies the destination database configuration.
The
db_info
object structure of thedestination_db
is documented below. 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.
- Engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- Source
Db DrsTask V3Source Db - Specifies the source database configuration.
The
db_info
object structure of thesource_db
is documented below. Changing this parameter will create a new resource. - 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.
- cloudDataGuard: Disaster Recovery.
- Description string
- Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
- Destination
Db boolReadonly - 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
Task stringV3Id - The resource ID in UUID format.
- Expired
Days 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. - Force
Destroy bool - Specifies whether to forcibly destroy the job even if it is running.
The default value is
false
. - Limit
Speeds List<DrsTask V3Limit Speed> - 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
ofdestination_db
. The default value istrue
. Changing this parameter will create a new resource. - Migration
Type 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
.- Multi
Write bool - Specifies whether to enable multi write. It is mandatory when
type
iscloudDataGuard
. When the disaster recovery type is dual-active disaster recovery, setmulti_write
totrue
, otherwise tofalse
. The default value isfalse
. 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.
- Net
Type 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
.- Node
Num double - Start
Time 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. - Dictionary<string, string>
- Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
- Timeouts
Drs
Task V3Timeouts
- Destination
Db DrsTask V3Destination Db Args - Specifies the destination database configuration.
The
db_info
object structure of thedestination_db
is documented below. 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.
- Engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- Source
Db DrsTask V3Source Db Args - Specifies the source database configuration.
The
db_info
object structure of thesource_db
is documented below. Changing this parameter will create a new resource. - 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.
- cloudDataGuard: Disaster Recovery.
- Description string
- Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
- Destination
Db boolReadonly - 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
Task stringV3Id - The resource ID in UUID format.
- Expired
Days 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. - Force
Destroy bool - Specifies whether to forcibly destroy the job even if it is running.
The default value is
false
. - Limit
Speeds []DrsTask V3Limit Speed Args - 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
ofdestination_db
. The default value istrue
. Changing this parameter will create a new resource. - Migration
Type 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
.- Multi
Write bool - Specifies whether to enable multi write. It is mandatory when
type
iscloudDataGuard
. When the disaster recovery type is dual-active disaster recovery, setmulti_write
totrue
, otherwise tofalse
. The default value isfalse
. 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.
- Net
Type 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
.- Node
Num float64 - Start
Time 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. - map[string]string
- Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
- Timeouts
Drs
Task V3Timeouts Args
- destination
Db DrsTask V3Destination Db - Specifies the destination database configuration.
The
db_info
object structure of thedestination_db
is documented below. 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.
- engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- source
Db DrsTask V3Source Db - Specifies the source database configuration.
The
db_info
object structure of thesource_db
is documented below. Changing this parameter will create a new resource. - 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.
- cloudDataGuard: Disaster Recovery.
- description String
- Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
- destination
Db BooleanReadonly - 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
Task StringV3Id - The resource ID in UUID format.
- expired
Days 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. - force
Destroy Boolean - Specifies whether to forcibly destroy the job even if it is running.
The default value is
false
. - limit
Speeds List<DrsTask V3Limit Speed> - 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 Boolean - Specifies whether to migrate the definers of all source database
objects to the
user
ofdestination_db
. The default value istrue
. Changing this parameter will create a new resource. - migration
Type 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
.- multi
Write Boolean - Specifies whether to enable multi write. It is mandatory when
type
iscloudDataGuard
. When the disaster recovery type is dual-active disaster recovery, setmulti_write
totrue
, otherwise tofalse
. The default value isfalse
. 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.
- net
Type 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
.- node
Num Double - start
Time 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. - Map<String,String>
- Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
- timeouts
Drs
Task V3Timeouts
- destination
Db DrsTask V3Destination Db - Specifies the destination database configuration.
The
db_info
object structure of thedestination_db
is documented below. 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.
- engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- source
Db DrsTask V3Source Db - Specifies the source database configuration.
The
db_info
object structure of thesource_db
is documented below. Changing this parameter will create a new resource. - 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.
- cloudDataGuard: Disaster Recovery.
- description string
- Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
- destination
Db booleanReadonly - 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
Task stringV3Id - The resource ID in UUID format.
- expired
Days 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. - force
Destroy boolean - Specifies whether to forcibly destroy the job even if it is running.
The default value is
false
. - limit
Speeds DrsTask V3Limit Speed[] - 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 boolean - Specifies whether to migrate the definers of all source database
objects to the
user
ofdestination_db
. The default value istrue
. Changing this parameter will create a new resource. - migration
Type 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
.- multi
Write boolean - Specifies whether to enable multi write. It is mandatory when
type
iscloudDataGuard
. When the disaster recovery type is dual-active disaster recovery, setmulti_write
totrue
, otherwise tofalse
. The default value isfalse
. 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.
- net
Type 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
.- node
Num number - start
Time 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. - {[key: string]: string}
- Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
- timeouts
Drs
Task V3Timeouts
- destination_
db DrsTask V3Destination Db Args - Specifies the destination database configuration.
The
db_info
object structure of thedestination_db
is documented below. 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.
- 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- source_
db DrsTask V3Source Db Args - Specifies the source database configuration.
The
db_info
object structure of thesource_db
is documented below. Changing this parameter will create a new resource. - 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.
- cloudDataGuard: Disaster Recovery.
- 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_ boolreadonly - 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_
task_ strv3_ id - The resource ID in UUID format.
- 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[DrsTask V3Limit Speed Args] - 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
ofdestination_db
. The default value istrue
. 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
iscloudDataGuard
. When the disaster recovery type is dual-active disaster recovery, setmulti_write
totrue
, otherwise tofalse
. The default value isfalse
. 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
.- node_
num float - 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. - Mapping[str, str]
- Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
- timeouts
Drs
Task V3Timeouts Args
- destination
Db Property Map - Specifies the destination database configuration.
The
db_info
object structure of thedestination_db
is documented below. 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.
- engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- source
Db Property Map - Specifies the source database configuration.
The
db_info
object structure of thesource_db
is documented below. Changing this parameter will create a new resource. - 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.
- cloudDataGuard: Disaster Recovery.
- description String
- Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
- destination
Db BooleanReadonly - 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
Task StringV3Id - The resource ID in UUID format.
- expired
Days 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. - force
Destroy Boolean - Specifies whether to forcibly destroy the job even if it is running.
The default value is
false
. - limit
Speeds 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.
- migrate
Definer Boolean - Specifies whether to migrate the definers of all source database
objects to the
user
ofdestination_db
. The default value istrue
. Changing this parameter will create a new resource. - migration
Type 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
.- multi
Write Boolean - Specifies whether to enable multi write. It is mandatory when
type
iscloudDataGuard
. When the disaster recovery type is dual-active disaster recovery, setmulti_write
totrue
, otherwise tofalse
. The default value isfalse
. 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.
- net
Type 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
.- node
Num Number - start
Time 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. - 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 DrsTaskV3 resource produces the following output properties:
- 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.
- region str
- The region in which to create the resource.
- status str
- Status.
Look up Existing DrsTaskV3 Resource
Get an existing DrsTaskV3 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?: DrsTaskV3State, opts?: CustomResourceOptions): DrsTaskV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
destination_db: Optional[DrsTaskV3DestinationDbArgs] = None,
destination_db_readonly: Optional[bool] = None,
direction: Optional[str] = None,
drs_task_v3_id: Optional[str] = None,
engine_type: Optional[str] = None,
expired_days: Optional[float] = None,
force_destroy: Optional[bool] = None,
limit_speeds: Optional[Sequence[DrsTaskV3LimitSpeedArgs]] = 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,
node_num: Optional[float] = None,
private_ip: Optional[str] = None,
public_ip: Optional[str] = None,
region: Optional[str] = None,
source_db: Optional[DrsTaskV3SourceDbArgs] = None,
start_time: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DrsTaskV3TimeoutsArgs] = None,
type: Optional[str] = None) -> DrsTaskV3
func GetDrsTaskV3(ctx *Context, name string, id IDInput, state *DrsTaskV3State, opts ...ResourceOption) (*DrsTaskV3, error)
public static DrsTaskV3 Get(string name, Input<string> id, DrsTaskV3State? state, CustomResourceOptions? opts = null)
public static DrsTaskV3 get(String name, Output<String> id, DrsTaskV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:DrsTaskV3 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Created
At 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.
- Destination
Db DrsTask V3Destination Db - Specifies the destination database configuration.
The
db_info
object structure of thedestination_db
is documented below. Changing this parameter will create a new resource. - Destination
Db boolReadonly - 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.
- Drs
Task stringV3Id - The resource ID in UUID format.
- Engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- Expired
Days 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. - Force
Destroy bool - Specifies whether to forcibly destroy the job even if it is running.
The default value is
false
. - Limit
Speeds List<DrsTask V3Limit Speed> - 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
ofdestination_db
. The default value istrue
. Changing this parameter will create a new resource. - Migration
Type 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
.- Multi
Write bool - Specifies whether to enable multi write. It is mandatory when
type
iscloudDataGuard
. When the disaster recovery type is dual-active disaster recovery, setmulti_write
totrue
, otherwise tofalse
. The default value isfalse
. 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.
- Net
Type 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
.- Node
Num double - Private
Ip string - Private IP.
- Public
Ip string - Public IP.
- Region string
- The region in which to create the resource.
- Source
Db DrsTask V3Source Db - Specifies the source database configuration.
The
db_info
object structure of thesource_db
is documented below. Changing this parameter will create a new resource. - Start
Time 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.
- Dictionary<string, string>
- Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
- Timeouts
Drs
Task V3Timeouts - 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.
- cloudDataGuard: Disaster Recovery.
- Created
At 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.
- Destination
Db DrsTask V3Destination Db Args - Specifies the destination database configuration.
The
db_info
object structure of thedestination_db
is documented below. Changing this parameter will create a new resource. - Destination
Db boolReadonly - 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.
- Drs
Task stringV3Id - The resource ID in UUID format.
- Engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- Expired
Days 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. - Force
Destroy bool - Specifies whether to forcibly destroy the job even if it is running.
The default value is
false
. - Limit
Speeds []DrsTask V3Limit Speed Args - 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
ofdestination_db
. The default value istrue
. Changing this parameter will create a new resource. - Migration
Type 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
.- Multi
Write bool - Specifies whether to enable multi write. It is mandatory when
type
iscloudDataGuard
. When the disaster recovery type is dual-active disaster recovery, setmulti_write
totrue
, otherwise tofalse
. The default value isfalse
. 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.
- Net
Type 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
.- Node
Num float64 - Private
Ip string - Private IP.
- Public
Ip string - Public IP.
- Region string
- The region in which to create the resource.
- Source
Db DrsTask V3Source Db Args - Specifies the source database configuration.
The
db_info
object structure of thesource_db
is documented below. Changing this parameter will create a new resource. - Start
Time 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.
- map[string]string
- Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
- Timeouts
Drs
Task V3Timeouts Args - 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.
- cloudDataGuard: Disaster Recovery.
- created
At 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.
- destination
Db DrsTask V3Destination Db - Specifies the destination database configuration.
The
db_info
object structure of thedestination_db
is documented below. Changing this parameter will create a new resource. - destination
Db BooleanReadonly - 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.
- drs
Task StringV3Id - The resource ID in UUID format.
- engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- expired
Days 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. - force
Destroy Boolean - Specifies whether to forcibly destroy the job even if it is running.
The default value is
false
. - limit
Speeds List<DrsTask V3Limit Speed> - 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 Boolean - Specifies whether to migrate the definers of all source database
objects to the
user
ofdestination_db
. The default value istrue
. Changing this parameter will create a new resource. - migration
Type 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
.- multi
Write Boolean - Specifies whether to enable multi write. It is mandatory when
type
iscloudDataGuard
. When the disaster recovery type is dual-active disaster recovery, setmulti_write
totrue
, otherwise tofalse
. The default value isfalse
. 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.
- net
Type 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
.- node
Num Double - private
Ip String - Private IP.
- public
Ip String - Public IP.
- region String
- The region in which to create the resource.
- source
Db DrsTask V3Source Db - Specifies the source database configuration.
The
db_info
object structure of thesource_db
is documented below. Changing this parameter will create a new resource. - start
Time 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.
- Map<String,String>
- Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
- timeouts
Drs
Task V3Timeouts - 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.
- cloudDataGuard: Disaster Recovery.
- created
At 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.
- destination
Db DrsTask V3Destination Db - Specifies the destination database configuration.
The
db_info
object structure of thedestination_db
is documented below. Changing this parameter will create a new resource. - destination
Db booleanReadonly - 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.
- drs
Task stringV3Id - The resource ID in UUID format.
- engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- expired
Days 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. - force
Destroy boolean - Specifies whether to forcibly destroy the job even if it is running.
The default value is
false
. - limit
Speeds DrsTask V3Limit Speed[] - 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 boolean - Specifies whether to migrate the definers of all source database
objects to the
user
ofdestination_db
. The default value istrue
. Changing this parameter will create a new resource. - migration
Type 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
.- multi
Write boolean - Specifies whether to enable multi write. It is mandatory when
type
iscloudDataGuard
. When the disaster recovery type is dual-active disaster recovery, setmulti_write
totrue
, otherwise tofalse
. The default value isfalse
. 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.
- net
Type 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
.- node
Num number - private
Ip string - Private IP.
- public
Ip string - Public IP.
- region string
- The region in which to create the resource.
- source
Db DrsTask V3Source Db - Specifies the source database configuration.
The
db_info
object structure of thesource_db
is documented below. Changing this parameter will create a new resource. - start
Time 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.
- {[key: string]: string}
- Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
- timeouts
Drs
Task V3Timeouts - 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.
- cloudDataGuard: Disaster Recovery.
- 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 DrsTask V3Destination Db Args - Specifies the destination database configuration.
The
db_info
object structure of thedestination_db
is documented below. Changing this parameter will create a new resource. - destination_
db_ boolreadonly - 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_
task_ strv3_ id - 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- 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[DrsTask V3Limit Speed Args] - 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
ofdestination_db
. The default value istrue
. 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
iscloudDataGuard
. When the disaster recovery type is dual-active disaster recovery, setmulti_write
totrue
, otherwise tofalse
. The default value isfalse
. 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
.- node_
num float - private_
ip str - Private IP.
- public_
ip str - Public IP.
- region str
- The region in which to create the resource.
- source_
db DrsTask V3Source Db Args - Specifies the source database configuration.
The
db_info
object structure of thesource_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.
- Mapping[str, str]
- Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
- timeouts
Drs
Task V3Timeouts Args - 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.
- cloudDataGuard: Disaster Recovery.
- created
At 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.
- destination
Db Property Map - Specifies the destination database configuration.
The
db_info
object structure of thedestination_db
is documented below. Changing this parameter will create a new resource. - destination
Db BooleanReadonly - 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.
- drs
Task StringV3Id - The resource ID in UUID format.
- engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- expired
Days 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. - force
Destroy Boolean - Specifies whether to forcibly destroy the job even if it is running.
The default value is
false
. - limit
Speeds 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.
- migrate
Definer Boolean - Specifies whether to migrate the definers of all source database
objects to the
user
ofdestination_db
. The default value istrue
. Changing this parameter will create a new resource. - migration
Type 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
.- multi
Write Boolean - Specifies whether to enable multi write. It is mandatory when
type
iscloudDataGuard
. When the disaster recovery type is dual-active disaster recovery, setmulti_write
totrue
, otherwise tofalse
. The default value isfalse
. 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.
- net
Type 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
.- node
Num Number - private
Ip String - Private IP.
- public
Ip String - Public IP.
- region String
- The region in which to create the resource.
- source
Db Property Map - Specifies the source database configuration.
The
db_info
object structure of thesource_db
is documented below. Changing this parameter will create a new resource. - start
Time 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.
- 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.
- cloudDataGuard: Disaster Recovery.
Supporting Types
DrsTaskV3DestinationDb, DrsTaskV3DestinationDbArgs
- Engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- Ip string
- Specifies the IP of database. Changing this parameter will create a new resource.
- Password string
- Specifies the password of database. Changing this parameter will create a new resource.
- Port double
- Specifies the port of database. Changing this parameter will create a new resource.
- User string
- Specifies the user name of database. Changing this parameter will create a new resource.
- Instance
Id 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.
- Private
Ip string - Private IP.
- Region string
- The region in which to create the resource.
- Ssl
Cert stringCheck Sum - Specifies the checksum of SSL certificate content.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - Ssl
Cert stringKey - Specifies the SSL certificate content, encrypted with base64.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - Ssl
Cert stringName - Specifies SSL certificate name.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - Ssl
Cert stringPassword - Specifies SSL certificate password. It is mandatory when
ssl_enabled
istrue
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 string - Specifies subnet ID of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
- Engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- Ip string
- Specifies the IP of database. Changing this parameter will create a new resource.
- Password string
- Specifies the password of database. Changing this parameter will create a new resource.
- Port float64
- Specifies the port of database. Changing this parameter will create a new resource.
- User string
- Specifies the user name of database. Changing this parameter will create a new resource.
- Instance
Id 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.
- Private
Ip string - Private IP.
- Region string
- The region in which to create the resource.
- Ssl
Cert stringCheck Sum - Specifies the checksum of SSL certificate content.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - Ssl
Cert stringKey - Specifies the SSL certificate content, encrypted with base64.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - Ssl
Cert stringName - Specifies SSL certificate name.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - Ssl
Cert stringPassword - Specifies SSL certificate password. It is mandatory when
ssl_enabled
istrue
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 string - Specifies subnet ID of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
- engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- ip String
- Specifies the IP of database. Changing this parameter will create a new resource.
- password String
- Specifies the password of database. Changing this parameter will create a new resource.
- port Double
- Specifies the port of database. Changing this parameter will create a new resource.
- user String
- Specifies the user name of database. Changing this parameter will create a new resource.
- instance
Id 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.
- private
Ip String - Private IP.
- region String
- The region in which to create the resource.
- ssl
Cert StringCheck Sum - Specifies the checksum of SSL certificate content.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert StringKey - Specifies the SSL certificate content, encrypted with base64.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert StringName - Specifies SSL certificate name.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert StringPassword - Specifies SSL certificate password. It is mandatory when
ssl_enabled
istrue
and the certificate file suffix is.p12
. Changing this parameter will create a new resource. - ssl
Enabled Boolean - Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
- subnet
Id String - Specifies subnet ID of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
- engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- ip string
- Specifies the IP of database. Changing this parameter will create a new resource.
- password string
- Specifies the password of database. Changing this parameter will create a new resource.
- port number
- Specifies the port of database. Changing this parameter will create a new resource.
- user string
- Specifies the user name of database. Changing this parameter will create a new resource.
- instance
Id 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.
- private
Ip string - Private IP.
- region string
- The region in which to create the resource.
- ssl
Cert stringCheck Sum - Specifies the checksum of SSL certificate content.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert stringKey - Specifies the SSL certificate content, encrypted with base64.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert stringName - Specifies SSL certificate name.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert stringPassword - Specifies SSL certificate password. It is mandatory when
ssl_enabled
istrue
and the certificate file suffix is.p12
. Changing this parameter will create a new resource. - ssl
Enabled boolean - Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
- subnet
Id string - Specifies subnet ID of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
- 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- ip str
- Specifies the IP of database. Changing this parameter will create a new resource.
- password str
- Specifies the password of database. Changing this parameter will create a new resource.
- port float
- Specifies the port of database. Changing this parameter will create a new resource.
- user 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.
- private_
ip str - Private IP.
- region str
- The region in which to create the resource.
- ssl_
cert_ strcheck_ sum - Specifies the checksum of SSL certificate content.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl_
cert_ strkey - Specifies the SSL certificate content, encrypted with base64.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl_
cert_ strname - Specifies SSL certificate name.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl_
cert_ strpassword - Specifies SSL certificate password. It is mandatory when
ssl_enabled
istrue
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 subnet ID of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
- engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- ip String
- Specifies the IP of database. Changing this parameter will create a new resource.
- password String
- Specifies the password of database. Changing this parameter will create a new resource.
- port Number
- Specifies the port of database. Changing this parameter will create a new resource.
- user String
- Specifies the user name of database. Changing this parameter will create a new resource.
- instance
Id 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.
- private
Ip String - Private IP.
- region String
- The region in which to create the resource.
- ssl
Cert StringCheck Sum - Specifies the checksum of SSL certificate content.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert StringKey - Specifies the SSL certificate content, encrypted with base64.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert StringName - Specifies SSL certificate name.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert StringPassword - Specifies SSL certificate password. It is mandatory when
ssl_enabled
istrue
and the certificate file suffix is.p12
. Changing this parameter will create a new resource. - ssl
Enabled Boolean - Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
- subnet
Id String - Specifies subnet ID of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
DrsTaskV3LimitSpeed, DrsTaskV3LimitSpeedArgs
- End
Time 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 string
- Specifies the transmission speed, the value range is 1 to 9999, unit:
MB/s
. Changing this parameter will create a new resource. - Start
Time 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 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 string
- Specifies the transmission speed, the value range is 1 to 9999, unit:
MB/s
. Changing this parameter will create a new resource. - Start
Time 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 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 String
- Specifies the transmission speed, the value range is 1 to 9999, unit:
MB/s
. Changing this parameter will create a new resource. - start
Time 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 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 string
- Specifies the transmission speed, the value range is 1 to 9999, unit:
MB/s
. Changing this parameter will create a new resource. - start
Time 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 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 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 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.
- end
Time 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 String
- Specifies the transmission speed, the value range is 1 to 9999, unit:
MB/s
. Changing this parameter will create a new resource. - start
Time 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.
DrsTaskV3SourceDb, DrsTaskV3SourceDbArgs
- Engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- Ip string
- Specifies the IP of database. Changing this parameter will create a new resource.
- Password string
- Specifies the password of database. Changing this parameter will create a new resource.
- Port double
- Specifies the port of database. Changing this parameter will create a new resource.
- User string
- Specifies the user name of database. Changing this parameter will create a new resource.
- Instance
Id 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.
- Private
Ip string - Private IP.
- Region string
- The region in which to create the resource.
- Ssl
Cert stringCheck Sum - Specifies the checksum of SSL certificate content.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - Ssl
Cert stringKey - Specifies the SSL certificate content, encrypted with base64.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - Ssl
Cert stringName - Specifies SSL certificate name.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - Ssl
Cert stringPassword - Specifies SSL certificate password. It is mandatory when
ssl_enabled
istrue
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 string - Specifies subnet ID of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
- Engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- Ip string
- Specifies the IP of database. Changing this parameter will create a new resource.
- Password string
- Specifies the password of database. Changing this parameter will create a new resource.
- Port float64
- Specifies the port of database. Changing this parameter will create a new resource.
- User string
- Specifies the user name of database. Changing this parameter will create a new resource.
- Instance
Id 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.
- Private
Ip string - Private IP.
- Region string
- The region in which to create the resource.
- Ssl
Cert stringCheck Sum - Specifies the checksum of SSL certificate content.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - Ssl
Cert stringKey - Specifies the SSL certificate content, encrypted with base64.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - Ssl
Cert stringName - Specifies SSL certificate name.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - Ssl
Cert stringPassword - Specifies SSL certificate password. It is mandatory when
ssl_enabled
istrue
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 string - Specifies subnet ID of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
- engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- ip String
- Specifies the IP of database. Changing this parameter will create a new resource.
- password String
- Specifies the password of database. Changing this parameter will create a new resource.
- port Double
- Specifies the port of database. Changing this parameter will create a new resource.
- user String
- Specifies the user name of database. Changing this parameter will create a new resource.
- instance
Id 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.
- private
Ip String - Private IP.
- region String
- The region in which to create the resource.
- ssl
Cert StringCheck Sum - Specifies the checksum of SSL certificate content.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert StringKey - Specifies the SSL certificate content, encrypted with base64.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert StringName - Specifies SSL certificate name.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert StringPassword - Specifies SSL certificate password. It is mandatory when
ssl_enabled
istrue
and the certificate file suffix is.p12
. Changing this parameter will create a new resource. - ssl
Enabled Boolean - Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
- subnet
Id String - Specifies subnet ID of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
- engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- ip string
- Specifies the IP of database. Changing this parameter will create a new resource.
- password string
- Specifies the password of database. Changing this parameter will create a new resource.
- port number
- Specifies the port of database. Changing this parameter will create a new resource.
- user string
- Specifies the user name of database. Changing this parameter will create a new resource.
- instance
Id 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.
- private
Ip string - Private IP.
- region string
- The region in which to create the resource.
- ssl
Cert stringCheck Sum - Specifies the checksum of SSL certificate content.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert stringKey - Specifies the SSL certificate content, encrypted with base64.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert stringName - Specifies SSL certificate name.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert stringPassword - Specifies SSL certificate password. It is mandatory when
ssl_enabled
istrue
and the certificate file suffix is.p12
. Changing this parameter will create a new resource. - ssl
Enabled boolean - Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
- subnet
Id string - Specifies subnet ID of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
- 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- ip str
- Specifies the IP of database. Changing this parameter will create a new resource.
- password str
- Specifies the password of database. Changing this parameter will create a new resource.
- port float
- Specifies the port of database. Changing this parameter will create a new resource.
- user 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.
- private_
ip str - Private IP.
- region str
- The region in which to create the resource.
- ssl_
cert_ strcheck_ sum - Specifies the checksum of SSL certificate content.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl_
cert_ strkey - Specifies the SSL certificate content, encrypted with base64.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl_
cert_ strname - Specifies SSL certificate name.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl_
cert_ strpassword - Specifies SSL certificate password. It is mandatory when
ssl_enabled
istrue
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 subnet ID of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
- engine
Type 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.
- gaussdbv5: GaussDB (for openGauss) synchronization use.
- mysql-to-kafka: Synchronization from MySQL to Kafka use.
- taurus-to-kafka: Synchronization from GaussDB(for MySQL) to Kafka use.
- gaussdbv5ha-to-kafka: Synchronization from GaussDB primary/standby to Kafka use.
- postgresql: Synchronization from PostgreSQL to PostgreSQL use.
- ip String
- Specifies the IP of database. Changing this parameter will create a new resource.
- password String
- Specifies the password of database. Changing this parameter will create a new resource.
- port Number
- Specifies the port of database. Changing this parameter will create a new resource.
- user String
- Specifies the user name of database. Changing this parameter will create a new resource.
- instance
Id 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.
- private
Ip String - Private IP.
- region String
- The region in which to create the resource.
- ssl
Cert StringCheck Sum - Specifies the checksum of SSL certificate content.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert StringKey - Specifies the SSL certificate content, encrypted with base64.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert StringName - Specifies SSL certificate name.
It is mandatory when
ssl_enabled
istrue
. Changing this parameter will create a new resource. - ssl
Cert StringPassword - Specifies SSL certificate password. It is mandatory when
ssl_enabled
istrue
and the certificate file suffix is.p12
. Changing this parameter will create a new resource. - ssl
Enabled Boolean - Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
- subnet
Id String - Specifies subnet ID of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
DrsTaskV3Timeouts, DrsTaskV3TimeoutsArgs
Import
The DRS job can be imported by id
. For example,
$ pulumi import opentelekomcloud:index/drsTaskV3:DrsTaskV3 test b11b407c-e604-4e8d-8bc4-92398320b847
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: 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.
resource “opentelekomcloud_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
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.