published on Friday, Sep 4, 2026 by tencentcloudstack
published on Friday, Sep 4, 2026 by tencentcloudstack
Provides a resource to create a TencentDB for MySQL (CDB) clone instance from an existing source instance, optionally rolling back to a specified time point or backup set.
Example Usage
Clone instance with rollback time
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.MysqlCloneInstance("example", {
instanceId: "cdb-c1nl9rpv",
specifiedRollbackTime: "2024-01-01 12:00:00",
memory: 4000,
volume: 200,
cpu: 2,
instanceName: "tf-clone-example",
uniqVpcId: "vpc-i5yyodl9",
uniqSubnetId: "subnet-hhi88a58",
protectMode: 0,
deployMode: 0,
slaveZone: "ap-guangzhou-3",
deviceType: "UNIVERSAL",
projectId: 0,
payType: "USED_PAID",
zone: "ap-guangzhou-3",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.MysqlCloneInstance("example",
instance_id="cdb-c1nl9rpv",
specified_rollback_time="2024-01-01 12:00:00",
memory=4000,
volume=200,
cpu=2,
instance_name="tf-clone-example",
uniq_vpc_id="vpc-i5yyodl9",
uniq_subnet_id="subnet-hhi88a58",
protect_mode=0,
deploy_mode=0,
slave_zone="ap-guangzhou-3",
device_type="UNIVERSAL",
project_id=0,
pay_type="USED_PAID",
zone="ap-guangzhou-3")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewMysqlCloneInstance(ctx, "example", &tencentcloud.MysqlCloneInstanceArgs{
InstanceId: pulumi.String("cdb-c1nl9rpv"),
SpecifiedRollbackTime: pulumi.String("2024-01-01 12:00:00"),
Memory: pulumi.Float64(4000),
Volume: pulumi.Float64(200),
Cpu: pulumi.Float64(2),
InstanceName: pulumi.String("tf-clone-example"),
UniqVpcId: pulumi.String("vpc-i5yyodl9"),
UniqSubnetId: pulumi.String("subnet-hhi88a58"),
ProtectMode: pulumi.Float64(0),
DeployMode: pulumi.Float64(0),
SlaveZone: pulumi.String("ap-guangzhou-3"),
DeviceType: pulumi.String("UNIVERSAL"),
ProjectId: pulumi.Float64(0),
PayType: pulumi.String("USED_PAID"),
Zone: pulumi.String("ap-guangzhou-3"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.MysqlCloneInstance("example", new()
{
InstanceId = "cdb-c1nl9rpv",
SpecifiedRollbackTime = "2024-01-01 12:00:00",
Memory = 4000,
Volume = 200,
Cpu = 2,
InstanceName = "tf-clone-example",
UniqVpcId = "vpc-i5yyodl9",
UniqSubnetId = "subnet-hhi88a58",
ProtectMode = 0,
DeployMode = 0,
SlaveZone = "ap-guangzhou-3",
DeviceType = "UNIVERSAL",
ProjectId = 0,
PayType = "USED_PAID",
Zone = "ap-guangzhou-3",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MysqlCloneInstance;
import com.pulumi.tencentcloud.MysqlCloneInstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new MysqlCloneInstance("example", MysqlCloneInstanceArgs.builder()
.instanceId("cdb-c1nl9rpv")
.specifiedRollbackTime("2024-01-01 12:00:00")
.memory(4000.0)
.volume(200.0)
.cpu(2.0)
.instanceName("tf-clone-example")
.uniqVpcId("vpc-i5yyodl9")
.uniqSubnetId("subnet-hhi88a58")
.protectMode(0.0)
.deployMode(0.0)
.slaveZone("ap-guangzhou-3")
.deviceType("UNIVERSAL")
.projectId(0.0)
.payType("USED_PAID")
.zone("ap-guangzhou-3")
.build());
}
}
resources:
example:
type: tencentcloud:MysqlCloneInstance
properties:
instanceId: cdb-c1nl9rpv
specifiedRollbackTime: 2024-01-01 12:00:00
memory: 4000
volume: 200
cpu: 2
instanceName: tf-clone-example
uniqVpcId: vpc-i5yyodl9
uniqSubnetId: subnet-hhi88a58
protectMode: 0
deployMode: 0
slaveZone: ap-guangzhou-3
deviceType: UNIVERSAL
projectId: 0
payType: USED_PAID
zone: ap-guangzhou-3
Example coming soon!
Clone instance with backup id
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.MysqlCloneInstance("example", {
instanceId: "cdb-c1nl9rpv",
specifiedBackupId: 1000001,
memory: 4000,
volume: 200,
cpu: 2,
instanceName: "tf-clone-example",
uniqVpcId: "vpc-i5yyodl9",
uniqSubnetId: "subnet-hhi88a58",
protectMode: 0,
deployMode: 0,
slaveZone: "ap-guangzhou-3",
deviceType: "UNIVERSAL",
projectId: 0,
payType: "USED_PAID",
zone: "ap-guangzhou-3",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.MysqlCloneInstance("example",
instance_id="cdb-c1nl9rpv",
specified_backup_id=1000001,
memory=4000,
volume=200,
cpu=2,
instance_name="tf-clone-example",
uniq_vpc_id="vpc-i5yyodl9",
uniq_subnet_id="subnet-hhi88a58",
protect_mode=0,
deploy_mode=0,
slave_zone="ap-guangzhou-3",
device_type="UNIVERSAL",
project_id=0,
pay_type="USED_PAID",
zone="ap-guangzhou-3")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewMysqlCloneInstance(ctx, "example", &tencentcloud.MysqlCloneInstanceArgs{
InstanceId: pulumi.String("cdb-c1nl9rpv"),
SpecifiedBackupId: pulumi.Float64(1000001),
Memory: pulumi.Float64(4000),
Volume: pulumi.Float64(200),
Cpu: pulumi.Float64(2),
InstanceName: pulumi.String("tf-clone-example"),
UniqVpcId: pulumi.String("vpc-i5yyodl9"),
UniqSubnetId: pulumi.String("subnet-hhi88a58"),
ProtectMode: pulumi.Float64(0),
DeployMode: pulumi.Float64(0),
SlaveZone: pulumi.String("ap-guangzhou-3"),
DeviceType: pulumi.String("UNIVERSAL"),
ProjectId: pulumi.Float64(0),
PayType: pulumi.String("USED_PAID"),
Zone: pulumi.String("ap-guangzhou-3"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.MysqlCloneInstance("example", new()
{
InstanceId = "cdb-c1nl9rpv",
SpecifiedBackupId = 1000001,
Memory = 4000,
Volume = 200,
Cpu = 2,
InstanceName = "tf-clone-example",
UniqVpcId = "vpc-i5yyodl9",
UniqSubnetId = "subnet-hhi88a58",
ProtectMode = 0,
DeployMode = 0,
SlaveZone = "ap-guangzhou-3",
DeviceType = "UNIVERSAL",
ProjectId = 0,
PayType = "USED_PAID",
Zone = "ap-guangzhou-3",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MysqlCloneInstance;
import com.pulumi.tencentcloud.MysqlCloneInstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new MysqlCloneInstance("example", MysqlCloneInstanceArgs.builder()
.instanceId("cdb-c1nl9rpv")
.specifiedBackupId(1000001.0)
.memory(4000.0)
.volume(200.0)
.cpu(2.0)
.instanceName("tf-clone-example")
.uniqVpcId("vpc-i5yyodl9")
.uniqSubnetId("subnet-hhi88a58")
.protectMode(0.0)
.deployMode(0.0)
.slaveZone("ap-guangzhou-3")
.deviceType("UNIVERSAL")
.projectId(0.0)
.payType("USED_PAID")
.zone("ap-guangzhou-3")
.build());
}
}
resources:
example:
type: tencentcloud:MysqlCloneInstance
properties:
instanceId: cdb-c1nl9rpv
specifiedBackupId: 1.000001e+06
memory: 4000
volume: 200
cpu: 2
instanceName: tf-clone-example
uniqVpcId: vpc-i5yyodl9
uniqSubnetId: subnet-hhi88a58
protectMode: 0
deployMode: 0
slaveZone: ap-guangzhou-3
deviceType: UNIVERSAL
projectId: 0
payType: USED_PAID
zone: ap-guangzhou-3
Example coming soon!
Clone instance with resource tags
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.MysqlCloneInstance("example", {
instanceId: "cdb-c1nl9rpv",
specifiedRollbackTime: "2024-01-01 12:00:00",
memory: 4000,
volume: 200,
cpu: 2,
instanceName: "tf-clone-example",
uniqVpcId: "vpc-i5yyodl9",
uniqSubnetId: "subnet-hhi88a58",
protectMode: 0,
deployMode: 0,
slaveZone: "ap-guangzhou-3",
deviceType: "UNIVERSAL",
projectId: 0,
payType: "USED_PAID",
zone: "ap-guangzhou-3",
resourceTags: [{
key: "createBy",
value: "Terraform",
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.MysqlCloneInstance("example",
instance_id="cdb-c1nl9rpv",
specified_rollback_time="2024-01-01 12:00:00",
memory=4000,
volume=200,
cpu=2,
instance_name="tf-clone-example",
uniq_vpc_id="vpc-i5yyodl9",
uniq_subnet_id="subnet-hhi88a58",
protect_mode=0,
deploy_mode=0,
slave_zone="ap-guangzhou-3",
device_type="UNIVERSAL",
project_id=0,
pay_type="USED_PAID",
zone="ap-guangzhou-3",
resource_tags=[{
"key": "createBy",
"value": "Terraform",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewMysqlCloneInstance(ctx, "example", &tencentcloud.MysqlCloneInstanceArgs{
InstanceId: pulumi.String("cdb-c1nl9rpv"),
SpecifiedRollbackTime: pulumi.String("2024-01-01 12:00:00"),
Memory: pulumi.Float64(4000),
Volume: pulumi.Float64(200),
Cpu: pulumi.Float64(2),
InstanceName: pulumi.String("tf-clone-example"),
UniqVpcId: pulumi.String("vpc-i5yyodl9"),
UniqSubnetId: pulumi.String("subnet-hhi88a58"),
ProtectMode: pulumi.Float64(0),
DeployMode: pulumi.Float64(0),
SlaveZone: pulumi.String("ap-guangzhou-3"),
DeviceType: pulumi.String("UNIVERSAL"),
ProjectId: pulumi.Float64(0),
PayType: pulumi.String("USED_PAID"),
Zone: pulumi.String("ap-guangzhou-3"),
ResourceTags: tencentcloud.MysqlCloneInstanceResourceTagArray{
&tencentcloud.MysqlCloneInstanceResourceTagArgs{
Key: pulumi.String("createBy"),
Value: pulumi.String("Terraform"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.MysqlCloneInstance("example", new()
{
InstanceId = "cdb-c1nl9rpv",
SpecifiedRollbackTime = "2024-01-01 12:00:00",
Memory = 4000,
Volume = 200,
Cpu = 2,
InstanceName = "tf-clone-example",
UniqVpcId = "vpc-i5yyodl9",
UniqSubnetId = "subnet-hhi88a58",
ProtectMode = 0,
DeployMode = 0,
SlaveZone = "ap-guangzhou-3",
DeviceType = "UNIVERSAL",
ProjectId = 0,
PayType = "USED_PAID",
Zone = "ap-guangzhou-3",
ResourceTags = new[]
{
new Tencentcloud.Inputs.MysqlCloneInstanceResourceTagArgs
{
Key = "createBy",
Value = "Terraform",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MysqlCloneInstance;
import com.pulumi.tencentcloud.MysqlCloneInstanceArgs;
import com.pulumi.tencentcloud.inputs.MysqlCloneInstanceResourceTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new MysqlCloneInstance("example", MysqlCloneInstanceArgs.builder()
.instanceId("cdb-c1nl9rpv")
.specifiedRollbackTime("2024-01-01 12:00:00")
.memory(4000.0)
.volume(200.0)
.cpu(2.0)
.instanceName("tf-clone-example")
.uniqVpcId("vpc-i5yyodl9")
.uniqSubnetId("subnet-hhi88a58")
.protectMode(0.0)
.deployMode(0.0)
.slaveZone("ap-guangzhou-3")
.deviceType("UNIVERSAL")
.projectId(0.0)
.payType("USED_PAID")
.zone("ap-guangzhou-3")
.resourceTags(MysqlCloneInstanceResourceTagArgs.builder()
.key("createBy")
.value("Terraform")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:MysqlCloneInstance
properties:
instanceId: cdb-c1nl9rpv
specifiedRollbackTime: 2024-01-01 12:00:00
memory: 4000
volume: 200
cpu: 2
instanceName: tf-clone-example
uniqVpcId: vpc-i5yyodl9
uniqSubnetId: subnet-hhi88a58
protectMode: 0
deployMode: 0
slaveZone: ap-guangzhou-3
deviceType: UNIVERSAL
projectId: 0
payType: USED_PAID
zone: ap-guangzhou-3
resourceTags:
- key: createBy
value: Terraform
Example coming soon!
Create MysqlCloneInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MysqlCloneInstance(name: string, args: MysqlCloneInstanceArgs, opts?: CustomResourceOptions);@overload
def MysqlCloneInstance(resource_name: str,
args: MysqlCloneInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MysqlCloneInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
mysql_clone_instance_id: Optional[str] = None,
slave_zone: Optional[str] = None,
cpu: Optional[float] = None,
deploy_group_id: Optional[str] = None,
deploy_mode: Optional[float] = None,
device_type: Optional[str] = None,
dry_run: Optional[bool] = None,
fourth_zone: Optional[str] = None,
cage_id: Optional[str] = None,
instance_name: Optional[str] = None,
instance_nodes: Optional[float] = None,
master_zone: Optional[str] = None,
memory: Optional[float] = None,
backup_zone: Optional[str] = None,
cluster_topology: Optional[MysqlCloneInstanceClusterTopologyArgs] = None,
pay_type: Optional[str] = None,
specified_rollback_time: Optional[str] = None,
protect_mode: Optional[float] = None,
resource_tags: Optional[Sequence[MysqlCloneInstanceResourceTagArgs]] = None,
security_groups: Optional[Sequence[str]] = None,
period: Optional[float] = None,
specified_backup_id: Optional[float] = None,
project_id: Optional[float] = None,
specified_sub_backup_id: Optional[float] = None,
src_region: Optional[str] = None,
timeouts: Optional[MysqlCloneInstanceTimeoutsArgs] = None,
uniq_subnet_id: Optional[str] = None,
uniq_vpc_id: Optional[str] = None,
volume: Optional[float] = None,
zone: Optional[str] = None)func NewMysqlCloneInstance(ctx *Context, name string, args MysqlCloneInstanceArgs, opts ...ResourceOption) (*MysqlCloneInstance, error)public MysqlCloneInstance(string name, MysqlCloneInstanceArgs args, CustomResourceOptions? opts = null)
public MysqlCloneInstance(String name, MysqlCloneInstanceArgs args)
public MysqlCloneInstance(String name, MysqlCloneInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:MysqlCloneInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_mysql_clone_instance" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args MysqlCloneInstanceArgs
- 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 MysqlCloneInstanceArgs
- 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 MysqlCloneInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MysqlCloneInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MysqlCloneInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MysqlCloneInstance 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 MysqlCloneInstance resource accepts the following input properties:
- Instance
Id string - Source MySQL (CDB) instance ID to clone from.
- Backup
Zone string - Slave 2 zone. Updatable via
UpgradeDBInstance. - Cage
Id string - Financial cage ID.
- Cluster
Topology MysqlClone Instance Cluster Topology - Cloud disk node topology. Updatable via
UpgradeDBInstance. - Cpu double
- CPU cores. Updatable via
UpgradeDBInstance. - Deploy
Group stringId - Placement group ID.
- Deploy
Mode double - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - Device
Type string - Instance type. Updatable via
UpgradeDBInstance. - Dry
Run bool - Dry-run flag. true: only pre-check, false: send normal request.
- Fourth
Zone string - Slave 3 zone. Updatable via
UpgradeDBInstance. - Instance
Name string - Cloned instance name.
- Instance
Nodes double - Instance node count.
- Master
Zone string - Master zone.
- Memory double
- Instance memory in MB. Updatable via
UpgradeDBInstance. - Mysql
Clone stringInstance Id - ID of the resource.
- Pay
Type string - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- Period double
- Instance duration in months. Required when
pay_typeis PRE_PAID. - Project
Id double - Project ID. Default is 0.
- Protect
Mode double - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. -
List<Mysql
Clone Instance Resource Tag> - Instance tags.
- Security
Groups List<string> - Security group IDs.
- Slave
Zone string - Slave 1 zone. Updatable via
UpgradeDBInstance. - Specified
Backup doubleId - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - Specified
Rollback stringTime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - Specified
Sub doubleBackup Id - Cross-region backup ID.
- Src
Region string - Source instance region for cross-region clone.
- Timeouts
Mysql
Clone Instance Timeouts - Uniq
Subnet stringId - Subnet ID. If
uniq_vpc_idis set, this value is required. - Uniq
Vpc stringId - VPC ID.
- Volume double
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - Zone string
- Instance zone.
- Instance
Id string - Source MySQL (CDB) instance ID to clone from.
- Backup
Zone string - Slave 2 zone. Updatable via
UpgradeDBInstance. - Cage
Id string - Financial cage ID.
- Cluster
Topology MysqlClone Instance Cluster Topology Args - Cloud disk node topology. Updatable via
UpgradeDBInstance. - Cpu float64
- CPU cores. Updatable via
UpgradeDBInstance. - Deploy
Group stringId - Placement group ID.
- Deploy
Mode float64 - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - Device
Type string - Instance type. Updatable via
UpgradeDBInstance. - Dry
Run bool - Dry-run flag. true: only pre-check, false: send normal request.
- Fourth
Zone string - Slave 3 zone. Updatable via
UpgradeDBInstance. - Instance
Name string - Cloned instance name.
- Instance
Nodes float64 - Instance node count.
- Master
Zone string - Master zone.
- Memory float64
- Instance memory in MB. Updatable via
UpgradeDBInstance. - Mysql
Clone stringInstance Id - ID of the resource.
- Pay
Type string - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- Period float64
- Instance duration in months. Required when
pay_typeis PRE_PAID. - Project
Id float64 - Project ID. Default is 0.
- Protect
Mode float64 - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. -
[]Mysql
Clone Instance Resource Tag Args - Instance tags.
- Security
Groups []string - Security group IDs.
- Slave
Zone string - Slave 1 zone. Updatable via
UpgradeDBInstance. - Specified
Backup float64Id - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - Specified
Rollback stringTime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - Specified
Sub float64Backup Id - Cross-region backup ID.
- Src
Region string - Source instance region for cross-region clone.
- Timeouts
Mysql
Clone Instance Timeouts Args - Uniq
Subnet stringId - Subnet ID. If
uniq_vpc_idis set, this value is required. - Uniq
Vpc stringId - VPC ID.
- Volume float64
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - Zone string
- Instance zone.
- instance_
id string - Source MySQL (CDB) instance ID to clone from.
- backup_
zone string - Slave 2 zone. Updatable via
UpgradeDBInstance. - cage_
id string - Financial cage ID.
- cluster_
topology object - Cloud disk node topology. Updatable via
UpgradeDBInstance. - cpu number
- CPU cores. Updatable via
UpgradeDBInstance. - deploy_
group_ stringid - Placement group ID.
- deploy_
mode number - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - device_
type string - Instance type. Updatable via
UpgradeDBInstance. - dry_
run bool - Dry-run flag. true: only pre-check, false: send normal request.
- fourth_
zone string - Slave 3 zone. Updatable via
UpgradeDBInstance. - instance_
name string - Cloned instance name.
- instance_
nodes number - Instance node count.
- master_
zone string - Master zone.
- memory number
- Instance memory in MB. Updatable via
UpgradeDBInstance. - mysql_
clone_ stringinstance_ id - ID of the resource.
- pay_
type string - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- period number
- Instance duration in months. Required when
pay_typeis PRE_PAID. - project_
id number - Project ID. Default is 0.
- protect_
mode number - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. - list(object)
- Instance tags.
- security_
groups list(string) - Security group IDs.
- slave_
zone string - Slave 1 zone. Updatable via
UpgradeDBInstance. - specified_
backup_ numberid - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - specified_
rollback_ stringtime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - specified_
sub_ numberbackup_ id - Cross-region backup ID.
- src_
region string - Source instance region for cross-region clone.
- timeouts object
- uniq_
subnet_ stringid - Subnet ID. If
uniq_vpc_idis set, this value is required. - uniq_
vpc_ stringid - VPC ID.
- volume number
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - zone string
- Instance zone.
- instance
Id String - Source MySQL (CDB) instance ID to clone from.
- backup
Zone String - Slave 2 zone. Updatable via
UpgradeDBInstance. - cage
Id String - Financial cage ID.
- cluster
Topology MysqlClone Instance Cluster Topology - Cloud disk node topology. Updatable via
UpgradeDBInstance. - cpu Double
- CPU cores. Updatable via
UpgradeDBInstance. - deploy
Group StringId - Placement group ID.
- deploy
Mode Double - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - device
Type String - Instance type. Updatable via
UpgradeDBInstance. - dry
Run Boolean - Dry-run flag. true: only pre-check, false: send normal request.
- fourth
Zone String - Slave 3 zone. Updatable via
UpgradeDBInstance. - instance
Name String - Cloned instance name.
- instance
Nodes Double - Instance node count.
- master
Zone String - Master zone.
- memory Double
- Instance memory in MB. Updatable via
UpgradeDBInstance. - mysql
Clone StringInstance Id - ID of the resource.
- pay
Type String - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- period Double
- Instance duration in months. Required when
pay_typeis PRE_PAID. - project
Id Double - Project ID. Default is 0.
- protect
Mode Double - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. -
List<Mysql
Clone Instance Resource Tag> - Instance tags.
- security
Groups List<String> - Security group IDs.
- slave
Zone String - Slave 1 zone. Updatable via
UpgradeDBInstance. - specified
Backup DoubleId - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - specified
Rollback StringTime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - specified
Sub DoubleBackup Id - Cross-region backup ID.
- src
Region String - Source instance region for cross-region clone.
- timeouts
Mysql
Clone Instance Timeouts - uniq
Subnet StringId - Subnet ID. If
uniq_vpc_idis set, this value is required. - uniq
Vpc StringId - VPC ID.
- volume Double
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - zone String
- Instance zone.
- instance
Id string - Source MySQL (CDB) instance ID to clone from.
- backup
Zone string - Slave 2 zone. Updatable via
UpgradeDBInstance. - cage
Id string - Financial cage ID.
- cluster
Topology MysqlClone Instance Cluster Topology - Cloud disk node topology. Updatable via
UpgradeDBInstance. - cpu number
- CPU cores. Updatable via
UpgradeDBInstance. - deploy
Group stringId - Placement group ID.
- deploy
Mode number - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - device
Type string - Instance type. Updatable via
UpgradeDBInstance. - dry
Run boolean - Dry-run flag. true: only pre-check, false: send normal request.
- fourth
Zone string - Slave 3 zone. Updatable via
UpgradeDBInstance. - instance
Name string - Cloned instance name.
- instance
Nodes number - Instance node count.
- master
Zone string - Master zone.
- memory number
- Instance memory in MB. Updatable via
UpgradeDBInstance. - mysql
Clone stringInstance Id - ID of the resource.
- pay
Type string - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- period number
- Instance duration in months. Required when
pay_typeis PRE_PAID. - project
Id number - Project ID. Default is 0.
- protect
Mode number - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. -
Mysql
Clone Instance Resource Tag[] - Instance tags.
- security
Groups string[] - Security group IDs.
- slave
Zone string - Slave 1 zone. Updatable via
UpgradeDBInstance. - specified
Backup numberId - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - specified
Rollback stringTime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - specified
Sub numberBackup Id - Cross-region backup ID.
- src
Region string - Source instance region for cross-region clone.
- timeouts
Mysql
Clone Instance Timeouts - uniq
Subnet stringId - Subnet ID. If
uniq_vpc_idis set, this value is required. - uniq
Vpc stringId - VPC ID.
- volume number
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - zone string
- Instance zone.
- instance_
id str - Source MySQL (CDB) instance ID to clone from.
- backup_
zone str - Slave 2 zone. Updatable via
UpgradeDBInstance. - cage_
id str - Financial cage ID.
- cluster_
topology MysqlClone Instance Cluster Topology Args - Cloud disk node topology. Updatable via
UpgradeDBInstance. - cpu float
- CPU cores. Updatable via
UpgradeDBInstance. - deploy_
group_ strid - Placement group ID.
- deploy_
mode float - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - device_
type str - Instance type. Updatable via
UpgradeDBInstance. - dry_
run bool - Dry-run flag. true: only pre-check, false: send normal request.
- fourth_
zone str - Slave 3 zone. Updatable via
UpgradeDBInstance. - instance_
name str - Cloned instance name.
- instance_
nodes float - Instance node count.
- master_
zone str - Master zone.
- memory float
- Instance memory in MB. Updatable via
UpgradeDBInstance. - mysql_
clone_ strinstance_ id - ID of the resource.
- pay_
type str - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- period float
- Instance duration in months. Required when
pay_typeis PRE_PAID. - project_
id float - Project ID. Default is 0.
- protect_
mode float - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. -
Sequence[Mysql
Clone Instance Resource Tag Args] - Instance tags.
- security_
groups Sequence[str] - Security group IDs.
- slave_
zone str - Slave 1 zone. Updatable via
UpgradeDBInstance. - specified_
backup_ floatid - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - specified_
rollback_ strtime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - specified_
sub_ floatbackup_ id - Cross-region backup ID.
- src_
region str - Source instance region for cross-region clone.
- timeouts
Mysql
Clone Instance Timeouts Args - uniq_
subnet_ strid - Subnet ID. If
uniq_vpc_idis set, this value is required. - uniq_
vpc_ strid - VPC ID.
- volume float
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - zone str
- Instance zone.
- instance
Id String - Source MySQL (CDB) instance ID to clone from.
- backup
Zone String - Slave 2 zone. Updatable via
UpgradeDBInstance. - cage
Id String - Financial cage ID.
- cluster
Topology Property Map - Cloud disk node topology. Updatable via
UpgradeDBInstance. - cpu Number
- CPU cores. Updatable via
UpgradeDBInstance. - deploy
Group StringId - Placement group ID.
- deploy
Mode Number - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - device
Type String - Instance type. Updatable via
UpgradeDBInstance. - dry
Run Boolean - Dry-run flag. true: only pre-check, false: send normal request.
- fourth
Zone String - Slave 3 zone. Updatable via
UpgradeDBInstance. - instance
Name String - Cloned instance name.
- instance
Nodes Number - Instance node count.
- master
Zone String - Master zone.
- memory Number
- Instance memory in MB. Updatable via
UpgradeDBInstance. - mysql
Clone StringInstance Id - ID of the resource.
- pay
Type String - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- period Number
- Instance duration in months. Required when
pay_typeis PRE_PAID. - project
Id Number - Project ID. Default is 0.
- protect
Mode Number - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. - List<Property Map>
- Instance tags.
- security
Groups List<String> - Security group IDs.
- slave
Zone String - Slave 1 zone. Updatable via
UpgradeDBInstance. - specified
Backup NumberId - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - specified
Rollback StringTime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - specified
Sub NumberBackup Id - Cross-region backup ID.
- src
Region String - Source instance region for cross-region clone.
- timeouts Property Map
- uniq
Subnet StringId - Subnet ID. If
uniq_vpc_idis set, this value is required. - uniq
Vpc StringId - VPC ID.
- volume Number
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - zone String
- Instance zone.
Outputs
All input properties are implicitly available as output properties. Additionally, the MysqlCloneInstance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MysqlCloneInstance Resource
Get an existing MysqlCloneInstance 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?: MysqlCloneInstanceState, opts?: CustomResourceOptions): MysqlCloneInstance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_zone: Optional[str] = None,
cage_id: Optional[str] = None,
cluster_topology: Optional[MysqlCloneInstanceClusterTopologyArgs] = None,
cpu: Optional[float] = None,
deploy_group_id: Optional[str] = None,
deploy_mode: Optional[float] = None,
device_type: Optional[str] = None,
dry_run: Optional[bool] = None,
fourth_zone: Optional[str] = None,
instance_id: Optional[str] = None,
instance_name: Optional[str] = None,
instance_nodes: Optional[float] = None,
master_zone: Optional[str] = None,
memory: Optional[float] = None,
mysql_clone_instance_id: Optional[str] = None,
pay_type: Optional[str] = None,
period: Optional[float] = None,
project_id: Optional[float] = None,
protect_mode: Optional[float] = None,
resource_tags: Optional[Sequence[MysqlCloneInstanceResourceTagArgs]] = None,
security_groups: Optional[Sequence[str]] = None,
slave_zone: Optional[str] = None,
specified_backup_id: Optional[float] = None,
specified_rollback_time: Optional[str] = None,
specified_sub_backup_id: Optional[float] = None,
src_region: Optional[str] = None,
timeouts: Optional[MysqlCloneInstanceTimeoutsArgs] = None,
uniq_subnet_id: Optional[str] = None,
uniq_vpc_id: Optional[str] = None,
volume: Optional[float] = None,
zone: Optional[str] = None) -> MysqlCloneInstancefunc GetMysqlCloneInstance(ctx *Context, name string, id IDInput, state *MysqlCloneInstanceState, opts ...ResourceOption) (*MysqlCloneInstance, error)public static MysqlCloneInstance Get(string name, Input<string> id, MysqlCloneInstanceState? state, CustomResourceOptions? opts = null)public static MysqlCloneInstance get(String name, Output<String> id, MysqlCloneInstanceState state, CustomResourceOptions options)resources: _: type: tencentcloud:MysqlCloneInstance get: id: ${id}import {
to = tencentcloud_mysql_clone_instance.example
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.
- Backup
Zone string - Slave 2 zone. Updatable via
UpgradeDBInstance. - Cage
Id string - Financial cage ID.
- Cluster
Topology MysqlClone Instance Cluster Topology - Cloud disk node topology. Updatable via
UpgradeDBInstance. - Cpu double
- CPU cores. Updatable via
UpgradeDBInstance. - Deploy
Group stringId - Placement group ID.
- Deploy
Mode double - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - Device
Type string - Instance type. Updatable via
UpgradeDBInstance. - Dry
Run bool - Dry-run flag. true: only pre-check, false: send normal request.
- Fourth
Zone string - Slave 3 zone. Updatable via
UpgradeDBInstance. - Instance
Id string - Source MySQL (CDB) instance ID to clone from.
- Instance
Name string - Cloned instance name.
- Instance
Nodes double - Instance node count.
- Master
Zone string - Master zone.
- Memory double
- Instance memory in MB. Updatable via
UpgradeDBInstance. - Mysql
Clone stringInstance Id - ID of the resource.
- Pay
Type string - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- Period double
- Instance duration in months. Required when
pay_typeis PRE_PAID. - Project
Id double - Project ID. Default is 0.
- Protect
Mode double - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. -
List<Mysql
Clone Instance Resource Tag> - Instance tags.
- Security
Groups List<string> - Security group IDs.
- Slave
Zone string - Slave 1 zone. Updatable via
UpgradeDBInstance. - Specified
Backup doubleId - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - Specified
Rollback stringTime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - Specified
Sub doubleBackup Id - Cross-region backup ID.
- Src
Region string - Source instance region for cross-region clone.
- Timeouts
Mysql
Clone Instance Timeouts - Uniq
Subnet stringId - Subnet ID. If
uniq_vpc_idis set, this value is required. - Uniq
Vpc stringId - VPC ID.
- Volume double
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - Zone string
- Instance zone.
- Backup
Zone string - Slave 2 zone. Updatable via
UpgradeDBInstance. - Cage
Id string - Financial cage ID.
- Cluster
Topology MysqlClone Instance Cluster Topology Args - Cloud disk node topology. Updatable via
UpgradeDBInstance. - Cpu float64
- CPU cores. Updatable via
UpgradeDBInstance. - Deploy
Group stringId - Placement group ID.
- Deploy
Mode float64 - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - Device
Type string - Instance type. Updatable via
UpgradeDBInstance. - Dry
Run bool - Dry-run flag. true: only pre-check, false: send normal request.
- Fourth
Zone string - Slave 3 zone. Updatable via
UpgradeDBInstance. - Instance
Id string - Source MySQL (CDB) instance ID to clone from.
- Instance
Name string - Cloned instance name.
- Instance
Nodes float64 - Instance node count.
- Master
Zone string - Master zone.
- Memory float64
- Instance memory in MB. Updatable via
UpgradeDBInstance. - Mysql
Clone stringInstance Id - ID of the resource.
- Pay
Type string - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- Period float64
- Instance duration in months. Required when
pay_typeis PRE_PAID. - Project
Id float64 - Project ID. Default is 0.
- Protect
Mode float64 - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. -
[]Mysql
Clone Instance Resource Tag Args - Instance tags.
- Security
Groups []string - Security group IDs.
- Slave
Zone string - Slave 1 zone. Updatable via
UpgradeDBInstance. - Specified
Backup float64Id - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - Specified
Rollback stringTime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - Specified
Sub float64Backup Id - Cross-region backup ID.
- Src
Region string - Source instance region for cross-region clone.
- Timeouts
Mysql
Clone Instance Timeouts Args - Uniq
Subnet stringId - Subnet ID. If
uniq_vpc_idis set, this value is required. - Uniq
Vpc stringId - VPC ID.
- Volume float64
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - Zone string
- Instance zone.
- backup_
zone string - Slave 2 zone. Updatable via
UpgradeDBInstance. - cage_
id string - Financial cage ID.
- cluster_
topology object - Cloud disk node topology. Updatable via
UpgradeDBInstance. - cpu number
- CPU cores. Updatable via
UpgradeDBInstance. - deploy_
group_ stringid - Placement group ID.
- deploy_
mode number - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - device_
type string - Instance type. Updatable via
UpgradeDBInstance. - dry_
run bool - Dry-run flag. true: only pre-check, false: send normal request.
- fourth_
zone string - Slave 3 zone. Updatable via
UpgradeDBInstance. - instance_
id string - Source MySQL (CDB) instance ID to clone from.
- instance_
name string - Cloned instance name.
- instance_
nodes number - Instance node count.
- master_
zone string - Master zone.
- memory number
- Instance memory in MB. Updatable via
UpgradeDBInstance. - mysql_
clone_ stringinstance_ id - ID of the resource.
- pay_
type string - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- period number
- Instance duration in months. Required when
pay_typeis PRE_PAID. - project_
id number - Project ID. Default is 0.
- protect_
mode number - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. - list(object)
- Instance tags.
- security_
groups list(string) - Security group IDs.
- slave_
zone string - Slave 1 zone. Updatable via
UpgradeDBInstance. - specified_
backup_ numberid - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - specified_
rollback_ stringtime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - specified_
sub_ numberbackup_ id - Cross-region backup ID.
- src_
region string - Source instance region for cross-region clone.
- timeouts object
- uniq_
subnet_ stringid - Subnet ID. If
uniq_vpc_idis set, this value is required. - uniq_
vpc_ stringid - VPC ID.
- volume number
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - zone string
- Instance zone.
- backup
Zone String - Slave 2 zone. Updatable via
UpgradeDBInstance. - cage
Id String - Financial cage ID.
- cluster
Topology MysqlClone Instance Cluster Topology - Cloud disk node topology. Updatable via
UpgradeDBInstance. - cpu Double
- CPU cores. Updatable via
UpgradeDBInstance. - deploy
Group StringId - Placement group ID.
- deploy
Mode Double - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - device
Type String - Instance type. Updatable via
UpgradeDBInstance. - dry
Run Boolean - Dry-run flag. true: only pre-check, false: send normal request.
- fourth
Zone String - Slave 3 zone. Updatable via
UpgradeDBInstance. - instance
Id String - Source MySQL (CDB) instance ID to clone from.
- instance
Name String - Cloned instance name.
- instance
Nodes Double - Instance node count.
- master
Zone String - Master zone.
- memory Double
- Instance memory in MB. Updatable via
UpgradeDBInstance. - mysql
Clone StringInstance Id - ID of the resource.
- pay
Type String - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- period Double
- Instance duration in months. Required when
pay_typeis PRE_PAID. - project
Id Double - Project ID. Default is 0.
- protect
Mode Double - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. -
List<Mysql
Clone Instance Resource Tag> - Instance tags.
- security
Groups List<String> - Security group IDs.
- slave
Zone String - Slave 1 zone. Updatable via
UpgradeDBInstance. - specified
Backup DoubleId - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - specified
Rollback StringTime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - specified
Sub DoubleBackup Id - Cross-region backup ID.
- src
Region String - Source instance region for cross-region clone.
- timeouts
Mysql
Clone Instance Timeouts - uniq
Subnet StringId - Subnet ID. If
uniq_vpc_idis set, this value is required. - uniq
Vpc StringId - VPC ID.
- volume Double
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - zone String
- Instance zone.
- backup
Zone string - Slave 2 zone. Updatable via
UpgradeDBInstance. - cage
Id string - Financial cage ID.
- cluster
Topology MysqlClone Instance Cluster Topology - Cloud disk node topology. Updatable via
UpgradeDBInstance. - cpu number
- CPU cores. Updatable via
UpgradeDBInstance. - deploy
Group stringId - Placement group ID.
- deploy
Mode number - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - device
Type string - Instance type. Updatable via
UpgradeDBInstance. - dry
Run boolean - Dry-run flag. true: only pre-check, false: send normal request.
- fourth
Zone string - Slave 3 zone. Updatable via
UpgradeDBInstance. - instance
Id string - Source MySQL (CDB) instance ID to clone from.
- instance
Name string - Cloned instance name.
- instance
Nodes number - Instance node count.
- master
Zone string - Master zone.
- memory number
- Instance memory in MB. Updatable via
UpgradeDBInstance. - mysql
Clone stringInstance Id - ID of the resource.
- pay
Type string - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- period number
- Instance duration in months. Required when
pay_typeis PRE_PAID. - project
Id number - Project ID. Default is 0.
- protect
Mode number - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. -
Mysql
Clone Instance Resource Tag[] - Instance tags.
- security
Groups string[] - Security group IDs.
- slave
Zone string - Slave 1 zone. Updatable via
UpgradeDBInstance. - specified
Backup numberId - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - specified
Rollback stringTime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - specified
Sub numberBackup Id - Cross-region backup ID.
- src
Region string - Source instance region for cross-region clone.
- timeouts
Mysql
Clone Instance Timeouts - uniq
Subnet stringId - Subnet ID. If
uniq_vpc_idis set, this value is required. - uniq
Vpc stringId - VPC ID.
- volume number
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - zone string
- Instance zone.
- backup_
zone str - Slave 2 zone. Updatable via
UpgradeDBInstance. - cage_
id str - Financial cage ID.
- cluster_
topology MysqlClone Instance Cluster Topology Args - Cloud disk node topology. Updatable via
UpgradeDBInstance. - cpu float
- CPU cores. Updatable via
UpgradeDBInstance. - deploy_
group_ strid - Placement group ID.
- deploy_
mode float - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - device_
type str - Instance type. Updatable via
UpgradeDBInstance. - dry_
run bool - Dry-run flag. true: only pre-check, false: send normal request.
- fourth_
zone str - Slave 3 zone. Updatable via
UpgradeDBInstance. - instance_
id str - Source MySQL (CDB) instance ID to clone from.
- instance_
name str - Cloned instance name.
- instance_
nodes float - Instance node count.
- master_
zone str - Master zone.
- memory float
- Instance memory in MB. Updatable via
UpgradeDBInstance. - mysql_
clone_ strinstance_ id - ID of the resource.
- pay_
type str - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- period float
- Instance duration in months. Required when
pay_typeis PRE_PAID. - project_
id float - Project ID. Default is 0.
- protect_
mode float - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. -
Sequence[Mysql
Clone Instance Resource Tag Args] - Instance tags.
- security_
groups Sequence[str] - Security group IDs.
- slave_
zone str - Slave 1 zone. Updatable via
UpgradeDBInstance. - specified_
backup_ floatid - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - specified_
rollback_ strtime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - specified_
sub_ floatbackup_ id - Cross-region backup ID.
- src_
region str - Source instance region for cross-region clone.
- timeouts
Mysql
Clone Instance Timeouts Args - uniq_
subnet_ strid - Subnet ID. If
uniq_vpc_idis set, this value is required. - uniq_
vpc_ strid - VPC ID.
- volume float
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - zone str
- Instance zone.
- backup
Zone String - Slave 2 zone. Updatable via
UpgradeDBInstance. - cage
Id String - Financial cage ID.
- cluster
Topology Property Map - Cloud disk node topology. Updatable via
UpgradeDBInstance. - cpu Number
- CPU cores. Updatable via
UpgradeDBInstance. - deploy
Group StringId - Placement group ID.
- deploy
Mode Number - Deploy mode. 0 - single zone, 1 - multi zone. Updatable via
UpgradeDBInstance. - device
Type String - Instance type. Updatable via
UpgradeDBInstance. - dry
Run Boolean - Dry-run flag. true: only pre-check, false: send normal request.
- fourth
Zone String - Slave 3 zone. Updatable via
UpgradeDBInstance. - instance
Id String - Source MySQL (CDB) instance ID to clone from.
- instance
Name String - Cloned instance name.
- instance
Nodes Number - Instance node count.
- master
Zone String - Master zone.
- memory Number
- Instance memory in MB. Updatable via
UpgradeDBInstance. - mysql
Clone StringInstance Id - ID of the resource.
- pay
Type String - Payment type. PRE_PAID - prepaid, USED_PAID - postpaid. Default is postpaid.
- period Number
- Instance duration in months. Required when
pay_typeis PRE_PAID. - project
Id Number - Project ID. Default is 0.
- protect
Mode Number - Data replication mode. 0 - async, 1 - semisync, 2 - strongsync. Updatable via
UpgradeDBInstance. - List<Property Map>
- Instance tags.
- security
Groups List<String> - Security group IDs.
- slave
Zone String - Slave 1 zone. Updatable via
UpgradeDBInstance. - specified
Backup NumberId - Backup file ID to clone from. Mutually exclusive with
specified_rollback_time. - specified
Rollback StringTime - Rollback time (yyyy-mm-dd hh:mm:ss). Mutually exclusive with
specified_backup_id. - specified
Sub NumberBackup Id - Cross-region backup ID.
- src
Region String - Source instance region for cross-region clone.
- timeouts Property Map
- uniq
Subnet StringId - Subnet ID. If
uniq_vpc_idis set, this value is required. - uniq
Vpc StringId - VPC ID.
- volume Number
- Instance disk size in GB. Updatable via
UpgradeDBInstance. - zone String
- Instance zone.
Supporting Types
MysqlCloneInstanceClusterTopology, MysqlCloneInstanceClusterTopologyArgs
- Read
Only List<MysqlNodes Clone Instance Cluster Topology Read Only Node> - RO node topology list.
- Read
Write MysqlNode Clone Instance Cluster Topology Read Write Node - RW node topology.
- Read
Only []MysqlNodes Clone Instance Cluster Topology Read Only Node - RO node topology list.
- Read
Write MysqlNode Clone Instance Cluster Topology Read Write Node - RW node topology.
- read_
only_ list(object)nodes - RO node topology list.
- read_
write_ objectnode - RW node topology.
- read
Only List<MysqlNodes Clone Instance Cluster Topology Read Only Node> - RO node topology list.
- read
Write MysqlNode Clone Instance Cluster Topology Read Write Node - RW node topology.
- read
Only MysqlNodes Clone Instance Cluster Topology Read Only Node[] - RO node topology list.
- read
Write MysqlNode Clone Instance Cluster Topology Read Write Node - RW node topology.
- read_
only_ Sequence[Mysqlnodes Clone Instance Cluster Topology Read Only Node] - RO node topology list.
- read_
write_ Mysqlnode Clone Instance Cluster Topology Read Write Node - RW node topology.
- read
Only List<Property Map>Nodes - RO node topology list.
- read
Write Property MapNode - RW node topology.
MysqlCloneInstanceClusterTopologyReadOnlyNode, MysqlCloneInstanceClusterTopologyReadOnlyNodeArgs
- Is
Random stringZone - Whether distributed in a random zone. YES - random zone.
- Node
Id string - Node ID.
- Zone string
- RO node zone.
- Is
Random stringZone - Whether distributed in a random zone. YES - random zone.
- Node
Id string - Node ID.
- Zone string
- RO node zone.
- is_
random_ stringzone - Whether distributed in a random zone. YES - random zone.
- node_
id string - Node ID.
- zone string
- RO node zone.
- is
Random StringZone - Whether distributed in a random zone. YES - random zone.
- node
Id String - Node ID.
- zone String
- RO node zone.
- is
Random stringZone - Whether distributed in a random zone. YES - random zone.
- node
Id string - Node ID.
- zone string
- RO node zone.
- is_
random_ strzone - Whether distributed in a random zone. YES - random zone.
- node_
id str - Node ID.
- zone str
- RO node zone.
- is
Random StringZone - Whether distributed in a random zone. YES - random zone.
- node
Id String - Node ID.
- zone String
- RO node zone.
MysqlCloneInstanceClusterTopologyReadWriteNode, MysqlCloneInstanceClusterTopologyReadWriteNodeArgs
MysqlCloneInstanceResourceTag, MysqlCloneInstanceResourceTagArgs
MysqlCloneInstanceTimeouts, MysqlCloneInstanceTimeoutsArgs
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Friday, Sep 4, 2026 by tencentcloudstack