published on Friday, Jul 24, 2026 by tencentcloudstack
published on Friday, Jul 24, 2026 by tencentcloudstack
Provide a resource to create a CynosDB cluster.
NOTE: Compared to Resource
tencentcloud.CynosdbCluster, Resourcetencentcloud.CynosdbClusterV2places greater emphasis on optimizing security group configurations for read-only groups and read-only instances, making them more precise and efficient.rw_group_sgrepresents the read-write instance security group,ro_group_sgrepresents the read-only group security group, andsingle_ro_group_sgrepresents the read-only instance security group. notably, to configurero_group_sg, ``open_ro_groupmust be settruefirst. If you need to configurero_group_sgorsingle_ro_group_sgsecurity group, please use Resourcetencentcloud.CynosdbClusterV2`.
NOTE: params
instance_countandinstance_init_infosonly choose one. If neither parameter is set, the CynosDB cluster is created with parameterinstance_countset to2by default(one RW instance + one Ro instance). If you only need to create a master instance, explicitly set theinstance_countfield to1, or configure the RW instance information in theinstance_init_infosfield.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CynosdbClusterV2("example", {
availableZone: "ap-guangzhou-6",
vpcId: "vpc-i5yyodl9",
subnetId: "subnet-hhi88a58",
dbMode: "NORMAL",
dbType: "MYSQL",
dbVersion: "5.7",
port: 3306,
clusterName: "tf-example",
password: "cynosDB@123",
instanceMaintainDuration: 7200,
instanceMaintainStartTime: 10800,
instanceCpuCore: 2,
instanceMemorySize: 4,
openRoGroup: true,
forceDelete: true,
instanceMaintainWeekdays: [
"Fri",
"Mon",
"Sat",
"Sun",
"Thu",
"Wed",
"Tue",
],
rwGroupSgs: [
"sg-7pnojfur",
"sg-37tigqat",
],
roGroupSgs: [
"sg-7pnojfur",
"sg-37tigqat",
"sg-08cqf7d5",
],
singleRoGroupSgs: [
"sg-7pnojfur",
"sg-37tigqat",
"sg-08cqf7d5",
"sg-l1txcqtj",
],
paramItems: [
{
name: "character_set_server",
currentValue: "utf8mb4",
},
{
name: "lower_case_table_names",
currentValue: "0",
},
],
tags: {
createBy: "terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CynosdbClusterV2("example",
available_zone="ap-guangzhou-6",
vpc_id="vpc-i5yyodl9",
subnet_id="subnet-hhi88a58",
db_mode="NORMAL",
db_type="MYSQL",
db_version="5.7",
port=3306,
cluster_name="tf-example",
password="cynosDB@123",
instance_maintain_duration=7200,
instance_maintain_start_time=10800,
instance_cpu_core=2,
instance_memory_size=4,
open_ro_group=True,
force_delete=True,
instance_maintain_weekdays=[
"Fri",
"Mon",
"Sat",
"Sun",
"Thu",
"Wed",
"Tue",
],
rw_group_sgs=[
"sg-7pnojfur",
"sg-37tigqat",
],
ro_group_sgs=[
"sg-7pnojfur",
"sg-37tigqat",
"sg-08cqf7d5",
],
single_ro_group_sgs=[
"sg-7pnojfur",
"sg-37tigqat",
"sg-08cqf7d5",
"sg-l1txcqtj",
],
param_items=[
{
"name": "character_set_server",
"current_value": "utf8mb4",
},
{
"name": "lower_case_table_names",
"current_value": "0",
},
],
tags={
"createBy": "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.NewCynosdbClusterV2(ctx, "example", &tencentcloud.CynosdbClusterV2Args{
AvailableZone: pulumi.String("ap-guangzhou-6"),
VpcId: pulumi.String("vpc-i5yyodl9"),
SubnetId: pulumi.String("subnet-hhi88a58"),
DbMode: pulumi.String("NORMAL"),
DbType: pulumi.String("MYSQL"),
DbVersion: pulumi.String("5.7"),
Port: pulumi.Float64(3306),
ClusterName: pulumi.String("tf-example"),
Password: pulumi.String("cynosDB@123"),
InstanceMaintainDuration: pulumi.Float64(7200),
InstanceMaintainStartTime: pulumi.Float64(10800),
InstanceCpuCore: pulumi.Float64(2),
InstanceMemorySize: pulumi.Float64(4),
OpenRoGroup: pulumi.Bool(true),
ForceDelete: pulumi.Bool(true),
InstanceMaintainWeekdays: pulumi.StringArray{
pulumi.String("Fri"),
pulumi.String("Mon"),
pulumi.String("Sat"),
pulumi.String("Sun"),
pulumi.String("Thu"),
pulumi.String("Wed"),
pulumi.String("Tue"),
},
RwGroupSgs: pulumi.StringArray{
pulumi.String("sg-7pnojfur"),
pulumi.String("sg-37tigqat"),
},
RoGroupSgs: pulumi.StringArray{
pulumi.String("sg-7pnojfur"),
pulumi.String("sg-37tigqat"),
pulumi.String("sg-08cqf7d5"),
},
SingleRoGroupSgs: pulumi.StringArray{
pulumi.String("sg-7pnojfur"),
pulumi.String("sg-37tigqat"),
pulumi.String("sg-08cqf7d5"),
pulumi.String("sg-l1txcqtj"),
},
ParamItems: tencentcloud.CynosdbClusterV2ParamItemArray{
&tencentcloud.CynosdbClusterV2ParamItemArgs{
Name: pulumi.String("character_set_server"),
CurrentValue: pulumi.String("utf8mb4"),
},
&tencentcloud.CynosdbClusterV2ParamItemArgs{
Name: pulumi.String("lower_case_table_names"),
CurrentValue: pulumi.String("0"),
},
},
Tags: pulumi.StringMap{
"createBy": 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.CynosdbClusterV2("example", new()
{
AvailableZone = "ap-guangzhou-6",
VpcId = "vpc-i5yyodl9",
SubnetId = "subnet-hhi88a58",
DbMode = "NORMAL",
DbType = "MYSQL",
DbVersion = "5.7",
Port = 3306,
ClusterName = "tf-example",
Password = "cynosDB@123",
InstanceMaintainDuration = 7200,
InstanceMaintainStartTime = 10800,
InstanceCpuCore = 2,
InstanceMemorySize = 4,
OpenRoGroup = true,
ForceDelete = true,
InstanceMaintainWeekdays = new[]
{
"Fri",
"Mon",
"Sat",
"Sun",
"Thu",
"Wed",
"Tue",
},
RwGroupSgs = new[]
{
"sg-7pnojfur",
"sg-37tigqat",
},
RoGroupSgs = new[]
{
"sg-7pnojfur",
"sg-37tigqat",
"sg-08cqf7d5",
},
SingleRoGroupSgs = new[]
{
"sg-7pnojfur",
"sg-37tigqat",
"sg-08cqf7d5",
"sg-l1txcqtj",
},
ParamItems = new[]
{
new Tencentcloud.Inputs.CynosdbClusterV2ParamItemArgs
{
Name = "character_set_server",
CurrentValue = "utf8mb4",
},
new Tencentcloud.Inputs.CynosdbClusterV2ParamItemArgs
{
Name = "lower_case_table_names",
CurrentValue = "0",
},
},
Tags =
{
{ "createBy", "terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbClusterV2;
import com.pulumi.tencentcloud.CynosdbClusterV2Args;
import com.pulumi.tencentcloud.inputs.CynosdbClusterV2ParamItemArgs;
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 CynosdbClusterV2("example", CynosdbClusterV2Args.builder()
.availableZone("ap-guangzhou-6")
.vpcId("vpc-i5yyodl9")
.subnetId("subnet-hhi88a58")
.dbMode("NORMAL")
.dbType("MYSQL")
.dbVersion("5.7")
.port(3306.0)
.clusterName("tf-example")
.password("cynosDB@123")
.instanceMaintainDuration(7200.0)
.instanceMaintainStartTime(10800.0)
.instanceCpuCore(2.0)
.instanceMemorySize(4.0)
.openRoGroup(true)
.forceDelete(true)
.instanceMaintainWeekdays(
"Fri",
"Mon",
"Sat",
"Sun",
"Thu",
"Wed",
"Tue")
.rwGroupSgs(
"sg-7pnojfur",
"sg-37tigqat")
.roGroupSgs(
"sg-7pnojfur",
"sg-37tigqat",
"sg-08cqf7d5")
.singleRoGroupSgs(
"sg-7pnojfur",
"sg-37tigqat",
"sg-08cqf7d5",
"sg-l1txcqtj")
.paramItems(
CynosdbClusterV2ParamItemArgs.builder()
.name("character_set_server")
.currentValue("utf8mb4")
.build(),
CynosdbClusterV2ParamItemArgs.builder()
.name("lower_case_table_names")
.currentValue("0")
.build())
.tags(Map.of("createBy", "terraform"))
.build());
}
}
resources:
example:
type: tencentcloud:CynosdbClusterV2
properties:
availableZone: ap-guangzhou-6
vpcId: vpc-i5yyodl9
subnetId: subnet-hhi88a58
dbMode: NORMAL
dbType: MYSQL
dbVersion: '5.7'
port: 3306
clusterName: tf-example
password: cynosDB@123
instanceMaintainDuration: 7200
instanceMaintainStartTime: 10800
instanceCpuCore: 2
instanceMemorySize: 4
openRoGroup: true
forceDelete: true
instanceMaintainWeekdays:
- Fri
- Mon
- Sat
- Sun
- Thu
- Wed
- Tue
rwGroupSgs:
- sg-7pnojfur
- sg-37tigqat
roGroupSgs:
- sg-7pnojfur
- sg-37tigqat
- sg-08cqf7d5
singleRoGroupSgs:
- sg-7pnojfur
- sg-37tigqat
- sg-08cqf7d5
- sg-l1txcqtj
paramItems:
- name: character_set_server
currentValue: utf8mb4
- name: lower_case_table_names
currentValue: '0'
tags:
createBy: terraform
Example coming soon!
Create CynosdbClusterV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CynosdbClusterV2(name: string, args: CynosdbClusterV2Args, opts?: CustomResourceOptions);@overload
def CynosdbClusterV2(resource_name: str,
args: CynosdbClusterV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def CynosdbClusterV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
db_type: Optional[str] = None,
vpc_id: Optional[str] = None,
subnet_id: Optional[str] = None,
available_zone: Optional[str] = None,
password: Optional[str] = None,
cluster_name: Optional[str] = None,
db_version: Optional[str] = None,
max_cpu: Optional[float] = None,
param_items: Optional[Sequence[CynosdbClusterV2ParamItemArgs]] = None,
cynosdb_cluster_v2_id: Optional[str] = None,
cynos_version: Optional[str] = None,
force_delete: Optional[bool] = None,
instance_count: Optional[float] = None,
instance_cpu_core: Optional[float] = None,
instance_init_infos: Optional[Sequence[CynosdbClusterV2InstanceInitInfoArgs]] = None,
instance_maintain_duration: Optional[float] = None,
instance_maintain_start_time: Optional[float] = None,
instance_maintain_weekdays: Optional[Sequence[str]] = None,
instance_memory_size: Optional[float] = None,
instance_name: Optional[str] = None,
auto_pause: Optional[str] = None,
min_cpu: Optional[float] = None,
old_ip_reserve_hours: Optional[float] = None,
open_ro_group: Optional[bool] = None,
db_mode: Optional[str] = None,
param_template_id: Optional[float] = None,
charge_type: Optional[str] = None,
port: Optional[float] = None,
prarm_template_id: Optional[float] = None,
prepaid_period: Optional[float] = None,
project_id: Optional[float] = None,
ro_group_sgs: Optional[Sequence[str]] = None,
rw_group_sgs: Optional[Sequence[str]] = None,
serverless_status_flag: Optional[str] = None,
single_ro_group_sgs: Optional[Sequence[str]] = None,
slave_zone: Optional[str] = None,
storage_limit: Optional[float] = None,
storage_pay_mode: Optional[float] = None,
auto_renew_flag: Optional[float] = None,
tags: Optional[Mapping[str, str]] = None,
auto_pause_delay: Optional[float] = None)func NewCynosdbClusterV2(ctx *Context, name string, args CynosdbClusterV2Args, opts ...ResourceOption) (*CynosdbClusterV2, error)public CynosdbClusterV2(string name, CynosdbClusterV2Args args, CustomResourceOptions? opts = null)
public CynosdbClusterV2(String name, CynosdbClusterV2Args args)
public CynosdbClusterV2(String name, CynosdbClusterV2Args args, CustomResourceOptions options)
type: tencentcloud:CynosdbClusterV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_cynosdb_cluster_v2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CynosdbClusterV2Args
- 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 CynosdbClusterV2Args
- 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 CynosdbClusterV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CynosdbClusterV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CynosdbClusterV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CynosdbClusterV2 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 CynosdbClusterV2 resource accepts the following input properties:
- Available
Zone string - The available zone of the CynosDB Cluster.
- Cluster
Name string - Name of CynosDB cluster.
- Db
Type string - Type of CynosDB, and available values include
MYSQL. - Db
Version string - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - Password string
- Password of
rootaccount. - Subnet
Id string - ID of the subnet within this VPC.
- Vpc
Id string - ID of the VPC.
- Auto
Pause string - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - Auto
Pause doubleDelay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - Auto
Renew doubleFlag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - Charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - Cynos
Version string - Kernel minor version, like
3.1.16.002. - Cynosdb
Cluster stringV2Id - ID of the resource.
- Db
Mode string - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - Force
Delete bool - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - Instance
Count double - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- Instance
Cpu doubleCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Init List<CynosdbInfos Cluster V2Instance Init Info> - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- Instance
Maintain doubleDuration - Duration time for maintenance, unit in second.
3600by default. - Instance
Maintain doubleStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - Instance
Maintain List<string>Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - Instance
Memory doubleSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Name string - Name of instance. Only supported when modifying.
- Max
Cpu double - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - Min
Cpu double - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - Old
Ip doubleReserve Hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- Open
Ro boolGroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- Param
Items List<CynosdbCluster V2Param Item> - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - Param
Template doubleId - The ID of the parameter template.
- Port double
- Port of CynosDB cluster.
- Prarm
Template doubleId - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - Prepaid
Period double - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - Project
Id double - ID of the project.
0by default. - Ro
Group List<string>Sgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - Rw
Group List<string>Sgs - IDs of security group for
rw_group. - Serverless
Status stringFlag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - Single
Ro List<string>Group Sgs - IDs of security group for
single_ro_group. - Slave
Zone string - Multi zone Addresses of the CynosDB Cluster.
- Storage
Limit double - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - Storage
Pay doubleMode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - Dictionary<string, string>
- The tags of the CynosDB cluster.
- Available
Zone string - The available zone of the CynosDB Cluster.
- Cluster
Name string - Name of CynosDB cluster.
- Db
Type string - Type of CynosDB, and available values include
MYSQL. - Db
Version string - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - Password string
- Password of
rootaccount. - Subnet
Id string - ID of the subnet within this VPC.
- Vpc
Id string - ID of the VPC.
- Auto
Pause string - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - Auto
Pause float64Delay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - Auto
Renew float64Flag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - Charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - Cynos
Version string - Kernel minor version, like
3.1.16.002. - Cynosdb
Cluster stringV2Id - ID of the resource.
- Db
Mode string - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - Force
Delete bool - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - Instance
Count float64 - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- Instance
Cpu float64Core - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Init []CynosdbInfos Cluster V2Instance Init Info Args - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- Instance
Maintain float64Duration - Duration time for maintenance, unit in second.
3600by default. - Instance
Maintain float64Start Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - Instance
Maintain []stringWeekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - Instance
Memory float64Size - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Name string - Name of instance. Only supported when modifying.
- Max
Cpu float64 - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - Min
Cpu float64 - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - Old
Ip float64Reserve Hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- Open
Ro boolGroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- Param
Items []CynosdbCluster V2Param Item Args - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - Param
Template float64Id - The ID of the parameter template.
- Port float64
- Port of CynosDB cluster.
- Prarm
Template float64Id - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - Prepaid
Period float64 - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - Project
Id float64 - ID of the project.
0by default. - Ro
Group []stringSgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - Rw
Group []stringSgs - IDs of security group for
rw_group. - Serverless
Status stringFlag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - Single
Ro []stringGroup Sgs - IDs of security group for
single_ro_group. - Slave
Zone string - Multi zone Addresses of the CynosDB Cluster.
- Storage
Limit float64 - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - Storage
Pay float64Mode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - map[string]string
- The tags of the CynosDB cluster.
- available_
zone string - The available zone of the CynosDB Cluster.
- cluster_
name string - Name of CynosDB cluster.
- db_
type string - Type of CynosDB, and available values include
MYSQL. - db_
version string - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - password string
- Password of
rootaccount. - subnet_
id string - ID of the subnet within this VPC.
- vpc_
id string - ID of the VPC.
- auto_
pause string - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - auto_
pause_ numberdelay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - auto_
renew_ numberflag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - charge_
type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - cynos_
version string - Kernel minor version, like
3.1.16.002. - cynosdb_
cluster_ stringv2_ id - ID of the resource.
- db_
mode string - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - force_
delete bool - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - instance_
count number - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- instance_
cpu_ numbercore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance_
init_ list(object)infos - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- instance_
maintain_ numberduration - Duration time for maintenance, unit in second.
3600by default. - instance_
maintain_ numberstart_ time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - instance_
maintain_ list(string)weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - instance_
memory_ numbersize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance_
name string - Name of instance. Only supported when modifying.
- max_
cpu number - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - min_
cpu number - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - old_
ip_ numberreserve_ hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- open_
ro_ boolgroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- param_
items list(object) - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - param_
template_ numberid - The ID of the parameter template.
- port number
- Port of CynosDB cluster.
- prarm_
template_ numberid - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - prepaid_
period number - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - project_
id number - ID of the project.
0by default. - ro_
group_ list(string)sgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - rw_
group_ list(string)sgs - IDs of security group for
rw_group. - serverless_
status_ stringflag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - single_
ro_ list(string)group_ sgs - IDs of security group for
single_ro_group. - slave_
zone string - Multi zone Addresses of the CynosDB Cluster.
- storage_
limit number - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - storage_
pay_ numbermode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - map(string)
- The tags of the CynosDB cluster.
- available
Zone String - The available zone of the CynosDB Cluster.
- cluster
Name String - Name of CynosDB cluster.
- db
Type String - Type of CynosDB, and available values include
MYSQL. - db
Version String - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - password String
- Password of
rootaccount. - subnet
Id String - ID of the subnet within this VPC.
- vpc
Id String - ID of the VPC.
- auto
Pause String - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - auto
Pause DoubleDelay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - auto
Renew DoubleFlag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - charge
Type String - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - cynos
Version String - Kernel minor version, like
3.1.16.002. - cynosdb
Cluster StringV2Id - ID of the resource.
- db
Mode String - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - force
Delete Boolean - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - instance
Count Double - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- instance
Cpu DoubleCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Init List<CynosdbInfos Cluster V2Instance Init Info> - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- instance
Maintain DoubleDuration - Duration time for maintenance, unit in second.
3600by default. - instance
Maintain DoubleStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - instance
Maintain List<String>Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - instance
Memory DoubleSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Name String - Name of instance. Only supported when modifying.
- max
Cpu Double - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - min
Cpu Double - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - old
Ip DoubleReserve Hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- open
Ro BooleanGroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- param
Items List<CynosdbCluster V2Param Item> - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - param
Template DoubleId - The ID of the parameter template.
- port Double
- Port of CynosDB cluster.
- prarm
Template DoubleId - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - prepaid
Period Double - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - project
Id Double - ID of the project.
0by default. - ro
Group List<String>Sgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - rw
Group List<String>Sgs - IDs of security group for
rw_group. - serverless
Status StringFlag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - single
Ro List<String>Group Sgs - IDs of security group for
single_ro_group. - slave
Zone String - Multi zone Addresses of the CynosDB Cluster.
- storage
Limit Double - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - storage
Pay DoubleMode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - Map<String,String>
- The tags of the CynosDB cluster.
- available
Zone string - The available zone of the CynosDB Cluster.
- cluster
Name string - Name of CynosDB cluster.
- db
Type string - Type of CynosDB, and available values include
MYSQL. - db
Version string - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - password string
- Password of
rootaccount. - subnet
Id string - ID of the subnet within this VPC.
- vpc
Id string - ID of the VPC.
- auto
Pause string - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - auto
Pause numberDelay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - auto
Renew numberFlag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - cynos
Version string - Kernel minor version, like
3.1.16.002. - cynosdb
Cluster stringV2Id - ID of the resource.
- db
Mode string - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - force
Delete boolean - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - instance
Count number - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- instance
Cpu numberCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Init CynosdbInfos Cluster V2Instance Init Info[] - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- instance
Maintain numberDuration - Duration time for maintenance, unit in second.
3600by default. - instance
Maintain numberStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - instance
Maintain string[]Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - instance
Memory numberSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Name string - Name of instance. Only supported when modifying.
- max
Cpu number - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - min
Cpu number - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - old
Ip numberReserve Hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- open
Ro booleanGroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- param
Items CynosdbCluster V2Param Item[] - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - param
Template numberId - The ID of the parameter template.
- port number
- Port of CynosDB cluster.
- prarm
Template numberId - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - prepaid
Period number - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - project
Id number - ID of the project.
0by default. - ro
Group string[]Sgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - rw
Group string[]Sgs - IDs of security group for
rw_group. - serverless
Status stringFlag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - single
Ro string[]Group Sgs - IDs of security group for
single_ro_group. - slave
Zone string - Multi zone Addresses of the CynosDB Cluster.
- storage
Limit number - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - storage
Pay numberMode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - {[key: string]: string}
- The tags of the CynosDB cluster.
- available_
zone str - The available zone of the CynosDB Cluster.
- cluster_
name str - Name of CynosDB cluster.
- db_
type str - Type of CynosDB, and available values include
MYSQL. - db_
version str - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - password str
- Password of
rootaccount. - subnet_
id str - ID of the subnet within this VPC.
- vpc_
id str - ID of the VPC.
- auto_
pause str - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - auto_
pause_ floatdelay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - auto_
renew_ floatflag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - charge_
type str - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - cynos_
version str - Kernel minor version, like
3.1.16.002. - cynosdb_
cluster_ strv2_ id - ID of the resource.
- db_
mode str - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - force_
delete bool - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - instance_
count float - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- instance_
cpu_ floatcore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance_
init_ Sequence[Cynosdbinfos Cluster V2Instance Init Info Args] - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- instance_
maintain_ floatduration - Duration time for maintenance, unit in second.
3600by default. - instance_
maintain_ floatstart_ time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - instance_
maintain_ Sequence[str]weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - instance_
memory_ floatsize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance_
name str - Name of instance. Only supported when modifying.
- max_
cpu float - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - min_
cpu float - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - old_
ip_ floatreserve_ hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- open_
ro_ boolgroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- param_
items Sequence[CynosdbCluster V2Param Item Args] - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - param_
template_ floatid - The ID of the parameter template.
- port float
- Port of CynosDB cluster.
- prarm_
template_ floatid - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - prepaid_
period float - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - project_
id float - ID of the project.
0by default. - ro_
group_ Sequence[str]sgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - rw_
group_ Sequence[str]sgs - IDs of security group for
rw_group. - serverless_
status_ strflag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - single_
ro_ Sequence[str]group_ sgs - IDs of security group for
single_ro_group. - slave_
zone str - Multi zone Addresses of the CynosDB Cluster.
- storage_
limit float - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - storage_
pay_ floatmode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - Mapping[str, str]
- The tags of the CynosDB cluster.
- available
Zone String - The available zone of the CynosDB Cluster.
- cluster
Name String - Name of CynosDB cluster.
- db
Type String - Type of CynosDB, and available values include
MYSQL. - db
Version String - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - password String
- Password of
rootaccount. - subnet
Id String - ID of the subnet within this VPC.
- vpc
Id String - ID of the VPC.
- auto
Pause String - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - auto
Pause NumberDelay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - auto
Renew NumberFlag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - charge
Type String - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - cynos
Version String - Kernel minor version, like
3.1.16.002. - cynosdb
Cluster StringV2Id - ID of the resource.
- db
Mode String - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - force
Delete Boolean - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - instance
Count Number - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- instance
Cpu NumberCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Init List<Property Map>Infos - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- instance
Maintain NumberDuration - Duration time for maintenance, unit in second.
3600by default. - instance
Maintain NumberStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - instance
Maintain List<String>Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - instance
Memory NumberSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Name String - Name of instance. Only supported when modifying.
- max
Cpu Number - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - min
Cpu Number - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - old
Ip NumberReserve Hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- open
Ro BooleanGroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- param
Items List<Property Map> - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - param
Template NumberId - The ID of the parameter template.
- port Number
- Port of CynosDB cluster.
- prarm
Template NumberId - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - prepaid
Period Number - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - project
Id Number - ID of the project.
0by default. - ro
Group List<String>Sgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - rw
Group List<String>Sgs - IDs of security group for
rw_group. - serverless
Status StringFlag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - single
Ro List<String>Group Sgs - IDs of security group for
single_ro_group. - slave
Zone String - Multi zone Addresses of the CynosDB Cluster.
- storage
Limit Number - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - storage
Pay NumberMode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - Map<String>
- The tags of the CynosDB cluster.
Outputs
All input properties are implicitly available as output properties. Additionally, the CynosdbClusterV2 resource produces the following output properties:
- Charset string
- Charset used by CynosDB cluster.
- Cluster
Status string - Status of the Cynosdb cluster.
- Create
Time string - Creation time of the CynosDB cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - ID of instance.
- Instance
Status string - Status of the instance.
- Instance
Storage doubleSize - Storage size of the instance, unit in GB.
- Ro
Group List<CynosdbAddrs Cluster V2Ro Group Addr> - Readonly addresses. Each element contains the following attributes:
- Ro
Group stringId - ID of read-only instance group.
- Ro
Group List<CynosdbInstances Cluster V2Ro Group Instance> - List of instances in the read-only instance group.
- Rw
Group List<CynosdbAddrs Cluster V2Rw Group Addr> - Read-write addresses. Each element contains the following attributes:
- Rw
Group stringId - ID of read-write instance group.
- Rw
Group List<CynosdbInstances Cluster V2Rw Group Instance> - List of instances in the read-write instance group.
- Serverless
Status string - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - Single
Ro List<CynosdbGroup Infos Cluster V2Single Ro Group Info> - List of single-read-only instance group.
- Storage
Used double - Used storage of CynosDB cluster, unit in MB.
- Charset string
- Charset used by CynosDB cluster.
- Cluster
Status string - Status of the Cynosdb cluster.
- Create
Time string - Creation time of the CynosDB cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - ID of instance.
- Instance
Status string - Status of the instance.
- Instance
Storage float64Size - Storage size of the instance, unit in GB.
- Ro
Group []CynosdbAddrs Cluster V2Ro Group Addr - Readonly addresses. Each element contains the following attributes:
- Ro
Group stringId - ID of read-only instance group.
- Ro
Group []CynosdbInstances Cluster V2Ro Group Instance - List of instances in the read-only instance group.
- Rw
Group []CynosdbAddrs Cluster V2Rw Group Addr - Read-write addresses. Each element contains the following attributes:
- Rw
Group stringId - ID of read-write instance group.
- Rw
Group []CynosdbInstances Cluster V2Rw Group Instance - List of instances in the read-write instance group.
- Serverless
Status string - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - Single
Ro []CynosdbGroup Infos Cluster V2Single Ro Group Info - List of single-read-only instance group.
- Storage
Used float64 - Used storage of CynosDB cluster, unit in MB.
- charset string
- Charset used by CynosDB cluster.
- cluster_
status string - Status of the Cynosdb cluster.
- create_
time string - Creation time of the CynosDB cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- instance_
id string - ID of instance.
- instance_
status string - Status of the instance.
- instance_
storage_ numbersize - Storage size of the instance, unit in GB.
- ro_
group_ list(object)addrs - Readonly addresses. Each element contains the following attributes:
- ro_
group_ stringid - ID of read-only instance group.
- ro_
group_ list(object)instances - List of instances in the read-only instance group.
- rw_
group_ list(object)addrs - Read-write addresses. Each element contains the following attributes:
- rw_
group_ stringid - ID of read-write instance group.
- rw_
group_ list(object)instances - List of instances in the read-write instance group.
- serverless_
status string - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - single_
ro_ list(object)group_ infos - List of single-read-only instance group.
- storage_
used number - Used storage of CynosDB cluster, unit in MB.
- charset String
- Charset used by CynosDB cluster.
- cluster
Status String - Status of the Cynosdb cluster.
- create
Time String - Creation time of the CynosDB cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - ID of instance.
- instance
Status String - Status of the instance.
- instance
Storage DoubleSize - Storage size of the instance, unit in GB.
- ro
Group List<CynosdbAddrs Cluster V2Ro Group Addr> - Readonly addresses. Each element contains the following attributes:
- ro
Group StringId - ID of read-only instance group.
- ro
Group List<CynosdbInstances Cluster V2Ro Group Instance> - List of instances in the read-only instance group.
- rw
Group List<CynosdbAddrs Cluster V2Rw Group Addr> - Read-write addresses. Each element contains the following attributes:
- rw
Group StringId - ID of read-write instance group.
- rw
Group List<CynosdbInstances Cluster V2Rw Group Instance> - List of instances in the read-write instance group.
- serverless
Status String - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - single
Ro List<CynosdbGroup Infos Cluster V2Single Ro Group Info> - List of single-read-only instance group.
- storage
Used Double - Used storage of CynosDB cluster, unit in MB.
- charset string
- Charset used by CynosDB cluster.
- cluster
Status string - Status of the Cynosdb cluster.
- create
Time string - Creation time of the CynosDB cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - ID of instance.
- instance
Status string - Status of the instance.
- instance
Storage numberSize - Storage size of the instance, unit in GB.
- ro
Group CynosdbAddrs Cluster V2Ro Group Addr[] - Readonly addresses. Each element contains the following attributes:
- ro
Group stringId - ID of read-only instance group.
- ro
Group CynosdbInstances Cluster V2Ro Group Instance[] - List of instances in the read-only instance group.
- rw
Group CynosdbAddrs Cluster V2Rw Group Addr[] - Read-write addresses. Each element contains the following attributes:
- rw
Group stringId - ID of read-write instance group.
- rw
Group CynosdbInstances Cluster V2Rw Group Instance[] - List of instances in the read-write instance group.
- serverless
Status string - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - single
Ro CynosdbGroup Infos Cluster V2Single Ro Group Info[] - List of single-read-only instance group.
- storage
Used number - Used storage of CynosDB cluster, unit in MB.
- charset str
- Charset used by CynosDB cluster.
- cluster_
status str - Status of the Cynosdb cluster.
- create_
time str - Creation time of the CynosDB cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - ID of instance.
- instance_
status str - Status of the instance.
- instance_
storage_ floatsize - Storage size of the instance, unit in GB.
- ro_
group_ Sequence[Cynosdbaddrs Cluster V2Ro Group Addr] - Readonly addresses. Each element contains the following attributes:
- ro_
group_ strid - ID of read-only instance group.
- ro_
group_ Sequence[Cynosdbinstances Cluster V2Ro Group Instance] - List of instances in the read-only instance group.
- rw_
group_ Sequence[Cynosdbaddrs Cluster V2Rw Group Addr] - Read-write addresses. Each element contains the following attributes:
- rw_
group_ strid - ID of read-write instance group.
- rw_
group_ Sequence[Cynosdbinstances Cluster V2Rw Group Instance] - List of instances in the read-write instance group.
- serverless_
status str - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - single_
ro_ Sequence[Cynosdbgroup_ infos Cluster V2Single Ro Group Info] - List of single-read-only instance group.
- storage_
used float - Used storage of CynosDB cluster, unit in MB.
- charset String
- Charset used by CynosDB cluster.
- cluster
Status String - Status of the Cynosdb cluster.
- create
Time String - Creation time of the CynosDB cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - ID of instance.
- instance
Status String - Status of the instance.
- instance
Storage NumberSize - Storage size of the instance, unit in GB.
- ro
Group List<Property Map>Addrs - Readonly addresses. Each element contains the following attributes:
- ro
Group StringId - ID of read-only instance group.
- ro
Group List<Property Map>Instances - List of instances in the read-only instance group.
- rw
Group List<Property Map>Addrs - Read-write addresses. Each element contains the following attributes:
- rw
Group StringId - ID of read-write instance group.
- rw
Group List<Property Map>Instances - List of instances in the read-write instance group.
- serverless
Status String - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - single
Ro List<Property Map>Group Infos - List of single-read-only instance group.
- storage
Used Number - Used storage of CynosDB cluster, unit in MB.
Look up Existing CynosdbClusterV2 Resource
Get an existing CynosdbClusterV2 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?: CynosdbClusterV2State, opts?: CustomResourceOptions): CynosdbClusterV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_pause: Optional[str] = None,
auto_pause_delay: Optional[float] = None,
auto_renew_flag: Optional[float] = None,
available_zone: Optional[str] = None,
charge_type: Optional[str] = None,
charset: Optional[str] = None,
cluster_name: Optional[str] = None,
cluster_status: Optional[str] = None,
create_time: Optional[str] = None,
cynos_version: Optional[str] = None,
cynosdb_cluster_v2_id: Optional[str] = None,
db_mode: Optional[str] = None,
db_type: Optional[str] = None,
db_version: Optional[str] = None,
force_delete: Optional[bool] = None,
instance_count: Optional[float] = None,
instance_cpu_core: Optional[float] = None,
instance_id: Optional[str] = None,
instance_init_infos: Optional[Sequence[CynosdbClusterV2InstanceInitInfoArgs]] = None,
instance_maintain_duration: Optional[float] = None,
instance_maintain_start_time: Optional[float] = None,
instance_maintain_weekdays: Optional[Sequence[str]] = None,
instance_memory_size: Optional[float] = None,
instance_name: Optional[str] = None,
instance_status: Optional[str] = None,
instance_storage_size: Optional[float] = None,
max_cpu: Optional[float] = None,
min_cpu: Optional[float] = None,
old_ip_reserve_hours: Optional[float] = None,
open_ro_group: Optional[bool] = None,
param_items: Optional[Sequence[CynosdbClusterV2ParamItemArgs]] = None,
param_template_id: Optional[float] = None,
password: Optional[str] = None,
port: Optional[float] = None,
prarm_template_id: Optional[float] = None,
prepaid_period: Optional[float] = None,
project_id: Optional[float] = None,
ro_group_addrs: Optional[Sequence[CynosdbClusterV2RoGroupAddrArgs]] = None,
ro_group_id: Optional[str] = None,
ro_group_instances: Optional[Sequence[CynosdbClusterV2RoGroupInstanceArgs]] = None,
ro_group_sgs: Optional[Sequence[str]] = None,
rw_group_addrs: Optional[Sequence[CynosdbClusterV2RwGroupAddrArgs]] = None,
rw_group_id: Optional[str] = None,
rw_group_instances: Optional[Sequence[CynosdbClusterV2RwGroupInstanceArgs]] = None,
rw_group_sgs: Optional[Sequence[str]] = None,
serverless_status: Optional[str] = None,
serverless_status_flag: Optional[str] = None,
single_ro_group_infos: Optional[Sequence[CynosdbClusterV2SingleRoGroupInfoArgs]] = None,
single_ro_group_sgs: Optional[Sequence[str]] = None,
slave_zone: Optional[str] = None,
storage_limit: Optional[float] = None,
storage_pay_mode: Optional[float] = None,
storage_used: Optional[float] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None) -> CynosdbClusterV2func GetCynosdbClusterV2(ctx *Context, name string, id IDInput, state *CynosdbClusterV2State, opts ...ResourceOption) (*CynosdbClusterV2, error)public static CynosdbClusterV2 Get(string name, Input<string> id, CynosdbClusterV2State? state, CustomResourceOptions? opts = null)public static CynosdbClusterV2 get(String name, Output<String> id, CynosdbClusterV2State state, CustomResourceOptions options)resources: _: type: tencentcloud:CynosdbClusterV2 get: id: ${id}import {
to = tencentcloud_cynosdb_cluster_v2.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
Pause string - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - Auto
Pause doubleDelay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - Auto
Renew doubleFlag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - Available
Zone string - The available zone of the CynosDB Cluster.
- Charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - Charset string
- Charset used by CynosDB cluster.
- Cluster
Name string - Name of CynosDB cluster.
- Cluster
Status string - Status of the Cynosdb cluster.
- Create
Time string - Creation time of the CynosDB cluster.
- Cynos
Version string - Kernel minor version, like
3.1.16.002. - Cynosdb
Cluster stringV2Id - ID of the resource.
- Db
Mode string - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - Db
Type string - Type of CynosDB, and available values include
MYSQL. - Db
Version string - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - Force
Delete bool - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - Instance
Count double - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- Instance
Cpu doubleCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Id string - ID of instance.
- Instance
Init List<CynosdbInfos Cluster V2Instance Init Info> - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- Instance
Maintain doubleDuration - Duration time for maintenance, unit in second.
3600by default. - Instance
Maintain doubleStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - Instance
Maintain List<string>Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - Instance
Memory doubleSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Name string - Name of instance. Only supported when modifying.
- Instance
Status string - Status of the instance.
- Instance
Storage doubleSize - Storage size of the instance, unit in GB.
- Max
Cpu double - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - Min
Cpu double - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - Old
Ip doubleReserve Hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- Open
Ro boolGroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- Param
Items List<CynosdbCluster V2Param Item> - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - Param
Template doubleId - The ID of the parameter template.
- Password string
- Password of
rootaccount. - Port double
- Port of CynosDB cluster.
- Prarm
Template doubleId - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - Prepaid
Period double - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - Project
Id double - ID of the project.
0by default. - Ro
Group List<CynosdbAddrs Cluster V2Ro Group Addr> - Readonly addresses. Each element contains the following attributes:
- Ro
Group stringId - ID of read-only instance group.
- Ro
Group List<CynosdbInstances Cluster V2Ro Group Instance> - List of instances in the read-only instance group.
- Ro
Group List<string>Sgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - Rw
Group List<CynosdbAddrs Cluster V2Rw Group Addr> - Read-write addresses. Each element contains the following attributes:
- Rw
Group stringId - ID of read-write instance group.
- Rw
Group List<CynosdbInstances Cluster V2Rw Group Instance> - List of instances in the read-write instance group.
- Rw
Group List<string>Sgs - IDs of security group for
rw_group. - Serverless
Status string - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - Serverless
Status stringFlag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - Single
Ro List<CynosdbGroup Infos Cluster V2Single Ro Group Info> - List of single-read-only instance group.
- Single
Ro List<string>Group Sgs - IDs of security group for
single_ro_group. - Slave
Zone string - Multi zone Addresses of the CynosDB Cluster.
- Storage
Limit double - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - Storage
Pay doubleMode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - Storage
Used double - Used storage of CynosDB cluster, unit in MB.
- Subnet
Id string - ID of the subnet within this VPC.
- Dictionary<string, string>
- The tags of the CynosDB cluster.
- Vpc
Id string - ID of the VPC.
- Auto
Pause string - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - Auto
Pause float64Delay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - Auto
Renew float64Flag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - Available
Zone string - The available zone of the CynosDB Cluster.
- Charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - Charset string
- Charset used by CynosDB cluster.
- Cluster
Name string - Name of CynosDB cluster.
- Cluster
Status string - Status of the Cynosdb cluster.
- Create
Time string - Creation time of the CynosDB cluster.
- Cynos
Version string - Kernel minor version, like
3.1.16.002. - Cynosdb
Cluster stringV2Id - ID of the resource.
- Db
Mode string - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - Db
Type string - Type of CynosDB, and available values include
MYSQL. - Db
Version string - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - Force
Delete bool - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - Instance
Count float64 - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- Instance
Cpu float64Core - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Id string - ID of instance.
- Instance
Init []CynosdbInfos Cluster V2Instance Init Info Args - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- Instance
Maintain float64Duration - Duration time for maintenance, unit in second.
3600by default. - Instance
Maintain float64Start Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - Instance
Maintain []stringWeekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - Instance
Memory float64Size - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Name string - Name of instance. Only supported when modifying.
- Instance
Status string - Status of the instance.
- Instance
Storage float64Size - Storage size of the instance, unit in GB.
- Max
Cpu float64 - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - Min
Cpu float64 - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - Old
Ip float64Reserve Hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- Open
Ro boolGroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- Param
Items []CynosdbCluster V2Param Item Args - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - Param
Template float64Id - The ID of the parameter template.
- Password string
- Password of
rootaccount. - Port float64
- Port of CynosDB cluster.
- Prarm
Template float64Id - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - Prepaid
Period float64 - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - Project
Id float64 - ID of the project.
0by default. - Ro
Group []CynosdbAddrs Cluster V2Ro Group Addr Args - Readonly addresses. Each element contains the following attributes:
- Ro
Group stringId - ID of read-only instance group.
- Ro
Group []CynosdbInstances Cluster V2Ro Group Instance Args - List of instances in the read-only instance group.
- Ro
Group []stringSgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - Rw
Group []CynosdbAddrs Cluster V2Rw Group Addr Args - Read-write addresses. Each element contains the following attributes:
- Rw
Group stringId - ID of read-write instance group.
- Rw
Group []CynosdbInstances Cluster V2Rw Group Instance Args - List of instances in the read-write instance group.
- Rw
Group []stringSgs - IDs of security group for
rw_group. - Serverless
Status string - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - Serverless
Status stringFlag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - Single
Ro []CynosdbGroup Infos Cluster V2Single Ro Group Info Args - List of single-read-only instance group.
- Single
Ro []stringGroup Sgs - IDs of security group for
single_ro_group. - Slave
Zone string - Multi zone Addresses of the CynosDB Cluster.
- Storage
Limit float64 - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - Storage
Pay float64Mode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - Storage
Used float64 - Used storage of CynosDB cluster, unit in MB.
- Subnet
Id string - ID of the subnet within this VPC.
- map[string]string
- The tags of the CynosDB cluster.
- Vpc
Id string - ID of the VPC.
- auto_
pause string - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - auto_
pause_ numberdelay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - auto_
renew_ numberflag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - available_
zone string - The available zone of the CynosDB Cluster.
- charge_
type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - charset string
- Charset used by CynosDB cluster.
- cluster_
name string - Name of CynosDB cluster.
- cluster_
status string - Status of the Cynosdb cluster.
- create_
time string - Creation time of the CynosDB cluster.
- cynos_
version string - Kernel minor version, like
3.1.16.002. - cynosdb_
cluster_ stringv2_ id - ID of the resource.
- db_
mode string - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - db_
type string - Type of CynosDB, and available values include
MYSQL. - db_
version string - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - force_
delete bool - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - instance_
count number - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- instance_
cpu_ numbercore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance_
id string - ID of instance.
- instance_
init_ list(object)infos - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- instance_
maintain_ numberduration - Duration time for maintenance, unit in second.
3600by default. - instance_
maintain_ numberstart_ time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - instance_
maintain_ list(string)weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - instance_
memory_ numbersize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance_
name string - Name of instance. Only supported when modifying.
- instance_
status string - Status of the instance.
- instance_
storage_ numbersize - Storage size of the instance, unit in GB.
- max_
cpu number - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - min_
cpu number - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - old_
ip_ numberreserve_ hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- open_
ro_ boolgroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- param_
items list(object) - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - param_
template_ numberid - The ID of the parameter template.
- password string
- Password of
rootaccount. - port number
- Port of CynosDB cluster.
- prarm_
template_ numberid - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - prepaid_
period number - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - project_
id number - ID of the project.
0by default. - ro_
group_ list(object)addrs - Readonly addresses. Each element contains the following attributes:
- ro_
group_ stringid - ID of read-only instance group.
- ro_
group_ list(object)instances - List of instances in the read-only instance group.
- ro_
group_ list(string)sgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - rw_
group_ list(object)addrs - Read-write addresses. Each element contains the following attributes:
- rw_
group_ stringid - ID of read-write instance group.
- rw_
group_ list(object)instances - List of instances in the read-write instance group.
- rw_
group_ list(string)sgs - IDs of security group for
rw_group. - serverless_
status string - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - serverless_
status_ stringflag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - single_
ro_ list(object)group_ infos - List of single-read-only instance group.
- single_
ro_ list(string)group_ sgs - IDs of security group for
single_ro_group. - slave_
zone string - Multi zone Addresses of the CynosDB Cluster.
- storage_
limit number - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - storage_
pay_ numbermode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - storage_
used number - Used storage of CynosDB cluster, unit in MB.
- subnet_
id string - ID of the subnet within this VPC.
- map(string)
- The tags of the CynosDB cluster.
- vpc_
id string - ID of the VPC.
- auto
Pause String - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - auto
Pause DoubleDelay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - auto
Renew DoubleFlag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - available
Zone String - The available zone of the CynosDB Cluster.
- charge
Type String - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - charset String
- Charset used by CynosDB cluster.
- cluster
Name String - Name of CynosDB cluster.
- cluster
Status String - Status of the Cynosdb cluster.
- create
Time String - Creation time of the CynosDB cluster.
- cynos
Version String - Kernel minor version, like
3.1.16.002. - cynosdb
Cluster StringV2Id - ID of the resource.
- db
Mode String - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - db
Type String - Type of CynosDB, and available values include
MYSQL. - db
Version String - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - force
Delete Boolean - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - instance
Count Double - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- instance
Cpu DoubleCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Id String - ID of instance.
- instance
Init List<CynosdbInfos Cluster V2Instance Init Info> - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- instance
Maintain DoubleDuration - Duration time for maintenance, unit in second.
3600by default. - instance
Maintain DoubleStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - instance
Maintain List<String>Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - instance
Memory DoubleSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Name String - Name of instance. Only supported when modifying.
- instance
Status String - Status of the instance.
- instance
Storage DoubleSize - Storage size of the instance, unit in GB.
- max
Cpu Double - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - min
Cpu Double - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - old
Ip DoubleReserve Hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- open
Ro BooleanGroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- param
Items List<CynosdbCluster V2Param Item> - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - param
Template DoubleId - The ID of the parameter template.
- password String
- Password of
rootaccount. - port Double
- Port of CynosDB cluster.
- prarm
Template DoubleId - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - prepaid
Period Double - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - project
Id Double - ID of the project.
0by default. - ro
Group List<CynosdbAddrs Cluster V2Ro Group Addr> - Readonly addresses. Each element contains the following attributes:
- ro
Group StringId - ID of read-only instance group.
- ro
Group List<CynosdbInstances Cluster V2Ro Group Instance> - List of instances in the read-only instance group.
- ro
Group List<String>Sgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - rw
Group List<CynosdbAddrs Cluster V2Rw Group Addr> - Read-write addresses. Each element contains the following attributes:
- rw
Group StringId - ID of read-write instance group.
- rw
Group List<CynosdbInstances Cluster V2Rw Group Instance> - List of instances in the read-write instance group.
- rw
Group List<String>Sgs - IDs of security group for
rw_group. - serverless
Status String - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - serverless
Status StringFlag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - single
Ro List<CynosdbGroup Infos Cluster V2Single Ro Group Info> - List of single-read-only instance group.
- single
Ro List<String>Group Sgs - IDs of security group for
single_ro_group. - slave
Zone String - Multi zone Addresses of the CynosDB Cluster.
- storage
Limit Double - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - storage
Pay DoubleMode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - storage
Used Double - Used storage of CynosDB cluster, unit in MB.
- subnet
Id String - ID of the subnet within this VPC.
- Map<String,String>
- The tags of the CynosDB cluster.
- vpc
Id String - ID of the VPC.
- auto
Pause string - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - auto
Pause numberDelay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - auto
Renew numberFlag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - available
Zone string - The available zone of the CynosDB Cluster.
- charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - charset string
- Charset used by CynosDB cluster.
- cluster
Name string - Name of CynosDB cluster.
- cluster
Status string - Status of the Cynosdb cluster.
- create
Time string - Creation time of the CynosDB cluster.
- cynos
Version string - Kernel minor version, like
3.1.16.002. - cynosdb
Cluster stringV2Id - ID of the resource.
- db
Mode string - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - db
Type string - Type of CynosDB, and available values include
MYSQL. - db
Version string - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - force
Delete boolean - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - instance
Count number - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- instance
Cpu numberCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Id string - ID of instance.
- instance
Init CynosdbInfos Cluster V2Instance Init Info[] - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- instance
Maintain numberDuration - Duration time for maintenance, unit in second.
3600by default. - instance
Maintain numberStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - instance
Maintain string[]Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - instance
Memory numberSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Name string - Name of instance. Only supported when modifying.
- instance
Status string - Status of the instance.
- instance
Storage numberSize - Storage size of the instance, unit in GB.
- max
Cpu number - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - min
Cpu number - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - old
Ip numberReserve Hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- open
Ro booleanGroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- param
Items CynosdbCluster V2Param Item[] - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - param
Template numberId - The ID of the parameter template.
- password string
- Password of
rootaccount. - port number
- Port of CynosDB cluster.
- prarm
Template numberId - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - prepaid
Period number - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - project
Id number - ID of the project.
0by default. - ro
Group CynosdbAddrs Cluster V2Ro Group Addr[] - Readonly addresses. Each element contains the following attributes:
- ro
Group stringId - ID of read-only instance group.
- ro
Group CynosdbInstances Cluster V2Ro Group Instance[] - List of instances in the read-only instance group.
- ro
Group string[]Sgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - rw
Group CynosdbAddrs Cluster V2Rw Group Addr[] - Read-write addresses. Each element contains the following attributes:
- rw
Group stringId - ID of read-write instance group.
- rw
Group CynosdbInstances Cluster V2Rw Group Instance[] - List of instances in the read-write instance group.
- rw
Group string[]Sgs - IDs of security group for
rw_group. - serverless
Status string - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - serverless
Status stringFlag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - single
Ro CynosdbGroup Infos Cluster V2Single Ro Group Info[] - List of single-read-only instance group.
- single
Ro string[]Group Sgs - IDs of security group for
single_ro_group. - slave
Zone string - Multi zone Addresses of the CynosDB Cluster.
- storage
Limit number - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - storage
Pay numberMode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - storage
Used number - Used storage of CynosDB cluster, unit in MB.
- subnet
Id string - ID of the subnet within this VPC.
- {[key: string]: string}
- The tags of the CynosDB cluster.
- vpc
Id string - ID of the VPC.
- auto_
pause str - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - auto_
pause_ floatdelay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - auto_
renew_ floatflag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - available_
zone str - The available zone of the CynosDB Cluster.
- charge_
type str - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - charset str
- Charset used by CynosDB cluster.
- cluster_
name str - Name of CynosDB cluster.
- cluster_
status str - Status of the Cynosdb cluster.
- create_
time str - Creation time of the CynosDB cluster.
- cynos_
version str - Kernel minor version, like
3.1.16.002. - cynosdb_
cluster_ strv2_ id - ID of the resource.
- db_
mode str - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - db_
type str - Type of CynosDB, and available values include
MYSQL. - db_
version str - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - force_
delete bool - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - instance_
count float - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- instance_
cpu_ floatcore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance_
id str - ID of instance.
- instance_
init_ Sequence[Cynosdbinfos Cluster V2Instance Init Info Args] - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- instance_
maintain_ floatduration - Duration time for maintenance, unit in second.
3600by default. - instance_
maintain_ floatstart_ time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - instance_
maintain_ Sequence[str]weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - instance_
memory_ floatsize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance_
name str - Name of instance. Only supported when modifying.
- instance_
status str - Status of the instance.
- instance_
storage_ floatsize - Storage size of the instance, unit in GB.
- max_
cpu float - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - min_
cpu float - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - old_
ip_ floatreserve_ hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- open_
ro_ boolgroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- param_
items Sequence[CynosdbCluster V2Param Item Args] - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - param_
template_ floatid - The ID of the parameter template.
- password str
- Password of
rootaccount. - port float
- Port of CynosDB cluster.
- prarm_
template_ floatid - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - prepaid_
period float - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - project_
id float - ID of the project.
0by default. - ro_
group_ Sequence[Cynosdbaddrs Cluster V2Ro Group Addr Args] - Readonly addresses. Each element contains the following attributes:
- ro_
group_ strid - ID of read-only instance group.
- ro_
group_ Sequence[Cynosdbinstances Cluster V2Ro Group Instance Args] - List of instances in the read-only instance group.
- ro_
group_ Sequence[str]sgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - rw_
group_ Sequence[Cynosdbaddrs Cluster V2Rw Group Addr Args] - Read-write addresses. Each element contains the following attributes:
- rw_
group_ strid - ID of read-write instance group.
- rw_
group_ Sequence[Cynosdbinstances Cluster V2Rw Group Instance Args] - List of instances in the read-write instance group.
- rw_
group_ Sequence[str]sgs - IDs of security group for
rw_group. - serverless_
status str - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - serverless_
status_ strflag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - single_
ro_ Sequence[Cynosdbgroup_ infos Cluster V2Single Ro Group Info Args] - List of single-read-only instance group.
- single_
ro_ Sequence[str]group_ sgs - IDs of security group for
single_ro_group. - slave_
zone str - Multi zone Addresses of the CynosDB Cluster.
- storage_
limit float - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - storage_
pay_ floatmode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - storage_
used float - Used storage of CynosDB cluster, unit in MB.
- subnet_
id str - ID of the subnet within this VPC.
- Mapping[str, str]
- The tags of the CynosDB cluster.
- vpc_
id str - ID of the VPC.
- auto
Pause String - Specify whether the cluster can auto-pause while
db_modeisSERVERLESS. Values:yes(default),no. - auto
Pause NumberDelay - Specify auto-pause delay in second while
db_modeisSERVERLESS. Value range:[600, 691200]. Default:600. - auto
Renew NumberFlag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Default value is0. Only works for PREPAID cluster. - available
Zone String - The available zone of the CynosDB Cluster.
- charge
Type String - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - charset String
- Charset used by CynosDB cluster.
- cluster
Name String - Name of CynosDB cluster.
- cluster
Status String - Status of the Cynosdb cluster.
- create
Time String - Creation time of the CynosDB cluster.
- cynos
Version String - Kernel minor version, like
3.1.16.002. - cynosdb
Cluster StringV2Id - ID of the resource.
- db
Mode String - Specify DB mode, only available when
db_typeisMYSQL. Values:NORMAL(Default),SERVERLESS. - db
Type String - Type of CynosDB, and available values include
MYSQL. - db
Version String - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7,8.0. - force
Delete Boolean - Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its
All RELATED INSTANCESwill be deleted instead of staying recycle bin. Note: works for bothPREPAIDandPOSTPAID_BY_HOURcluster. - instance
Count Number - The number of instances, the range is (0,16], the default value is 2 (i.e. one RW instance + one Ro instance), the passed n means 1 RW instance + n-1 Ro instances (with the same specifications), if you need a more accurate cluster composition, please use InstanceInitInfos.
- instance
Cpu NumberCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Id String - ID of instance.
- instance
Init List<Property Map>Infos - Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
- instance
Maintain NumberDuration - Duration time for maintenance, unit in second.
3600by default. - instance
Maintain NumberStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800.10800by default. - instance
Maintain List<String>Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]by default. - instance
Memory NumberSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Name String - Name of instance. Only supported when modifying.
- instance
Status String - Status of the instance.
- instance
Storage NumberSize - Storage size of the instance, unit in GB.
- max
Cpu Number - Maximum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - min
Cpu Number - Minimum CPU core count, required while
db_modeisSERVERLESS, request DescribeServerlessInstanceSpecs for more reference. - old
Ip NumberReserve Hours - Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc.
- open
Ro BooleanGroup - Indicate whether to open read-only group or not. Once activated, it cannot be turned off. Default is false.
- param
Items List<Property Map> - Specify parameter list of database. It is valid when
param_template_idis set in create cluster. Usedata.tencentcloud_mysql_default_paramsto query available parameter details. - param
Template NumberId - The ID of the parameter template.
- password String
- Password of
rootaccount. - port Number
- Port of CynosDB cluster.
- prarm
Template NumberId - It will be deprecated. Use
param_template_idinstead. The ID of the parameter template. - prepaid
Period Number - The tenancy (time unit is month) of the prepaid instance. Valid values are
1,2,3,4,5,6,7,8,9,10,11,12,24,36. NOTE: it only works when charge_type is set toPREPAID. - project
Id Number - ID of the project.
0by default. - ro
Group List<Property Map>Addrs - Readonly addresses. Each element contains the following attributes:
- ro
Group StringId - ID of read-only instance group.
- ro
Group List<Property Map>Instances - List of instances in the read-only instance group.
- ro
Group List<String>Sgs - IDs of security group for
ro_group. Only work foropen_ro_groupis true. - rw
Group List<Property Map>Addrs - Read-write addresses. Each element contains the following attributes:
- rw
Group StringId - ID of read-write instance group.
- rw
Group List<Property Map>Instances - List of instances in the read-write instance group.
- rw
Group List<String>Sgs - IDs of security group for
rw_group. - serverless
Status String - Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set
serverless_status_flag. - serverless
Status StringFlag - Specify whether to pause or resume serverless cluster. values:
resume,pause. - single
Ro List<Property Map>Group Infos - List of single-read-only instance group.
- single
Ro List<String>Group Sgs - IDs of security group for
single_ro_group. - slave
Zone String - Multi zone Addresses of the CynosDB Cluster.
- storage
Limit Number - Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is
MYSQLand charge_type isPREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode isorder and pay. when charge_type isPOSTPAID_BY_HOUR, this argument is unnecessary. - storage
Pay NumberMode - Cluster storage billing mode, pay-as-you-go:
0-yearly/monthly:1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. - storage
Used Number - Used storage of CynosDB cluster, unit in MB.
- subnet
Id String - ID of the subnet within this VPC.
- Map<String>
- The tags of the CynosDB cluster.
- vpc
Id String - ID of the VPC.
Supporting Types
CynosdbClusterV2InstanceInitInfo, CynosdbClusterV2InstanceInitInfoArgs
- Cpu double
- CPU of instance.
- Instance
Count double - Instance count. Range: [1, 15].
- Instance
Type string - Instance type. Value:
rw,ro. - Memory double
- Memory of instance.
- Device
Type string - Instance machine type. Values:
common,exclusive. - Max
Ro doubleCount - Maximum number of Serverless instances. Range [1,15].
- Max
Ro doubleCpu - Maximum Serverless Instance Specifications.
- Min
Ro doubleCount - Minimum number of Serverless instances. Range [1,15].
- Min
Ro doubleCpu - Minimum Serverless Instance Specifications.
- Cpu float64
- CPU of instance.
- Instance
Count float64 - Instance count. Range: [1, 15].
- Instance
Type string - Instance type. Value:
rw,ro. - Memory float64
- Memory of instance.
- Device
Type string - Instance machine type. Values:
common,exclusive. - Max
Ro float64Count - Maximum number of Serverless instances. Range [1,15].
- Max
Ro float64Cpu - Maximum Serverless Instance Specifications.
- Min
Ro float64Count - Minimum number of Serverless instances. Range [1,15].
- Min
Ro float64Cpu - Minimum Serverless Instance Specifications.
- cpu number
- CPU of instance.
- instance_
count number - Instance count. Range: [1, 15].
- instance_
type string - Instance type. Value:
rw,ro. - memory number
- Memory of instance.
- device_
type string - Instance machine type. Values:
common,exclusive. - max_
ro_ numbercount - Maximum number of Serverless instances. Range [1,15].
- max_
ro_ numbercpu - Maximum Serverless Instance Specifications.
- min_
ro_ numbercount - Minimum number of Serverless instances. Range [1,15].
- min_
ro_ numbercpu - Minimum Serverless Instance Specifications.
- cpu Double
- CPU of instance.
- instance
Count Double - Instance count. Range: [1, 15].
- instance
Type String - Instance type. Value:
rw,ro. - memory Double
- Memory of instance.
- device
Type String - Instance machine type. Values:
common,exclusive. - max
Ro DoubleCount - Maximum number of Serverless instances. Range [1,15].
- max
Ro DoubleCpu - Maximum Serverless Instance Specifications.
- min
Ro DoubleCount - Minimum number of Serverless instances. Range [1,15].
- min
Ro DoubleCpu - Minimum Serverless Instance Specifications.
- cpu number
- CPU of instance.
- instance
Count number - Instance count. Range: [1, 15].
- instance
Type string - Instance type. Value:
rw,ro. - memory number
- Memory of instance.
- device
Type string - Instance machine type. Values:
common,exclusive. - max
Ro numberCount - Maximum number of Serverless instances. Range [1,15].
- max
Ro numberCpu - Maximum Serverless Instance Specifications.
- min
Ro numberCount - Minimum number of Serverless instances. Range [1,15].
- min
Ro numberCpu - Minimum Serverless Instance Specifications.
- cpu float
- CPU of instance.
- instance_
count float - Instance count. Range: [1, 15].
- instance_
type str - Instance type. Value:
rw,ro. - memory float
- Memory of instance.
- device_
type str - Instance machine type. Values:
common,exclusive. - max_
ro_ floatcount - Maximum number of Serverless instances. Range [1,15].
- max_
ro_ floatcpu - Maximum Serverless Instance Specifications.
- min_
ro_ floatcount - Minimum number of Serverless instances. Range [1,15].
- min_
ro_ floatcpu - Minimum Serverless Instance Specifications.
- cpu Number
- CPU of instance.
- instance
Count Number - Instance count. Range: [1, 15].
- instance
Type String - Instance type. Value:
rw,ro. - memory Number
- Memory of instance.
- device
Type String - Instance machine type. Values:
common,exclusive. - max
Ro NumberCount - Maximum number of Serverless instances. Range [1,15].
- max
Ro NumberCpu - Maximum Serverless Instance Specifications.
- min
Ro NumberCount - Minimum number of Serverless instances. Range [1,15].
- min
Ro NumberCpu - Minimum Serverless Instance Specifications.
CynosdbClusterV2ParamItem, CynosdbClusterV2ParamItemArgs
- Current
Value string - Param expected value to set.
- Name string
- Name of param, e.g.
character_set_server. - Old
Value string - Param old value, indicates the value which already set, this value is required when modifying current_value.
- Current
Value string - Param expected value to set.
- Name string
- Name of param, e.g.
character_set_server. - Old
Value string - Param old value, indicates the value which already set, this value is required when modifying current_value.
- current_
value string - Param expected value to set.
- name string
- Name of param, e.g.
character_set_server. - old_
value string - Param old value, indicates the value which already set, this value is required when modifying current_value.
- current
Value String - Param expected value to set.
- name String
- Name of param, e.g.
character_set_server. - old
Value String - Param old value, indicates the value which already set, this value is required when modifying current_value.
- current
Value string - Param expected value to set.
- name string
- Name of param, e.g.
character_set_server. - old
Value string - Param old value, indicates the value which already set, this value is required when modifying current_value.
- current_
value str - Param expected value to set.
- name str
- Name of param, e.g.
character_set_server. - old_
value str - Param old value, indicates the value which already set, this value is required when modifying current_value.
- current
Value String - Param expected value to set.
- name String
- Name of param, e.g.
character_set_server. - old
Value String - Param old value, indicates the value which already set, this value is required when modifying current_value.
CynosdbClusterV2RoGroupAddr, CynosdbClusterV2RoGroupAddrArgs
CynosdbClusterV2RoGroupInstance, CynosdbClusterV2RoGroupInstanceArgs
- Instance
Id string - ID of instance.
- Instance
Name string - Name of instance. Only supported when modifying.
- Instance
Id string - ID of instance.
- Instance
Name string - Name of instance. Only supported when modifying.
- instance_
id string - ID of instance.
- instance_
name string - Name of instance. Only supported when modifying.
- instance
Id String - ID of instance.
- instance
Name String - Name of instance. Only supported when modifying.
- instance
Id string - ID of instance.
- instance
Name string - Name of instance. Only supported when modifying.
- instance_
id str - ID of instance.
- instance_
name str - Name of instance. Only supported when modifying.
- instance
Id String - ID of instance.
- instance
Name String - Name of instance. Only supported when modifying.
CynosdbClusterV2RwGroupAddr, CynosdbClusterV2RwGroupAddrArgs
CynosdbClusterV2RwGroupInstance, CynosdbClusterV2RwGroupInstanceArgs
- Instance
Id string - ID of instance.
- Instance
Name string - Name of instance. Only supported when modifying.
- Instance
Id string - ID of instance.
- Instance
Name string - Name of instance. Only supported when modifying.
- instance_
id string - ID of instance.
- instance_
name string - Name of instance. Only supported when modifying.
- instance
Id String - ID of instance.
- instance
Name String - Name of instance. Only supported when modifying.
- instance
Id string - ID of instance.
- instance
Name string - Name of instance. Only supported when modifying.
- instance_
id str - ID of instance.
- instance_
name str - Name of instance. Only supported when modifying.
- instance
Id String - ID of instance.
- instance
Name String - Name of instance. Only supported when modifying.
CynosdbClusterV2SingleRoGroupInfo, CynosdbClusterV2SingleRoGroupInfoArgs
- Single
Ro List<CynosdbGroup Addrs Cluster V2Single Ro Group Info Single Ro Group Addr> - Single-readonly addresses. Each element contains the following attributes:
- Single
Ro stringGroup Id - ID list of single-read-only instance group.
- Single
Ro List<CynosdbGroup Instances Cluster V2Single Ro Group Info Single Ro Group Instance> - List of instances in the single-read-only instance group.
- Single
Ro []CynosdbGroup Addrs Cluster V2Single Ro Group Info Single Ro Group Addr - Single-readonly addresses. Each element contains the following attributes:
- Single
Ro stringGroup Id - ID list of single-read-only instance group.
- Single
Ro []CynosdbGroup Instances Cluster V2Single Ro Group Info Single Ro Group Instance - List of instances in the single-read-only instance group.
- single_
ro_ list(object)group_ addrs - Single-readonly addresses. Each element contains the following attributes:
- single_
ro_ stringgroup_ id - ID list of single-read-only instance group.
- single_
ro_ list(object)group_ instances - List of instances in the single-read-only instance group.
- single
Ro List<CynosdbGroup Addrs Cluster V2Single Ro Group Info Single Ro Group Addr> - Single-readonly addresses. Each element contains the following attributes:
- single
Ro StringGroup Id - ID list of single-read-only instance group.
- single
Ro List<CynosdbGroup Instances Cluster V2Single Ro Group Info Single Ro Group Instance> - List of instances in the single-read-only instance group.
- single
Ro CynosdbGroup Addrs Cluster V2Single Ro Group Info Single Ro Group Addr[] - Single-readonly addresses. Each element contains the following attributes:
- single
Ro stringGroup Id - ID list of single-read-only instance group.
- single
Ro CynosdbGroup Instances Cluster V2Single Ro Group Info Single Ro Group Instance[] - List of instances in the single-read-only instance group.
- single_
ro_ Sequence[Cynosdbgroup_ addrs Cluster V2Single Ro Group Info Single Ro Group Addr] - Single-readonly addresses. Each element contains the following attributes:
- single_
ro_ strgroup_ id - ID list of single-read-only instance group.
- single_
ro_ Sequence[Cynosdbgroup_ instances Cluster V2Single Ro Group Info Single Ro Group Instance] - List of instances in the single-read-only instance group.
- single
Ro List<Property Map>Group Addrs - Single-readonly addresses. Each element contains the following attributes:
- single
Ro StringGroup Id - ID list of single-read-only instance group.
- single
Ro List<Property Map>Group Instances - List of instances in the single-read-only instance group.
CynosdbClusterV2SingleRoGroupInfoSingleRoGroupAddr, CynosdbClusterV2SingleRoGroupInfoSingleRoGroupAddrArgs
CynosdbClusterV2SingleRoGroupInfoSingleRoGroupInstance, CynosdbClusterV2SingleRoGroupInfoSingleRoGroupInstanceArgs
- Instance
Id string - ID of instance.
- Instance
Name string - Name of instance. Only supported when modifying.
- Instance
Id string - ID of instance.
- Instance
Name string - Name of instance. Only supported when modifying.
- instance_
id string - ID of instance.
- instance_
name string - Name of instance. Only supported when modifying.
- instance
Id String - ID of instance.
- instance
Name String - Name of instance. Only supported when modifying.
- instance
Id string - ID of instance.
- instance
Name string - Name of instance. Only supported when modifying.
- instance_
id str - ID of instance.
- instance_
name str - Name of instance. Only supported when modifying.
- instance
Id String - ID of instance.
- instance
Name String - Name of instance. Only supported when modifying.
Import
CynosDB cluster can be imported using the id, e.g.
$ pulumi import tencentcloud:index/cynosdbClusterV2:CynosdbClusterV2 example cynosdbmysql-im25yazt
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 Friday, Jul 24, 2026 by tencentcloudstack