1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. GaussdbMysqlInstanceV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.GaussdbMysqlInstanceV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    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 ~!@#%^*-_=+?
    SubnetId string
    Specifies the network ID of a subnet.
    VpcId string
    Specifies the VPC ID.
    AvailabilityZoneMode string
    Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
    BackupStrategy GaussdbMysqlInstanceV3BackupStrategy
    Specifies the advanced backup policy. Structure is documented below.
    ConfigurationId string
    Specifies the configuration ID.
    ConfigurationName string
    Specifies the configuration name.
    Datastore GaussdbMysqlInstanceV3Datastore
    Specifies the database information. Structure is documented below.
    DedicatedResourceId string
    Specifies the dedicated resource ID. Changing this parameter will create a new resource.
    DedicatedResourceName string
    Specifies the dedicated resource name. Changing this parameter will create a new resource.
    GaussdbMysqlInstanceV3Id string
    Indicates the node ID.
    MasterAvailabilityZone string
    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 (_).
    ReadReplicas 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.
    SecurityGroupId string
    Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
    TimeZone string
    Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
    Timeouts GaussdbMysqlInstanceV3Timeouts
    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 ~!@#%^*-_=+?
    SubnetId string
    Specifies the network ID of a subnet.
    VpcId string
    Specifies the VPC ID.
    AvailabilityZoneMode string
    Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
    BackupStrategy GaussdbMysqlInstanceV3BackupStrategyArgs
    Specifies the advanced backup policy. Structure is documented below.
    ConfigurationId string
    Specifies the configuration ID.
    ConfigurationName string
    Specifies the configuration name.
    Datastore GaussdbMysqlInstanceV3DatastoreArgs
    Specifies the database information. Structure is documented below.
    DedicatedResourceId string
    Specifies the dedicated resource ID. Changing this parameter will create a new resource.
    DedicatedResourceName string
    Specifies the dedicated resource name. Changing this parameter will create a new resource.
    GaussdbMysqlInstanceV3Id string
    Indicates the node ID.
    MasterAvailabilityZone string
    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 (_).
    ReadReplicas 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.
    SecurityGroupId string
    Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
    TimeZone string
    Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
    Timeouts GaussdbMysqlInstanceV3TimeoutsArgs
    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 ~!@#%^*-_=+?
    subnetId String
    Specifies the network ID of a subnet.
    vpcId String
    Specifies the VPC ID.
    availabilityZoneMode String
    Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
    backupStrategy GaussdbMysqlInstanceV3BackupStrategy
    Specifies the advanced backup policy. Structure is documented below.
    configurationId String
    Specifies the configuration ID.
    configurationName String
    Specifies the configuration name.
    datastore GaussdbMysqlInstanceV3Datastore
    Specifies the database information. Structure is documented below.
    dedicatedResourceId String
    Specifies the dedicated resource ID. Changing this parameter will create a new resource.
    dedicatedResourceName String
    Specifies the dedicated resource name. Changing this parameter will create a new resource.
    gaussdbMysqlInstanceV3Id String
    Indicates the node ID.
    masterAvailabilityZone String
    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 (_).
    readReplicas 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.
    securityGroupId String
    Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
    timeZone String
    Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
    timeouts GaussdbMysqlInstanceV3Timeouts
    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 ~!@#%^*-_=+?
    subnetId string
    Specifies the network ID of a subnet.
    vpcId string
    Specifies the VPC ID.
    availabilityZoneMode string
    Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
    backupStrategy GaussdbMysqlInstanceV3BackupStrategy
    Specifies the advanced backup policy. Structure is documented below.
    configurationId string
    Specifies the configuration ID.
    configurationName string
    Specifies the configuration name.
    datastore GaussdbMysqlInstanceV3Datastore
    Specifies the database information. Structure is documented below.
    dedicatedResourceId string
    Specifies the dedicated resource ID. Changing this parameter will create a new resource.
    dedicatedResourceName string
    Specifies the dedicated resource name. Changing this parameter will create a new resource.
    gaussdbMysqlInstanceV3Id string
    Indicates the node ID.
    masterAvailabilityZone string
    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 (_).
    readReplicas 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.
    securityGroupId string
    Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
    timeZone string
    Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
    timeouts GaussdbMysqlInstanceV3Timeouts
    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_mode str
    Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
    backup_strategy GaussdbMysqlInstanceV3BackupStrategyArgs
    Specifies the advanced backup policy. Structure is documented below.
    configuration_id str
    Specifies the configuration ID.
    configuration_name str
    Specifies the configuration name.
    datastore GaussdbMysqlInstanceV3DatastoreArgs
    Specifies the database information. Structure is documented below.
    dedicated_resource_id str
    Specifies the dedicated resource ID. Changing this parameter will create a new resource.
    dedicated_resource_name str
    Specifies the dedicated resource name. Changing this parameter will create a new resource.
    gaussdb_mysql_instance_v3_id str
    Indicates the node ID.
    master_availability_zone str
    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_id str
    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 GaussdbMysqlInstanceV3TimeoutsArgs
    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 ~!@#%^*-_=+?
    subnetId String
    Specifies the network ID of a subnet.
    vpcId String
    Specifies the VPC ID.
    availabilityZoneMode String
    Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
    backupStrategy Property Map
    Specifies the advanced backup policy. Structure is documented below.
    configurationId String
    Specifies the configuration ID.
    configurationName String
    Specifies the configuration name.
    datastore Property Map
    Specifies the database information. Structure is documented below.
    dedicatedResourceId String
    Specifies the dedicated resource ID. Changing this parameter will create a new resource.
    dedicatedResourceName String
    Specifies the dedicated resource name. Changing this parameter will create a new resource.
    gaussdbMysqlInstanceV3Id String
    Indicates the node ID.
    masterAvailabilityZone String
    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 (_).
    readReplicas 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.
    securityGroupId String
    Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
    timeZone 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.
    ChargingMode string
    Indicates the charging mode of the instance.
    Created string
    Indicates the created time of the DB node.
    DbUserName string
    Indicates the default username.
    Id string
    The provider-assigned unique ID for this managed resource.
    Mode string
    Indicates the instance mode.
    NodeCount double
    Indicates the amount on nodes of the DB instance.
    Nodes List<GaussdbMysqlInstanceV3Node>
    Indicates the instance nodes information. Structure is documented below.
    Port double
    Indicates the database port.
    PrivateWriteIps List<string>
    Indicates the private IP address of the DB instance.
    ProjectId string
    Indicates the id of the project.
    PublicIp 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.
    ChargingMode string
    Indicates the charging mode of the instance.
    Created string
    Indicates the created time of the DB node.
    DbUserName string
    Indicates the default username.
    Id string
    The provider-assigned unique ID for this managed resource.
    Mode string
    Indicates the instance mode.
    NodeCount float64
    Indicates the amount on nodes of the DB instance.
    Nodes []GaussdbMysqlInstanceV3Node
    Indicates the instance nodes information. Structure is documented below.
    Port float64
    Indicates the database port.
    PrivateWriteIps []string
    Indicates the private IP address of the DB instance.
    ProjectId string
    Indicates the id of the project.
    PublicIp 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.
    chargingMode String
    Indicates the charging mode of the instance.
    created String
    Indicates the created time of the DB node.
    dbUserName String
    Indicates the default username.
    id String
    The provider-assigned unique ID for this managed resource.
    mode String
    Indicates the instance mode.
    nodeCount Double
    Indicates the amount on nodes of the DB instance.
    nodes List<GaussdbMysqlInstanceV3Node>
    Indicates the instance nodes information. Structure is documented below.
    port Double
    Indicates the database port.
    privateWriteIps List<String>
    Indicates the private IP address of the DB instance.
    projectId String
    Indicates the id of the project.
    publicIp 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.
    chargingMode string
    Indicates the charging mode of the instance.
    created string
    Indicates the created time of the DB node.
    dbUserName string
    Indicates the default username.
    id string
    The provider-assigned unique ID for this managed resource.
    mode string
    Indicates the instance mode.
    nodeCount number
    Indicates the amount on nodes of the DB instance.
    nodes GaussdbMysqlInstanceV3Node[]
    Indicates the instance nodes information. Structure is documented below.
    port number
    Indicates the database port.
    privateWriteIps string[]
    Indicates the private IP address of the DB instance.
    projectId string
    Indicates the id of the project.
    publicIp 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_name str
    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[GaussdbMysqlInstanceV3Node]
    Indicates the instance nodes information. Structure is documented below.
    port float
    Indicates the database port.
    private_write_ips Sequence[str]
    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.
    chargingMode String
    Indicates the charging mode of the instance.
    created String
    Indicates the created time of the DB node.
    dbUserName String
    Indicates the default username.
    id String
    The provider-assigned unique ID for this managed resource.
    mode String
    Indicates the instance mode.
    nodeCount 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.
    privateWriteIps List<String>
    Indicates the private IP address of the DB instance.
    projectId String
    Indicates the id of the project.
    publicIp 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.
    The following state arguments are supported:
    Alias string
    Indicates the alias of the instance.
    AvailabilityZoneMode string
    Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
    BackupStrategy GaussdbMysqlInstanceV3BackupStrategy
    Specifies the advanced backup policy. Structure is documented below.
    ChargingMode string
    Indicates the charging mode of the instance.
    ConfigurationId string
    Specifies the configuration ID.
    ConfigurationName string
    Specifies the configuration name.
    Created string
    Indicates the created time of the DB node.
    Datastore GaussdbMysqlInstanceV3Datastore
    Specifies the database information. Structure is documented below.
    DbUserName string
    Indicates the default username.
    DedicatedResourceId string
    Specifies the dedicated resource ID. Changing this parameter will create a new resource.
    DedicatedResourceName string
    Specifies the dedicated resource name. Changing this parameter will create a new resource.
    Flavor string
    Specifies the instance specifications.
    GaussdbMysqlInstanceV3Id string
    Indicates the node ID.
    MasterAvailabilityZone string
    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 (_).
    NodeCount double
    Indicates the amount on nodes of the DB instance.
    Nodes List<GaussdbMysqlInstanceV3Node>
    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.
    PrivateWriteIps List<string>
    Indicates the private IP address of the DB instance.
    ProjectId string
    Indicates the id of the project.
    PublicIp string
    Indicates the public IP address of the DB instance.
    ReadReplicas 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.
    SecurityGroupId string
    Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
    Status string
    Indicates the node status.
    SubnetId string
    Specifies the network ID of a subnet.
    TimeZone string
    Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
    Timeouts GaussdbMysqlInstanceV3Timeouts
    Updated string
    Indicates the updated time of the DB node.
    VpcId string
    Specifies the VPC ID.
    Alias string
    Indicates the alias of the instance.
    AvailabilityZoneMode string
    Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
    BackupStrategy GaussdbMysqlInstanceV3BackupStrategyArgs
    Specifies the advanced backup policy. Structure is documented below.
    ChargingMode string
    Indicates the charging mode of the instance.
    ConfigurationId string
    Specifies the configuration ID.
    ConfigurationName string
    Specifies the configuration name.
    Created string
    Indicates the created time of the DB node.
    Datastore GaussdbMysqlInstanceV3DatastoreArgs
    Specifies the database information. Structure is documented below.
    DbUserName string
    Indicates the default username.
    DedicatedResourceId string
    Specifies the dedicated resource ID. Changing this parameter will create a new resource.
    DedicatedResourceName string
    Specifies the dedicated resource name. Changing this parameter will create a new resource.
    Flavor string
    Specifies the instance specifications.
    GaussdbMysqlInstanceV3Id string
    Indicates the node ID.
    MasterAvailabilityZone string
    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 (_).
    NodeCount float64
    Indicates the amount on nodes of the DB instance.
    Nodes []GaussdbMysqlInstanceV3NodeArgs
    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.
    PrivateWriteIps []string
    Indicates the private IP address of the DB instance.
    ProjectId string
    Indicates the id of the project.
    PublicIp string
    Indicates the public IP address of the DB instance.
    ReadReplicas 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.
    SecurityGroupId string
    Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
    Status string
    Indicates the node status.
    SubnetId string
    Specifies the network ID of a subnet.
    TimeZone string
    Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
    Timeouts GaussdbMysqlInstanceV3TimeoutsArgs
    Updated string
    Indicates the updated time of the DB node.
    VpcId string
    Specifies the VPC ID.
    alias String
    Indicates the alias of the instance.
    availabilityZoneMode String
    Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
    backupStrategy GaussdbMysqlInstanceV3BackupStrategy
    Specifies the advanced backup policy. Structure is documented below.
    chargingMode String
    Indicates the charging mode of the instance.
    configurationId String
    Specifies the configuration ID.
    configurationName String
    Specifies the configuration name.
    created String
    Indicates the created time of the DB node.
    datastore GaussdbMysqlInstanceV3Datastore
    Specifies the database information. Structure is documented below.
    dbUserName String
    Indicates the default username.
    dedicatedResourceId String
    Specifies the dedicated resource ID. Changing this parameter will create a new resource.
    dedicatedResourceName String
    Specifies the dedicated resource name. Changing this parameter will create a new resource.
    flavor String
    Specifies the instance specifications.
    gaussdbMysqlInstanceV3Id String
    Indicates the node ID.
    masterAvailabilityZone String
    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 (_).
    nodeCount Double
    Indicates the amount on nodes of the DB instance.
    nodes List<GaussdbMysqlInstanceV3Node>
    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.
    privateWriteIps List<String>
    Indicates the private IP address of the DB instance.
    projectId String
    Indicates the id of the project.
    publicIp String
    Indicates the public IP address of the DB instance.
    readReplicas 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.
    securityGroupId String
    Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
    status String
    Indicates the node status.
    subnetId String
    Specifies the network ID of a subnet.
    timeZone String
    Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
    timeouts GaussdbMysqlInstanceV3Timeouts
    updated String
    Indicates the updated time of the DB node.
    vpcId String
    Specifies the VPC ID.
    alias string
    Indicates the alias of the instance.
    availabilityZoneMode string
    Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
    backupStrategy GaussdbMysqlInstanceV3BackupStrategy
    Specifies the advanced backup policy. Structure is documented below.
    chargingMode string
    Indicates the charging mode of the instance.
    configurationId string
    Specifies the configuration ID.
    configurationName string
    Specifies the configuration name.
    created string
    Indicates the created time of the DB node.
    datastore GaussdbMysqlInstanceV3Datastore
    Specifies the database information. Structure is documented below.
    dbUserName string
    Indicates the default username.
    dedicatedResourceId string
    Specifies the dedicated resource ID. Changing this parameter will create a new resource.
    dedicatedResourceName string
    Specifies the dedicated resource name. Changing this parameter will create a new resource.
    flavor string
    Specifies the instance specifications.
    gaussdbMysqlInstanceV3Id string
    Indicates the node ID.
    masterAvailabilityZone string
    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 (_).
    nodeCount number
    Indicates the amount on nodes of the DB instance.
    nodes GaussdbMysqlInstanceV3Node[]
    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.
    privateWriteIps string[]
    Indicates the private IP address of the DB instance.
    projectId string
    Indicates the id of the project.
    publicIp string
    Indicates the public IP address of the DB instance.
    readReplicas 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.
    securityGroupId string
    Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
    status string
    Indicates the node status.
    subnetId string
    Specifies the network ID of a subnet.
    timeZone string
    Specifies the time zone. Defaults to "UTC+08:00". Changing this parameter will create a new resource.
    timeouts GaussdbMysqlInstanceV3Timeouts
    updated string
    Indicates the updated time of the DB node.
    vpcId string
    Specifies the VPC ID.
    alias str
    Indicates the alias of the instance.
    availability_zone_mode str
    Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
    backup_strategy GaussdbMysqlInstanceV3BackupStrategyArgs
    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 GaussdbMysqlInstanceV3DatastoreArgs
    Specifies the database information. Structure is documented below.
    db_user_name str
    Indicates the default username.
    dedicated_resource_id str
    Specifies the dedicated resource ID. Changing this parameter will create a new resource.
    dedicated_resource_name str
    Specifies the dedicated resource name. Changing this parameter will create a new resource.
    flavor str
    Specifies the instance specifications.
    gaussdb_mysql_instance_v3_id str
    Indicates the node ID.
    master_availability_zone str
    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[GaussdbMysqlInstanceV3NodeArgs]
    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_ips Sequence[str]
    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_id str
    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 GaussdbMysqlInstanceV3TimeoutsArgs
    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.
    availabilityZoneMode String
    Specifies the availability zone mode: "single" or "multi". Defaults to "single". Changing this parameter will create a new resource.
    backupStrategy Property Map
    Specifies the advanced backup policy. Structure is documented below.
    chargingMode String
    Indicates the charging mode of the instance.
    configurationId String
    Specifies the configuration ID.
    configurationName 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.
    dbUserName String
    Indicates the default username.
    dedicatedResourceId String
    Specifies the dedicated resource ID. Changing this parameter will create a new resource.
    dedicatedResourceName String
    Specifies the dedicated resource name. Changing this parameter will create a new resource.
    flavor String
    Specifies the instance specifications.
    gaussdbMysqlInstanceV3Id String
    Indicates the node ID.
    masterAvailabilityZone String
    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 (_).
    nodeCount 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.
    privateWriteIps List<String>
    Indicates the private IP address of the DB instance.
    projectId String
    Indicates the id of the project.
    publicIp String
    Indicates the public IP address of the DB instance.
    readReplicas 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.
    securityGroupId String
    Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
    status String
    Indicates the node status.
    subnetId String
    Specifies the network ID of a subnet.
    timeZone 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.
    vpcId String
    Specifies the VPC ID.

    Supporting Types

    GaussdbMysqlInstanceV3BackupStrategy, GaussdbMysqlInstanceV3BackupStrategyArgs

    StartTime 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.
    KeepDays 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.
    StartTime 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.
    KeepDays 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.
    startTime 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.
    keepDays 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.
    startTime 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.
    keepDays 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.
    startTime 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.
    keepDays 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

    Engine string
    Specifies the database engine. Only "gaussdb-mysql" is supported now.
    Version string
    Specifies the database version. Only "8.0" is supported now.
    Engine string
    Specifies the database engine. Only "gaussdb-mysql" is supported now.
    Version string
    Specifies the database version. Only "8.0" is supported now.
    engine String
    Specifies the database engine. Only "gaussdb-mysql" is supported now.
    version String
    Specifies the database version. Only "8.0" is supported now.
    engine string
    Specifies the database engine. Only "gaussdb-mysql" is supported now.
    version string
    Specifies the database version. Only "8.0" is supported now.
    engine str
    Specifies the database engine. Only "gaussdb-mysql" is supported now.
    version str
    Specifies the database version. Only "8.0" is supported now.
    engine String
    Specifies the database engine. Only "gaussdb-mysql" is supported now.
    version String
    Specifies the database version. Only "8.0" is supported now.

    GaussdbMysqlInstanceV3Node, GaussdbMysqlInstanceV3NodeArgs

    AzCode string
    Indicates the availability zone where the node resides.
    Created string
    Indicates the created time of the DB node.
    FlavorRef string
    Indicates the specification code of DB node.
    Id string
    Indicates the node ID.
    MaxConnections 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 (_).
    NeedRestart 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.
    PrivateReadIps List<string>
    Ram string
    Indicates the memory size in GB of the DB node.
    RegionCode 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.
    AzCode string
    Indicates the availability zone where the node resides.
    Created string
    Indicates the created time of the DB node.
    FlavorRef string
    Indicates the specification code of DB node.
    Id string
    Indicates the node ID.
    MaxConnections 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 (_).
    NeedRestart 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.
    PrivateReadIps []string
    Ram string
    Indicates the memory size in GB of the DB node.
    RegionCode 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.
    azCode String
    Indicates the availability zone where the node resides.
    created String
    Indicates the created time of the DB node.
    flavorRef String
    Indicates the specification code of DB node.
    id String
    Indicates the node ID.
    maxConnections 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 (_).
    needRestart 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.
    privateReadIps List<String>
    ram String
    Indicates the memory size in GB of the DB node.
    regionCode 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.
    azCode string
    Indicates the availability zone where the node resides.
    created string
    Indicates the created time of the DB node.
    flavorRef string
    Indicates the specification code of DB node.
    id string
    Indicates the node ID.
    maxConnections 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 (_).
    needRestart 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.
    privateReadIps string[]
    ram string
    Indicates the memory size in GB of the DB node.
    regionCode 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_ips Sequence[str]
    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.
    azCode String
    Indicates the availability zone where the node resides.
    created String
    Indicates the created time of the DB node.
    flavorRef String
    Indicates the specification code of DB node.
    id String
    Indicates the node ID.
    maxConnections 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 (_).
    needRestart 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.
    privateReadIps List<String>
    ram String
    Indicates the memory size in GB of the DB node.
    regionCode 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

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    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.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud