flexibleengine.DrsJob
Explore with Pulumi AI
Manages DRS job resource within FlexibleEngine.
Example Usage
Create DrsJob Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DrsJob(name: string, args: DrsJobArgs, opts?: CustomResourceOptions);
@overload
def DrsJob(resource_name: str,
args: DrsJobArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DrsJob(resource_name: str,
opts: Optional[ResourceOptions] = None,
engine_type: Optional[str] = None,
destination_db: Optional[DrsJobDestinationDbArgs] = None,
type: Optional[str] = None,
direction: Optional[str] = None,
source_db: Optional[DrsJobSourceDbArgs] = None,
migrate_definer: Optional[bool] = None,
multi_write: Optional[bool] = None,
expired_days: Optional[float] = None,
force_destroy: Optional[bool] = None,
limit_speeds: Optional[Sequence[DrsJobLimitSpeedArgs]] = None,
description: Optional[str] = None,
migration_type: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
name: Optional[str] = None,
net_type: Optional[str] = None,
region: Optional[str] = None,
drs_job_id: Optional[str] = None,
start_time: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DrsJobTimeoutsArgs] = None,
destination_db_readnoly: Optional[bool] = None)
func NewDrsJob(ctx *Context, name string, args DrsJobArgs, opts ...ResourceOption) (*DrsJob, error)
public DrsJob(string name, DrsJobArgs args, CustomResourceOptions? opts = null)
public DrsJob(String name, DrsJobArgs args)
public DrsJob(String name, DrsJobArgs args, CustomResourceOptions options)
type: flexibleengine:DrsJob
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DrsJobArgs
- 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 DrsJobArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DrsJobArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DrsJobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DrsJobArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var drsJobResource = new Flexibleengine.DrsJob("drsJobResource", new()
{
EngineType = "string",
DestinationDb = new Flexibleengine.Inputs.DrsJobDestinationDbArgs
{
Port = 0,
User = "string",
Ip = "string",
EngineType = "string",
Password = "string",
Region = "string",
Name = "string",
SslCertCheckSum = "string",
SslCertKey = "string",
SslCertName = "string",
SslCertPassword = "string",
SslEnabled = false,
SubnetId = "string",
InstanceId = "string",
},
Type = "string",
Direction = "string",
SourceDb = new Flexibleengine.Inputs.DrsJobSourceDbArgs
{
Port = 0,
User = "string",
Ip = "string",
EngineType = "string",
Password = "string",
Region = "string",
Name = "string",
SslCertCheckSum = "string",
SslCertKey = "string",
SslCertName = "string",
SslCertPassword = "string",
SslEnabled = false,
SubnetId = "string",
InstanceId = "string",
},
MigrateDefiner = false,
MultiWrite = false,
ExpiredDays = 0,
ForceDestroy = false,
LimitSpeeds = new[]
{
new Flexibleengine.Inputs.DrsJobLimitSpeedArgs
{
EndTime = "string",
Speed = "string",
StartTime = "string",
},
},
Description = "string",
MigrationType = "string",
EnterpriseProjectId = "string",
Name = "string",
NetType = "string",
Region = "string",
DrsJobId = "string",
StartTime = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Flexibleengine.Inputs.DrsJobTimeoutsArgs
{
Create = "string",
Delete = "string",
},
DestinationDbReadnoly = false,
});
example, err := flexibleengine.NewDrsJob(ctx, "drsJobResource", &flexibleengine.DrsJobArgs{
EngineType: pulumi.String("string"),
DestinationDb: &flexibleengine.DrsJobDestinationDbArgs{
Port: pulumi.Float64(0),
User: pulumi.String("string"),
Ip: pulumi.String("string"),
EngineType: pulumi.String("string"),
Password: pulumi.String("string"),
Region: pulumi.String("string"),
Name: pulumi.String("string"),
SslCertCheckSum: pulumi.String("string"),
SslCertKey: pulumi.String("string"),
SslCertName: pulumi.String("string"),
SslCertPassword: pulumi.String("string"),
SslEnabled: pulumi.Bool(false),
SubnetId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
},
Type: pulumi.String("string"),
Direction: pulumi.String("string"),
SourceDb: &flexibleengine.DrsJobSourceDbArgs{
Port: pulumi.Float64(0),
User: pulumi.String("string"),
Ip: pulumi.String("string"),
EngineType: pulumi.String("string"),
Password: pulumi.String("string"),
Region: pulumi.String("string"),
Name: pulumi.String("string"),
SslCertCheckSum: pulumi.String("string"),
SslCertKey: pulumi.String("string"),
SslCertName: pulumi.String("string"),
SslCertPassword: pulumi.String("string"),
SslEnabled: pulumi.Bool(false),
SubnetId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
},
MigrateDefiner: pulumi.Bool(false),
MultiWrite: pulumi.Bool(false),
ExpiredDays: pulumi.Float64(0),
ForceDestroy: pulumi.Bool(false),
LimitSpeeds: flexibleengine.DrsJobLimitSpeedArray{
&flexibleengine.DrsJobLimitSpeedArgs{
EndTime: pulumi.String("string"),
Speed: pulumi.String("string"),
StartTime: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
MigrationType: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
Name: pulumi.String("string"),
NetType: pulumi.String("string"),
Region: pulumi.String("string"),
DrsJobId: pulumi.String("string"),
StartTime: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &flexibleengine.DrsJobTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
DestinationDbReadnoly: pulumi.Bool(false),
})
var drsJobResource = new DrsJob("drsJobResource", DrsJobArgs.builder()
.engineType("string")
.destinationDb(DrsJobDestinationDbArgs.builder()
.port(0)
.user("string")
.ip("string")
.engineType("string")
.password("string")
.region("string")
.name("string")
.sslCertCheckSum("string")
.sslCertKey("string")
.sslCertName("string")
.sslCertPassword("string")
.sslEnabled(false)
.subnetId("string")
.instanceId("string")
.build())
.type("string")
.direction("string")
.sourceDb(DrsJobSourceDbArgs.builder()
.port(0)
.user("string")
.ip("string")
.engineType("string")
.password("string")
.region("string")
.name("string")
.sslCertCheckSum("string")
.sslCertKey("string")
.sslCertName("string")
.sslCertPassword("string")
.sslEnabled(false)
.subnetId("string")
.instanceId("string")
.build())
.migrateDefiner(false)
.multiWrite(false)
.expiredDays(0)
.forceDestroy(false)
.limitSpeeds(DrsJobLimitSpeedArgs.builder()
.endTime("string")
.speed("string")
.startTime("string")
.build())
.description("string")
.migrationType("string")
.enterpriseProjectId("string")
.name("string")
.netType("string")
.region("string")
.drsJobId("string")
.startTime("string")
.tags(Map.of("string", "string"))
.timeouts(DrsJobTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.destinationDbReadnoly(false)
.build());
drs_job_resource = flexibleengine.DrsJob("drsJobResource",
engine_type="string",
destination_db={
"port": 0,
"user": "string",
"ip": "string",
"engine_type": "string",
"password": "string",
"region": "string",
"name": "string",
"ssl_cert_check_sum": "string",
"ssl_cert_key": "string",
"ssl_cert_name": "string",
"ssl_cert_password": "string",
"ssl_enabled": False,
"subnet_id": "string",
"instance_id": "string",
},
type="string",
direction="string",
source_db={
"port": 0,
"user": "string",
"ip": "string",
"engine_type": "string",
"password": "string",
"region": "string",
"name": "string",
"ssl_cert_check_sum": "string",
"ssl_cert_key": "string",
"ssl_cert_name": "string",
"ssl_cert_password": "string",
"ssl_enabled": False,
"subnet_id": "string",
"instance_id": "string",
},
migrate_definer=False,
multi_write=False,
expired_days=0,
force_destroy=False,
limit_speeds=[{
"end_time": "string",
"speed": "string",
"start_time": "string",
}],
description="string",
migration_type="string",
enterprise_project_id="string",
name="string",
net_type="string",
region="string",
drs_job_id="string",
start_time="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
},
destination_db_readnoly=False)
const drsJobResource = new flexibleengine.DrsJob("drsJobResource", {
engineType: "string",
destinationDb: {
port: 0,
user: "string",
ip: "string",
engineType: "string",
password: "string",
region: "string",
name: "string",
sslCertCheckSum: "string",
sslCertKey: "string",
sslCertName: "string",
sslCertPassword: "string",
sslEnabled: false,
subnetId: "string",
instanceId: "string",
},
type: "string",
direction: "string",
sourceDb: {
port: 0,
user: "string",
ip: "string",
engineType: "string",
password: "string",
region: "string",
name: "string",
sslCertCheckSum: "string",
sslCertKey: "string",
sslCertName: "string",
sslCertPassword: "string",
sslEnabled: false,
subnetId: "string",
instanceId: "string",
},
migrateDefiner: false,
multiWrite: false,
expiredDays: 0,
forceDestroy: false,
limitSpeeds: [{
endTime: "string",
speed: "string",
startTime: "string",
}],
description: "string",
migrationType: "string",
enterpriseProjectId: "string",
name: "string",
netType: "string",
region: "string",
drsJobId: "string",
startTime: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
destinationDbReadnoly: false,
});
type: flexibleengine:DrsJob
properties:
description: string
destinationDb:
engineType: string
instanceId: string
ip: string
name: string
password: string
port: 0
region: string
sslCertCheckSum: string
sslCertKey: string
sslCertName: string
sslCertPassword: string
sslEnabled: false
subnetId: string
user: string
destinationDbReadnoly: false
direction: string
drsJobId: string
engineType: string
enterpriseProjectId: string
expiredDays: 0
forceDestroy: false
limitSpeeds:
- endTime: string
speed: string
startTime: string
migrateDefiner: false
migrationType: string
multiWrite: false
name: string
netType: string
region: string
sourceDb:
engineType: string
instanceId: string
ip: string
name: string
password: string
port: 0
region: string
sslCertCheckSum: string
sslCertKey: string
sslCertName: string
sslCertPassword: string
sslEnabled: false
subnetId: string
user: string
startTime: string
tags:
string: string
timeouts:
create: string
delete: string
type: string
DrsJob Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DrsJob resource accepts the following input properties:
- Destination
Db DrsJob Destination 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.
- Source
Db DrsJob Source 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.
- 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 boolReadnoly - Specifies the destination DB instance as read-only helps
ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to
Read/Write. The default value is
true
. Changing this parameter will create a new resource. - Drs
Job stringId - The resource ID in UUID format.
- Enterprise
Project stringId - Specifies the enterprise project id. Changing this parameter will create a new resource.
- 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<DrsJob Limit 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
.- Region string
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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
Job Timeouts
- Destination
Db DrsJob Destination 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.
- Source
Db DrsJob Source 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.
- 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 boolReadnoly - Specifies the destination DB instance as read-only helps
ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to
Read/Write. The default value is
true
. Changing this parameter will create a new resource. - Drs
Job stringId - The resource ID in UUID format.
- Enterprise
Project stringId - Specifies the enterprise project id. Changing this parameter will create a new resource.
- 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 []DrsJob Limit 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
.- Region string
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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
Job Timeouts Args
- destination
Db DrsJob Destination 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.
- source
Db DrsJob Source 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.
- 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 BooleanReadnoly - Specifies the destination DB instance as read-only helps
ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to
Read/Write. The default value is
true
. Changing this parameter will create a new resource. - drs
Job StringId - The resource ID in UUID format.
- enterprise
Project StringId - Specifies the enterprise project id. Changing this parameter will create a new resource.
- 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<DrsJob Limit 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
.- region String
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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
Job Timeouts
- destination
Db DrsJob Destination 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.
- source
Db DrsJob Source 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.
- 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 booleanReadnoly - Specifies the destination DB instance as read-only helps
ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to
Read/Write. The default value is
true
. Changing this parameter will create a new resource. - drs
Job stringId - The resource ID in UUID format.
- enterprise
Project stringId - Specifies the enterprise project id. Changing this parameter will create a new resource.
- 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 DrsJob Limit 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
.- region string
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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
Job Timeouts
- destination_
db DrsJob Destination 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.
- source_
db DrsJob Source 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.
- 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_ boolreadnoly - Specifies the destination DB instance as read-only helps
ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to
Read/Write. The default value is
true
. Changing this parameter will create a new resource. - drs_
job_ strid - The resource ID in UUID format.
- enterprise_
project_ strid - Specifies the enterprise project id. Changing this parameter will create a new resource.
- expired_
days float - Specifies how many days after the task is abnormal, it will automatically
end. The value ranges from 14 to 100. the default value is
14
. Changing this parameter will create a new resource. - force_
destroy bool - Specifies whether to forcibly destroy the job even if it is running.
The default value is
false
. - limit_
speeds Sequence[DrsJob Limit 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
.- region str
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- start_
time str - Specifies the time to start the job. The time format
is
yyyy-MM-dd HH:mm:ss
. Start immediately by default. Changing this parameter will create a new resource. - Mapping[str, str]
- Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.
- timeouts
Drs
Job Timeouts 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.
- 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.
- 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 BooleanReadnoly - Specifies the destination DB instance as read-only helps
ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to
Read/Write. The default value is
true
. Changing this parameter will create a new resource. - drs
Job StringId - The resource ID in UUID format.
- enterprise
Project StringId - Specifies the enterprise project id. Changing this parameter will create a new resource.
- 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
.- region String
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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 DrsJob 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.
- status str
- Status.
Look up Existing DrsJob Resource
Get an existing DrsJob resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DrsJobState, opts?: CustomResourceOptions): DrsJob
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
destination_db: Optional[DrsJobDestinationDbArgs] = None,
destination_db_readnoly: Optional[bool] = None,
direction: Optional[str] = None,
drs_job_id: Optional[str] = None,
engine_type: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
expired_days: Optional[float] = None,
force_destroy: Optional[bool] = None,
limit_speeds: Optional[Sequence[DrsJobLimitSpeedArgs]] = None,
migrate_definer: Optional[bool] = None,
migration_type: Optional[str] = None,
multi_write: Optional[bool] = None,
name: Optional[str] = None,
net_type: Optional[str] = None,
private_ip: Optional[str] = None,
public_ip: Optional[str] = None,
region: Optional[str] = None,
source_db: Optional[DrsJobSourceDbArgs] = None,
start_time: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DrsJobTimeoutsArgs] = None,
type: Optional[str] = None) -> DrsJob
func GetDrsJob(ctx *Context, name string, id IDInput, state *DrsJobState, opts ...ResourceOption) (*DrsJob, error)
public static DrsJob Get(string name, Input<string> id, DrsJobState? state, CustomResourceOptions? opts = null)
public static DrsJob get(String name, Output<String> id, DrsJobState state, CustomResourceOptions options)
resources: _: type: flexibleengine:DrsJob get: id: ${id}
- name
- 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 DrsJob Destination 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 boolReadnoly - 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
Job stringId - 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.
- Enterprise
Project stringId - Specifies the enterprise project id. Changing this parameter will create a new resource.
- 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<DrsJob Limit 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
.- Private
Ip string - Private IP.
- Public
Ip string - Public IP.
- Region string
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Source
Db DrsJob Source 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
Job Timeouts - Type string
- Specifies the job type. Changing this parameter will create a new
resource. The options are as follows:
- migration: Online Migration.
- sync: Data Synchronization.
- Created
At 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 DrsJob Destination 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 boolReadnoly - 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
Job stringId - 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.
- Enterprise
Project stringId - Specifies the enterprise project id. Changing this parameter will create a new resource.
- 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 []DrsJob Limit 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
.- Private
Ip string - Private IP.
- Public
Ip string - Public IP.
- Region string
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Source
Db DrsJob Source 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
Job Timeouts 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.
- 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 DrsJob Destination 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 BooleanReadnoly - 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
Job StringId - 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.
- enterprise
Project StringId - Specifies the enterprise project id. Changing this parameter will create a new resource.
- 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<DrsJob Limit 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
.- private
Ip String - Private IP.
- public
Ip String - Public IP.
- region String
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- source
Db DrsJob Source 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
Job Timeouts - type String
- Specifies the job type. Changing this parameter will create a new
resource. The options are as follows:
- migration: Online Migration.
- sync: Data Synchronization.
- created
At 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 DrsJob Destination 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 booleanReadnoly - 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
Job stringId - 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.
- enterprise
Project stringId - Specifies the enterprise project id. Changing this parameter will create a new resource.
- 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 DrsJob Limit 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
.- private
Ip string - Private IP.
- public
Ip string - Public IP.
- region string
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- source
Db DrsJob Source 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
Job Timeouts - type string
- Specifies the job type. Changing this parameter will create a new
resource. The options are as follows:
- migration: Online Migration.
- sync: Data Synchronization.
- created_
at str - Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
- description str
- Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\) are not allowed.
- destination_
db DrsJob Destination 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_ boolreadnoly - Specifies the destination DB instance as read-only helps
ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to
Read/Write. The default value is
true
. Changing this parameter will create a new resource. - direction str
- Specifies the direction of data flow.
Changing this parameter will create a new resource. The options are as follows:
- up: To the cloud. The destination database must be a database in the current cloud.
- down: Out of the cloud. The source database must be a database in the current cloud.
- non-dbs: self-built database.
- drs_
job_ strid - The resource ID in UUID format.
- engine_
type str - Specifies the migration engine type.
Changing this parameter will create a new resource. The options are as follows:
- mysql: MySQL migration, MySQL synchronization use.
- mongodb: Mongodb migration use.
- cloudDataGuard-mysql: Disaster recovery use.
- enterprise_
project_ strid - Specifies the enterprise project id. Changing this parameter will create a new resource.
- expired_
days float - Specifies how many days after the task is abnormal, it will automatically
end. The value ranges from 14 to 100. the default value is
14
. Changing this parameter will create a new resource. - force_
destroy bool - Specifies whether to forcibly destroy the job even if it is running.
The default value is
false
. - limit_
speeds Sequence[DrsJob Limit 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
.- private_
ip str - Private IP.
- public_
ip str - Public IP.
- region str
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- source_
db DrsJob Source 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
Job Timeouts 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.
- 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 BooleanReadnoly - 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
Job StringId - 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.
- enterprise
Project StringId - Specifies the enterprise project id. Changing this parameter will create a new resource.
- 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
.- private
Ip String - Private IP.
- public
Ip String - Public IP.
- region String
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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.
Supporting Types
DrsJobDestinationDb, DrsJobDestinationDbArgs
- 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.
- 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.
- Region string
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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 the ID of the VPC Subnet 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.
- 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.
- Region string
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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 the ID of the VPC Subnet 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.
- 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.
- region String
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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 the ID of the VPC Subnet 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.
- 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.
- region string
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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 the ID of the VPC Subnet 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.
- 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.
- region str
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- ssl_
cert_ 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 the ID of the VPC Subnet 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.
- 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.
- region String
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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 the ID of the VPC Subnet of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
DrsJobLimitSpeed, DrsJobLimitSpeedArgs
- 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.
DrsJobSourceDb, DrsJobSourceDbArgs
- 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.
- 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.
- Region string
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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 the ID of the VPC Subnet 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.
- 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.
- Region string
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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 the ID of the VPC Subnet 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.
- 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.
- region String
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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 the ID of the VPC Subnet 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.
- 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.
- region string
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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 the ID of the VPC Subnet 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.
- 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.
- region str
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- ssl_
cert_ 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 the ID of the VPC Subnet 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.
- 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.
- region String
- The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- 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 the ID of the VPC Subnet of database when it is a RDS database.
It is mandatory when
direction
isdown
. Changing this parameter will create a new resource.
DrsJobTimeouts, DrsJobTimeoutsArgs
Import
The DRS job can be imported by id
. For example,
$ pulumi import flexibleengine:index/drsJob:DrsJob 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: enterprise_project_id
, tags
,
force_destroy
, source_db.0.password
and destination_db.0.password
.It is generally recommended running
pulumi preview
after importing a job. You can then decide if changes should be applied to the job, or the resource
definition should be updated to align with the job. Also you can ignore changes as below.
hcl
resource “flexibleengine_drs_job” “test” {
...
lifecycle {
ignore_changes = [
source_db.0.password,destination_db.0.password
]
}
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.