selectel.DbaasMysqlDatastoreV1
Creates and manages a MySQL cluster using public API v1. Applicable to MySQL sync and MySQL semi-sync clusters. For more information about Managed Databases, see the official Selectel documentation for MySQL sync and MySQL semi-sync.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const cluster1 = new selectel.DbaasMysqlDatastoreV1("cluster1", {
projectId: selectel_vpc_project_v2.project_1.id,
region: "ru-3",
typeId: data.selectel_dbaas_datastore_type_v1.datastore_type_1.datastore_types[0].id,
subnetId: selectel_vpc_subnet_v2.subnet.subnet_id,
nodeCount: 3,
flavors: [{
vcpus: 4,
ram: 4096,
disk: 32,
diskType: "network-ultra",
}],
securityGroups: [
"796f1f0a-d97d-4a8e-904e-4fd5ef57465c",
"b9c2e73d-a6c5-4def-994d-ce85e3ce98d3",
],
});
import pulumi
import pulumi_selectel as selectel
cluster1 = selectel.DbaasMysqlDatastoreV1("cluster1",
project_id=selectel_vpc_project_v2["project_1"]["id"],
region="ru-3",
type_id=data["selectel_dbaas_datastore_type_v1"]["datastore_type_1"]["datastore_types"][0]["id"],
subnet_id=selectel_vpc_subnet_v2["subnet"]["subnet_id"],
node_count=3,
flavors=[{
"vcpus": 4,
"ram": 4096,
"disk": 32,
"disk_type": "network-ultra",
}],
security_groups=[
"796f1f0a-d97d-4a8e-904e-4fd5ef57465c",
"b9c2e73d-a6c5-4def-994d-ce85e3ce98d3",
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v7/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDbaasMysqlDatastoreV1(ctx, "cluster1", &selectel.DbaasMysqlDatastoreV1Args{
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
Region: pulumi.String("ru-3"),
TypeId: pulumi.Any(data.Selectel_dbaas_datastore_type_v1.Datastore_type_1.Datastore_types[0].Id),
SubnetId: pulumi.Any(selectel_vpc_subnet_v2.Subnet.Subnet_id),
NodeCount: pulumi.Float64(3),
Flavors: selectel.DbaasMysqlDatastoreV1FlavorArray{
&selectel.DbaasMysqlDatastoreV1FlavorArgs{
Vcpus: pulumi.Float64(4),
Ram: pulumi.Float64(4096),
Disk: pulumi.Float64(32),
DiskType: pulumi.String("network-ultra"),
},
},
SecurityGroups: pulumi.StringArray{
pulumi.String("796f1f0a-d97d-4a8e-904e-4fd5ef57465c"),
pulumi.String("b9c2e73d-a6c5-4def-994d-ce85e3ce98d3"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var cluster1 = new Selectel.DbaasMysqlDatastoreV1("cluster1", new()
{
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Region = "ru-3",
TypeId = data.Selectel_dbaas_datastore_type_v1.Datastore_type_1.Datastore_types[0].Id,
SubnetId = selectel_vpc_subnet_v2.Subnet.Subnet_id,
NodeCount = 3,
Flavors = new[]
{
new Selectel.Inputs.DbaasMysqlDatastoreV1FlavorArgs
{
Vcpus = 4,
Ram = 4096,
Disk = 32,
DiskType = "network-ultra",
},
},
SecurityGroups = new[]
{
"796f1f0a-d97d-4a8e-904e-4fd5ef57465c",
"b9c2e73d-a6c5-4def-994d-ce85e3ce98d3",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DbaasMysqlDatastoreV1;
import com.pulumi.selectel.DbaasMysqlDatastoreV1Args;
import com.pulumi.selectel.inputs.DbaasMysqlDatastoreV1FlavorArgs;
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 cluster1 = new DbaasMysqlDatastoreV1("cluster1", DbaasMysqlDatastoreV1Args.builder()
.projectId(selectel_vpc_project_v2.project_1().id())
.region("ru-3")
.typeId(data.selectel_dbaas_datastore_type_v1().datastore_type_1().datastore_types()[0].id())
.subnetId(selectel_vpc_subnet_v2.subnet().subnet_id())
.nodeCount(3)
.flavors(DbaasMysqlDatastoreV1FlavorArgs.builder()
.vcpus(4)
.ram(4096)
.disk(32)
.diskType("network-ultra")
.build())
.securityGroups(
"796f1f0a-d97d-4a8e-904e-4fd5ef57465c",
"b9c2e73d-a6c5-4def-994d-ce85e3ce98d3")
.build());
}
}
resources:
cluster1:
type: selectel:DbaasMysqlDatastoreV1
properties:
projectId: ${selectel_vpc_project_v2.project_1.id}
region: ru-3
typeId: ${data.selectel_dbaas_datastore_type_v1.datastore_type_1.datastore_types[0].id}
subnetId: ${selectel_vpc_subnet_v2.subnet.subnet_id}
nodeCount: 3
flavors:
- vcpus: 4
ram: 4096
disk: 32
diskType: network-ultra
securityGroups:
- 796f1f0a-d97d-4a8e-904e-4fd5ef57465c
- b9c2e73d-a6c5-4def-994d-ce85e3ce98d3
Create DbaasMysqlDatastoreV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbaasMysqlDatastoreV1(name: string, args: DbaasMysqlDatastoreV1Args, opts?: CustomResourceOptions);@overload
def DbaasMysqlDatastoreV1(resource_name: str,
args: DbaasMysqlDatastoreV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def DbaasMysqlDatastoreV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
node_count: Optional[float] = None,
type_id: Optional[str] = None,
subnet_id: Optional[str] = None,
region: Optional[str] = None,
project_id: Optional[str] = None,
name: Optional[str] = None,
floating_ips: Optional[Sequence[DbaasMysqlDatastoreV1FloatingIpArgs]] = None,
logs: Optional[str] = None,
backup_retention_days: Optional[float] = None,
flavors: Optional[Sequence[DbaasMysqlDatastoreV1FlavorArgs]] = None,
flavor_id: Optional[str] = None,
firewalls: Optional[Sequence[DbaasMysqlDatastoreV1FirewallArgs]] = None,
restores: Optional[Sequence[DbaasMysqlDatastoreV1RestoreArgs]] = None,
security_groups: Optional[Sequence[str]] = None,
dbaas_mysql_datastore_v1_id: Optional[str] = None,
timeouts: Optional[DbaasMysqlDatastoreV1TimeoutsArgs] = None,
config: Optional[Mapping[str, str]] = None)func NewDbaasMysqlDatastoreV1(ctx *Context, name string, args DbaasMysqlDatastoreV1Args, opts ...ResourceOption) (*DbaasMysqlDatastoreV1, error)public DbaasMysqlDatastoreV1(string name, DbaasMysqlDatastoreV1Args args, CustomResourceOptions? opts = null)
public DbaasMysqlDatastoreV1(String name, DbaasMysqlDatastoreV1Args args)
public DbaasMysqlDatastoreV1(String name, DbaasMysqlDatastoreV1Args args, CustomResourceOptions options)
type: selectel:DbaasMysqlDatastoreV1
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 DbaasMysqlDatastoreV1Args
- 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 DbaasMysqlDatastoreV1Args
- 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 DbaasMysqlDatastoreV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbaasMysqlDatastoreV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbaasMysqlDatastoreV1Args
- 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 dbaasMysqlDatastoreV1Resource = new Selectel.DbaasMysqlDatastoreV1("dbaasMysqlDatastoreV1Resource", new()
{
NodeCount = 0,
TypeId = "string",
SubnetId = "string",
Region = "string",
ProjectId = "string",
Name = "string",
FloatingIps = new[]
{
new Selectel.Inputs.DbaasMysqlDatastoreV1FloatingIpArgs
{
Master = 0,
Replica = 0,
},
},
Logs = "string",
BackupRetentionDays = 0,
Flavors = new[]
{
new Selectel.Inputs.DbaasMysqlDatastoreV1FlavorArgs
{
Disk = 0,
Ram = 0,
Vcpus = 0,
DiskType = "string",
},
},
FlavorId = "string",
Restores = new[]
{
new Selectel.Inputs.DbaasMysqlDatastoreV1RestoreArgs
{
DatastoreId = "string",
TargetTime = "string",
},
},
SecurityGroups = new[]
{
"string",
},
DbaasMysqlDatastoreV1Id = "string",
Timeouts = new Selectel.Inputs.DbaasMysqlDatastoreV1TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Config =
{
{ "string", "string" },
},
});
example, err := selectel.NewDbaasMysqlDatastoreV1(ctx, "dbaasMysqlDatastoreV1Resource", &selectel.DbaasMysqlDatastoreV1Args{
NodeCount: pulumi.Float64(0),
TypeId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
Region: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Name: pulumi.String("string"),
FloatingIps: selectel.DbaasMysqlDatastoreV1FloatingIpArray{
&selectel.DbaasMysqlDatastoreV1FloatingIpArgs{
Master: pulumi.Float64(0),
Replica: pulumi.Float64(0),
},
},
Logs: pulumi.String("string"),
BackupRetentionDays: pulumi.Float64(0),
Flavors: selectel.DbaasMysqlDatastoreV1FlavorArray{
&selectel.DbaasMysqlDatastoreV1FlavorArgs{
Disk: pulumi.Float64(0),
Ram: pulumi.Float64(0),
Vcpus: pulumi.Float64(0),
DiskType: pulumi.String("string"),
},
},
FlavorId: pulumi.String("string"),
Restores: selectel.DbaasMysqlDatastoreV1RestoreArray{
&selectel.DbaasMysqlDatastoreV1RestoreArgs{
DatastoreId: pulumi.String("string"),
TargetTime: pulumi.String("string"),
},
},
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
DbaasMysqlDatastoreV1Id: pulumi.String("string"),
Timeouts: &selectel.DbaasMysqlDatastoreV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Config: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var dbaasMysqlDatastoreV1Resource = new DbaasMysqlDatastoreV1("dbaasMysqlDatastoreV1Resource", DbaasMysqlDatastoreV1Args.builder()
.nodeCount(0.0)
.typeId("string")
.subnetId("string")
.region("string")
.projectId("string")
.name("string")
.floatingIps(DbaasMysqlDatastoreV1FloatingIpArgs.builder()
.master(0.0)
.replica(0.0)
.build())
.logs("string")
.backupRetentionDays(0.0)
.flavors(DbaasMysqlDatastoreV1FlavorArgs.builder()
.disk(0.0)
.ram(0.0)
.vcpus(0.0)
.diskType("string")
.build())
.flavorId("string")
.restores(DbaasMysqlDatastoreV1RestoreArgs.builder()
.datastoreId("string")
.targetTime("string")
.build())
.securityGroups("string")
.dbaasMysqlDatastoreV1Id("string")
.timeouts(DbaasMysqlDatastoreV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.config(Map.of("string", "string"))
.build());
dbaas_mysql_datastore_v1_resource = selectel.DbaasMysqlDatastoreV1("dbaasMysqlDatastoreV1Resource",
node_count=0,
type_id="string",
subnet_id="string",
region="string",
project_id="string",
name="string",
floating_ips=[{
"master": 0,
"replica": 0,
}],
logs="string",
backup_retention_days=0,
flavors=[{
"disk": 0,
"ram": 0,
"vcpus": 0,
"disk_type": "string",
}],
flavor_id="string",
restores=[{
"datastore_id": "string",
"target_time": "string",
}],
security_groups=["string"],
dbaas_mysql_datastore_v1_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
config={
"string": "string",
})
const dbaasMysqlDatastoreV1Resource = new selectel.DbaasMysqlDatastoreV1("dbaasMysqlDatastoreV1Resource", {
nodeCount: 0,
typeId: "string",
subnetId: "string",
region: "string",
projectId: "string",
name: "string",
floatingIps: [{
master: 0,
replica: 0,
}],
logs: "string",
backupRetentionDays: 0,
flavors: [{
disk: 0,
ram: 0,
vcpus: 0,
diskType: "string",
}],
flavorId: "string",
restores: [{
datastoreId: "string",
targetTime: "string",
}],
securityGroups: ["string"],
dbaasMysqlDatastoreV1Id: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
config: {
string: "string",
},
});
type: selectel:DbaasMysqlDatastoreV1
properties:
backupRetentionDays: 0
config:
string: string
dbaasMysqlDatastoreV1Id: string
flavorId: string
flavors:
- disk: 0
diskType: string
ram: 0
vcpus: 0
floatingIps:
- master: 0
replica: 0
logs: string
name: string
nodeCount: 0
projectId: string
region: string
restores:
- datastoreId: string
targetTime: string
securityGroups:
- string
subnetId: string
timeouts:
create: string
delete: string
update: string
typeId: string
DbaasMysqlDatastoreV1 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 DbaasMysqlDatastoreV1 resource accepts the following input properties:
- Node
Count double - Number of nodes in the cluster. The available range for MySQL semi-sync is from 1 to 3. Available values for MySQL sync are
1and3. Learn more about Replication. - Project
Id string - Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Region string
- Pool where the database is located, for example,
ru-3. Changing this creates a new cluster. Learn more about available pools in the Availability matrix. - Subnet
Id string - Unique identifier of the associated subnet. Changing this creates a new cluster. Retrieved from the selectel.VpcSubnetV2 resource for a public subnet, or from the openstack_networking_subnet_v2 resource of the OpenStack provider for a private subnet.
- Type
Id string - Unique identifier of the cluster type. Changing this creates a new cluster. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- Backup
Retention doubleDays - Number of days to retain backups.
- Config Dictionary<string, string>
- Configuration parameters for the cluster. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- Dbaas
Mysql stringDatastore V1Id - Firewalls
List<Dbaas
Mysql Datastore V1Firewall> - Remove this argument as it is no longer in use and will be removed in the next major version of the provider. To manage a list of IP-addresses with access to the cluster, use the selectel.DbaasFirewallV1 resource.
- Flavor
Id string - Unique identifier of the flavor for the cluster. Can be skipped when
flavoris set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. - Flavors
List<Dbaas
Mysql Datastore V1Flavor> - Flavor configuration for the cluster. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for MySQL sync and MySQL semi-sync.
- Floating
Ips List<DbaasMysql Datastore V1Floating Ip> Assigns public IP addresses to the nodes in the cluster. The network configuration must meet the requirements. Learn more about public IP addresses and the required network configuration.
master - (Required) Number of public IPs associated with the master. Available values are
0and1.replica - (Required) Number of public IPs associated with the replicas. The minimum value is
0. The maximum value must be 1 less than the value of thenode_countargument.
- Logs string
- Name of an existing or a new log group in the Logs service. The name must start with the prefix 's/dbaas/'. It can contain uppercase and lowercase letters, digits and symbols (underscore, hyphen, forward slash, period and hash). The name cannot exceed 512 symbols. For example, s/dbaas/My-first-group. Learn more about logs for MySQL sync and MySQL semi-sync.
- Name string
- Cluster name. Changing this creates a new cluster.
- Restores
List<Dbaas
Mysql Datastore V1Restore> - Restores parameters for the cluster. Changing this creates a new cluster.
- Security
Groups List<string> - List of security groups. If no security group UUIDs are specified when creating the cluster, a default security group will be created and its UUID will be assigned automatically. A cluster must have at least one security group. Learn more about security groups for MySQL sync and MySQL semi-sync.
- Timeouts
Dbaas
Mysql Datastore V1Timeouts
- Node
Count float64 - Number of nodes in the cluster. The available range for MySQL semi-sync is from 1 to 3. Available values for MySQL sync are
1and3. Learn more about Replication. - Project
Id string - Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Region string
- Pool where the database is located, for example,
ru-3. Changing this creates a new cluster. Learn more about available pools in the Availability matrix. - Subnet
Id string - Unique identifier of the associated subnet. Changing this creates a new cluster. Retrieved from the selectel.VpcSubnetV2 resource for a public subnet, or from the openstack_networking_subnet_v2 resource of the OpenStack provider for a private subnet.
- Type
Id string - Unique identifier of the cluster type. Changing this creates a new cluster. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- Backup
Retention float64Days - Number of days to retain backups.
- Config map[string]string
- Configuration parameters for the cluster. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- Dbaas
Mysql stringDatastore V1Id - Firewalls
[]Dbaas
Mysql Datastore V1Firewall Args - Remove this argument as it is no longer in use and will be removed in the next major version of the provider. To manage a list of IP-addresses with access to the cluster, use the selectel.DbaasFirewallV1 resource.
- Flavor
Id string - Unique identifier of the flavor for the cluster. Can be skipped when
flavoris set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. - Flavors
[]Dbaas
Mysql Datastore V1Flavor Args - Flavor configuration for the cluster. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for MySQL sync and MySQL semi-sync.
- Floating
Ips []DbaasMysql Datastore V1Floating Ip Args Assigns public IP addresses to the nodes in the cluster. The network configuration must meet the requirements. Learn more about public IP addresses and the required network configuration.
master - (Required) Number of public IPs associated with the master. Available values are
0and1.replica - (Required) Number of public IPs associated with the replicas. The minimum value is
0. The maximum value must be 1 less than the value of thenode_countargument.
- Logs string
- Name of an existing or a new log group in the Logs service. The name must start with the prefix 's/dbaas/'. It can contain uppercase and lowercase letters, digits and symbols (underscore, hyphen, forward slash, period and hash). The name cannot exceed 512 symbols. For example, s/dbaas/My-first-group. Learn more about logs for MySQL sync and MySQL semi-sync.
- Name string
- Cluster name. Changing this creates a new cluster.
- Restores
[]Dbaas
Mysql Datastore V1Restore Args - Restores parameters for the cluster. Changing this creates a new cluster.
- Security
Groups []string - List of security groups. If no security group UUIDs are specified when creating the cluster, a default security group will be created and its UUID will be assigned automatically. A cluster must have at least one security group. Learn more about security groups for MySQL sync and MySQL semi-sync.
- Timeouts
Dbaas
Mysql Datastore V1Timeouts Args
- node
Count Double - Number of nodes in the cluster. The available range for MySQL semi-sync is from 1 to 3. Available values for MySQL sync are
1and3. Learn more about Replication. - project
Id String - Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region String
- Pool where the database is located, for example,
ru-3. Changing this creates a new cluster. Learn more about available pools in the Availability matrix. - subnet
Id String - Unique identifier of the associated subnet. Changing this creates a new cluster. Retrieved from the selectel.VpcSubnetV2 resource for a public subnet, or from the openstack_networking_subnet_v2 resource of the OpenStack provider for a private subnet.
- type
Id String - Unique identifier of the cluster type. Changing this creates a new cluster. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup
Retention DoubleDays - Number of days to retain backups.
- config Map<String,String>
- Configuration parameters for the cluster. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- dbaas
Mysql StringDatastore V1Id - firewalls
List<Dbaas
Mysql Datastore V1Firewall> - Remove this argument as it is no longer in use and will be removed in the next major version of the provider. To manage a list of IP-addresses with access to the cluster, use the selectel.DbaasFirewallV1 resource.
- flavor
Id String - Unique identifier of the flavor for the cluster. Can be skipped when
flavoris set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. - flavors
List<Dbaas
Mysql Datastore V1Flavor> - Flavor configuration for the cluster. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for MySQL sync and MySQL semi-sync.
- floating
Ips List<DbaasMysql Datastore V1Floating Ip> Assigns public IP addresses to the nodes in the cluster. The network configuration must meet the requirements. Learn more about public IP addresses and the required network configuration.
master - (Required) Number of public IPs associated with the master. Available values are
0and1.replica - (Required) Number of public IPs associated with the replicas. The minimum value is
0. The maximum value must be 1 less than the value of thenode_countargument.
- logs String
- Name of an existing or a new log group in the Logs service. The name must start with the prefix 's/dbaas/'. It can contain uppercase and lowercase letters, digits and symbols (underscore, hyphen, forward slash, period and hash). The name cannot exceed 512 symbols. For example, s/dbaas/My-first-group. Learn more about logs for MySQL sync and MySQL semi-sync.
- name String
- Cluster name. Changing this creates a new cluster.
- restores
List<Dbaas
Mysql Datastore V1Restore> - Restores parameters for the cluster. Changing this creates a new cluster.
- security
Groups List<String> - List of security groups. If no security group UUIDs are specified when creating the cluster, a default security group will be created and its UUID will be assigned automatically. A cluster must have at least one security group. Learn more about security groups for MySQL sync and MySQL semi-sync.
- timeouts
Dbaas
Mysql Datastore V1Timeouts
- node
Count number - Number of nodes in the cluster. The available range for MySQL semi-sync is from 1 to 3. Available values for MySQL sync are
1and3. Learn more about Replication. - project
Id string - Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region string
- Pool where the database is located, for example,
ru-3. Changing this creates a new cluster. Learn more about available pools in the Availability matrix. - subnet
Id string - Unique identifier of the associated subnet. Changing this creates a new cluster. Retrieved from the selectel.VpcSubnetV2 resource for a public subnet, or from the openstack_networking_subnet_v2 resource of the OpenStack provider for a private subnet.
- type
Id string - Unique identifier of the cluster type. Changing this creates a new cluster. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup
Retention numberDays - Number of days to retain backups.
- config {[key: string]: string}
- Configuration parameters for the cluster. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- dbaas
Mysql stringDatastore V1Id - firewalls
Dbaas
Mysql Datastore V1Firewall[] - Remove this argument as it is no longer in use and will be removed in the next major version of the provider. To manage a list of IP-addresses with access to the cluster, use the selectel.DbaasFirewallV1 resource.
- flavor
Id string - Unique identifier of the flavor for the cluster. Can be skipped when
flavoris set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. - flavors
Dbaas
Mysql Datastore V1Flavor[] - Flavor configuration for the cluster. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for MySQL sync and MySQL semi-sync.
- floating
Ips DbaasMysql Datastore V1Floating Ip[] Assigns public IP addresses to the nodes in the cluster. The network configuration must meet the requirements. Learn more about public IP addresses and the required network configuration.
master - (Required) Number of public IPs associated with the master. Available values are
0and1.replica - (Required) Number of public IPs associated with the replicas. The minimum value is
0. The maximum value must be 1 less than the value of thenode_countargument.
- logs string
- Name of an existing or a new log group in the Logs service. The name must start with the prefix 's/dbaas/'. It can contain uppercase and lowercase letters, digits and symbols (underscore, hyphen, forward slash, period and hash). The name cannot exceed 512 symbols. For example, s/dbaas/My-first-group. Learn more about logs for MySQL sync and MySQL semi-sync.
- name string
- Cluster name. Changing this creates a new cluster.
- restores
Dbaas
Mysql Datastore V1Restore[] - Restores parameters for the cluster. Changing this creates a new cluster.
- security
Groups string[] - List of security groups. If no security group UUIDs are specified when creating the cluster, a default security group will be created and its UUID will be assigned automatically. A cluster must have at least one security group. Learn more about security groups for MySQL sync and MySQL semi-sync.
- timeouts
Dbaas
Mysql Datastore V1Timeouts
- node_
count float - Number of nodes in the cluster. The available range for MySQL semi-sync is from 1 to 3. Available values for MySQL sync are
1and3. Learn more about Replication. - project_
id str - Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region str
- Pool where the database is located, for example,
ru-3. Changing this creates a new cluster. Learn more about available pools in the Availability matrix. - subnet_
id str - Unique identifier of the associated subnet. Changing this creates a new cluster. Retrieved from the selectel.VpcSubnetV2 resource for a public subnet, or from the openstack_networking_subnet_v2 resource of the OpenStack provider for a private subnet.
- type_
id str - Unique identifier of the cluster type. Changing this creates a new cluster. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup_
retention_ floatdays - Number of days to retain backups.
- config Mapping[str, str]
- Configuration parameters for the cluster. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- dbaas_
mysql_ strdatastore_ v1_ id - firewalls
Sequence[Dbaas
Mysql Datastore V1Firewall Args] - Remove this argument as it is no longer in use and will be removed in the next major version of the provider. To manage a list of IP-addresses with access to the cluster, use the selectel.DbaasFirewallV1 resource.
- flavor_
id str - Unique identifier of the flavor for the cluster. Can be skipped when
flavoris set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. - flavors
Sequence[Dbaas
Mysql Datastore V1Flavor Args] - Flavor configuration for the cluster. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for MySQL sync and MySQL semi-sync.
- floating_
ips Sequence[DbaasMysql Datastore V1Floating Ip Args] Assigns public IP addresses to the nodes in the cluster. The network configuration must meet the requirements. Learn more about public IP addresses and the required network configuration.
master - (Required) Number of public IPs associated with the master. Available values are
0and1.replica - (Required) Number of public IPs associated with the replicas. The minimum value is
0. The maximum value must be 1 less than the value of thenode_countargument.
- logs str
- Name of an existing or a new log group in the Logs service. The name must start with the prefix 's/dbaas/'. It can contain uppercase and lowercase letters, digits and symbols (underscore, hyphen, forward slash, period and hash). The name cannot exceed 512 symbols. For example, s/dbaas/My-first-group. Learn more about logs for MySQL sync and MySQL semi-sync.
- name str
- Cluster name. Changing this creates a new cluster.
- restores
Sequence[Dbaas
Mysql Datastore V1Restore Args] - Restores parameters for the cluster. Changing this creates a new cluster.
- security_
groups Sequence[str] - List of security groups. If no security group UUIDs are specified when creating the cluster, a default security group will be created and its UUID will be assigned automatically. A cluster must have at least one security group. Learn more about security groups for MySQL sync and MySQL semi-sync.
- timeouts
Dbaas
Mysql Datastore V1Timeouts Args
- node
Count Number - Number of nodes in the cluster. The available range for MySQL semi-sync is from 1 to 3. Available values for MySQL sync are
1and3. Learn more about Replication. - project
Id String - Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region String
- Pool where the database is located, for example,
ru-3. Changing this creates a new cluster. Learn more about available pools in the Availability matrix. - subnet
Id String - Unique identifier of the associated subnet. Changing this creates a new cluster. Retrieved from the selectel.VpcSubnetV2 resource for a public subnet, or from the openstack_networking_subnet_v2 resource of the OpenStack provider for a private subnet.
- type
Id String - Unique identifier of the cluster type. Changing this creates a new cluster. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup
Retention NumberDays - Number of days to retain backups.
- config Map<String>
- Configuration parameters for the cluster. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- dbaas
Mysql StringDatastore V1Id - firewalls List<Property Map>
- Remove this argument as it is no longer in use and will be removed in the next major version of the provider. To manage a list of IP-addresses with access to the cluster, use the selectel.DbaasFirewallV1 resource.
- flavor
Id String - Unique identifier of the flavor for the cluster. Can be skipped when
flavoris set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. - flavors List<Property Map>
- Flavor configuration for the cluster. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for MySQL sync and MySQL semi-sync.
- floating
Ips List<Property Map> Assigns public IP addresses to the nodes in the cluster. The network configuration must meet the requirements. Learn more about public IP addresses and the required network configuration.
master - (Required) Number of public IPs associated with the master. Available values are
0and1.replica - (Required) Number of public IPs associated with the replicas. The minimum value is
0. The maximum value must be 1 less than the value of thenode_countargument.
- logs String
- Name of an existing or a new log group in the Logs service. The name must start with the prefix 's/dbaas/'. It can contain uppercase and lowercase letters, digits and symbols (underscore, hyphen, forward slash, period and hash). The name cannot exceed 512 symbols. For example, s/dbaas/My-first-group. Learn more about logs for MySQL sync and MySQL semi-sync.
- name String
- Cluster name. Changing this creates a new cluster.
- restores List<Property Map>
- Restores parameters for the cluster. Changing this creates a new cluster.
- security
Groups List<String> - List of security groups. If no security group UUIDs are specified when creating the cluster, a default security group will be created and its UUID will be assigned automatically. A cluster must have at least one security group. Learn more about security groups for MySQL sync and MySQL semi-sync.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DbaasMysqlDatastoreV1 resource produces the following output properties:
- Connections Dictionary<string, string>
- DNS addresses to connect to the cluster.
- Enabled bool
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
List<Dbaas
Mysql Datastore V1Instance> - Status string
- Cluster status.
- Connections map[string]string
- DNS addresses to connect to the cluster.
- Enabled bool
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
[]Dbaas
Mysql Datastore V1Instance - Status string
- Cluster status.
- connections Map<String,String>
- DNS addresses to connect to the cluster.
- enabled Boolean
- id String
- The provider-assigned unique ID for this managed resource.
- instances
List<Dbaas
Mysql Datastore V1Instance> - status String
- Cluster status.
- connections {[key: string]: string}
- DNS addresses to connect to the cluster.
- enabled boolean
- id string
- The provider-assigned unique ID for this managed resource.
- instances
Dbaas
Mysql Datastore V1Instance[] - status string
- Cluster status.
- connections Mapping[str, str]
- DNS addresses to connect to the cluster.
- enabled bool
- id str
- The provider-assigned unique ID for this managed resource.
- instances
Sequence[Dbaas
Mysql Datastore V1Instance] - status str
- Cluster status.
- connections Map<String>
- DNS addresses to connect to the cluster.
- enabled Boolean
- id String
- The provider-assigned unique ID for this managed resource.
- instances List<Property Map>
- status String
- Cluster status.
Look up Existing DbaasMysqlDatastoreV1 Resource
Get an existing DbaasMysqlDatastoreV1 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?: DbaasMysqlDatastoreV1State, opts?: CustomResourceOptions): DbaasMysqlDatastoreV1@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_retention_days: Optional[float] = None,
config: Optional[Mapping[str, str]] = None,
connections: Optional[Mapping[str, str]] = None,
dbaas_mysql_datastore_v1_id: Optional[str] = None,
enabled: Optional[bool] = None,
firewalls: Optional[Sequence[DbaasMysqlDatastoreV1FirewallArgs]] = None,
flavor_id: Optional[str] = None,
flavors: Optional[Sequence[DbaasMysqlDatastoreV1FlavorArgs]] = None,
floating_ips: Optional[Sequence[DbaasMysqlDatastoreV1FloatingIpArgs]] = None,
instances: Optional[Sequence[DbaasMysqlDatastoreV1InstanceArgs]] = None,
logs: Optional[str] = None,
name: Optional[str] = None,
node_count: Optional[float] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
restores: Optional[Sequence[DbaasMysqlDatastoreV1RestoreArgs]] = None,
security_groups: Optional[Sequence[str]] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
timeouts: Optional[DbaasMysqlDatastoreV1TimeoutsArgs] = None,
type_id: Optional[str] = None) -> DbaasMysqlDatastoreV1func GetDbaasMysqlDatastoreV1(ctx *Context, name string, id IDInput, state *DbaasMysqlDatastoreV1State, opts ...ResourceOption) (*DbaasMysqlDatastoreV1, error)public static DbaasMysqlDatastoreV1 Get(string name, Input<string> id, DbaasMysqlDatastoreV1State? state, CustomResourceOptions? opts = null)public static DbaasMysqlDatastoreV1 get(String name, Output<String> id, DbaasMysqlDatastoreV1State state, CustomResourceOptions options)resources: _: type: selectel:DbaasMysqlDatastoreV1 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.
- Backup
Retention doubleDays - Number of days to retain backups.
- Config Dictionary<string, string>
- Configuration parameters for the cluster. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- Connections Dictionary<string, string>
- DNS addresses to connect to the cluster.
- Dbaas
Mysql stringDatastore V1Id - Enabled bool
- Firewalls
List<Dbaas
Mysql Datastore V1Firewall> - Remove this argument as it is no longer in use and will be removed in the next major version of the provider. To manage a list of IP-addresses with access to the cluster, use the selectel.DbaasFirewallV1 resource.
- Flavor
Id string - Unique identifier of the flavor for the cluster. Can be skipped when
flavoris set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. - Flavors
List<Dbaas
Mysql Datastore V1Flavor> - Flavor configuration for the cluster. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for MySQL sync and MySQL semi-sync.
- Floating
Ips List<DbaasMysql Datastore V1Floating Ip> Assigns public IP addresses to the nodes in the cluster. The network configuration must meet the requirements. Learn more about public IP addresses and the required network configuration.
master - (Required) Number of public IPs associated with the master. Available values are
0and1.replica - (Required) Number of public IPs associated with the replicas. The minimum value is
0. The maximum value must be 1 less than the value of thenode_countargument.
- Instances
List<Dbaas
Mysql Datastore V1Instance> - Logs string
- Name of an existing or a new log group in the Logs service. The name must start with the prefix 's/dbaas/'. It can contain uppercase and lowercase letters, digits and symbols (underscore, hyphen, forward slash, period and hash). The name cannot exceed 512 symbols. For example, s/dbaas/My-first-group. Learn more about logs for MySQL sync and MySQL semi-sync.
- Name string
- Cluster name. Changing this creates a new cluster.
- Node
Count double - Number of nodes in the cluster. The available range for MySQL semi-sync is from 1 to 3. Available values for MySQL sync are
1and3. Learn more about Replication. - Project
Id string - Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Region string
- Pool where the database is located, for example,
ru-3. Changing this creates a new cluster. Learn more about available pools in the Availability matrix. - Restores
List<Dbaas
Mysql Datastore V1Restore> - Restores parameters for the cluster. Changing this creates a new cluster.
- Security
Groups List<string> - List of security groups. If no security group UUIDs are specified when creating the cluster, a default security group will be created and its UUID will be assigned automatically. A cluster must have at least one security group. Learn more about security groups for MySQL sync and MySQL semi-sync.
- Status string
- Cluster status.
- Subnet
Id string - Unique identifier of the associated subnet. Changing this creates a new cluster. Retrieved from the selectel.VpcSubnetV2 resource for a public subnet, or from the openstack_networking_subnet_v2 resource of the OpenStack provider for a private subnet.
- Timeouts
Dbaas
Mysql Datastore V1Timeouts - Type
Id string - Unique identifier of the cluster type. Changing this creates a new cluster. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- Backup
Retention float64Days - Number of days to retain backups.
- Config map[string]string
- Configuration parameters for the cluster. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- Connections map[string]string
- DNS addresses to connect to the cluster.
- Dbaas
Mysql stringDatastore V1Id - Enabled bool
- Firewalls
[]Dbaas
Mysql Datastore V1Firewall Args - Remove this argument as it is no longer in use and will be removed in the next major version of the provider. To manage a list of IP-addresses with access to the cluster, use the selectel.DbaasFirewallV1 resource.
- Flavor
Id string - Unique identifier of the flavor for the cluster. Can be skipped when
flavoris set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. - Flavors
[]Dbaas
Mysql Datastore V1Flavor Args - Flavor configuration for the cluster. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for MySQL sync and MySQL semi-sync.
- Floating
Ips []DbaasMysql Datastore V1Floating Ip Args Assigns public IP addresses to the nodes in the cluster. The network configuration must meet the requirements. Learn more about public IP addresses and the required network configuration.
master - (Required) Number of public IPs associated with the master. Available values are
0and1.replica - (Required) Number of public IPs associated with the replicas. The minimum value is
0. The maximum value must be 1 less than the value of thenode_countargument.
- Instances
[]Dbaas
Mysql Datastore V1Instance Args - Logs string
- Name of an existing or a new log group in the Logs service. The name must start with the prefix 's/dbaas/'. It can contain uppercase and lowercase letters, digits and symbols (underscore, hyphen, forward slash, period and hash). The name cannot exceed 512 symbols. For example, s/dbaas/My-first-group. Learn more about logs for MySQL sync and MySQL semi-sync.
- Name string
- Cluster name. Changing this creates a new cluster.
- Node
Count float64 - Number of nodes in the cluster. The available range for MySQL semi-sync is from 1 to 3. Available values for MySQL sync are
1and3. Learn more about Replication. - Project
Id string - Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Region string
- Pool where the database is located, for example,
ru-3. Changing this creates a new cluster. Learn more about available pools in the Availability matrix. - Restores
[]Dbaas
Mysql Datastore V1Restore Args - Restores parameters for the cluster. Changing this creates a new cluster.
- Security
Groups []string - List of security groups. If no security group UUIDs are specified when creating the cluster, a default security group will be created and its UUID will be assigned automatically. A cluster must have at least one security group. Learn more about security groups for MySQL sync and MySQL semi-sync.
- Status string
- Cluster status.
- Subnet
Id string - Unique identifier of the associated subnet. Changing this creates a new cluster. Retrieved from the selectel.VpcSubnetV2 resource for a public subnet, or from the openstack_networking_subnet_v2 resource of the OpenStack provider for a private subnet.
- Timeouts
Dbaas
Mysql Datastore V1Timeouts Args - Type
Id string - Unique identifier of the cluster type. Changing this creates a new cluster. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup
Retention DoubleDays - Number of days to retain backups.
- config Map<String,String>
- Configuration parameters for the cluster. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- connections Map<String,String>
- DNS addresses to connect to the cluster.
- dbaas
Mysql StringDatastore V1Id - enabled Boolean
- firewalls
List<Dbaas
Mysql Datastore V1Firewall> - Remove this argument as it is no longer in use and will be removed in the next major version of the provider. To manage a list of IP-addresses with access to the cluster, use the selectel.DbaasFirewallV1 resource.
- flavor
Id String - Unique identifier of the flavor for the cluster. Can be skipped when
flavoris set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. - flavors
List<Dbaas
Mysql Datastore V1Flavor> - Flavor configuration for the cluster. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for MySQL sync and MySQL semi-sync.
- floating
Ips List<DbaasMysql Datastore V1Floating Ip> Assigns public IP addresses to the nodes in the cluster. The network configuration must meet the requirements. Learn more about public IP addresses and the required network configuration.
master - (Required) Number of public IPs associated with the master. Available values are
0and1.replica - (Required) Number of public IPs associated with the replicas. The minimum value is
0. The maximum value must be 1 less than the value of thenode_countargument.
- instances
List<Dbaas
Mysql Datastore V1Instance> - logs String
- Name of an existing or a new log group in the Logs service. The name must start with the prefix 's/dbaas/'. It can contain uppercase and lowercase letters, digits and symbols (underscore, hyphen, forward slash, period and hash). The name cannot exceed 512 symbols. For example, s/dbaas/My-first-group. Learn more about logs for MySQL sync and MySQL semi-sync.
- name String
- Cluster name. Changing this creates a new cluster.
- node
Count Double - Number of nodes in the cluster. The available range for MySQL semi-sync is from 1 to 3. Available values for MySQL sync are
1and3. Learn more about Replication. - project
Id String - Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region String
- Pool where the database is located, for example,
ru-3. Changing this creates a new cluster. Learn more about available pools in the Availability matrix. - restores
List<Dbaas
Mysql Datastore V1Restore> - Restores parameters for the cluster. Changing this creates a new cluster.
- security
Groups List<String> - List of security groups. If no security group UUIDs are specified when creating the cluster, a default security group will be created and its UUID will be assigned automatically. A cluster must have at least one security group. Learn more about security groups for MySQL sync and MySQL semi-sync.
- status String
- Cluster status.
- subnet
Id String - Unique identifier of the associated subnet. Changing this creates a new cluster. Retrieved from the selectel.VpcSubnetV2 resource for a public subnet, or from the openstack_networking_subnet_v2 resource of the OpenStack provider for a private subnet.
- timeouts
Dbaas
Mysql Datastore V1Timeouts - type
Id String - Unique identifier of the cluster type. Changing this creates a new cluster. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup
Retention numberDays - Number of days to retain backups.
- config {[key: string]: string}
- Configuration parameters for the cluster. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- connections {[key: string]: string}
- DNS addresses to connect to the cluster.
- dbaas
Mysql stringDatastore V1Id - enabled boolean
- firewalls
Dbaas
Mysql Datastore V1Firewall[] - Remove this argument as it is no longer in use and will be removed in the next major version of the provider. To manage a list of IP-addresses with access to the cluster, use the selectel.DbaasFirewallV1 resource.
- flavor
Id string - Unique identifier of the flavor for the cluster. Can be skipped when
flavoris set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. - flavors
Dbaas
Mysql Datastore V1Flavor[] - Flavor configuration for the cluster. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for MySQL sync and MySQL semi-sync.
- floating
Ips DbaasMysql Datastore V1Floating Ip[] Assigns public IP addresses to the nodes in the cluster. The network configuration must meet the requirements. Learn more about public IP addresses and the required network configuration.
master - (Required) Number of public IPs associated with the master. Available values are
0and1.replica - (Required) Number of public IPs associated with the replicas. The minimum value is
0. The maximum value must be 1 less than the value of thenode_countargument.
- instances
Dbaas
Mysql Datastore V1Instance[] - logs string
- Name of an existing or a new log group in the Logs service. The name must start with the prefix 's/dbaas/'. It can contain uppercase and lowercase letters, digits and symbols (underscore, hyphen, forward slash, period and hash). The name cannot exceed 512 symbols. For example, s/dbaas/My-first-group. Learn more about logs for MySQL sync and MySQL semi-sync.
- name string
- Cluster name. Changing this creates a new cluster.
- node
Count number - Number of nodes in the cluster. The available range for MySQL semi-sync is from 1 to 3. Available values for MySQL sync are
1and3. Learn more about Replication. - project
Id string - Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region string
- Pool where the database is located, for example,
ru-3. Changing this creates a new cluster. Learn more about available pools in the Availability matrix. - restores
Dbaas
Mysql Datastore V1Restore[] - Restores parameters for the cluster. Changing this creates a new cluster.
- security
Groups string[] - List of security groups. If no security group UUIDs are specified when creating the cluster, a default security group will be created and its UUID will be assigned automatically. A cluster must have at least one security group. Learn more about security groups for MySQL sync and MySQL semi-sync.
- status string
- Cluster status.
- subnet
Id string - Unique identifier of the associated subnet. Changing this creates a new cluster. Retrieved from the selectel.VpcSubnetV2 resource for a public subnet, or from the openstack_networking_subnet_v2 resource of the OpenStack provider for a private subnet.
- timeouts
Dbaas
Mysql Datastore V1Timeouts - type
Id string - Unique identifier of the cluster type. Changing this creates a new cluster. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup_
retention_ floatdays - Number of days to retain backups.
- config Mapping[str, str]
- Configuration parameters for the cluster. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- connections Mapping[str, str]
- DNS addresses to connect to the cluster.
- dbaas_
mysql_ strdatastore_ v1_ id - enabled bool
- firewalls
Sequence[Dbaas
Mysql Datastore V1Firewall Args] - Remove this argument as it is no longer in use and will be removed in the next major version of the provider. To manage a list of IP-addresses with access to the cluster, use the selectel.DbaasFirewallV1 resource.
- flavor_
id str - Unique identifier of the flavor for the cluster. Can be skipped when
flavoris set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. - flavors
Sequence[Dbaas
Mysql Datastore V1Flavor Args] - Flavor configuration for the cluster. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for MySQL sync and MySQL semi-sync.
- floating_
ips Sequence[DbaasMysql Datastore V1Floating Ip Args] Assigns public IP addresses to the nodes in the cluster. The network configuration must meet the requirements. Learn more about public IP addresses and the required network configuration.
master - (Required) Number of public IPs associated with the master. Available values are
0and1.replica - (Required) Number of public IPs associated with the replicas. The minimum value is
0. The maximum value must be 1 less than the value of thenode_countargument.
- instances
Sequence[Dbaas
Mysql Datastore V1Instance Args] - logs str
- Name of an existing or a new log group in the Logs service. The name must start with the prefix 's/dbaas/'. It can contain uppercase and lowercase letters, digits and symbols (underscore, hyphen, forward slash, period and hash). The name cannot exceed 512 symbols. For example, s/dbaas/My-first-group. Learn more about logs for MySQL sync and MySQL semi-sync.
- name str
- Cluster name. Changing this creates a new cluster.
- node_
count float - Number of nodes in the cluster. The available range for MySQL semi-sync is from 1 to 3. Available values for MySQL sync are
1and3. Learn more about Replication. - project_
id str - Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region str
- Pool where the database is located, for example,
ru-3. Changing this creates a new cluster. Learn more about available pools in the Availability matrix. - restores
Sequence[Dbaas
Mysql Datastore V1Restore Args] - Restores parameters for the cluster. Changing this creates a new cluster.
- security_
groups Sequence[str] - List of security groups. If no security group UUIDs are specified when creating the cluster, a default security group will be created and its UUID will be assigned automatically. A cluster must have at least one security group. Learn more about security groups for MySQL sync and MySQL semi-sync.
- status str
- Cluster status.
- subnet_
id str - Unique identifier of the associated subnet. Changing this creates a new cluster. Retrieved from the selectel.VpcSubnetV2 resource for a public subnet, or from the openstack_networking_subnet_v2 resource of the OpenStack provider for a private subnet.
- timeouts
Dbaas
Mysql Datastore V1Timeouts Args - type_
id str - Unique identifier of the cluster type. Changing this creates a new cluster. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup
Retention NumberDays - Number of days to retain backups.
- config Map<String>
- Configuration parameters for the cluster. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- connections Map<String>
- DNS addresses to connect to the cluster.
- dbaas
Mysql StringDatastore V1Id - enabled Boolean
- firewalls List<Property Map>
- Remove this argument as it is no longer in use and will be removed in the next major version of the provider. To manage a list of IP-addresses with access to the cluster, use the selectel.DbaasFirewallV1 resource.
- flavor
Id String - Unique identifier of the flavor for the cluster. Can be skipped when
flavoris set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. - flavors List<Property Map>
- Flavor configuration for the cluster. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for MySQL sync and MySQL semi-sync.
- floating
Ips List<Property Map> Assigns public IP addresses to the nodes in the cluster. The network configuration must meet the requirements. Learn more about public IP addresses and the required network configuration.
master - (Required) Number of public IPs associated with the master. Available values are
0and1.replica - (Required) Number of public IPs associated with the replicas. The minimum value is
0. The maximum value must be 1 less than the value of thenode_countargument.
- instances List<Property Map>
- logs String
- Name of an existing or a new log group in the Logs service. The name must start with the prefix 's/dbaas/'. It can contain uppercase and lowercase letters, digits and symbols (underscore, hyphen, forward slash, period and hash). The name cannot exceed 512 symbols. For example, s/dbaas/My-first-group. Learn more about logs for MySQL sync and MySQL semi-sync.
- name String
- Cluster name. Changing this creates a new cluster.
- node
Count Number - Number of nodes in the cluster. The available range for MySQL semi-sync is from 1 to 3. Available values for MySQL sync are
1and3. Learn more about Replication. - project
Id String - Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region String
- Pool where the database is located, for example,
ru-3. Changing this creates a new cluster. Learn more about available pools in the Availability matrix. - restores List<Property Map>
- Restores parameters for the cluster. Changing this creates a new cluster.
- security
Groups List<String> - List of security groups. If no security group UUIDs are specified when creating the cluster, a default security group will be created and its UUID will be assigned automatically. A cluster must have at least one security group. Learn more about security groups for MySQL sync and MySQL semi-sync.
- status String
- Cluster status.
- subnet
Id String - Unique identifier of the associated subnet. Changing this creates a new cluster. Retrieved from the selectel.VpcSubnetV2 resource for a public subnet, or from the openstack_networking_subnet_v2 resource of the OpenStack provider for a private subnet.
- timeouts Property Map
- type
Id String - Unique identifier of the cluster type. Changing this creates a new cluster. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
Supporting Types
DbaasMysqlDatastoreV1Firewall, DbaasMysqlDatastoreV1FirewallArgs
- Ips List<string>
- Ips []string
- ips List<String>
- ips string[]
- ips Sequence[str]
- ips List<String>
DbaasMysqlDatastoreV1Flavor, DbaasMysqlDatastoreV1FlavorArgs
- Disk double
- Volume size in GB.
- Ram double
- Amount of RAM in MB.
- Vcpus double
- Number of vCPUs.
- Disk
Type string - Volume type. Available values are
localandnetwork-ultra. The default value islocal.Learn more about volumes for MySQL sync and MySQL semi-sync.
- Disk float64
- Volume size in GB.
- Ram float64
- Amount of RAM in MB.
- Vcpus float64
- Number of vCPUs.
- Disk
Type string - Volume type. Available values are
localandnetwork-ultra. The default value islocal.Learn more about volumes for MySQL sync and MySQL semi-sync.
- disk Double
- Volume size in GB.
- ram Double
- Amount of RAM in MB.
- vcpus Double
- Number of vCPUs.
- disk
Type String - Volume type. Available values are
localandnetwork-ultra. The default value islocal.Learn more about volumes for MySQL sync and MySQL semi-sync.
- disk number
- Volume size in GB.
- ram number
- Amount of RAM in MB.
- vcpus number
- Number of vCPUs.
- disk
Type string - Volume type. Available values are
localandnetwork-ultra. The default value islocal.Learn more about volumes for MySQL sync and MySQL semi-sync.
- disk float
- Volume size in GB.
- ram float
- Amount of RAM in MB.
- vcpus float
- Number of vCPUs.
- disk_
type str - Volume type. Available values are
localandnetwork-ultra. The default value islocal.Learn more about volumes for MySQL sync and MySQL semi-sync.
- disk Number
- Volume size in GB.
- ram Number
- Amount of RAM in MB.
- vcpus Number
- Number of vCPUs.
- disk
Type String - Volume type. Available values are
localandnetwork-ultra. The default value islocal.Learn more about volumes for MySQL sync and MySQL semi-sync.
DbaasMysqlDatastoreV1FloatingIp, DbaasMysqlDatastoreV1FloatingIpArgs
DbaasMysqlDatastoreV1Instance, DbaasMysqlDatastoreV1InstanceArgs
- Floating
Ip string - Role string
- Floating
Ip string - Role string
- floating
Ip String - role String
- floating
Ip string - role string
- floating_
ip str - role str
- floating
Ip String - role String
DbaasMysqlDatastoreV1Restore, DbaasMysqlDatastoreV1RestoreArgs
- Datastore
Id string - Unique identifier of the cluster from which you restore. To get the cluster ID, in the Control panel, go to Cloud Platform ⟶ Managed Databases ⟶ copy the ID under the cluster name.
- Target
Time string - Time within seven previous days when you have the cluster state to restore.
- Datastore
Id string - Unique identifier of the cluster from which you restore. To get the cluster ID, in the Control panel, go to Cloud Platform ⟶ Managed Databases ⟶ copy the ID under the cluster name.
- Target
Time string - Time within seven previous days when you have the cluster state to restore.
- datastore
Id String - Unique identifier of the cluster from which you restore. To get the cluster ID, in the Control panel, go to Cloud Platform ⟶ Managed Databases ⟶ copy the ID under the cluster name.
- target
Time String - Time within seven previous days when you have the cluster state to restore.
- datastore
Id string - Unique identifier of the cluster from which you restore. To get the cluster ID, in the Control panel, go to Cloud Platform ⟶ Managed Databases ⟶ copy the ID under the cluster name.
- target
Time string - Time within seven previous days when you have the cluster state to restore.
- datastore_
id str - Unique identifier of the cluster from which you restore. To get the cluster ID, in the Control panel, go to Cloud Platform ⟶ Managed Databases ⟶ copy the ID under the cluster name.
- target_
time str - Time within seven previous days when you have the cluster state to restore.
- datastore
Id String - Unique identifier of the cluster from which you restore. To get the cluster ID, in the Control panel, go to Cloud Platform ⟶ Managed Databases ⟶ copy the ID under the cluster name.
- target
Time String - Time within seven previous days when you have the cluster state to restore.
DbaasMysqlDatastoreV1Timeouts, DbaasMysqlDatastoreV1TimeoutsArgs
Import
You can import a cluster:
export OS_DOMAIN_NAME=<account_id>
export OS_USERNAME=
export OS_PASSWORD=
export INFRA_PROJECT_ID=<selectel_project_id>
export INFRA_REGION=<selectel_pool>
$ pulumi import selectel:index/dbaasMysqlDatastoreV1:DbaasMysqlDatastoreV1 datastore_1 <datastore_id>
where:
<account_id>— Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.<username>— Name of the service user. To get the name, in the Control panel, go to Identity & Access Management ⟶ User management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service users.<password>— Password of the service user.<selectel_project_id>— Unique identifier of the associated project. To get the ID, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project. Learn more about Projects.<selectel_pool>— Pool where the cluster is located, for example,ru-3. To get information about the pool, in the Control panel, go to Cloud Platform ⟶ Managed Databases. The pool is in the Pool column.<datastore_id>— Unique identifier of the cluster, for example,b311ce58-2658-46b5-b733-7a0f418703f2. To get the cluster ID in the Control panel, go to Cloud Platform ⟶ Managed Databases ⟶ copy the ID under the cluster name.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectelTerraform Provider.
