opentelekomcloud.TaurusdbMysqlInstanceV3
Explore with Pulumi AI
TaurusDB mysql instance management within OpenTelekomCloud.
Example Usage
create a basic instance
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const instance1 = new opentelekomcloud.TaurusdbMysqlInstanceV3("instance1", {
password: _var.password,
flavor: "gaussdb.mysql.4xlarge.x86.4",
vpcId: _var.vpc_id,
subnetId: _var.subnet_id,
securityGroupId: _var.secgroup_id,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
instance1 = opentelekomcloud.TaurusdbMysqlInstanceV3("instance1",
password=var["password"],
flavor="gaussdb.mysql.4xlarge.x86.4",
vpc_id=var["vpc_id"],
subnet_id=var["subnet_id"],
security_group_id=var["secgroup_id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewTaurusdbMysqlInstanceV3(ctx, "instance1", &opentelekomcloud.TaurusdbMysqlInstanceV3Args{
Password: pulumi.Any(_var.Password),
Flavor: pulumi.String("gaussdb.mysql.4xlarge.x86.4"),
VpcId: pulumi.Any(_var.Vpc_id),
SubnetId: pulumi.Any(_var.Subnet_id),
SecurityGroupId: pulumi.Any(_var.Secgroup_id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var instance1 = new Opentelekomcloud.TaurusdbMysqlInstanceV3("instance1", new()
{
Password = @var.Password,
Flavor = "gaussdb.mysql.4xlarge.x86.4",
VpcId = @var.Vpc_id,
SubnetId = @var.Subnet_id,
SecurityGroupId = @var.Secgroup_id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.TaurusdbMysqlInstanceV3;
import com.pulumi.opentelekomcloud.TaurusdbMysqlInstanceV3Args;
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 instance1 = new TaurusdbMysqlInstanceV3("instance1", TaurusdbMysqlInstanceV3Args.builder()
.password(var_.password())
.flavor("gaussdb.mysql.4xlarge.x86.4")
.vpcId(var_.vpc_id())
.subnetId(var_.subnet_id())
.securityGroupId(var_.secgroup_id())
.build());
}
}
resources:
instance1:
type: opentelekomcloud:TaurusdbMysqlInstanceV3
properties:
password: ${var.password}
flavor: gaussdb.mysql.4xlarge.x86.4
vpcId: ${var.vpc_id}
subnetId: ${var.subnet_id}
securityGroupId: ${var.secgroup_id}
create a taurusdb mysql instance with backup strategy
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const instance1 = new opentelekomcloud.TaurusdbMysqlInstanceV3("instance1", {
password: _var.password,
flavor: "gaussdb.mysql.4xlarge.x86.4",
vpcId: _var.vpc_id,
subnetId: _var.subnet_id,
securityGroupId: _var.secgroup_id,
backupStrategy: {
startTime: "03:00-04:00",
keepDays: 7,
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
instance1 = opentelekomcloud.TaurusdbMysqlInstanceV3("instance1",
password=var["password"],
flavor="gaussdb.mysql.4xlarge.x86.4",
vpc_id=var["vpc_id"],
subnet_id=var["subnet_id"],
security_group_id=var["secgroup_id"],
backup_strategy={
"start_time": "03:00-04:00",
"keep_days": 7,
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewTaurusdbMysqlInstanceV3(ctx, "instance1", &opentelekomcloud.TaurusdbMysqlInstanceV3Args{
Password: pulumi.Any(_var.Password),
Flavor: pulumi.String("gaussdb.mysql.4xlarge.x86.4"),
VpcId: pulumi.Any(_var.Vpc_id),
SubnetId: pulumi.Any(_var.Subnet_id),
SecurityGroupId: pulumi.Any(_var.Secgroup_id),
BackupStrategy: &opentelekomcloud.TaurusdbMysqlInstanceV3BackupStrategyArgs{
StartTime: pulumi.String("03:00-04:00"),
KeepDays: pulumi.Float64(7),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var instance1 = new Opentelekomcloud.TaurusdbMysqlInstanceV3("instance1", new()
{
Password = @var.Password,
Flavor = "gaussdb.mysql.4xlarge.x86.4",
VpcId = @var.Vpc_id,
SubnetId = @var.Subnet_id,
SecurityGroupId = @var.Secgroup_id,
BackupStrategy = new Opentelekomcloud.Inputs.TaurusdbMysqlInstanceV3BackupStrategyArgs
{
StartTime = "03:00-04:00",
KeepDays = 7,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.TaurusdbMysqlInstanceV3;
import com.pulumi.opentelekomcloud.TaurusdbMysqlInstanceV3Args;
import com.pulumi.opentelekomcloud.inputs.TaurusdbMysqlInstanceV3BackupStrategyArgs;
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 instance1 = new TaurusdbMysqlInstanceV3("instance1", TaurusdbMysqlInstanceV3Args.builder()
.password(var_.password())
.flavor("gaussdb.mysql.4xlarge.x86.4")
.vpcId(var_.vpc_id())
.subnetId(var_.subnet_id())
.securityGroupId(var_.secgroup_id())
.backupStrategy(TaurusdbMysqlInstanceV3BackupStrategyArgs.builder()
.startTime("03:00-04:00")
.keepDays(7)
.build())
.build());
}
}
resources:
instance1:
type: opentelekomcloud:TaurusdbMysqlInstanceV3
properties:
password: ${var.password}
flavor: gaussdb.mysql.4xlarge.x86.4
vpcId: ${var.vpc_id}
subnetId: ${var.subnet_id}
securityGroupId: ${var.secgroup_id}
backupStrategy:
startTime: 03:00-04:00
keepDays: 7
Create TaurusdbMysqlInstanceV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TaurusdbMysqlInstanceV3(name: string, args: TaurusdbMysqlInstanceV3Args, opts?: CustomResourceOptions);
@overload
def TaurusdbMysqlInstanceV3(resource_name: str,
args: TaurusdbMysqlInstanceV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def TaurusdbMysqlInstanceV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
flavor: Optional[str] = None,
vpc_id: Optional[str] = None,
subnet_id: Optional[str] = None,
password: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
seconds_level_monitoring_period: Optional[float] = None,
dedicated_resource_id: Optional[str] = None,
master_availability_zone: Optional[str] = None,
name: Optional[str] = None,
datastore: Optional[TaurusdbMysqlInstanceV3DatastoreArgs] = None,
port: Optional[float] = None,
read_replicas: Optional[float] = None,
seconds_level_monitoring_enabled: Optional[bool] = None,
availability_zone_mode: Optional[str] = None,
security_group_id: Optional[str] = None,
configuration_id: Optional[str] = None,
table_name_case_sensitivity: Optional[bool] = None,
taurusdb_mysql_instance_v3_id: Optional[str] = None,
time_zone: Optional[str] = None,
timeouts: Optional[TaurusdbMysqlInstanceV3TimeoutsArgs] = None,
volume_size: Optional[float] = None,
backup_strategy: Optional[TaurusdbMysqlInstanceV3BackupStrategyArgs] = None)
func NewTaurusdbMysqlInstanceV3(ctx *Context, name string, args TaurusdbMysqlInstanceV3Args, opts ...ResourceOption) (*TaurusdbMysqlInstanceV3, error)
public TaurusdbMysqlInstanceV3(string name, TaurusdbMysqlInstanceV3Args args, CustomResourceOptions? opts = null)
public TaurusdbMysqlInstanceV3(String name, TaurusdbMysqlInstanceV3Args args)
public TaurusdbMysqlInstanceV3(String name, TaurusdbMysqlInstanceV3Args args, CustomResourceOptions options)
type: opentelekomcloud:TaurusdbMysqlInstanceV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TaurusdbMysqlInstanceV3Args
- 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 TaurusdbMysqlInstanceV3Args
- 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 TaurusdbMysqlInstanceV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TaurusdbMysqlInstanceV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TaurusdbMysqlInstanceV3Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var taurusdbMysqlInstanceV3Resource = new Opentelekomcloud.TaurusdbMysqlInstanceV3("taurusdbMysqlInstanceV3Resource", new()
{
Flavor = "string",
VpcId = "string",
SubnetId = "string",
Password = "string",
EnterpriseProjectId = "string",
SecondsLevelMonitoringPeriod = 0,
DedicatedResourceId = "string",
MasterAvailabilityZone = "string",
Name = "string",
Datastore = new Opentelekomcloud.Inputs.TaurusdbMysqlInstanceV3DatastoreArgs
{
Engine = "string",
Version = "string",
},
Port = 0,
ReadReplicas = 0,
SecondsLevelMonitoringEnabled = false,
AvailabilityZoneMode = "string",
SecurityGroupId = "string",
ConfigurationId = "string",
TableNameCaseSensitivity = false,
TaurusdbMysqlInstanceV3Id = "string",
TimeZone = "string",
Timeouts = new Opentelekomcloud.Inputs.TaurusdbMysqlInstanceV3TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
VolumeSize = 0,
BackupStrategy = new Opentelekomcloud.Inputs.TaurusdbMysqlInstanceV3BackupStrategyArgs
{
StartTime = "string",
KeepDays = 0,
},
});
example, err := opentelekomcloud.NewTaurusdbMysqlInstanceV3(ctx, "taurusdbMysqlInstanceV3Resource", &opentelekomcloud.TaurusdbMysqlInstanceV3Args{
Flavor: pulumi.String("string"),
VpcId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
Password: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
SecondsLevelMonitoringPeriod: pulumi.Float64(0),
DedicatedResourceId: pulumi.String("string"),
MasterAvailabilityZone: pulumi.String("string"),
Name: pulumi.String("string"),
Datastore: &opentelekomcloud.TaurusdbMysqlInstanceV3DatastoreArgs{
Engine: pulumi.String("string"),
Version: pulumi.String("string"),
},
Port: pulumi.Float64(0),
ReadReplicas: pulumi.Float64(0),
SecondsLevelMonitoringEnabled: pulumi.Bool(false),
AvailabilityZoneMode: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
ConfigurationId: pulumi.String("string"),
TableNameCaseSensitivity: pulumi.Bool(false),
TaurusdbMysqlInstanceV3Id: pulumi.String("string"),
TimeZone: pulumi.String("string"),
Timeouts: &opentelekomcloud.TaurusdbMysqlInstanceV3TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
VolumeSize: pulumi.Float64(0),
BackupStrategy: &opentelekomcloud.TaurusdbMysqlInstanceV3BackupStrategyArgs{
StartTime: pulumi.String("string"),
KeepDays: pulumi.Float64(0),
},
})
var taurusdbMysqlInstanceV3Resource = new TaurusdbMysqlInstanceV3("taurusdbMysqlInstanceV3Resource", TaurusdbMysqlInstanceV3Args.builder()
.flavor("string")
.vpcId("string")
.subnetId("string")
.password("string")
.enterpriseProjectId("string")
.secondsLevelMonitoringPeriod(0.0)
.dedicatedResourceId("string")
.masterAvailabilityZone("string")
.name("string")
.datastore(TaurusdbMysqlInstanceV3DatastoreArgs.builder()
.engine("string")
.version("string")
.build())
.port(0.0)
.readReplicas(0.0)
.secondsLevelMonitoringEnabled(false)
.availabilityZoneMode("string")
.securityGroupId("string")
.configurationId("string")
.tableNameCaseSensitivity(false)
.taurusdbMysqlInstanceV3Id("string")
.timeZone("string")
.timeouts(TaurusdbMysqlInstanceV3TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.volumeSize(0.0)
.backupStrategy(TaurusdbMysqlInstanceV3BackupStrategyArgs.builder()
.startTime("string")
.keepDays(0.0)
.build())
.build());
taurusdb_mysql_instance_v3_resource = opentelekomcloud.TaurusdbMysqlInstanceV3("taurusdbMysqlInstanceV3Resource",
flavor="string",
vpc_id="string",
subnet_id="string",
password="string",
enterprise_project_id="string",
seconds_level_monitoring_period=0,
dedicated_resource_id="string",
master_availability_zone="string",
name="string",
datastore={
"engine": "string",
"version": "string",
},
port=0,
read_replicas=0,
seconds_level_monitoring_enabled=False,
availability_zone_mode="string",
security_group_id="string",
configuration_id="string",
table_name_case_sensitivity=False,
taurusdb_mysql_instance_v3_id="string",
time_zone="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
volume_size=0,
backup_strategy={
"start_time": "string",
"keep_days": 0,
})
const taurusdbMysqlInstanceV3Resource = new opentelekomcloud.TaurusdbMysqlInstanceV3("taurusdbMysqlInstanceV3Resource", {
flavor: "string",
vpcId: "string",
subnetId: "string",
password: "string",
enterpriseProjectId: "string",
secondsLevelMonitoringPeriod: 0,
dedicatedResourceId: "string",
masterAvailabilityZone: "string",
name: "string",
datastore: {
engine: "string",
version: "string",
},
port: 0,
readReplicas: 0,
secondsLevelMonitoringEnabled: false,
availabilityZoneMode: "string",
securityGroupId: "string",
configurationId: "string",
tableNameCaseSensitivity: false,
taurusdbMysqlInstanceV3Id: "string",
timeZone: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
volumeSize: 0,
backupStrategy: {
startTime: "string",
keepDays: 0,
},
});
type: opentelekomcloud:TaurusdbMysqlInstanceV3
properties:
availabilityZoneMode: string
backupStrategy:
keepDays: 0
startTime: string
configurationId: string
datastore:
engine: string
version: string
dedicatedResourceId: string
enterpriseProjectId: string
flavor: string
masterAvailabilityZone: string
name: string
password: string
port: 0
readReplicas: 0
secondsLevelMonitoringEnabled: false
secondsLevelMonitoringPeriod: 0
securityGroupId: string
subnetId: string
tableNameCaseSensitivity: false
taurusdbMysqlInstanceV3Id: string
timeZone: string
timeouts:
create: string
delete: string
update: string
volumeSize: 0
vpcId: string
TaurusdbMysqlInstanceV3 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 TaurusdbMysqlInstanceV3 resource accepts the following input properties:
- Flavor string
- Specifies the instance specifications.
- Password string
- Specifies the database password. The value must be
8
to32
characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? - Subnet
Id string - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- Vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- Availability
Zone stringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- Backup
Strategy TaurusdbMysql Instance V3Backup Strategy - Specifies the advanced backup policy. Structure is documented below.
- Configuration
Id string - Specifies the configuration ID.
- Datastore
Taurusdb
Mysql Instance V3Datastore - Specifies the database information. Structure is documented below. Changing this parameter will create a new resource.
- Dedicated
Resource stringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- Enterprise
Project stringId - Specifies the enterprise project id. Required if EPS enabled.
- Master
Availability stringZone - Specifies the availability zone where the master node resides. The parameter is required in multi availability zone mode. Changing this parameter will create a new resource.
- Name string
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - Port double
- Specifies the database port.
- Read
Replicas double - Specifies the count of read replicas. Defaults to
1
. - Seconds
Level boolMonitoring Enabled - Specifies whether to enable seconds level monitoring.
- Seconds
Level doubleMonitoring Period - Specifies the seconds level collection period.
- This parameter is valid only when
seconds_level_monitoring_enabled
is set to true. - This parameter can not be specified when
seconds_level_monitoring_enabled
is set to false. - Value options:
- 1: The collection period is 1s.
- 5 (default value): The collection period is 5s.
- This parameter is valid only when
- Security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- Table
Name boolCase Sensitivity - Whether the kernel table name is case sensitive. The value can
be
true
(case sensitive) andfalse
(case insensitive). Defaults tofalse
. This parameter only works during creation. - Taurusdb
Mysql stringInstance V3Id - Indicates the node ID.
- Time
Zone string - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- Timeouts
Taurusdb
Mysql Instance V3Timeouts - Volume
Size double - Specifies the volume size of the instance. The new storage space must be greater than
the current storage and must be a multiple of
10
GB. Only valid when in prePaid mode.
- Flavor string
- Specifies the instance specifications.
- Password string
- Specifies the database password. The value must be
8
to32
characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? - Subnet
Id string - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- Vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- Availability
Zone stringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- Backup
Strategy TaurusdbMysql Instance V3Backup Strategy Args - Specifies the advanced backup policy. Structure is documented below.
- Configuration
Id string - Specifies the configuration ID.
- Datastore
Taurusdb
Mysql Instance V3Datastore Args - Specifies the database information. Structure is documented below. Changing this parameter will create a new resource.
- Dedicated
Resource stringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- Enterprise
Project stringId - Specifies the enterprise project id. Required if EPS enabled.
- Master
Availability stringZone - Specifies the availability zone where the master node resides. The parameter is required in multi availability zone mode. Changing this parameter will create a new resource.
- Name string
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - Port float64
- Specifies the database port.
- Read
Replicas float64 - Specifies the count of read replicas. Defaults to
1
. - Seconds
Level boolMonitoring Enabled - Specifies whether to enable seconds level monitoring.
- Seconds
Level float64Monitoring Period - Specifies the seconds level collection period.
- This parameter is valid only when
seconds_level_monitoring_enabled
is set to true. - This parameter can not be specified when
seconds_level_monitoring_enabled
is set to false. - Value options:
- 1: The collection period is 1s.
- 5 (default value): The collection period is 5s.
- This parameter is valid only when
- Security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- Table
Name boolCase Sensitivity - Whether the kernel table name is case sensitive. The value can
be
true
(case sensitive) andfalse
(case insensitive). Defaults tofalse
. This parameter only works during creation. - Taurusdb
Mysql stringInstance V3Id - Indicates the node ID.
- Time
Zone string - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- Timeouts
Taurusdb
Mysql Instance V3Timeouts Args - Volume
Size float64 - Specifies the volume size of the instance. The new storage space must be greater than
the current storage and must be a multiple of
10
GB. Only valid when in prePaid mode.
- flavor String
- Specifies the instance specifications.
- password String
- Specifies the database password. The value must be
8
to32
characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? - subnet
Id String - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- vpc
Id String - Specifies the VPC ID. Changing this parameter will create a new resource.
- availability
Zone StringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup
Strategy TaurusdbMysql Instance V3Backup Strategy - Specifies the advanced backup policy. Structure is documented below.
- configuration
Id String - Specifies the configuration ID.
- datastore
Taurusdb
Mysql Instance V3Datastore - Specifies the database information. Structure is documented below. Changing this parameter will create a new resource.
- dedicated
Resource StringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- enterprise
Project StringId - Specifies the enterprise project id. Required if EPS enabled.
- master
Availability StringZone - Specifies the availability zone where the master node resides. The parameter is required in multi availability zone mode. Changing this parameter will create a new resource.
- name String
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - port Double
- Specifies the database port.
- read
Replicas Double - Specifies the count of read replicas. Defaults to
1
. - seconds
Level BooleanMonitoring Enabled - Specifies whether to enable seconds level monitoring.
- seconds
Level DoubleMonitoring Period - Specifies the seconds level collection period.
- This parameter is valid only when
seconds_level_monitoring_enabled
is set to true. - This parameter can not be specified when
seconds_level_monitoring_enabled
is set to false. - Value options:
- 1: The collection period is 1s.
- 5 (default value): The collection period is 5s.
- This parameter is valid only when
- security
Group StringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- table
Name BooleanCase Sensitivity - Whether the kernel table name is case sensitive. The value can
be
true
(case sensitive) andfalse
(case insensitive). Defaults tofalse
. This parameter only works during creation. - taurusdb
Mysql StringInstance V3Id - Indicates the node ID.
- time
Zone String - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts
Taurusdb
Mysql Instance V3Timeouts - volume
Size Double - Specifies the volume size of the instance. The new storage space must be greater than
the current storage and must be a multiple of
10
GB. Only valid when in prePaid mode.
- flavor string
- Specifies the instance specifications.
- password string
- Specifies the database password. The value must be
8
to32
characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? - subnet
Id string - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- availability
Zone stringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup
Strategy TaurusdbMysql Instance V3Backup Strategy - Specifies the advanced backup policy. Structure is documented below.
- configuration
Id string - Specifies the configuration ID.
- datastore
Taurusdb
Mysql Instance V3Datastore - Specifies the database information. Structure is documented below. Changing this parameter will create a new resource.
- dedicated
Resource stringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- enterprise
Project stringId - Specifies the enterprise project id. Required if EPS enabled.
- master
Availability stringZone - Specifies the availability zone where the master node resides. The parameter is required in multi availability zone mode. Changing this parameter will create a new resource.
- name string
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - port number
- Specifies the database port.
- read
Replicas number - Specifies the count of read replicas. Defaults to
1
. - seconds
Level booleanMonitoring Enabled - Specifies whether to enable seconds level monitoring.
- seconds
Level numberMonitoring Period - Specifies the seconds level collection period.
- This parameter is valid only when
seconds_level_monitoring_enabled
is set to true. - This parameter can not be specified when
seconds_level_monitoring_enabled
is set to false. - Value options:
- 1: The collection period is 1s.
- 5 (default value): The collection period is 5s.
- This parameter is valid only when
- security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- table
Name booleanCase Sensitivity - Whether the kernel table name is case sensitive. The value can
be
true
(case sensitive) andfalse
(case insensitive). Defaults tofalse
. This parameter only works during creation. - taurusdb
Mysql stringInstance V3Id - Indicates the node ID.
- time
Zone string - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts
Taurusdb
Mysql Instance V3Timeouts - volume
Size number - Specifies the volume size of the instance. The new storage space must be greater than
the current storage and must be a multiple of
10
GB. Only valid when in prePaid mode.
- flavor str
- Specifies the instance specifications.
- password str
- Specifies the database password. The value must be
8
to32
characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? - subnet_
id str - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- vpc_
id str - Specifies the VPC ID. Changing this parameter will create a new resource.
- availability_
zone_ strmode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup_
strategy TaurusdbMysql Instance V3Backup Strategy Args - Specifies the advanced backup policy. Structure is documented below.
- configuration_
id str - Specifies the configuration ID.
- datastore
Taurusdb
Mysql Instance V3Datastore Args - Specifies the database information. Structure is documented below. Changing this parameter will create a new resource.
- dedicated_
resource_ strid - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- enterprise_
project_ strid - Specifies the enterprise project id. Required if EPS enabled.
- master_
availability_ strzone - Specifies the availability zone where the master node resides. The parameter is required in multi availability zone mode. Changing this parameter will create a new resource.
- name str
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - port float
- Specifies the database port.
- read_
replicas float - Specifies the count of read replicas. Defaults to
1
. - seconds_
level_ boolmonitoring_ enabled - Specifies whether to enable seconds level monitoring.
- seconds_
level_ floatmonitoring_ period - Specifies the seconds level collection period.
- This parameter is valid only when
seconds_level_monitoring_enabled
is set to true. - This parameter can not be specified when
seconds_level_monitoring_enabled
is set to false. - Value options:
- 1: The collection period is 1s.
- 5 (default value): The collection period is 5s.
- This parameter is valid only when
- security_
group_ strid - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- table_
name_ boolcase_ sensitivity - Whether the kernel table name is case sensitive. The value can
be
true
(case sensitive) andfalse
(case insensitive). Defaults tofalse
. This parameter only works during creation. - taurusdb_
mysql_ strinstance_ v3_ id - Indicates the node ID.
- time_
zone str - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts
Taurusdb
Mysql Instance V3Timeouts Args - volume_
size float - Specifies the volume size of the instance. The new storage space must be greater than
the current storage and must be a multiple of
10
GB. Only valid when in prePaid mode.
- flavor String
- Specifies the instance specifications.
- password String
- Specifies the database password. The value must be
8
to32
characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? - subnet
Id String - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- vpc
Id String - Specifies the VPC ID. Changing this parameter will create a new resource.
- availability
Zone StringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup
Strategy Property Map - Specifies the advanced backup policy. Structure is documented below.
- configuration
Id String - Specifies the configuration ID.
- datastore Property Map
- Specifies the database information. Structure is documented below. Changing this parameter will create a new resource.
- dedicated
Resource StringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- enterprise
Project StringId - Specifies the enterprise project id. Required if EPS enabled.
- master
Availability StringZone - Specifies the availability zone where the master node resides. The parameter is required in multi availability zone mode. Changing this parameter will create a new resource.
- name String
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - port Number
- Specifies the database port.
- read
Replicas Number - Specifies the count of read replicas. Defaults to
1
. - seconds
Level BooleanMonitoring Enabled - Specifies whether to enable seconds level monitoring.
- seconds
Level NumberMonitoring Period - Specifies the seconds level collection period.
- This parameter is valid only when
seconds_level_monitoring_enabled
is set to true. - This parameter can not be specified when
seconds_level_monitoring_enabled
is set to false. - Value options:
- 1: The collection period is 1s.
- 5 (default value): The collection period is 5s.
- This parameter is valid only when
- security
Group StringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- table
Name BooleanCase Sensitivity - Whether the kernel table name is case sensitive. The value can
be
true
(case sensitive) andfalse
(case insensitive). Defaults tofalse
. This parameter only works during creation. - taurusdb
Mysql StringInstance V3Id - Indicates the node ID.
- time
Zone String - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts Property Map
- volume
Size Number - Specifies the volume size of the instance. The new storage space must be greater than
the current storage and must be a multiple of
10
GB. Only valid when in prePaid mode.
Outputs
All input properties are implicitly available as output properties. Additionally, the TaurusdbMysqlInstanceV3 resource produces the following output properties:
- Created
At string - Indicates the creation time in the yyyy-mm-ddThh:mm:ssZ format.
- Db
User stringName - Indicates the default username.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mode string
- Indicates the instance mode.
- Nodes
List<Taurusdb
Mysql Instance V3Node> - Indicates the instance nodes information. The nodes structure is documented below.
- Private
Dns stringName - Indicates the private domain name.
- Private
Write stringIp - Indicates the private IP address of the DB instance.
- Region string
- Indicates the DB instance region.
- Status string
- Indicates the node status.
- Updated
At string - Indicates the Update time in the yyyy-mm-ddThh:mm:ssZ format.
- Created
At string - Indicates the creation time in the yyyy-mm-ddThh:mm:ssZ format.
- Db
User stringName - Indicates the default username.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mode string
- Indicates the instance mode.
- Nodes
[]Taurusdb
Mysql Instance V3Node - Indicates the instance nodes information. The nodes structure is documented below.
- Private
Dns stringName - Indicates the private domain name.
- Private
Write stringIp - Indicates the private IP address of the DB instance.
- Region string
- Indicates the DB instance region.
- Status string
- Indicates the node status.
- Updated
At string - Indicates the Update time in the yyyy-mm-ddThh:mm:ssZ format.
- created
At String - Indicates the creation time in the yyyy-mm-ddThh:mm:ssZ format.
- db
User StringName - Indicates the default username.
- id String
- The provider-assigned unique ID for this managed resource.
- mode String
- Indicates the instance mode.
- nodes
List<Taurusdb
Mysql Instance V3Node> - Indicates the instance nodes information. The nodes structure is documented below.
- private
Dns StringName - Indicates the private domain name.
- private
Write StringIp - Indicates the private IP address of the DB instance.
- region String
- Indicates the DB instance region.
- status String
- Indicates the node status.
- updated
At String - Indicates the Update time in the yyyy-mm-ddThh:mm:ssZ format.
- created
At string - Indicates the creation time in the yyyy-mm-ddThh:mm:ssZ format.
- db
User stringName - Indicates the default username.
- id string
- The provider-assigned unique ID for this managed resource.
- mode string
- Indicates the instance mode.
- nodes
Taurusdb
Mysql Instance V3Node[] - Indicates the instance nodes information. The nodes structure is documented below.
- private
Dns stringName - Indicates the private domain name.
- private
Write stringIp - Indicates the private IP address of the DB instance.
- region string
- Indicates the DB instance region.
- status string
- Indicates the node status.
- updated
At string - Indicates the Update time in the yyyy-mm-ddThh:mm:ssZ format.
- created_
at str - Indicates the creation time in the yyyy-mm-ddThh:mm:ssZ format.
- db_
user_ strname - Indicates the default username.
- id str
- The provider-assigned unique ID for this managed resource.
- mode str
- Indicates the instance mode.
- nodes
Sequence[Taurusdb
Mysql Instance V3Node] - Indicates the instance nodes information. The nodes structure is documented below.
- private_
dns_ strname - Indicates the private domain name.
- private_
write_ strip - Indicates the private IP address of the DB instance.
- region str
- Indicates the DB instance region.
- status str
- Indicates the node status.
- updated_
at str - Indicates the Update time in the yyyy-mm-ddThh:mm:ssZ format.
- created
At String - Indicates the creation time in the yyyy-mm-ddThh:mm:ssZ format.
- db
User StringName - Indicates the default username.
- id String
- The provider-assigned unique ID for this managed resource.
- mode String
- Indicates the instance mode.
- nodes List<Property Map>
- Indicates the instance nodes information. The nodes structure is documented below.
- private
Dns StringName - Indicates the private domain name.
- private
Write StringIp - Indicates the private IP address of the DB instance.
- region String
- Indicates the DB instance region.
- status String
- Indicates the node status.
- updated
At String - Indicates the Update time in the yyyy-mm-ddThh:mm:ssZ format.
Look up Existing TaurusdbMysqlInstanceV3 Resource
Get an existing TaurusdbMysqlInstanceV3 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?: TaurusdbMysqlInstanceV3State, opts?: CustomResourceOptions): TaurusdbMysqlInstanceV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone_mode: Optional[str] = None,
backup_strategy: Optional[TaurusdbMysqlInstanceV3BackupStrategyArgs] = None,
configuration_id: Optional[str] = None,
created_at: Optional[str] = None,
datastore: Optional[TaurusdbMysqlInstanceV3DatastoreArgs] = None,
db_user_name: Optional[str] = None,
dedicated_resource_id: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
flavor: Optional[str] = None,
master_availability_zone: Optional[str] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
nodes: Optional[Sequence[TaurusdbMysqlInstanceV3NodeArgs]] = None,
password: Optional[str] = None,
port: Optional[float] = None,
private_dns_name: Optional[str] = None,
private_write_ip: Optional[str] = None,
read_replicas: Optional[float] = None,
region: Optional[str] = None,
seconds_level_monitoring_enabled: Optional[bool] = None,
seconds_level_monitoring_period: Optional[float] = None,
security_group_id: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
table_name_case_sensitivity: Optional[bool] = None,
taurusdb_mysql_instance_v3_id: Optional[str] = None,
time_zone: Optional[str] = None,
timeouts: Optional[TaurusdbMysqlInstanceV3TimeoutsArgs] = None,
updated_at: Optional[str] = None,
volume_size: Optional[float] = None,
vpc_id: Optional[str] = None) -> TaurusdbMysqlInstanceV3
func GetTaurusdbMysqlInstanceV3(ctx *Context, name string, id IDInput, state *TaurusdbMysqlInstanceV3State, opts ...ResourceOption) (*TaurusdbMysqlInstanceV3, error)
public static TaurusdbMysqlInstanceV3 Get(string name, Input<string> id, TaurusdbMysqlInstanceV3State? state, CustomResourceOptions? opts = null)
public static TaurusdbMysqlInstanceV3 get(String name, Output<String> id, TaurusdbMysqlInstanceV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:TaurusdbMysqlInstanceV3 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Availability
Zone stringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- Backup
Strategy TaurusdbMysql Instance V3Backup Strategy - Specifies the advanced backup policy. Structure is documented below.
- Configuration
Id string - Specifies the configuration ID.
- Created
At string - Indicates the creation time in the yyyy-mm-ddThh:mm:ssZ format.
- Datastore
Taurusdb
Mysql Instance V3Datastore - Specifies the database information. Structure is documented below. Changing this parameter will create a new resource.
- Db
User stringName - Indicates the default username.
- Dedicated
Resource stringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- Enterprise
Project stringId - Specifies the enterprise project id. Required if EPS enabled.
- Flavor string
- Specifies the instance specifications.
- Master
Availability stringZone - Specifies the availability zone where the master node resides. The parameter is required in multi availability zone mode. Changing this parameter will create a new resource.
- Mode string
- Indicates the instance mode.
- Name string
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - Nodes
List<Taurusdb
Mysql Instance V3Node> - Indicates the instance nodes information. The nodes structure is documented below.
- Password string
- Specifies the database password. The value must be
8
to32
characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? - Port double
- Specifies the database port.
- Private
Dns stringName - Indicates the private domain name.
- Private
Write stringIp - Indicates the private IP address of the DB instance.
- Read
Replicas double - Specifies the count of read replicas. Defaults to
1
. - Region string
- Indicates the DB instance region.
- Seconds
Level boolMonitoring Enabled - Specifies whether to enable seconds level monitoring.
- Seconds
Level doubleMonitoring Period - Specifies the seconds level collection period.
- This parameter is valid only when
seconds_level_monitoring_enabled
is set to true. - This parameter can not be specified when
seconds_level_monitoring_enabled
is set to false. - Value options:
- 1: The collection period is 1s.
- 5 (default value): The collection period is 5s.
- This parameter is valid only when
- Security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- Status string
- Indicates the node status.
- Subnet
Id string - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- Table
Name boolCase Sensitivity - Whether the kernel table name is case sensitive. The value can
be
true
(case sensitive) andfalse
(case insensitive). Defaults tofalse
. This parameter only works during creation. - Taurusdb
Mysql stringInstance V3Id - Indicates the node ID.
- Time
Zone string - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- Timeouts
Taurusdb
Mysql Instance V3Timeouts - Updated
At string - Indicates the Update time in the yyyy-mm-ddThh:mm:ssZ format.
- Volume
Size double - Specifies the volume size of the instance. The new storage space must be greater than
the current storage and must be a multiple of
10
GB. Only valid when in prePaid mode. - Vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- Availability
Zone stringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- Backup
Strategy TaurusdbMysql Instance V3Backup Strategy Args - Specifies the advanced backup policy. Structure is documented below.
- Configuration
Id string - Specifies the configuration ID.
- Created
At string - Indicates the creation time in the yyyy-mm-ddThh:mm:ssZ format.
- Datastore
Taurusdb
Mysql Instance V3Datastore Args - Specifies the database information. Structure is documented below. Changing this parameter will create a new resource.
- Db
User stringName - Indicates the default username.
- Dedicated
Resource stringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- Enterprise
Project stringId - Specifies the enterprise project id. Required if EPS enabled.
- Flavor string
- Specifies the instance specifications.
- Master
Availability stringZone - Specifies the availability zone where the master node resides. The parameter is required in multi availability zone mode. Changing this parameter will create a new resource.
- Mode string
- Indicates the instance mode.
- Name string
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - Nodes
[]Taurusdb
Mysql Instance V3Node Args - Indicates the instance nodes information. The nodes structure is documented below.
- Password string
- Specifies the database password. The value must be
8
to32
characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? - Port float64
- Specifies the database port.
- Private
Dns stringName - Indicates the private domain name.
- Private
Write stringIp - Indicates the private IP address of the DB instance.
- Read
Replicas float64 - Specifies the count of read replicas. Defaults to
1
. - Region string
- Indicates the DB instance region.
- Seconds
Level boolMonitoring Enabled - Specifies whether to enable seconds level monitoring.
- Seconds
Level float64Monitoring Period - Specifies the seconds level collection period.
- This parameter is valid only when
seconds_level_monitoring_enabled
is set to true. - This parameter can not be specified when
seconds_level_monitoring_enabled
is set to false. - Value options:
- 1: The collection period is 1s.
- 5 (default value): The collection period is 5s.
- This parameter is valid only when
- Security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- Status string
- Indicates the node status.
- Subnet
Id string - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- Table
Name boolCase Sensitivity - Whether the kernel table name is case sensitive. The value can
be
true
(case sensitive) andfalse
(case insensitive). Defaults tofalse
. This parameter only works during creation. - Taurusdb
Mysql stringInstance V3Id - Indicates the node ID.
- Time
Zone string - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- Timeouts
Taurusdb
Mysql Instance V3Timeouts Args - Updated
At string - Indicates the Update time in the yyyy-mm-ddThh:mm:ssZ format.
- Volume
Size float64 - Specifies the volume size of the instance. The new storage space must be greater than
the current storage and must be a multiple of
10
GB. Only valid when in prePaid mode. - Vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- availability
Zone StringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup
Strategy TaurusdbMysql Instance V3Backup Strategy - Specifies the advanced backup policy. Structure is documented below.
- configuration
Id String - Specifies the configuration ID.
- created
At String - Indicates the creation time in the yyyy-mm-ddThh:mm:ssZ format.
- datastore
Taurusdb
Mysql Instance V3Datastore - Specifies the database information. Structure is documented below. Changing this parameter will create a new resource.
- db
User StringName - Indicates the default username.
- dedicated
Resource StringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- enterprise
Project StringId - Specifies the enterprise project id. Required if EPS enabled.
- flavor String
- Specifies the instance specifications.
- master
Availability StringZone - Specifies the availability zone where the master node resides. The parameter is required in multi availability zone mode. Changing this parameter will create a new resource.
- mode String
- Indicates the instance mode.
- name String
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - nodes
List<Taurusdb
Mysql Instance V3Node> - Indicates the instance nodes information. The nodes structure is documented below.
- password String
- Specifies the database password. The value must be
8
to32
characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? - port Double
- Specifies the database port.
- private
Dns StringName - Indicates the private domain name.
- private
Write StringIp - Indicates the private IP address of the DB instance.
- read
Replicas Double - Specifies the count of read replicas. Defaults to
1
. - region String
- Indicates the DB instance region.
- seconds
Level BooleanMonitoring Enabled - Specifies whether to enable seconds level monitoring.
- seconds
Level DoubleMonitoring Period - Specifies the seconds level collection period.
- This parameter is valid only when
seconds_level_monitoring_enabled
is set to true. - This parameter can not be specified when
seconds_level_monitoring_enabled
is set to false. - Value options:
- 1: The collection period is 1s.
- 5 (default value): The collection period is 5s.
- This parameter is valid only when
- security
Group StringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- status String
- Indicates the node status.
- subnet
Id String - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- table
Name BooleanCase Sensitivity - Whether the kernel table name is case sensitive. The value can
be
true
(case sensitive) andfalse
(case insensitive). Defaults tofalse
. This parameter only works during creation. - taurusdb
Mysql StringInstance V3Id - Indicates the node ID.
- time
Zone String - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts
Taurusdb
Mysql Instance V3Timeouts - updated
At String - Indicates the Update time in the yyyy-mm-ddThh:mm:ssZ format.
- volume
Size Double - Specifies the volume size of the instance. The new storage space must be greater than
the current storage and must be a multiple of
10
GB. Only valid when in prePaid mode. - vpc
Id String - Specifies the VPC ID. Changing this parameter will create a new resource.
- availability
Zone stringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup
Strategy TaurusdbMysql Instance V3Backup Strategy - Specifies the advanced backup policy. Structure is documented below.
- configuration
Id string - Specifies the configuration ID.
- created
At string - Indicates the creation time in the yyyy-mm-ddThh:mm:ssZ format.
- datastore
Taurusdb
Mysql Instance V3Datastore - Specifies the database information. Structure is documented below. Changing this parameter will create a new resource.
- db
User stringName - Indicates the default username.
- dedicated
Resource stringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- enterprise
Project stringId - Specifies the enterprise project id. Required if EPS enabled.
- flavor string
- Specifies the instance specifications.
- master
Availability stringZone - Specifies the availability zone where the master node resides. The parameter is required in multi availability zone mode. Changing this parameter will create a new resource.
- mode string
- Indicates the instance mode.
- name string
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - nodes
Taurusdb
Mysql Instance V3Node[] - Indicates the instance nodes information. The nodes structure is documented below.
- password string
- Specifies the database password. The value must be
8
to32
characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? - port number
- Specifies the database port.
- private
Dns stringName - Indicates the private domain name.
- private
Write stringIp - Indicates the private IP address of the DB instance.
- read
Replicas number - Specifies the count of read replicas. Defaults to
1
. - region string
- Indicates the DB instance region.
- seconds
Level booleanMonitoring Enabled - Specifies whether to enable seconds level monitoring.
- seconds
Level numberMonitoring Period - Specifies the seconds level collection period.
- This parameter is valid only when
seconds_level_monitoring_enabled
is set to true. - This parameter can not be specified when
seconds_level_monitoring_enabled
is set to false. - Value options:
- 1: The collection period is 1s.
- 5 (default value): The collection period is 5s.
- This parameter is valid only when
- security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- status string
- Indicates the node status.
- subnet
Id string - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- table
Name booleanCase Sensitivity - Whether the kernel table name is case sensitive. The value can
be
true
(case sensitive) andfalse
(case insensitive). Defaults tofalse
. This parameter only works during creation. - taurusdb
Mysql stringInstance V3Id - Indicates the node ID.
- time
Zone string - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts
Taurusdb
Mysql Instance V3Timeouts - updated
At string - Indicates the Update time in the yyyy-mm-ddThh:mm:ssZ format.
- volume
Size number - Specifies the volume size of the instance. The new storage space must be greater than
the current storage and must be a multiple of
10
GB. Only valid when in prePaid mode. - vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- availability_
zone_ strmode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup_
strategy TaurusdbMysql Instance V3Backup Strategy Args - Specifies the advanced backup policy. Structure is documented below.
- configuration_
id str - Specifies the configuration ID.
- created_
at str - Indicates the creation time in the yyyy-mm-ddThh:mm:ssZ format.
- datastore
Taurusdb
Mysql Instance V3Datastore Args - Specifies the database information. Structure is documented below. Changing this parameter will create a new resource.
- db_
user_ strname - Indicates the default username.
- dedicated_
resource_ strid - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- enterprise_
project_ strid - Specifies the enterprise project id. Required if EPS enabled.
- flavor str
- Specifies the instance specifications.
- master_
availability_ strzone - Specifies the availability zone where the master node resides. The parameter is required in multi availability zone mode. Changing this parameter will create a new resource.
- mode str
- Indicates the instance mode.
- name str
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - nodes
Sequence[Taurusdb
Mysql Instance V3Node Args] - Indicates the instance nodes information. The nodes structure is documented below.
- password str
- Specifies the database password. The value must be
8
to32
characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? - port float
- Specifies the database port.
- private_
dns_ strname - Indicates the private domain name.
- private_
write_ strip - Indicates the private IP address of the DB instance.
- read_
replicas float - Specifies the count of read replicas. Defaults to
1
. - region str
- Indicates the DB instance region.
- seconds_
level_ boolmonitoring_ enabled - Specifies whether to enable seconds level monitoring.
- seconds_
level_ floatmonitoring_ period - Specifies the seconds level collection period.
- This parameter is valid only when
seconds_level_monitoring_enabled
is set to true. - This parameter can not be specified when
seconds_level_monitoring_enabled
is set to false. - Value options:
- 1: The collection period is 1s.
- 5 (default value): The collection period is 5s.
- This parameter is valid only when
- security_
group_ strid - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- status str
- Indicates the node status.
- subnet_
id str - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- table_
name_ boolcase_ sensitivity - Whether the kernel table name is case sensitive. The value can
be
true
(case sensitive) andfalse
(case insensitive). Defaults tofalse
. This parameter only works during creation. - taurusdb_
mysql_ strinstance_ v3_ id - Indicates the node ID.
- time_
zone str - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts
Taurusdb
Mysql Instance V3Timeouts Args - updated_
at str - Indicates the Update time in the yyyy-mm-ddThh:mm:ssZ format.
- volume_
size float - Specifies the volume size of the instance. The new storage space must be greater than
the current storage and must be a multiple of
10
GB. Only valid when in prePaid mode. - vpc_
id str - Specifies the VPC ID. Changing this parameter will create a new resource.
- availability
Zone StringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup
Strategy Property Map - Specifies the advanced backup policy. Structure is documented below.
- configuration
Id String - Specifies the configuration ID.
- created
At String - Indicates the creation time in the yyyy-mm-ddThh:mm:ssZ format.
- datastore Property Map
- Specifies the database information. Structure is documented below. Changing this parameter will create a new resource.
- db
User StringName - Indicates the default username.
- dedicated
Resource StringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- enterprise
Project StringId - Specifies the enterprise project id. Required if EPS enabled.
- flavor String
- Specifies the instance specifications.
- master
Availability StringZone - Specifies the availability zone where the master node resides. The parameter is required in multi availability zone mode. Changing this parameter will create a new resource.
- mode String
- Indicates the instance mode.
- name String
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - nodes List<Property Map>
- Indicates the instance nodes information. The nodes structure is documented below.
- password String
- Specifies the database password. The value must be
8
to32
characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? - port Number
- Specifies the database port.
- private
Dns StringName - Indicates the private domain name.
- private
Write StringIp - Indicates the private IP address of the DB instance.
- read
Replicas Number - Specifies the count of read replicas. Defaults to
1
. - region String
- Indicates the DB instance region.
- seconds
Level BooleanMonitoring Enabled - Specifies whether to enable seconds level monitoring.
- seconds
Level NumberMonitoring Period - Specifies the seconds level collection period.
- This parameter is valid only when
seconds_level_monitoring_enabled
is set to true. - This parameter can not be specified when
seconds_level_monitoring_enabled
is set to false. - Value options:
- 1: The collection period is 1s.
- 5 (default value): The collection period is 5s.
- This parameter is valid only when
- security
Group StringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- status String
- Indicates the node status.
- subnet
Id String - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- table
Name BooleanCase Sensitivity - Whether the kernel table name is case sensitive. The value can
be
true
(case sensitive) andfalse
(case insensitive). Defaults tofalse
. This parameter only works during creation. - taurusdb
Mysql StringInstance V3Id - Indicates the node ID.
- time
Zone String - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts Property Map
- updated
At String - Indicates the Update time in the yyyy-mm-ddThh:mm:ssZ format.
- volume
Size Number - Specifies the volume size of the instance. The new storage space must be greater than
the current storage and must be a multiple of
10
GB. Only valid when in prePaid mode. - vpc
Id String - Specifies the VPC ID. Changing this parameter will create a new resource.
Supporting Types
TaurusdbMysqlInstanceV3BackupStrategy, TaurusdbMysqlInstanceV3BackupStrategyArgs
- Start
Time string - Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to 00. Example value: 08:00-09:00, 03:00-04:00.
- Keep
Days double - Specifies the number of days to retain the generated backup files.
The value ranges from
0
to35
. If this parameter is set to0
, the automated backup policy is not set. If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
- Start
Time string - Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to 00. Example value: 08:00-09:00, 03:00-04:00.
- Keep
Days float64 - Specifies the number of days to retain the generated backup files.
The value ranges from
0
to35
. If this parameter is set to0
, the automated backup policy is not set. If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
- start
Time String - Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to 00. Example value: 08:00-09:00, 03:00-04:00.
- keep
Days Double - Specifies the number of days to retain the generated backup files.
The value ranges from
0
to35
. If this parameter is set to0
, the automated backup policy is not set. If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
- start
Time string - Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to 00. Example value: 08:00-09:00, 03:00-04:00.
- keep
Days number - Specifies the number of days to retain the generated backup files.
The value ranges from
0
to35
. If this parameter is set to0
, the automated backup policy is not set. If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
- start_
time str - Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to 00. Example value: 08:00-09:00, 03:00-04:00.
- keep_
days float - Specifies the number of days to retain the generated backup files.
The value ranges from
0
to35
. If this parameter is set to0
, the automated backup policy is not set. If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
- start
Time String - Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to 00. Example value: 08:00-09:00, 03:00-04:00.
- keep
Days Number - Specifies the number of days to retain the generated backup files.
The value ranges from
0
to35
. If this parameter is set to0
, the automated backup policy is not set. If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
TaurusdbMysqlInstanceV3Datastore, TaurusdbMysqlInstanceV3DatastoreArgs
TaurusdbMysqlInstanceV3Node, TaurusdbMysqlInstanceV3NodeArgs
- Availability
Zone string - Indicates the availability zone where the node resides.
- Id string
- Indicates the node ID.
- Name string
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - Private
Read stringIp - Indicates the private IP address of a node.
- Status string
- Indicates the node status.
- Type string
- Indicates the node type: master or slave.
- Availability
Zone string - Indicates the availability zone where the node resides.
- Id string
- Indicates the node ID.
- Name string
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - Private
Read stringIp - Indicates the private IP address of a node.
- Status string
- Indicates the node status.
- Type string
- Indicates the node type: master or slave.
- availability
Zone String - Indicates the availability zone where the node resides.
- id String
- Indicates the node ID.
- name String
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - private
Read StringIp - Indicates the private IP address of a node.
- status String
- Indicates the node status.
- type String
- Indicates the node type: master or slave.
- availability
Zone string - Indicates the availability zone where the node resides.
- id string
- Indicates the node ID.
- name string
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - private
Read stringIp - Indicates the private IP address of a node.
- status string
- Indicates the node status.
- type string
- Indicates the node type: master or slave.
- availability_
zone str - Indicates the availability zone where the node resides.
- id str
- Indicates the node ID.
- name str
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - private_
read_ strip - Indicates the private IP address of a node.
- status str
- Indicates the node status.
- type str
- Indicates the node type: master or slave.
- availability
Zone String - Indicates the availability zone where the node resides.
- id String
- Indicates the node ID.
- name String
- Specifies the instance name, which can be the same as an existing instance name.
The value must be
4
to64
characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). - private
Read StringIp - Indicates the private IP address of a node.
- status String
- Indicates the node status.
- type String
- Indicates the node type: master or slave.
TaurusdbMysqlInstanceV3Timeouts, TaurusdbMysqlInstanceV3TimeoutsArgs
Import
TaurusDB instance can be imported using the id
, e.g.
bash
$ pulumi import opentelekomcloud:index/taurusdbMysqlInstanceV3:TaurusdbMysqlInstanceV3 test <id>
Note that the imported state may not be identical to your resource definition, due to the attribute missing from the
API response. The missing attribute is: table_name_case_sensitivity
, enterprise_project_id
, password
.
It is generally recommended running pulumi preview
after importing
a TaurusDB MySQL instance. You can then decide if changes should be applied to the TaurusDB MySQL instance, or the resource
definition should be updated to align with the TaurusDB MySQL instance. Also you can ignore changes as below.
hcl
resource “opentelekomcloud_taurusdb_mysql_instance_v3” “test” {
lifecycle {
ignore_changes = [
table_name_case_sensitivity, enterprise_project_id, password
]
}
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.