published on Monday, Jun 22, 2026 by tencentcloudstack
published on Monday, Jun 22, 2026 by tencentcloudstack
Provides a resource to create a CynosDB (TDSQL-C) LibraDB read-only analytics engine instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CynosdbLibraDbInstance("example", {
clusterId: "cynosdbmysql-5oo78wv9",
zone: "ap-guangzhou-7",
cpu: 8,
mem: 32,
storageSize: 100,
payMode: 0,
port: 2000,
instanceName: "tf-example",
instanceType: "Common",
storageType: "CLOUD_TCS",
vpcId: "vpc-i5yyodl9",
subnetId: "subnet-5rrirqyc",
libraDbVersion: "2.2410.18.0",
srcInstanceId: "cynosdbmysql-ins-84ja0ye0",
securityGroupIds: ["sg-4rd5741x"],
forceDelete: true,
objects: {
databaseTables: {
migrateDbMode: "all",
},
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CynosdbLibraDbInstance("example",
cluster_id="cynosdbmysql-5oo78wv9",
zone="ap-guangzhou-7",
cpu=8,
mem=32,
storage_size=100,
pay_mode=0,
port=2000,
instance_name="tf-example",
instance_type="Common",
storage_type="CLOUD_TCS",
vpc_id="vpc-i5yyodl9",
subnet_id="subnet-5rrirqyc",
libra_db_version="2.2410.18.0",
src_instance_id="cynosdbmysql-ins-84ja0ye0",
security_group_ids=["sg-4rd5741x"],
force_delete=True,
objects={
"database_tables": {
"migrate_db_mode": "all",
},
})
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.NewCynosdbLibraDbInstance(ctx, "example", &tencentcloud.CynosdbLibraDbInstanceArgs{
ClusterId: pulumi.String("cynosdbmysql-5oo78wv9"),
Zone: pulumi.String("ap-guangzhou-7"),
Cpu: pulumi.Float64(8),
Mem: pulumi.Float64(32),
StorageSize: pulumi.Float64(100),
PayMode: pulumi.Float64(0),
Port: pulumi.Float64(2000),
InstanceName: pulumi.String("tf-example"),
InstanceType: pulumi.String("Common"),
StorageType: pulumi.String("CLOUD_TCS"),
VpcId: pulumi.String("vpc-i5yyodl9"),
SubnetId: pulumi.String("subnet-5rrirqyc"),
LibraDbVersion: pulumi.String("2.2410.18.0"),
SrcInstanceId: pulumi.String("cynosdbmysql-ins-84ja0ye0"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("sg-4rd5741x"),
},
ForceDelete: pulumi.Bool(true),
Objects: &tencentcloud.CynosdbLibraDbInstanceObjectsArgs{
DatabaseTables: &tencentcloud.CynosdbLibraDbInstanceObjectsDatabaseTablesArgs{
MigrateDbMode: pulumi.String("all"),
},
},
})
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.CynosdbLibraDbInstance("example", new()
{
ClusterId = "cynosdbmysql-5oo78wv9",
Zone = "ap-guangzhou-7",
Cpu = 8,
Mem = 32,
StorageSize = 100,
PayMode = 0,
Port = 2000,
InstanceName = "tf-example",
InstanceType = "Common",
StorageType = "CLOUD_TCS",
VpcId = "vpc-i5yyodl9",
SubnetId = "subnet-5rrirqyc",
LibraDbVersion = "2.2410.18.0",
SrcInstanceId = "cynosdbmysql-ins-84ja0ye0",
SecurityGroupIds = new[]
{
"sg-4rd5741x",
},
ForceDelete = true,
Objects = new Tencentcloud.Inputs.CynosdbLibraDbInstanceObjectsArgs
{
DatabaseTables = new Tencentcloud.Inputs.CynosdbLibraDbInstanceObjectsDatabaseTablesArgs
{
MigrateDbMode = "all",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbLibraDbInstance;
import com.pulumi.tencentcloud.CynosdbLibraDbInstanceArgs;
import com.pulumi.tencentcloud.inputs.CynosdbLibraDbInstanceObjectsArgs;
import com.pulumi.tencentcloud.inputs.CynosdbLibraDbInstanceObjectsDatabaseTablesArgs;
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 CynosdbLibraDbInstance("example", CynosdbLibraDbInstanceArgs.builder()
.clusterId("cynosdbmysql-5oo78wv9")
.zone("ap-guangzhou-7")
.cpu(8.0)
.mem(32.0)
.storageSize(100.0)
.payMode(0.0)
.port(2000.0)
.instanceName("tf-example")
.instanceType("Common")
.storageType("CLOUD_TCS")
.vpcId("vpc-i5yyodl9")
.subnetId("subnet-5rrirqyc")
.libraDbVersion("2.2410.18.0")
.srcInstanceId("cynosdbmysql-ins-84ja0ye0")
.securityGroupIds("sg-4rd5741x")
.forceDelete(true)
.objects(CynosdbLibraDbInstanceObjectsArgs.builder()
.databaseTables(CynosdbLibraDbInstanceObjectsDatabaseTablesArgs.builder()
.migrateDbMode("all")
.build())
.build())
.build());
}
}
resources:
example:
type: tencentcloud:CynosdbLibraDbInstance
properties:
clusterId: cynosdbmysql-5oo78wv9
zone: ap-guangzhou-7
cpu: 8
mem: 32
storageSize: 100
payMode: 0
port: 2000
instanceName: tf-example
instanceType: Common
storageType: CLOUD_TCS
vpcId: vpc-i5yyodl9
subnetId: subnet-5rrirqyc
libraDbVersion: 2.2410.18.0
srcInstanceId: cynosdbmysql-ins-84ja0ye0
securityGroupIds:
- sg-4rd5741x
forceDelete: true
objects:
databaseTables:
migrateDbMode: all
Example coming soon!
or
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CynosdbLibraDbInstance("example", {
clusterId: "cynosdbmysql-5oo78wv9",
zone: "ap-guangzhou-7",
cpu: 8,
mem: 32,
storageSize: 100,
payMode: 0,
port: 2000,
instanceName: "tf-example",
instanceType: "Common",
storageType: "CLOUD_TCS",
vpcId: "vpc-i5yyodl9",
subnetId: "subnet-5rrirqyc",
libraDbVersion: "2.2410.18.0",
srcInstanceId: "cynosdbmysql-ins-84ja0ye0",
securityGroupIds: ["sg-4rd5741x"],
forceDelete: true,
objects: {
databaseTables: {
migrateDbMode: "partial",
databases: [{
dbName: "test",
migrateTableMode: "all",
}],
},
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CynosdbLibraDbInstance("example",
cluster_id="cynosdbmysql-5oo78wv9",
zone="ap-guangzhou-7",
cpu=8,
mem=32,
storage_size=100,
pay_mode=0,
port=2000,
instance_name="tf-example",
instance_type="Common",
storage_type="CLOUD_TCS",
vpc_id="vpc-i5yyodl9",
subnet_id="subnet-5rrirqyc",
libra_db_version="2.2410.18.0",
src_instance_id="cynosdbmysql-ins-84ja0ye0",
security_group_ids=["sg-4rd5741x"],
force_delete=True,
objects={
"database_tables": {
"migrate_db_mode": "partial",
"databases": [{
"db_name": "test",
"migrate_table_mode": "all",
}],
},
})
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.NewCynosdbLibraDbInstance(ctx, "example", &tencentcloud.CynosdbLibraDbInstanceArgs{
ClusterId: pulumi.String("cynosdbmysql-5oo78wv9"),
Zone: pulumi.String("ap-guangzhou-7"),
Cpu: pulumi.Float64(8),
Mem: pulumi.Float64(32),
StorageSize: pulumi.Float64(100),
PayMode: pulumi.Float64(0),
Port: pulumi.Float64(2000),
InstanceName: pulumi.String("tf-example"),
InstanceType: pulumi.String("Common"),
StorageType: pulumi.String("CLOUD_TCS"),
VpcId: pulumi.String("vpc-i5yyodl9"),
SubnetId: pulumi.String("subnet-5rrirqyc"),
LibraDbVersion: pulumi.String("2.2410.18.0"),
SrcInstanceId: pulumi.String("cynosdbmysql-ins-84ja0ye0"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("sg-4rd5741x"),
},
ForceDelete: pulumi.Bool(true),
Objects: &tencentcloud.CynosdbLibraDbInstanceObjectsArgs{
DatabaseTables: &tencentcloud.CynosdbLibraDbInstanceObjectsDatabaseTablesArgs{
MigrateDbMode: pulumi.String("partial"),
Databases: tencentcloud.CynosdbLibraDbInstanceObjectsDatabaseTablesDatabaseArray{
&tencentcloud.CynosdbLibraDbInstanceObjectsDatabaseTablesDatabaseArgs{
DbName: pulumi.String("test"),
MigrateTableMode: pulumi.String("all"),
},
},
},
},
})
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.CynosdbLibraDbInstance("example", new()
{
ClusterId = "cynosdbmysql-5oo78wv9",
Zone = "ap-guangzhou-7",
Cpu = 8,
Mem = 32,
StorageSize = 100,
PayMode = 0,
Port = 2000,
InstanceName = "tf-example",
InstanceType = "Common",
StorageType = "CLOUD_TCS",
VpcId = "vpc-i5yyodl9",
SubnetId = "subnet-5rrirqyc",
LibraDbVersion = "2.2410.18.0",
SrcInstanceId = "cynosdbmysql-ins-84ja0ye0",
SecurityGroupIds = new[]
{
"sg-4rd5741x",
},
ForceDelete = true,
Objects = new Tencentcloud.Inputs.CynosdbLibraDbInstanceObjectsArgs
{
DatabaseTables = new Tencentcloud.Inputs.CynosdbLibraDbInstanceObjectsDatabaseTablesArgs
{
MigrateDbMode = "partial",
Databases = new[]
{
new Tencentcloud.Inputs.CynosdbLibraDbInstanceObjectsDatabaseTablesDatabaseArgs
{
DbName = "test",
MigrateTableMode = "all",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbLibraDbInstance;
import com.pulumi.tencentcloud.CynosdbLibraDbInstanceArgs;
import com.pulumi.tencentcloud.inputs.CynosdbLibraDbInstanceObjectsArgs;
import com.pulumi.tencentcloud.inputs.CynosdbLibraDbInstanceObjectsDatabaseTablesArgs;
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 CynosdbLibraDbInstance("example", CynosdbLibraDbInstanceArgs.builder()
.clusterId("cynosdbmysql-5oo78wv9")
.zone("ap-guangzhou-7")
.cpu(8.0)
.mem(32.0)
.storageSize(100.0)
.payMode(0.0)
.port(2000.0)
.instanceName("tf-example")
.instanceType("Common")
.storageType("CLOUD_TCS")
.vpcId("vpc-i5yyodl9")
.subnetId("subnet-5rrirqyc")
.libraDbVersion("2.2410.18.0")
.srcInstanceId("cynosdbmysql-ins-84ja0ye0")
.securityGroupIds("sg-4rd5741x")
.forceDelete(true)
.objects(CynosdbLibraDbInstanceObjectsArgs.builder()
.databaseTables(CynosdbLibraDbInstanceObjectsDatabaseTablesArgs.builder()
.migrateDbMode("partial")
.databases(CynosdbLibraDbInstanceObjectsDatabaseTablesDatabaseArgs.builder()
.dbName("test")
.migrateTableMode("all")
.build())
.build())
.build())
.build());
}
}
resources:
example:
type: tencentcloud:CynosdbLibraDbInstance
properties:
clusterId: cynosdbmysql-5oo78wv9
zone: ap-guangzhou-7
cpu: 8
mem: 32
storageSize: 100
payMode: 0
port: 2000
instanceName: tf-example
instanceType: Common
storageType: CLOUD_TCS
vpcId: vpc-i5yyodl9
subnetId: subnet-5rrirqyc
libraDbVersion: 2.2410.18.0
srcInstanceId: cynosdbmysql-ins-84ja0ye0
securityGroupIds:
- sg-4rd5741x
forceDelete: true
objects:
databaseTables:
migrateDbMode: partial
databases:
- dbName: test
migrateTableMode: all
Example coming soon!
Create CynosdbLibraDbInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CynosdbLibraDbInstance(name: string, args: CynosdbLibraDbInstanceArgs, opts?: CustomResourceOptions);@overload
def CynosdbLibraDbInstance(resource_name: str,
args: CynosdbLibraDbInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CynosdbLibraDbInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
mem: Optional[float] = None,
cluster_id: Optional[str] = None,
cpu: Optional[float] = None,
zone: Optional[str] = None,
storage_size: Optional[float] = None,
pay_mode: Optional[float] = None,
replicas_num: Optional[float] = None,
instance_type: Optional[str] = None,
libra_db_version: Optional[str] = None,
force_delete: Optional[bool] = None,
objects: Optional[CynosdbLibraDbInstanceObjectsArgs] = None,
order_source: Optional[str] = None,
auto_voucher: Optional[float] = None,
port: Optional[float] = None,
instance_name: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
src_instance_id: Optional[str] = None,
deal_mode: Optional[float] = None,
storage_type: Optional[str] = None,
subnet_id: Optional[str] = None,
time_span: Optional[float] = None,
time_unit: Optional[str] = None,
timeouts: Optional[CynosdbLibraDbInstanceTimeoutsArgs] = None,
vpc_id: Optional[str] = None,
cynosdb_libra_db_instance_id: Optional[str] = None)func NewCynosdbLibraDbInstance(ctx *Context, name string, args CynosdbLibraDbInstanceArgs, opts ...ResourceOption) (*CynosdbLibraDbInstance, error)public CynosdbLibraDbInstance(string name, CynosdbLibraDbInstanceArgs args, CustomResourceOptions? opts = null)
public CynosdbLibraDbInstance(String name, CynosdbLibraDbInstanceArgs args)
public CynosdbLibraDbInstance(String name, CynosdbLibraDbInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:CynosdbLibraDbInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_cynosdblibradbinstance" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CynosdbLibraDbInstanceArgs
- 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 CynosdbLibraDbInstanceArgs
- 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 CynosdbLibraDbInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CynosdbLibraDbInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CynosdbLibraDbInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CynosdbLibraDbInstance 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 CynosdbLibraDbInstance resource accepts the following input properties:
- Cluster
Id string - Cluster ID.
- Cpu double
- Number of CPU cores.
- Mem double
- Memory size in GB.
- Storage
Size double - Disk size.
- Zone string
- Availability zone.
- Auto
Voucher double - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- Cynosdb
Libra stringDb Instance Id - ID of the resource.
- Deal
Mode double - Transaction mode: 0 - place order and pay, 1 - place order only.
- Force
Delete bool - Whether to force delete the instance. Default is false.
- Instance
Name string - Instance name.
- Instance
Type string - Instance type.
- Libra
Db stringVersion - Analytics engine version.
- Objects
Cynosdb
Libra Db Instance Objects - Sync object list.
- Order
Source string - Order source.
- Pay
Mode double - Payment mode.
- Port double
- Port for the new RO group, value range [0, 65535).
- Replicas
Num double - Number of replicas.
- Security
Group List<string>Ids - Security group IDs for the new read-only instance.
- Src
Instance stringId - Source instance ID.
- Storage
Type string - Disk type.
- Subnet
Id string - Subnet ID. Required if VpcId is set.
- Time
Span double - Purchase duration, effective with TimeUnit.
- Time
Unit string - Purchase duration unit. Options: d (day), m (month).
- Timeouts
Cynosdb
Libra Db Instance Timeouts - Vpc
Id string - VPC network ID.
- Cluster
Id string - Cluster ID.
- Cpu float64
- Number of CPU cores.
- Mem float64
- Memory size in GB.
- Storage
Size float64 - Disk size.
- Zone string
- Availability zone.
- Auto
Voucher float64 - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- Cynosdb
Libra stringDb Instance Id - ID of the resource.
- Deal
Mode float64 - Transaction mode: 0 - place order and pay, 1 - place order only.
- Force
Delete bool - Whether to force delete the instance. Default is false.
- Instance
Name string - Instance name.
- Instance
Type string - Instance type.
- Libra
Db stringVersion - Analytics engine version.
- Objects
Cynosdb
Libra Db Instance Objects Args - Sync object list.
- Order
Source string - Order source.
- Pay
Mode float64 - Payment mode.
- Port float64
- Port for the new RO group, value range [0, 65535).
- Replicas
Num float64 - Number of replicas.
- Security
Group []stringIds - Security group IDs for the new read-only instance.
- Src
Instance stringId - Source instance ID.
- Storage
Type string - Disk type.
- Subnet
Id string - Subnet ID. Required if VpcId is set.
- Time
Span float64 - Purchase duration, effective with TimeUnit.
- Time
Unit string - Purchase duration unit. Options: d (day), m (month).
- Timeouts
Cynosdb
Libra Db Instance Timeouts Args - Vpc
Id string - VPC network ID.
- cluster_
id string - Cluster ID.
- cpu number
- Number of CPU cores.
- mem number
- Memory size in GB.
- storage_
size number - Disk size.
- zone string
- Availability zone.
- auto_
voucher number - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- cynosdb_
libra_ stringdb_ instance_ id - ID of the resource.
- deal_
mode number - Transaction mode: 0 - place order and pay, 1 - place order only.
- force_
delete bool - Whether to force delete the instance. Default is false.
- instance_
name string - Instance name.
- instance_
type string - Instance type.
- libra_
db_ stringversion - Analytics engine version.
- objects object
- Sync object list.
- order_
source string - Order source.
- pay_
mode number - Payment mode.
- port number
- Port for the new RO group, value range [0, 65535).
- replicas_
num number - Number of replicas.
- security_
group_ list(string)ids - Security group IDs for the new read-only instance.
- src_
instance_ stringid - Source instance ID.
- storage_
type string - Disk type.
- subnet_
id string - Subnet ID. Required if VpcId is set.
- time_
span number - Purchase duration, effective with TimeUnit.
- time_
unit string - Purchase duration unit. Options: d (day), m (month).
- timeouts object
- vpc_
id string - VPC network ID.
- cluster
Id String - Cluster ID.
- cpu Double
- Number of CPU cores.
- mem Double
- Memory size in GB.
- storage
Size Double - Disk size.
- zone String
- Availability zone.
- auto
Voucher Double - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- cynosdb
Libra StringDb Instance Id - ID of the resource.
- deal
Mode Double - Transaction mode: 0 - place order and pay, 1 - place order only.
- force
Delete Boolean - Whether to force delete the instance. Default is false.
- instance
Name String - Instance name.
- instance
Type String - Instance type.
- libra
Db StringVersion - Analytics engine version.
- objects
Cynosdb
Libra Db Instance Objects - Sync object list.
- order
Source String - Order source.
- pay
Mode Double - Payment mode.
- port Double
- Port for the new RO group, value range [0, 65535).
- replicas
Num Double - Number of replicas.
- security
Group List<String>Ids - Security group IDs for the new read-only instance.
- src
Instance StringId - Source instance ID.
- storage
Type String - Disk type.
- subnet
Id String - Subnet ID. Required if VpcId is set.
- time
Span Double - Purchase duration, effective with TimeUnit.
- time
Unit String - Purchase duration unit. Options: d (day), m (month).
- timeouts
Cynosdb
Libra Db Instance Timeouts - vpc
Id String - VPC network ID.
- cluster
Id string - Cluster ID.
- cpu number
- Number of CPU cores.
- mem number
- Memory size in GB.
- storage
Size number - Disk size.
- zone string
- Availability zone.
- auto
Voucher number - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- cynosdb
Libra stringDb Instance Id - ID of the resource.
- deal
Mode number - Transaction mode: 0 - place order and pay, 1 - place order only.
- force
Delete boolean - Whether to force delete the instance. Default is false.
- instance
Name string - Instance name.
- instance
Type string - Instance type.
- libra
Db stringVersion - Analytics engine version.
- objects
Cynosdb
Libra Db Instance Objects - Sync object list.
- order
Source string - Order source.
- pay
Mode number - Payment mode.
- port number
- Port for the new RO group, value range [0, 65535).
- replicas
Num number - Number of replicas.
- security
Group string[]Ids - Security group IDs for the new read-only instance.
- src
Instance stringId - Source instance ID.
- storage
Type string - Disk type.
- subnet
Id string - Subnet ID. Required if VpcId is set.
- time
Span number - Purchase duration, effective with TimeUnit.
- time
Unit string - Purchase duration unit. Options: d (day), m (month).
- timeouts
Cynosdb
Libra Db Instance Timeouts - vpc
Id string - VPC network ID.
- cluster_
id str - Cluster ID.
- cpu float
- Number of CPU cores.
- mem float
- Memory size in GB.
- storage_
size float - Disk size.
- zone str
- Availability zone.
- auto_
voucher float - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- cynosdb_
libra_ strdb_ instance_ id - ID of the resource.
- deal_
mode float - Transaction mode: 0 - place order and pay, 1 - place order only.
- force_
delete bool - Whether to force delete the instance. Default is false.
- instance_
name str - Instance name.
- instance_
type str - Instance type.
- libra_
db_ strversion - Analytics engine version.
- objects
Cynosdb
Libra Db Instance Objects Args - Sync object list.
- order_
source str - Order source.
- pay_
mode float - Payment mode.
- port float
- Port for the new RO group, value range [0, 65535).
- replicas_
num float - Number of replicas.
- security_
group_ Sequence[str]ids - Security group IDs for the new read-only instance.
- src_
instance_ strid - Source instance ID.
- storage_
type str - Disk type.
- subnet_
id str - Subnet ID. Required if VpcId is set.
- time_
span float - Purchase duration, effective with TimeUnit.
- time_
unit str - Purchase duration unit. Options: d (day), m (month).
- timeouts
Cynosdb
Libra Db Instance Timeouts Args - vpc_
id str - VPC network ID.
- cluster
Id String - Cluster ID.
- cpu Number
- Number of CPU cores.
- mem Number
- Memory size in GB.
- storage
Size Number - Disk size.
- zone String
- Availability zone.
- auto
Voucher Number - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- cynosdb
Libra StringDb Instance Id - ID of the resource.
- deal
Mode Number - Transaction mode: 0 - place order and pay, 1 - place order only.
- force
Delete Boolean - Whether to force delete the instance. Default is false.
- instance
Name String - Instance name.
- instance
Type String - Instance type.
- libra
Db StringVersion - Analytics engine version.
- objects Property Map
- Sync object list.
- order
Source String - Order source.
- pay
Mode Number - Payment mode.
- port Number
- Port for the new RO group, value range [0, 65535).
- replicas
Num Number - Number of replicas.
- security
Group List<String>Ids - Security group IDs for the new read-only instance.
- src
Instance StringId - Source instance ID.
- storage
Type String - Disk type.
- subnet
Id String - Subnet ID. Required if VpcId is set.
- time
Span Number - Purchase duration, effective with TimeUnit.
- time
Unit String - Purchase duration unit. Options: d (day), m (month).
- timeouts Property Map
- vpc
Id String - VPC network ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the CynosdbLibraDbInstance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Instance ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Instance ID.
- id string
- The provider-assigned unique ID for this managed resource.
- instance_
id string - Instance ID.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - Instance ID.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - Instance ID.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - Instance ID.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - Instance ID.
Look up Existing CynosdbLibraDbInstance Resource
Get an existing CynosdbLibraDbInstance 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?: CynosdbLibraDbInstanceState, opts?: CustomResourceOptions): CynosdbLibraDbInstance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_voucher: Optional[float] = None,
cluster_id: Optional[str] = None,
cpu: Optional[float] = None,
cynosdb_libra_db_instance_id: Optional[str] = None,
deal_mode: Optional[float] = None,
force_delete: Optional[bool] = None,
instance_id: Optional[str] = None,
instance_name: Optional[str] = None,
instance_type: Optional[str] = None,
libra_db_version: Optional[str] = None,
mem: Optional[float] = None,
objects: Optional[CynosdbLibraDbInstanceObjectsArgs] = None,
order_source: Optional[str] = None,
pay_mode: Optional[float] = None,
port: Optional[float] = None,
replicas_num: Optional[float] = None,
security_group_ids: Optional[Sequence[str]] = None,
src_instance_id: Optional[str] = None,
storage_size: Optional[float] = None,
storage_type: Optional[str] = None,
subnet_id: Optional[str] = None,
time_span: Optional[float] = None,
time_unit: Optional[str] = None,
timeouts: Optional[CynosdbLibraDbInstanceTimeoutsArgs] = None,
vpc_id: Optional[str] = None,
zone: Optional[str] = None) -> CynosdbLibraDbInstancefunc GetCynosdbLibraDbInstance(ctx *Context, name string, id IDInput, state *CynosdbLibraDbInstanceState, opts ...ResourceOption) (*CynosdbLibraDbInstance, error)public static CynosdbLibraDbInstance Get(string name, Input<string> id, CynosdbLibraDbInstanceState? state, CustomResourceOptions? opts = null)public static CynosdbLibraDbInstance get(String name, Output<String> id, CynosdbLibraDbInstanceState state, CustomResourceOptions options)resources: _: type: tencentcloud:CynosdbLibraDbInstance get: id: ${id}import {
to = tencentcloud_cynosdblibradbinstance.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.
- Auto
Voucher double - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- Cluster
Id string - Cluster ID.
- Cpu double
- Number of CPU cores.
- Cynosdb
Libra stringDb Instance Id - ID of the resource.
- Deal
Mode double - Transaction mode: 0 - place order and pay, 1 - place order only.
- Force
Delete bool - Whether to force delete the instance. Default is false.
- Instance
Id string - Instance ID.
- Instance
Name string - Instance name.
- Instance
Type string - Instance type.
- Libra
Db stringVersion - Analytics engine version.
- Mem double
- Memory size in GB.
- Objects
Cynosdb
Libra Db Instance Objects - Sync object list.
- Order
Source string - Order source.
- Pay
Mode double - Payment mode.
- Port double
- Port for the new RO group, value range [0, 65535).
- Replicas
Num double - Number of replicas.
- Security
Group List<string>Ids - Security group IDs for the new read-only instance.
- Src
Instance stringId - Source instance ID.
- Storage
Size double - Disk size.
- Storage
Type string - Disk type.
- Subnet
Id string - Subnet ID. Required if VpcId is set.
- Time
Span double - Purchase duration, effective with TimeUnit.
- Time
Unit string - Purchase duration unit. Options: d (day), m (month).
- Timeouts
Cynosdb
Libra Db Instance Timeouts - Vpc
Id string - VPC network ID.
- Zone string
- Availability zone.
- Auto
Voucher float64 - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- Cluster
Id string - Cluster ID.
- Cpu float64
- Number of CPU cores.
- Cynosdb
Libra stringDb Instance Id - ID of the resource.
- Deal
Mode float64 - Transaction mode: 0 - place order and pay, 1 - place order only.
- Force
Delete bool - Whether to force delete the instance. Default is false.
- Instance
Id string - Instance ID.
- Instance
Name string - Instance name.
- Instance
Type string - Instance type.
- Libra
Db stringVersion - Analytics engine version.
- Mem float64
- Memory size in GB.
- Objects
Cynosdb
Libra Db Instance Objects Args - Sync object list.
- Order
Source string - Order source.
- Pay
Mode float64 - Payment mode.
- Port float64
- Port for the new RO group, value range [0, 65535).
- Replicas
Num float64 - Number of replicas.
- Security
Group []stringIds - Security group IDs for the new read-only instance.
- Src
Instance stringId - Source instance ID.
- Storage
Size float64 - Disk size.
- Storage
Type string - Disk type.
- Subnet
Id string - Subnet ID. Required if VpcId is set.
- Time
Span float64 - Purchase duration, effective with TimeUnit.
- Time
Unit string - Purchase duration unit. Options: d (day), m (month).
- Timeouts
Cynosdb
Libra Db Instance Timeouts Args - Vpc
Id string - VPC network ID.
- Zone string
- Availability zone.
- auto_
voucher number - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- cluster_
id string - Cluster ID.
- cpu number
- Number of CPU cores.
- cynosdb_
libra_ stringdb_ instance_ id - ID of the resource.
- deal_
mode number - Transaction mode: 0 - place order and pay, 1 - place order only.
- force_
delete bool - Whether to force delete the instance. Default is false.
- instance_
id string - Instance ID.
- instance_
name string - Instance name.
- instance_
type string - Instance type.
- libra_
db_ stringversion - Analytics engine version.
- mem number
- Memory size in GB.
- objects object
- Sync object list.
- order_
source string - Order source.
- pay_
mode number - Payment mode.
- port number
- Port for the new RO group, value range [0, 65535).
- replicas_
num number - Number of replicas.
- security_
group_ list(string)ids - Security group IDs for the new read-only instance.
- src_
instance_ stringid - Source instance ID.
- storage_
size number - Disk size.
- storage_
type string - Disk type.
- subnet_
id string - Subnet ID. Required if VpcId is set.
- time_
span number - Purchase duration, effective with TimeUnit.
- time_
unit string - Purchase duration unit. Options: d (day), m (month).
- timeouts object
- vpc_
id string - VPC network ID.
- zone string
- Availability zone.
- auto
Voucher Double - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- cluster
Id String - Cluster ID.
- cpu Double
- Number of CPU cores.
- cynosdb
Libra StringDb Instance Id - ID of the resource.
- deal
Mode Double - Transaction mode: 0 - place order and pay, 1 - place order only.
- force
Delete Boolean - Whether to force delete the instance. Default is false.
- instance
Id String - Instance ID.
- instance
Name String - Instance name.
- instance
Type String - Instance type.
- libra
Db StringVersion - Analytics engine version.
- mem Double
- Memory size in GB.
- objects
Cynosdb
Libra Db Instance Objects - Sync object list.
- order
Source String - Order source.
- pay
Mode Double - Payment mode.
- port Double
- Port for the new RO group, value range [0, 65535).
- replicas
Num Double - Number of replicas.
- security
Group List<String>Ids - Security group IDs for the new read-only instance.
- src
Instance StringId - Source instance ID.
- storage
Size Double - Disk size.
- storage
Type String - Disk type.
- subnet
Id String - Subnet ID. Required if VpcId is set.
- time
Span Double - Purchase duration, effective with TimeUnit.
- time
Unit String - Purchase duration unit. Options: d (day), m (month).
- timeouts
Cynosdb
Libra Db Instance Timeouts - vpc
Id String - VPC network ID.
- zone String
- Availability zone.
- auto
Voucher number - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- cluster
Id string - Cluster ID.
- cpu number
- Number of CPU cores.
- cynosdb
Libra stringDb Instance Id - ID of the resource.
- deal
Mode number - Transaction mode: 0 - place order and pay, 1 - place order only.
- force
Delete boolean - Whether to force delete the instance. Default is false.
- instance
Id string - Instance ID.
- instance
Name string - Instance name.
- instance
Type string - Instance type.
- libra
Db stringVersion - Analytics engine version.
- mem number
- Memory size in GB.
- objects
Cynosdb
Libra Db Instance Objects - Sync object list.
- order
Source string - Order source.
- pay
Mode number - Payment mode.
- port number
- Port for the new RO group, value range [0, 65535).
- replicas
Num number - Number of replicas.
- security
Group string[]Ids - Security group IDs for the new read-only instance.
- src
Instance stringId - Source instance ID.
- storage
Size number - Disk size.
- storage
Type string - Disk type.
- subnet
Id string - Subnet ID. Required if VpcId is set.
- time
Span number - Purchase duration, effective with TimeUnit.
- time
Unit string - Purchase duration unit. Options: d (day), m (month).
- timeouts
Cynosdb
Libra Db Instance Timeouts - vpc
Id string - VPC network ID.
- zone string
- Availability zone.
- auto_
voucher float - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- cluster_
id str - Cluster ID.
- cpu float
- Number of CPU cores.
- cynosdb_
libra_ strdb_ instance_ id - ID of the resource.
- deal_
mode float - Transaction mode: 0 - place order and pay, 1 - place order only.
- force_
delete bool - Whether to force delete the instance. Default is false.
- instance_
id str - Instance ID.
- instance_
name str - Instance name.
- instance_
type str - Instance type.
- libra_
db_ strversion - Analytics engine version.
- mem float
- Memory size in GB.
- objects
Cynosdb
Libra Db Instance Objects Args - Sync object list.
- order_
source str - Order source.
- pay_
mode float - Payment mode.
- port float
- Port for the new RO group, value range [0, 65535).
- replicas_
num float - Number of replicas.
- security_
group_ Sequence[str]ids - Security group IDs for the new read-only instance.
- src_
instance_ strid - Source instance ID.
- storage_
size float - Disk size.
- storage_
type str - Disk type.
- subnet_
id str - Subnet ID. Required if VpcId is set.
- time_
span float - Purchase duration, effective with TimeUnit.
- time_
unit str - Purchase duration unit. Options: d (day), m (month).
- timeouts
Cynosdb
Libra Db Instance Timeouts Args - vpc_
id str - VPC network ID.
- zone str
- Availability zone.
- auto
Voucher Number - Whether to automatically select vouchers: 1 yes, 0 no, default 0.
- cluster
Id String - Cluster ID.
- cpu Number
- Number of CPU cores.
- cynosdb
Libra StringDb Instance Id - ID of the resource.
- deal
Mode Number - Transaction mode: 0 - place order and pay, 1 - place order only.
- force
Delete Boolean - Whether to force delete the instance. Default is false.
- instance
Id String - Instance ID.
- instance
Name String - Instance name.
- instance
Type String - Instance type.
- libra
Db StringVersion - Analytics engine version.
- mem Number
- Memory size in GB.
- objects Property Map
- Sync object list.
- order
Source String - Order source.
- pay
Mode Number - Payment mode.
- port Number
- Port for the new RO group, value range [0, 65535).
- replicas
Num Number - Number of replicas.
- security
Group List<String>Ids - Security group IDs for the new read-only instance.
- src
Instance StringId - Source instance ID.
- storage
Size Number - Disk size.
- storage
Type String - Disk type.
- subnet
Id String - Subnet ID. Required if VpcId is set.
- time
Span Number - Purchase duration, effective with TimeUnit.
- time
Unit String - Purchase duration unit. Options: d (day), m (month).
- timeouts Property Map
- vpc
Id String - VPC network ID.
- zone String
- Availability zone.
Supporting Types
CynosdbLibraDbInstanceObjects, CynosdbLibraDbInstanceObjectsArgs
- Database
Tables CynosdbLibra Db Instance Objects Database Tables - Database table information.
- Database
Tables CynosdbLibra Db Instance Objects Database Tables - Database table information.
- database_
tables object - Database table information.
- database
Tables CynosdbLibra Db Instance Objects Database Tables - Database table information.
- database
Tables CynosdbLibra Db Instance Objects Database Tables - Database table information.
- database_
tables CynosdbLibra Db Instance Objects Database Tables - Database table information.
- database
Tables Property Map - Database table information.
CynosdbLibraDbInstanceObjectsDatabaseTables, CynosdbLibraDbInstanceObjectsDatabaseTablesArgs
- Databases
List<Cynosdb
Libra Db Instance Objects Database Tables Database> - Database information list.
- Migrate
Db stringMode - Database migration mode.
- Databases
[]Cynosdb
Libra Db Instance Objects Database Tables Database - Database information list.
- Migrate
Db stringMode - Database migration mode.
- databases list(object)
- Database information list.
- migrate_
db_ stringmode - Database migration mode.
- databases
List<Cynosdb
Libra Db Instance Objects Database Tables Database> - Database information list.
- migrate
Db StringMode - Database migration mode.
- databases
Cynosdb
Libra Db Instance Objects Database Tables Database[] - Database information list.
- migrate
Db stringMode - Database migration mode.
- databases
Sequence[Cynosdb
Libra Db Instance Objects Database Tables Database] - Database information list.
- migrate_
db_ strmode - Database migration mode.
- databases List<Property Map>
- Database information list.
- migrate
Db StringMode - Database migration mode.
CynosdbLibraDbInstanceObjectsDatabaseTablesDatabase, CynosdbLibraDbInstanceObjectsDatabaseTablesDatabaseArgs
- Db
Name string - Database name.
- Migrate
Table stringMode - Table migration mode.
- Tables
List<Cynosdb
Libra Db Instance Objects Database Tables Database Table> - Table information list.
- Db
Name string - Database name.
- Migrate
Table stringMode - Table migration mode.
- Tables
[]Cynosdb
Libra Db Instance Objects Database Tables Database Table - Table information list.
- db_
name string - Database name.
- migrate_
table_ stringmode - Table migration mode.
- tables list(object)
- Table information list.
- db
Name String - Database name.
- migrate
Table StringMode - Table migration mode.
- tables
List<Cynosdb
Libra Db Instance Objects Database Tables Database Table> - Table information list.
- db
Name string - Database name.
- migrate
Table stringMode - Table migration mode.
- tables
Cynosdb
Libra Db Instance Objects Database Tables Database Table[] - Table information list.
- db_
name str - Database name.
- migrate_
table_ strmode - Table migration mode.
- tables
Sequence[Cynosdb
Libra Db Instance Objects Database Tables Database Table] - Table information list.
- db
Name String - Database name.
- migrate
Table StringMode - Table migration mode.
- tables List<Property Map>
- Table information list.
CynosdbLibraDbInstanceObjectsDatabaseTablesDatabaseTable, CynosdbLibraDbInstanceObjectsDatabaseTablesDatabaseTableArgs
- Table
Name string - Table name.
- Table
Name string - Table name.
- table_
name string - Table name.
- table
Name String - Table name.
- table
Name string - Table name.
- table_
name str - Table name.
- table
Name String - Table name.
CynosdbLibraDbInstanceTimeouts, CynosdbLibraDbInstanceTimeoutsArgs
Import
CynosDB LibraDB instance can be imported using the cluster_id#instance_id, e.g.
$ pulumi import tencentcloud:index/cynosdbLibraDbInstance:CynosdbLibraDbInstance example cynosdbmysql-5oo78wv9#libradb-ins-irehx3rm
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Monday, Jun 22, 2026 by tencentcloudstack