opentelekomcloud.GaussdbMysqlInstanceV3
Explore with Pulumi AI
Up-to-date reference of API arguments for GaussDB for MySql you can get at documentation portal.
GaussDB MySql instance management within OpenTelekomCloud.
Example Usage
Create a basic instance
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const instance = new opentelekomcloud.GaussdbMysqlInstanceV3("instance", {
vpcId: _var.vpc_id,
subnetId: _var.subnet_id,
securityGroupId: _var.secgroup_id,
flavor: "gaussdb.mysql.xlarge.x86.8",
password: _var.password,
availabilityZoneMode: "multi",
masterAvailabilityZone: "eu-de-01",
readReplicas: 1,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
instance = opentelekomcloud.GaussdbMysqlInstanceV3("instance",
vpc_id=var["vpc_id"],
subnet_id=var["subnet_id"],
security_group_id=var["secgroup_id"],
flavor="gaussdb.mysql.xlarge.x86.8",
password=var["password"],
availability_zone_mode="multi",
master_availability_zone="eu-de-01",
read_replicas=1)
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.NewGaussdbMysqlInstanceV3(ctx, "instance", &opentelekomcloud.GaussdbMysqlInstanceV3Args{
VpcId: pulumi.Any(_var.Vpc_id),
SubnetId: pulumi.Any(_var.Subnet_id),
SecurityGroupId: pulumi.Any(_var.Secgroup_id),
Flavor: pulumi.String("gaussdb.mysql.xlarge.x86.8"),
Password: pulumi.Any(_var.Password),
AvailabilityZoneMode: pulumi.String("multi"),
MasterAvailabilityZone: pulumi.String("eu-de-01"),
ReadReplicas: pulumi.Float64(1),
})
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 instance = new Opentelekomcloud.GaussdbMysqlInstanceV3("instance", new()
{
VpcId = @var.Vpc_id,
SubnetId = @var.Subnet_id,
SecurityGroupId = @var.Secgroup_id,
Flavor = "gaussdb.mysql.xlarge.x86.8",
Password = @var.Password,
AvailabilityZoneMode = "multi",
MasterAvailabilityZone = "eu-de-01",
ReadReplicas = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.GaussdbMysqlInstanceV3;
import com.pulumi.opentelekomcloud.GaussdbMysqlInstanceV3Args;
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 instance = new GaussdbMysqlInstanceV3("instance", GaussdbMysqlInstanceV3Args.builder()
.vpcId(var_.vpc_id())
.subnetId(var_.subnet_id())
.securityGroupId(var_.secgroup_id())
.flavor("gaussdb.mysql.xlarge.x86.8")
.password(var_.password())
.availabilityZoneMode("multi")
.masterAvailabilityZone("eu-de-01")
.readReplicas(1)
.build());
}
}
resources:
instance:
type: opentelekomcloud:GaussdbMysqlInstanceV3
properties:
vpcId: ${var.vpc_id}
subnetId: ${var.subnet_id}
securityGroupId: ${var.secgroup_id}
flavor: gaussdb.mysql.xlarge.x86.8
password: ${var.password}
availabilityZoneMode: multi
masterAvailabilityZone: eu-de-01
readReplicas: 1
Create an instance with backup strategy
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const instance = new opentelekomcloud.GaussdbMysqlInstanceV3("instance", {
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
instance = opentelekomcloud.GaussdbMysqlInstanceV3("instance",
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.NewGaussdbMysqlInstanceV3(ctx, "instance", &opentelekomcloud.GaussdbMysqlInstanceV3Args{
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.GaussdbMysqlInstanceV3BackupStrategyArgs{
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 instance = new Opentelekomcloud.GaussdbMysqlInstanceV3("instance", 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.GaussdbMysqlInstanceV3BackupStrategyArgs
{
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.GaussdbMysqlInstanceV3;
import com.pulumi.opentelekomcloud.GaussdbMysqlInstanceV3Args;
import com.pulumi.opentelekomcloud.inputs.GaussdbMysqlInstanceV3BackupStrategyArgs;
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 instance = new GaussdbMysqlInstanceV3("instance", GaussdbMysqlInstanceV3Args.builder()
.password(var_.password())
.flavor("gaussdb.mysql.4xlarge.x86.4")
.vpcId(var_.vpc_id())
.subnetId(var_.subnet_id())
.securityGroupId(var_.secgroup_id())
.backupStrategy(GaussdbMysqlInstanceV3BackupStrategyArgs.builder()
.startTime("03:00-04:00")
.keepDays(7)
.build())
.build());
}
}
resources:
instance:
type: opentelekomcloud:GaussdbMysqlInstanceV3
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 GaussdbMysqlInstanceV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GaussdbMysqlInstanceV3(name: string, args: GaussdbMysqlInstanceV3Args, opts?: CustomResourceOptions);
@overload
def GaussdbMysqlInstanceV3(resource_name: str,
args: GaussdbMysqlInstanceV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def GaussdbMysqlInstanceV3(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,
gaussdb_mysql_instance_v3_id: Optional[str] = None,
configuration_name: Optional[str] = None,
dedicated_resource_name: Optional[str] = None,
datastore: Optional[GaussdbMysqlInstanceV3DatastoreArgs] = None,
availability_zone_mode: Optional[str] = None,
master_availability_zone: Optional[str] = None,
name: Optional[str] = None,
dedicated_resource_id: Optional[str] = None,
read_replicas: Optional[float] = None,
region: Optional[str] = None,
security_group_id: Optional[str] = None,
configuration_id: Optional[str] = None,
time_zone: Optional[str] = None,
timeouts: Optional[GaussdbMysqlInstanceV3TimeoutsArgs] = None,
backup_strategy: Optional[GaussdbMysqlInstanceV3BackupStrategyArgs] = None)
func NewGaussdbMysqlInstanceV3(ctx *Context, name string, args GaussdbMysqlInstanceV3Args, opts ...ResourceOption) (*GaussdbMysqlInstanceV3, error)
public GaussdbMysqlInstanceV3(string name, GaussdbMysqlInstanceV3Args args, CustomResourceOptions? opts = null)
public GaussdbMysqlInstanceV3(String name, GaussdbMysqlInstanceV3Args args)
public GaussdbMysqlInstanceV3(String name, GaussdbMysqlInstanceV3Args args, CustomResourceOptions options)
type: opentelekomcloud:GaussdbMysqlInstanceV3
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 GaussdbMysqlInstanceV3Args
- 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 GaussdbMysqlInstanceV3Args
- 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 GaussdbMysqlInstanceV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GaussdbMysqlInstanceV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GaussdbMysqlInstanceV3Args
- 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 gaussdbMysqlInstanceV3Resource = new Opentelekomcloud.GaussdbMysqlInstanceV3("gaussdbMysqlInstanceV3Resource", new()
{
Flavor = "string",
VpcId = "string",
SubnetId = "string",
Password = "string",
GaussdbMysqlInstanceV3Id = "string",
ConfigurationName = "string",
DedicatedResourceName = "string",
Datastore = new Opentelekomcloud.Inputs.GaussdbMysqlInstanceV3DatastoreArgs
{
Engine = "string",
Version = "string",
},
AvailabilityZoneMode = "string",
MasterAvailabilityZone = "string",
Name = "string",
DedicatedResourceId = "string",
ReadReplicas = 0,
Region = "string",
SecurityGroupId = "string",
ConfigurationId = "string",
TimeZone = "string",
Timeouts = new Opentelekomcloud.Inputs.GaussdbMysqlInstanceV3TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
BackupStrategy = new Opentelekomcloud.Inputs.GaussdbMysqlInstanceV3BackupStrategyArgs
{
StartTime = "string",
KeepDays = 0,
},
});
example, err := opentelekomcloud.NewGaussdbMysqlInstanceV3(ctx, "gaussdbMysqlInstanceV3Resource", &opentelekomcloud.GaussdbMysqlInstanceV3Args{
Flavor: pulumi.String("string"),
VpcId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
Password: pulumi.String("string"),
GaussdbMysqlInstanceV3Id: pulumi.String("string"),
ConfigurationName: pulumi.String("string"),
DedicatedResourceName: pulumi.String("string"),
Datastore: &opentelekomcloud.GaussdbMysqlInstanceV3DatastoreArgs{
Engine: pulumi.String("string"),
Version: pulumi.String("string"),
},
AvailabilityZoneMode: pulumi.String("string"),
MasterAvailabilityZone: pulumi.String("string"),
Name: pulumi.String("string"),
DedicatedResourceId: pulumi.String("string"),
ReadReplicas: pulumi.Float64(0),
Region: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
ConfigurationId: pulumi.String("string"),
TimeZone: pulumi.String("string"),
Timeouts: &opentelekomcloud.GaussdbMysqlInstanceV3TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
BackupStrategy: &opentelekomcloud.GaussdbMysqlInstanceV3BackupStrategyArgs{
StartTime: pulumi.String("string"),
KeepDays: pulumi.Float64(0),
},
})
var gaussdbMysqlInstanceV3Resource = new GaussdbMysqlInstanceV3("gaussdbMysqlInstanceV3Resource", GaussdbMysqlInstanceV3Args.builder()
.flavor("string")
.vpcId("string")
.subnetId("string")
.password("string")
.gaussdbMysqlInstanceV3Id("string")
.configurationName("string")
.dedicatedResourceName("string")
.datastore(GaussdbMysqlInstanceV3DatastoreArgs.builder()
.engine("string")
.version("string")
.build())
.availabilityZoneMode("string")
.masterAvailabilityZone("string")
.name("string")
.dedicatedResourceId("string")
.readReplicas(0)
.region("string")
.securityGroupId("string")
.configurationId("string")
.timeZone("string")
.timeouts(GaussdbMysqlInstanceV3TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.backupStrategy(GaussdbMysqlInstanceV3BackupStrategyArgs.builder()
.startTime("string")
.keepDays(0)
.build())
.build());
gaussdb_mysql_instance_v3_resource = opentelekomcloud.GaussdbMysqlInstanceV3("gaussdbMysqlInstanceV3Resource",
flavor="string",
vpc_id="string",
subnet_id="string",
password="string",
gaussdb_mysql_instance_v3_id="string",
configuration_name="string",
dedicated_resource_name="string",
datastore={
"engine": "string",
"version": "string",
},
availability_zone_mode="string",
master_availability_zone="string",
name="string",
dedicated_resource_id="string",
read_replicas=0,
region="string",
security_group_id="string",
configuration_id="string",
time_zone="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
backup_strategy={
"start_time": "string",
"keep_days": 0,
})
const gaussdbMysqlInstanceV3Resource = new opentelekomcloud.GaussdbMysqlInstanceV3("gaussdbMysqlInstanceV3Resource", {
flavor: "string",
vpcId: "string",
subnetId: "string",
password: "string",
gaussdbMysqlInstanceV3Id: "string",
configurationName: "string",
dedicatedResourceName: "string",
datastore: {
engine: "string",
version: "string",
},
availabilityZoneMode: "string",
masterAvailabilityZone: "string",
name: "string",
dedicatedResourceId: "string",
readReplicas: 0,
region: "string",
securityGroupId: "string",
configurationId: "string",
timeZone: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
backupStrategy: {
startTime: "string",
keepDays: 0,
},
});
type: opentelekomcloud:GaussdbMysqlInstanceV3
properties:
availabilityZoneMode: string
backupStrategy:
keepDays: 0
startTime: string
configurationId: string
configurationName: string
datastore:
engine: string
version: string
dedicatedResourceId: string
dedicatedResourceName: string
flavor: string
gaussdbMysqlInstanceV3Id: string
masterAvailabilityZone: string
name: string
password: string
readReplicas: 0
region: string
securityGroupId: string
subnetId: string
timeZone: string
timeouts:
create: string
delete: string
update: string
vpcId: string
GaussdbMysqlInstanceV3 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 GaussdbMysqlInstanceV3 resource accepts the following input properties:
- Flavor string
- Specifies the instance specifications.
- Password string
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+?
- Subnet
Id string - Specifies the network ID of a subnet.
- Vpc
Id string - Specifies the VPC ID.
- Availability
Zone stringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- Backup
Strategy GaussdbMysql Instance V3Backup Strategy - Specifies the advanced backup policy. Structure is documented below.
- Configuration
Id string - Specifies the configuration ID.
- Configuration
Name string - Specifies the configuration name.
- Datastore
Gaussdb
Mysql Instance V3Datastore - Specifies the database information. Structure is documented below.
- Dedicated
Resource stringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- Dedicated
Resource stringName - Specifies the dedicated resource name. Changing this parameter will create a new resource.
- Gaussdb
Mysql stringInstance V3Id - Indicates the node ID.
- 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 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- Read
Replicas double - Specifies the count of read replicas. Defaults to 1.
- Region string
- The region in which to create the GaussDB mysql instance resource. If omitted, the provider-level region will be used.
- Security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- Time
Zone string - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- Timeouts
Gaussdb
Mysql Instance V3Timeouts
- Flavor string
- Specifies the instance specifications.
- Password string
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+?
- Subnet
Id string - Specifies the network ID of a subnet.
- Vpc
Id string - Specifies the VPC ID.
- Availability
Zone stringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- Backup
Strategy GaussdbMysql Instance V3Backup Strategy Args - Specifies the advanced backup policy. Structure is documented below.
- Configuration
Id string - Specifies the configuration ID.
- Configuration
Name string - Specifies the configuration name.
- Datastore
Gaussdb
Mysql Instance V3Datastore Args - Specifies the database information. Structure is documented below.
- Dedicated
Resource stringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- Dedicated
Resource stringName - Specifies the dedicated resource name. Changing this parameter will create a new resource.
- Gaussdb
Mysql stringInstance V3Id - Indicates the node ID.
- 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 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- Read
Replicas float64 - Specifies the count of read replicas. Defaults to 1.
- Region string
- The region in which to create the GaussDB mysql instance resource. If omitted, the provider-level region will be used.
- Security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- Time
Zone string - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- Timeouts
Gaussdb
Mysql Instance V3Timeouts Args
- flavor String
- Specifies the instance specifications.
- password String
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+?
- subnet
Id String - Specifies the network ID of a subnet.
- vpc
Id String - Specifies the VPC ID.
- availability
Zone StringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup
Strategy GaussdbMysql Instance V3Backup Strategy - Specifies the advanced backup policy. Structure is documented below.
- configuration
Id String - Specifies the configuration ID.
- configuration
Name String - Specifies the configuration name.
- datastore
Gaussdb
Mysql Instance V3Datastore - Specifies the database information. Structure is documented below.
- dedicated
Resource StringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- dedicated
Resource StringName - Specifies the dedicated resource name. Changing this parameter will create a new resource.
- gaussdb
Mysql StringInstance V3Id - Indicates the node ID.
- 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 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- read
Replicas Double - Specifies the count of read replicas. Defaults to 1.
- region String
- The region in which to create the GaussDB mysql instance resource. If omitted, the provider-level region will be used.
- security
Group StringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- time
Zone String - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts
Gaussdb
Mysql Instance V3Timeouts
- flavor string
- Specifies the instance specifications.
- password string
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+?
- subnet
Id string - Specifies the network ID of a subnet.
- vpc
Id string - Specifies the VPC ID.
- availability
Zone stringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup
Strategy GaussdbMysql Instance V3Backup Strategy - Specifies the advanced backup policy. Structure is documented below.
- configuration
Id string - Specifies the configuration ID.
- configuration
Name string - Specifies the configuration name.
- datastore
Gaussdb
Mysql Instance V3Datastore - Specifies the database information. Structure is documented below.
- dedicated
Resource stringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- dedicated
Resource stringName - Specifies the dedicated resource name. Changing this parameter will create a new resource.
- gaussdb
Mysql stringInstance V3Id - Indicates the node ID.
- 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 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- read
Replicas number - Specifies the count of read replicas. Defaults to 1.
- region string
- The region in which to create the GaussDB mysql instance resource. If omitted, the provider-level region will be used.
- security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- time
Zone string - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts
Gaussdb
Mysql Instance V3Timeouts
- flavor str
- Specifies the instance specifications.
- password str
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+?
- subnet_
id str - Specifies the network ID of a subnet.
- vpc_
id str - Specifies the VPC ID.
- availability_
zone_ strmode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup_
strategy GaussdbMysql Instance V3Backup Strategy Args - Specifies the advanced backup policy. Structure is documented below.
- configuration_
id str - Specifies the configuration ID.
- configuration_
name str - Specifies the configuration name.
- datastore
Gaussdb
Mysql Instance V3Datastore Args - Specifies the database information. Structure is documented below.
- dedicated_
resource_ strid - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- dedicated_
resource_ strname - Specifies the dedicated resource name. Changing this parameter will create a new resource.
- gaussdb_
mysql_ strinstance_ v3_ id - Indicates the node ID.
- 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 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- read_
replicas float - Specifies the count of read replicas. Defaults to 1.
- region str
- The region in which to create the GaussDB mysql instance resource. If omitted, the provider-level region will be used.
- security_
group_ strid - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- time_
zone str - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts
Gaussdb
Mysql Instance V3Timeouts Args
- flavor String
- Specifies the instance specifications.
- password String
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+?
- subnet
Id String - Specifies the network ID of a subnet.
- vpc
Id String - Specifies the VPC ID.
- 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.
- configuration
Name String - Specifies the configuration name.
- datastore Property Map
- Specifies the database information. Structure is documented below.
- dedicated
Resource StringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- dedicated
Resource StringName - Specifies the dedicated resource name. Changing this parameter will create a new resource.
- gaussdb
Mysql StringInstance V3Id - Indicates the node ID.
- 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 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- read
Replicas Number - Specifies the count of read replicas. Defaults to 1.
- region String
- The region in which to create the GaussDB mysql instance resource. If omitted, the provider-level region will be used.
- security
Group StringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- time
Zone String - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the GaussdbMysqlInstanceV3 resource produces the following output properties:
- Alias string
- Indicates the alias of the instance.
- Charging
Mode string - Indicates the charging mode of the instance.
- Created string
- Indicates the created time of the DB node.
- Db
User stringName - Indicates the default username.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mode string
- Indicates the instance mode.
- Node
Count double - Indicates the amount on nodes of the DB instance.
- Nodes
List<Gaussdb
Mysql Instance V3Node> - Indicates the instance nodes information. Structure is documented below.
- Port double
- Indicates the database port.
- Private
Write List<string>Ips - Indicates the private IP address of the DB instance.
- Project
Id string - Indicates the id of the project.
- Public
Ip string - Indicates the public IP address of the DB instance.
- Status string
- Indicates the node status.
- Updated string
- Indicates the updated time of the DB node.
- Alias string
- Indicates the alias of the instance.
- Charging
Mode string - Indicates the charging mode of the instance.
- Created string
- Indicates the created time of the DB node.
- Db
User stringName - Indicates the default username.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mode string
- Indicates the instance mode.
- Node
Count float64 - Indicates the amount on nodes of the DB instance.
- Nodes
[]Gaussdb
Mysql Instance V3Node - Indicates the instance nodes information. Structure is documented below.
- Port float64
- Indicates the database port.
- Private
Write []stringIps - Indicates the private IP address of the DB instance.
- Project
Id string - Indicates the id of the project.
- Public
Ip string - Indicates the public IP address of the DB instance.
- Status string
- Indicates the node status.
- Updated string
- Indicates the updated time of the DB node.
- alias String
- Indicates the alias of the instance.
- charging
Mode String - Indicates the charging mode of the instance.
- created String
- Indicates the created time of the DB node.
- db
User StringName - Indicates the default username.
- id String
- The provider-assigned unique ID for this managed resource.
- mode String
- Indicates the instance mode.
- node
Count Double - Indicates the amount on nodes of the DB instance.
- nodes
List<Gaussdb
Mysql Instance V3Node> - Indicates the instance nodes information. Structure is documented below.
- port Double
- Indicates the database port.
- private
Write List<String>Ips - Indicates the private IP address of the DB instance.
- project
Id String - Indicates the id of the project.
- public
Ip String - Indicates the public IP address of the DB instance.
- status String
- Indicates the node status.
- updated String
- Indicates the updated time of the DB node.
- alias string
- Indicates the alias of the instance.
- charging
Mode string - Indicates the charging mode of the instance.
- created string
- Indicates the created time of the DB node.
- db
User stringName - Indicates the default username.
- id string
- The provider-assigned unique ID for this managed resource.
- mode string
- Indicates the instance mode.
- node
Count number - Indicates the amount on nodes of the DB instance.
- nodes
Gaussdb
Mysql Instance V3Node[] - Indicates the instance nodes information. Structure is documented below.
- port number
- Indicates the database port.
- private
Write string[]Ips - Indicates the private IP address of the DB instance.
- project
Id string - Indicates the id of the project.
- public
Ip string - Indicates the public IP address of the DB instance.
- status string
- Indicates the node status.
- updated string
- Indicates the updated time of the DB node.
- alias str
- Indicates the alias of the instance.
- charging_
mode str - Indicates the charging mode of the instance.
- created str
- Indicates the created time of the DB node.
- db_
user_ strname - Indicates the default username.
- id str
- The provider-assigned unique ID for this managed resource.
- mode str
- Indicates the instance mode.
- node_
count float - Indicates the amount on nodes of the DB instance.
- nodes
Sequence[Gaussdb
Mysql Instance V3Node] - Indicates the instance nodes information. Structure is documented below.
- port float
- Indicates the database port.
- private_
write_ Sequence[str]ips - Indicates the private IP address of the DB instance.
- project_
id str - Indicates the id of the project.
- public_
ip str - Indicates the public IP address of the DB instance.
- status str
- Indicates the node status.
- updated str
- Indicates the updated time of the DB node.
- alias String
- Indicates the alias of the instance.
- charging
Mode String - Indicates the charging mode of the instance.
- created String
- Indicates the created time of the DB node.
- db
User StringName - Indicates the default username.
- id String
- The provider-assigned unique ID for this managed resource.
- mode String
- Indicates the instance mode.
- node
Count Number - Indicates the amount on nodes of the DB instance.
- nodes List<Property Map>
- Indicates the instance nodes information. Structure is documented below.
- port Number
- Indicates the database port.
- private
Write List<String>Ips - Indicates the private IP address of the DB instance.
- project
Id String - Indicates the id of the project.
- public
Ip String - Indicates the public IP address of the DB instance.
- status String
- Indicates the node status.
- updated String
- Indicates the updated time of the DB node.
Look up Existing GaussdbMysqlInstanceV3 Resource
Get an existing GaussdbMysqlInstanceV3 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?: GaussdbMysqlInstanceV3State, opts?: CustomResourceOptions): GaussdbMysqlInstanceV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alias: Optional[str] = None,
availability_zone_mode: Optional[str] = None,
backup_strategy: Optional[GaussdbMysqlInstanceV3BackupStrategyArgs] = None,
charging_mode: Optional[str] = None,
configuration_id: Optional[str] = None,
configuration_name: Optional[str] = None,
created: Optional[str] = None,
datastore: Optional[GaussdbMysqlInstanceV3DatastoreArgs] = None,
db_user_name: Optional[str] = None,
dedicated_resource_id: Optional[str] = None,
dedicated_resource_name: Optional[str] = None,
flavor: Optional[str] = None,
gaussdb_mysql_instance_v3_id: Optional[str] = None,
master_availability_zone: Optional[str] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
node_count: Optional[float] = None,
nodes: Optional[Sequence[GaussdbMysqlInstanceV3NodeArgs]] = None,
password: Optional[str] = None,
port: Optional[float] = None,
private_write_ips: Optional[Sequence[str]] = None,
project_id: Optional[str] = None,
public_ip: Optional[str] = None,
read_replicas: Optional[float] = None,
region: Optional[str] = None,
security_group_id: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
time_zone: Optional[str] = None,
timeouts: Optional[GaussdbMysqlInstanceV3TimeoutsArgs] = None,
updated: Optional[str] = None,
vpc_id: Optional[str] = None) -> GaussdbMysqlInstanceV3
func GetGaussdbMysqlInstanceV3(ctx *Context, name string, id IDInput, state *GaussdbMysqlInstanceV3State, opts ...ResourceOption) (*GaussdbMysqlInstanceV3, error)
public static GaussdbMysqlInstanceV3 Get(string name, Input<string> id, GaussdbMysqlInstanceV3State? state, CustomResourceOptions? opts = null)
public static GaussdbMysqlInstanceV3 get(String name, Output<String> id, GaussdbMysqlInstanceV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:GaussdbMysqlInstanceV3 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.
- Alias string
- Indicates the alias of the instance.
- Availability
Zone stringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- Backup
Strategy GaussdbMysql Instance V3Backup Strategy - Specifies the advanced backup policy. Structure is documented below.
- Charging
Mode string - Indicates the charging mode of the instance.
- Configuration
Id string - Specifies the configuration ID.
- Configuration
Name string - Specifies the configuration name.
- Created string
- Indicates the created time of the DB node.
- Datastore
Gaussdb
Mysql Instance V3Datastore - Specifies the database information. Structure is documented below.
- Db
User stringName - Indicates the default username.
- Dedicated
Resource stringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- Dedicated
Resource stringName - Specifies the dedicated resource name. Changing this parameter will create a new resource.
- Flavor string
- Specifies the instance specifications.
- Gaussdb
Mysql stringInstance V3Id - Indicates the node ID.
- 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 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- Node
Count double - Indicates the amount on nodes of the DB instance.
- Nodes
List<Gaussdb
Mysql Instance V3Node> - Indicates the instance nodes information. Structure is documented below.
- Password string
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+?
- Port double
- Indicates the database port.
- Private
Write List<string>Ips - Indicates the private IP address of the DB instance.
- Project
Id string - Indicates the id of the project.
- Public
Ip string - Indicates the public IP address of the DB instance.
- Read
Replicas double - Specifies the count of read replicas. Defaults to 1.
- Region string
- The region in which to create the GaussDB mysql instance resource. If omitted, the provider-level region will be used.
- 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.
- Time
Zone string - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- Timeouts
Gaussdb
Mysql Instance V3Timeouts - Updated string
- Indicates the updated time of the DB node.
- Vpc
Id string - Specifies the VPC ID.
- Alias string
- Indicates the alias of the instance.
- Availability
Zone stringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- Backup
Strategy GaussdbMysql Instance V3Backup Strategy Args - Specifies the advanced backup policy. Structure is documented below.
- Charging
Mode string - Indicates the charging mode of the instance.
- Configuration
Id string - Specifies the configuration ID.
- Configuration
Name string - Specifies the configuration name.
- Created string
- Indicates the created time of the DB node.
- Datastore
Gaussdb
Mysql Instance V3Datastore Args - Specifies the database information. Structure is documented below.
- Db
User stringName - Indicates the default username.
- Dedicated
Resource stringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- Dedicated
Resource stringName - Specifies the dedicated resource name. Changing this parameter will create a new resource.
- Flavor string
- Specifies the instance specifications.
- Gaussdb
Mysql stringInstance V3Id - Indicates the node ID.
- 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 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- Node
Count float64 - Indicates the amount on nodes of the DB instance.
- Nodes
[]Gaussdb
Mysql Instance V3Node Args - Indicates the instance nodes information. Structure is documented below.
- Password string
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+?
- Port float64
- Indicates the database port.
- Private
Write []stringIps - Indicates the private IP address of the DB instance.
- Project
Id string - Indicates the id of the project.
- Public
Ip string - Indicates the public IP address of the DB instance.
- Read
Replicas float64 - Specifies the count of read replicas. Defaults to 1.
- Region string
- The region in which to create the GaussDB mysql instance resource. If omitted, the provider-level region will be used.
- 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.
- Time
Zone string - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- Timeouts
Gaussdb
Mysql Instance V3Timeouts Args - Updated string
- Indicates the updated time of the DB node.
- Vpc
Id string - Specifies the VPC ID.
- alias String
- Indicates the alias of the instance.
- availability
Zone StringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup
Strategy GaussdbMysql Instance V3Backup Strategy - Specifies the advanced backup policy. Structure is documented below.
- charging
Mode String - Indicates the charging mode of the instance.
- configuration
Id String - Specifies the configuration ID.
- configuration
Name String - Specifies the configuration name.
- created String
- Indicates the created time of the DB node.
- datastore
Gaussdb
Mysql Instance V3Datastore - Specifies the database information. Structure is documented below.
- db
User StringName - Indicates the default username.
- dedicated
Resource StringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- dedicated
Resource StringName - Specifies the dedicated resource name. Changing this parameter will create a new resource.
- flavor String
- Specifies the instance specifications.
- gaussdb
Mysql StringInstance V3Id - Indicates the node ID.
- 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 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- node
Count Double - Indicates the amount on nodes of the DB instance.
- nodes
List<Gaussdb
Mysql Instance V3Node> - Indicates the instance nodes information. Structure is documented below.
- password String
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+?
- port Double
- Indicates the database port.
- private
Write List<String>Ips - Indicates the private IP address of the DB instance.
- project
Id String - Indicates the id of the project.
- public
Ip String - Indicates the public IP address of the DB instance.
- read
Replicas Double - Specifies the count of read replicas. Defaults to 1.
- region String
- The region in which to create the GaussDB mysql instance resource. If omitted, the provider-level region will be used.
- 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.
- time
Zone String - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts
Gaussdb
Mysql Instance V3Timeouts - updated String
- Indicates the updated time of the DB node.
- vpc
Id String - Specifies the VPC ID.
- alias string
- Indicates the alias of the instance.
- availability
Zone stringMode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup
Strategy GaussdbMysql Instance V3Backup Strategy - Specifies the advanced backup policy. Structure is documented below.
- charging
Mode string - Indicates the charging mode of the instance.
- configuration
Id string - Specifies the configuration ID.
- configuration
Name string - Specifies the configuration name.
- created string
- Indicates the created time of the DB node.
- datastore
Gaussdb
Mysql Instance V3Datastore - Specifies the database information. Structure is documented below.
- db
User stringName - Indicates the default username.
- dedicated
Resource stringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- dedicated
Resource stringName - Specifies the dedicated resource name. Changing this parameter will create a new resource.
- flavor string
- Specifies the instance specifications.
- gaussdb
Mysql stringInstance V3Id - Indicates the node ID.
- 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 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- node
Count number - Indicates the amount on nodes of the DB instance.
- nodes
Gaussdb
Mysql Instance V3Node[] - Indicates the instance nodes information. Structure is documented below.
- password string
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+?
- port number
- Indicates the database port.
- private
Write string[]Ips - Indicates the private IP address of the DB instance.
- project
Id string - Indicates the id of the project.
- public
Ip string - Indicates the public IP address of the DB instance.
- read
Replicas number - Specifies the count of read replicas. Defaults to 1.
- region string
- The region in which to create the GaussDB mysql instance resource. If omitted, the provider-level region will be used.
- 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.
- time
Zone string - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts
Gaussdb
Mysql Instance V3Timeouts - updated string
- Indicates the updated time of the DB node.
- vpc
Id string - Specifies the VPC ID.
- alias str
- Indicates the alias of the instance.
- availability_
zone_ strmode - Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
- backup_
strategy GaussdbMysql Instance V3Backup Strategy Args - Specifies the advanced backup policy. Structure is documented below.
- charging_
mode str - Indicates the charging mode of the instance.
- configuration_
id str - Specifies the configuration ID.
- configuration_
name str - Specifies the configuration name.
- created str
- Indicates the created time of the DB node.
- datastore
Gaussdb
Mysql Instance V3Datastore Args - Specifies the database information. Structure is documented below.
- db_
user_ strname - Indicates the default username.
- dedicated_
resource_ strid - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- dedicated_
resource_ strname - Specifies the dedicated resource name. Changing this parameter will create a new resource.
- flavor str
- Specifies the instance specifications.
- gaussdb_
mysql_ strinstance_ v3_ id - Indicates the node ID.
- 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 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- node_
count float - Indicates the amount on nodes of the DB instance.
- nodes
Sequence[Gaussdb
Mysql Instance V3Node Args] - Indicates the instance nodes information. Structure is documented below.
- password str
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+?
- port float
- Indicates the database port.
- private_
write_ Sequence[str]ips - Indicates the private IP address of the DB instance.
- project_
id str - Indicates the id of the project.
- public_
ip str - Indicates the public IP address of the DB instance.
- read_
replicas float - Specifies the count of read replicas. Defaults to 1.
- region str
- The region in which to create the GaussDB mysql instance resource. If omitted, the provider-level region will be used.
- 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.
- time_
zone str - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts
Gaussdb
Mysql Instance V3Timeouts Args - updated str
- Indicates the updated time of the DB node.
- vpc_
id str - Specifies the VPC ID.
- alias String
- Indicates the alias of the instance.
- 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.
- charging
Mode String - Indicates the charging mode of the instance.
- configuration
Id String - Specifies the configuration ID.
- configuration
Name String - Specifies the configuration name.
- created String
- Indicates the created time of the DB node.
- datastore Property Map
- Specifies the database information. Structure is documented below.
- db
User StringName - Indicates the default username.
- dedicated
Resource StringId - Specifies the dedicated resource ID. Changing this parameter will create a new resource.
- dedicated
Resource StringName - Specifies the dedicated resource name. Changing this parameter will create a new resource.
- flavor String
- Specifies the instance specifications.
- gaussdb
Mysql StringInstance V3Id - Indicates the node ID.
- 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 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- node
Count Number - Indicates the amount on nodes of the DB instance.
- nodes List<Property Map>
- Indicates the instance nodes information. Structure is documented below.
- password String
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+?
- port Number
- Indicates the database port.
- private
Write List<String>Ips - Indicates the private IP address of the DB instance.
- project
Id String - Indicates the id of the project.
- public
Ip String - Indicates the public IP address of the DB instance.
- read
Replicas Number - Specifies the count of read replicas. Defaults to 1.
- region String
- The region in which to create the GaussDB mysql instance resource. If omitted, the provider-level region will be used.
- 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.
- time
Zone String - Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
- timeouts Property Map
- updated String
- Indicates the updated time of the DB node.
- vpc
Id String - Specifies the VPC ID.
Supporting Types
GaussdbMysqlInstanceV3BackupStrategy, GaussdbMysqlInstanceV3BackupStrategyArgs
- 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 to 35. If this parameter is set to 0, 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 to 35. If this parameter is set to 0, 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 to 35. If this parameter is set to 0, 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 to 35. If this parameter is set to 0, 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 to 35. If this parameter is set to 0, 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 to 35. If this parameter is set to 0, 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.
GaussdbMysqlInstanceV3Datastore, GaussdbMysqlInstanceV3DatastoreArgs
GaussdbMysqlInstanceV3Node, GaussdbMysqlInstanceV3NodeArgs
- Az
Code string - Indicates the availability zone where the node resides.
- Created string
- Indicates the created time of the DB node.
- Flavor
Ref string - Indicates the specification code of DB node.
- Id string
- Indicates the node ID.
- Max
Connections string - Indicates the maximum number of connections of DB node.
- Name string
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- Need
Restart bool - Indicates whether the reboot of DB instance is needed for the parameter modifications to take effect.
- Port double
- Indicates the database port.
- Priority double
- Indicates the failover priority of the DB node.
- Private
Read List<string>Ips - Ram string
- Indicates the memory size in GB of the DB node.
- Region
Code string - Indicates the region where the node resides.
- Status string
- Indicates the node status.
- Type string
- Indicates the node type: master or slave.
- Updated string
- Indicates the updated time of the DB node.
- Vcpus string
- Indicates the vCPUs number of DB node.
- Az
Code string - Indicates the availability zone where the node resides.
- Created string
- Indicates the created time of the DB node.
- Flavor
Ref string - Indicates the specification code of DB node.
- Id string
- Indicates the node ID.
- Max
Connections string - Indicates the maximum number of connections of DB node.
- Name string
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- Need
Restart bool - Indicates whether the reboot of DB instance is needed for the parameter modifications to take effect.
- Port float64
- Indicates the database port.
- Priority float64
- Indicates the failover priority of the DB node.
- Private
Read []stringIps - Ram string
- Indicates the memory size in GB of the DB node.
- Region
Code string - Indicates the region where the node resides.
- Status string
- Indicates the node status.
- Type string
- Indicates the node type: master or slave.
- Updated string
- Indicates the updated time of the DB node.
- Vcpus string
- Indicates the vCPUs number of DB node.
- az
Code String - Indicates the availability zone where the node resides.
- created String
- Indicates the created time of the DB node.
- flavor
Ref String - Indicates the specification code of DB node.
- id String
- Indicates the node ID.
- max
Connections String - Indicates the maximum number of connections of DB node.
- name String
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- need
Restart Boolean - Indicates whether the reboot of DB instance is needed for the parameter modifications to take effect.
- port Double
- Indicates the database port.
- priority Double
- Indicates the failover priority of the DB node.
- private
Read List<String>Ips - ram String
- Indicates the memory size in GB of the DB node.
- region
Code String - Indicates the region where the node resides.
- status String
- Indicates the node status.
- type String
- Indicates the node type: master or slave.
- updated String
- Indicates the updated time of the DB node.
- vcpus String
- Indicates the vCPUs number of DB node.
- az
Code string - Indicates the availability zone where the node resides.
- created string
- Indicates the created time of the DB node.
- flavor
Ref string - Indicates the specification code of DB node.
- id string
- Indicates the node ID.
- max
Connections string - Indicates the maximum number of connections of DB node.
- name string
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- need
Restart boolean - Indicates whether the reboot of DB instance is needed for the parameter modifications to take effect.
- port number
- Indicates the database port.
- priority number
- Indicates the failover priority of the DB node.
- private
Read string[]Ips - ram string
- Indicates the memory size in GB of the DB node.
- region
Code string - Indicates the region where the node resides.
- status string
- Indicates the node status.
- type string
- Indicates the node type: master or slave.
- updated string
- Indicates the updated time of the DB node.
- vcpus string
- Indicates the vCPUs number of DB node.
- az_
code str - Indicates the availability zone where the node resides.
- created str
- Indicates the created time of the DB node.
- flavor_
ref str - Indicates the specification code of DB node.
- id str
- Indicates the node ID.
- max_
connections str - Indicates the maximum number of connections of DB node.
- name str
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- need_
restart bool - Indicates whether the reboot of DB instance is needed for the parameter modifications to take effect.
- port float
- Indicates the database port.
- priority float
- Indicates the failover priority of the DB node.
- private_
read_ Sequence[str]ips - ram str
- Indicates the memory size in GB of the DB node.
- region_
code str - Indicates the region where the node resides.
- status str
- Indicates the node status.
- type str
- Indicates the node type: master or slave.
- updated str
- Indicates the updated time of the DB node.
- vcpus str
- Indicates the vCPUs number of DB node.
- az
Code String - Indicates the availability zone where the node resides.
- created String
- Indicates the created time of the DB node.
- flavor
Ref String - Indicates the specification code of DB node.
- id String
- Indicates the node ID.
- max
Connections String - Indicates the maximum number of connections of DB node.
- name String
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- need
Restart Boolean - Indicates whether the reboot of DB instance is needed for the parameter modifications to take effect.
- port Number
- Indicates the database port.
- priority Number
- Indicates the failover priority of the DB node.
- private
Read List<String>Ips - ram String
- Indicates the memory size in GB of the DB node.
- region
Code String - Indicates the region where the node resides.
- status String
- Indicates the node status.
- type String
- Indicates the node type: master or slave.
- updated String
- Indicates the updated time of the DB node.
- vcpus String
- Indicates the vCPUs number of DB node.
GaussdbMysqlInstanceV3Timeouts, GaussdbMysqlInstanceV3TimeoutsArgs
Import
GaussDB instance can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/gaussdbMysqlInstanceV3:GaussdbMysqlInstanceV3 instance_1 1a801c1e01e6458d8eed810912e29d0cin07
Due to the security reasons, password
can not be imported. It can be ignored as shown below.
hcl
resource “opentelekomcloud_gaussdb_mysql_instance_v3” “instance_1” {
lifecycle {
ignore_changes = [
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.