selectel.DbaasDatastoreV1
Explore with Pulumi AI
WARNING: This resource is deprecated and is going to be removed soon. You should use datastore resource for specific datastore type.
Manages a V1 datastore resource within Selectel Managed Databases Service.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const project1 = new selectel.VpcProjectV2("project1", {});
const subnet = new selectel.VpcSubnetV2("subnet", {
projectId: project1.vpcProjectV2Id,
region: "ru-3",
});
const dt = selectel.getDbaasDatastoreTypeV1Output({
projectId: project1.vpcProjectV2Id,
region: "ru-3",
filters: [{
engine: "postgresql",
version: "12",
}],
});
const datastore1 = new selectel.DbaasDatastoreV1("datastore1", {
projectId: project1.vpcProjectV2Id,
region: "ru-3",
typeId: dt.apply(dt => dt.datastoreTypes?.[0]?.id),
subnetId: subnet.subnetId,
nodeCount: 3,
flavors: [{
vcpus: 4,
ram: 4096,
disk: 32,
}],
poolers: [{
mode: "transaction",
size: 50,
}],
config: {
xmloption: "content",
work_mem: "512",
session_replication_role: "replica",
vacuum_cost_delay: "25",
transform_null_equals: "false",
},
});
import pulumi
import pulumi_selectel as selectel
project1 = selectel.VpcProjectV2("project1")
subnet = selectel.VpcSubnetV2("subnet",
project_id=project1.vpc_project_v2_id,
region="ru-3")
dt = selectel.get_dbaas_datastore_type_v1_output(project_id=project1.vpc_project_v2_id,
region="ru-3",
filters=[{
"engine": "postgresql",
"version": "12",
}])
datastore1 = selectel.DbaasDatastoreV1("datastore1",
project_id=project1.vpc_project_v2_id,
region="ru-3",
type_id=dt.datastore_types[0].id,
subnet_id=subnet.subnet_id,
node_count=3,
flavors=[{
"vcpus": 4,
"ram": 4096,
"disk": 32,
}],
poolers=[{
"mode": "transaction",
"size": 50,
}],
config={
"xmloption": "content",
"work_mem": "512",
"session_replication_role": "replica",
"vacuum_cost_delay": "25",
"transform_null_equals": "false",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
project1, err := selectel.NewVpcProjectV2(ctx, "project1", nil)
if err != nil {
return err
}
subnet, err := selectel.NewVpcSubnetV2(ctx, "subnet", &selectel.VpcSubnetV2Args{
ProjectId: project1.VpcProjectV2Id,
Region: pulumi.String("ru-3"),
})
if err != nil {
return err
}
dt := selectel.GetDbaasDatastoreTypeV1Output(ctx, selectel.GetDbaasDatastoreTypeV1OutputArgs{
ProjectId: project1.VpcProjectV2Id,
Region: pulumi.String("ru-3"),
Filters: selectel.GetDbaasDatastoreTypeV1FilterArray{
&selectel.GetDbaasDatastoreTypeV1FilterArgs{
Engine: pulumi.String("postgresql"),
Version: pulumi.String("12"),
},
},
}, nil)
_, err = selectel.NewDbaasDatastoreV1(ctx, "datastore1", &selectel.DbaasDatastoreV1Args{
ProjectId: project1.VpcProjectV2Id,
Region: pulumi.String("ru-3"),
TypeId: pulumi.String(dt.ApplyT(func(dt selectel.GetDbaasDatastoreTypeV1Result) (*string, error) {
return &dt.DatastoreTypes[0].Id, nil
}).(pulumi.StringPtrOutput)),
SubnetId: subnet.SubnetId,
NodeCount: pulumi.Float64(3),
Flavors: selectel.DbaasDatastoreV1FlavorArray{
&selectel.DbaasDatastoreV1FlavorArgs{
Vcpus: pulumi.Float64(4),
Ram: pulumi.Float64(4096),
Disk: pulumi.Float64(32),
},
},
Poolers: selectel.DbaasDatastoreV1PoolerArray{
&selectel.DbaasDatastoreV1PoolerArgs{
Mode: pulumi.String("transaction"),
Size: pulumi.Float64(50),
},
},
Config: pulumi.StringMap{
"xmloption": pulumi.String("content"),
"work_mem": pulumi.String("512"),
"session_replication_role": pulumi.String("replica"),
"vacuum_cost_delay": pulumi.String("25"),
"transform_null_equals": pulumi.String("false"),
},
})
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 project1 = new Selectel.VpcProjectV2("project1");
var subnet = new Selectel.VpcSubnetV2("subnet", new()
{
ProjectId = project1.VpcProjectV2Id,
Region = "ru-3",
});
var dt = Selectel.GetDbaasDatastoreTypeV1.Invoke(new()
{
ProjectId = project1.VpcProjectV2Id,
Region = "ru-3",
Filters = new[]
{
new Selectel.Inputs.GetDbaasDatastoreTypeV1FilterInputArgs
{
Engine = "postgresql",
Version = "12",
},
},
});
var datastore1 = new Selectel.DbaasDatastoreV1("datastore1", new()
{
ProjectId = project1.VpcProjectV2Id,
Region = "ru-3",
TypeId = dt.Apply(getDbaasDatastoreTypeV1Result => getDbaasDatastoreTypeV1Result.DatastoreTypes[0]?.Id),
SubnetId = subnet.SubnetId,
NodeCount = 3,
Flavors = new[]
{
new Selectel.Inputs.DbaasDatastoreV1FlavorArgs
{
Vcpus = 4,
Ram = 4096,
Disk = 32,
},
},
Poolers = new[]
{
new Selectel.Inputs.DbaasDatastoreV1PoolerArgs
{
Mode = "transaction",
Size = 50,
},
},
Config =
{
{ "xmloption", "content" },
{ "work_mem", "512" },
{ "session_replication_role", "replica" },
{ "vacuum_cost_delay", "25" },
{ "transform_null_equals", "false" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.VpcProjectV2;
import com.pulumi.selectel.VpcSubnetV2;
import com.pulumi.selectel.VpcSubnetV2Args;
import com.pulumi.selectel.SelectelFunctions;
import com.pulumi.selectel.inputs.GetDbaasDatastoreTypeV1Args;
import com.pulumi.selectel.DbaasDatastoreV1;
import com.pulumi.selectel.DbaasDatastoreV1Args;
import com.pulumi.selectel.inputs.DbaasDatastoreV1FlavorArgs;
import com.pulumi.selectel.inputs.DbaasDatastoreV1PoolerArgs;
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 project1 = new VpcProjectV2("project1");
var subnet = new VpcSubnetV2("subnet", VpcSubnetV2Args.builder()
.projectId(project1.vpcProjectV2Id())
.region("ru-3")
.build());
final var dt = SelectelFunctions.getDbaasDatastoreTypeV1(GetDbaasDatastoreTypeV1Args.builder()
.projectId(project1.vpcProjectV2Id())
.region("ru-3")
.filters(GetDbaasDatastoreTypeV1FilterArgs.builder()
.engine("postgresql")
.version("12")
.build())
.build());
var datastore1 = new DbaasDatastoreV1("datastore1", DbaasDatastoreV1Args.builder()
.projectId(project1.vpcProjectV2Id())
.region("ru-3")
.typeId(dt.applyValue(getDbaasDatastoreTypeV1Result -> getDbaasDatastoreTypeV1Result).applyValue(dt -> dt.applyValue(getDbaasDatastoreTypeV1Result -> getDbaasDatastoreTypeV1Result.datastoreTypes()[0].id())))
.subnetId(subnet.subnetId())
.nodeCount(3)
.flavors(DbaasDatastoreV1FlavorArgs.builder()
.vcpus(4)
.ram(4096)
.disk(32)
.build())
.poolers(DbaasDatastoreV1PoolerArgs.builder()
.mode("transaction")
.size(50)
.build())
.config(Map.ofEntries(
Map.entry("xmloption", "content"),
Map.entry("work_mem", 512),
Map.entry("session_replication_role", "replica"),
Map.entry("vacuum_cost_delay", 25),
Map.entry("transform_null_equals", false)
))
.build());
}
}
resources:
project1:
type: selectel:VpcProjectV2
subnet:
type: selectel:VpcSubnetV2
properties:
projectId: ${project1.vpcProjectV2Id}
region: ru-3
datastore1:
type: selectel:DbaasDatastoreV1
properties:
projectId: ${project1.vpcProjectV2Id}
region: ru-3
typeId: ${dt.datastoreTypes[0].id}
subnetId: ${subnet.subnetId}
nodeCount: 3
flavors:
- vcpus: 4
ram: 4096
disk: 32
poolers:
- mode: transaction
size: 50
config:
xmloption: content
work_mem: 512
session_replication_role: replica
vacuum_cost_delay: 25
transform_null_equals: false
variables:
dt:
fn::invoke:
function: selectel:getDbaasDatastoreTypeV1
arguments:
projectId: ${project1.vpcProjectV2Id}
region: ru-3
filters:
- engine: postgresql
version: '12'
Create DbaasDatastoreV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbaasDatastoreV1(name: string, args: DbaasDatastoreV1Args, opts?: CustomResourceOptions);
@overload
def DbaasDatastoreV1(resource_name: str,
args: DbaasDatastoreV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def DbaasDatastoreV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
region: Optional[str] = None,
project_id: Optional[str] = None,
type_id: Optional[str] = None,
subnet_id: Optional[str] = None,
node_count: Optional[float] = None,
poolers: Optional[Sequence[DbaasDatastoreV1PoolerArgs]] = None,
floating_ips: Optional[Sequence[DbaasDatastoreV1FloatingIpArgs]] = None,
name: Optional[str] = None,
config: Optional[Mapping[str, str]] = None,
flavors: Optional[Sequence[DbaasDatastoreV1FlavorArgs]] = None,
flavor_id: Optional[str] = None,
redis_password: Optional[str] = None,
backup_retention_days: Optional[float] = None,
restores: Optional[Sequence[DbaasDatastoreV1RestoreArgs]] = None,
firewalls: Optional[Sequence[DbaasDatastoreV1FirewallArgs]] = None,
timeouts: Optional[DbaasDatastoreV1TimeoutsArgs] = None,
dbaas_datastore_v1_id: Optional[str] = None)
func NewDbaasDatastoreV1(ctx *Context, name string, args DbaasDatastoreV1Args, opts ...ResourceOption) (*DbaasDatastoreV1, error)
public DbaasDatastoreV1(string name, DbaasDatastoreV1Args args, CustomResourceOptions? opts = null)
public DbaasDatastoreV1(String name, DbaasDatastoreV1Args args)
public DbaasDatastoreV1(String name, DbaasDatastoreV1Args args, CustomResourceOptions options)
type: selectel:DbaasDatastoreV1
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 DbaasDatastoreV1Args
- 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 DbaasDatastoreV1Args
- 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 DbaasDatastoreV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbaasDatastoreV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbaasDatastoreV1Args
- 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 dbaasDatastoreV1Resource = new Selectel.DbaasDatastoreV1("dbaasDatastoreV1Resource", new()
{
Region = "string",
ProjectId = "string",
TypeId = "string",
SubnetId = "string",
NodeCount = 0,
Poolers = new[]
{
new Selectel.Inputs.DbaasDatastoreV1PoolerArgs
{
Mode = "string",
Size = 0,
},
},
FloatingIps = new[]
{
new Selectel.Inputs.DbaasDatastoreV1FloatingIpArgs
{
Master = 0,
Replica = 0,
},
},
Name = "string",
Config =
{
{ "string", "string" },
},
Flavors = new[]
{
new Selectel.Inputs.DbaasDatastoreV1FlavorArgs
{
Disk = 0,
Ram = 0,
Vcpus = 0,
},
},
FlavorId = "string",
RedisPassword = "string",
BackupRetentionDays = 0,
Restores = new[]
{
new Selectel.Inputs.DbaasDatastoreV1RestoreArgs
{
DatastoreId = "string",
TargetTime = "string",
},
},
Timeouts = new Selectel.Inputs.DbaasDatastoreV1TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
DbaasDatastoreV1Id = "string",
});
example, err := selectel.NewDbaasDatastoreV1(ctx, "dbaasDatastoreV1Resource", &selectel.DbaasDatastoreV1Args{
Region: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TypeId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
NodeCount: pulumi.Float64(0),
Poolers: selectel.DbaasDatastoreV1PoolerArray{
&selectel.DbaasDatastoreV1PoolerArgs{
Mode: pulumi.String("string"),
Size: pulumi.Float64(0),
},
},
FloatingIps: selectel.DbaasDatastoreV1FloatingIpArray{
&selectel.DbaasDatastoreV1FloatingIpArgs{
Master: pulumi.Float64(0),
Replica: pulumi.Float64(0),
},
},
Name: pulumi.String("string"),
Config: pulumi.StringMap{
"string": pulumi.String("string"),
},
Flavors: selectel.DbaasDatastoreV1FlavorArray{
&selectel.DbaasDatastoreV1FlavorArgs{
Disk: pulumi.Float64(0),
Ram: pulumi.Float64(0),
Vcpus: pulumi.Float64(0),
},
},
FlavorId: pulumi.String("string"),
RedisPassword: pulumi.String("string"),
BackupRetentionDays: pulumi.Float64(0),
Restores: selectel.DbaasDatastoreV1RestoreArray{
&selectel.DbaasDatastoreV1RestoreArgs{
DatastoreId: pulumi.String("string"),
TargetTime: pulumi.String("string"),
},
},
Timeouts: &selectel.DbaasDatastoreV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
DbaasDatastoreV1Id: pulumi.String("string"),
})
var dbaasDatastoreV1Resource = new DbaasDatastoreV1("dbaasDatastoreV1Resource", DbaasDatastoreV1Args.builder()
.region("string")
.projectId("string")
.typeId("string")
.subnetId("string")
.nodeCount(0)
.poolers(DbaasDatastoreV1PoolerArgs.builder()
.mode("string")
.size(0)
.build())
.floatingIps(DbaasDatastoreV1FloatingIpArgs.builder()
.master(0)
.replica(0)
.build())
.name("string")
.config(Map.of("string", "string"))
.flavors(DbaasDatastoreV1FlavorArgs.builder()
.disk(0)
.ram(0)
.vcpus(0)
.build())
.flavorId("string")
.redisPassword("string")
.backupRetentionDays(0)
.restores(DbaasDatastoreV1RestoreArgs.builder()
.datastoreId("string")
.targetTime("string")
.build())
.timeouts(DbaasDatastoreV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.dbaasDatastoreV1Id("string")
.build());
dbaas_datastore_v1_resource = selectel.DbaasDatastoreV1("dbaasDatastoreV1Resource",
region="string",
project_id="string",
type_id="string",
subnet_id="string",
node_count=0,
poolers=[{
"mode": "string",
"size": 0,
}],
floating_ips=[{
"master": 0,
"replica": 0,
}],
name="string",
config={
"string": "string",
},
flavors=[{
"disk": 0,
"ram": 0,
"vcpus": 0,
}],
flavor_id="string",
redis_password="string",
backup_retention_days=0,
restores=[{
"datastore_id": "string",
"target_time": "string",
}],
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
dbaas_datastore_v1_id="string")
const dbaasDatastoreV1Resource = new selectel.DbaasDatastoreV1("dbaasDatastoreV1Resource", {
region: "string",
projectId: "string",
typeId: "string",
subnetId: "string",
nodeCount: 0,
poolers: [{
mode: "string",
size: 0,
}],
floatingIps: [{
master: 0,
replica: 0,
}],
name: "string",
config: {
string: "string",
},
flavors: [{
disk: 0,
ram: 0,
vcpus: 0,
}],
flavorId: "string",
redisPassword: "string",
backupRetentionDays: 0,
restores: [{
datastoreId: "string",
targetTime: "string",
}],
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
dbaasDatastoreV1Id: "string",
});
type: selectel:DbaasDatastoreV1
properties:
backupRetentionDays: 0
config:
string: string
dbaasDatastoreV1Id: string
flavorId: string
flavors:
- disk: 0
ram: 0
vcpus: 0
floatingIps:
- master: 0
replica: 0
name: string
nodeCount: 0
poolers:
- mode: string
size: 0
projectId: string
redisPassword: string
region: string
restores:
- datastoreId: string
targetTime: string
subnetId: string
timeouts:
create: string
delete: string
update: string
typeId: string
DbaasDatastoreV1 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 DbaasDatastoreV1 resource accepts the following input properties:
- Node
Count double - Number of nodes to create for the datastore.
- Project
Id string - An associated Selectel VPC project. Changing this creates a new datastore.
- Region string
- A Selectel VPC region of where the datastore is located. Changing this creates a new datastore.
- Subnet
Id string - Associated OpenStack Networking service subnet ID. Changing this creates a new datastore.
- Type
Id string - The datastore type for the datastore. Changing this creates a new datastore.
- Backup
Retention doubleDays - Number of days to retain backups.
- Config Dictionary<string, string>
- Configuration parameters for the datastore.
- Dbaas
Datastore stringV1Id - Firewalls
List<Dbaas
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 datastore, use the selectel.DbaasFirewallV1 resource.
- Flavor
Id string - Flavor identifier for the datastore. It can be omitted in cases when
flavor
is set. - Flavors
List<Dbaas
Datastore V1Flavor> - Flavor configuration for the datastore. It's a complex value. See description below.
- Floating
Ips List<DbaasDatastore V1Floating Ip> - Name string
- A name of the datastore. Changing this creates a new datastore.
- Poolers
List<Dbaas
Datastore V1Pooler> - Pooler configuration for the datastore (only for PostgreSQL datastore). It's a complex value. See description below.
- Redis
Password string Password for the Redis datastore (only for Redis datastores)
flavor
- Restores
List<Dbaas
Datastore V1Restore> - Restore parameters for the datastore. It's a complex value. See description below. Changing this creates a new datastore.
- Timeouts
Dbaas
Datastore V1Timeouts
- Node
Count float64 - Number of nodes to create for the datastore.
- Project
Id string - An associated Selectel VPC project. Changing this creates a new datastore.
- Region string
- A Selectel VPC region of where the datastore is located. Changing this creates a new datastore.
- Subnet
Id string - Associated OpenStack Networking service subnet ID. Changing this creates a new datastore.
- Type
Id string - The datastore type for the datastore. Changing this creates a new datastore.
- Backup
Retention float64Days - Number of days to retain backups.
- Config map[string]string
- Configuration parameters for the datastore.
- Dbaas
Datastore stringV1Id - Firewalls
[]Dbaas
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 datastore, use the selectel.DbaasFirewallV1 resource.
- Flavor
Id string - Flavor identifier for the datastore. It can be omitted in cases when
flavor
is set. - Flavors
[]Dbaas
Datastore V1Flavor Args - Flavor configuration for the datastore. It's a complex value. See description below.
- Floating
Ips []DbaasDatastore V1Floating Ip Args - Name string
- A name of the datastore. Changing this creates a new datastore.
- Poolers
[]Dbaas
Datastore V1Pooler Args - Pooler configuration for the datastore (only for PostgreSQL datastore). It's a complex value. See description below.
- Redis
Password string Password for the Redis datastore (only for Redis datastores)
flavor
- Restores
[]Dbaas
Datastore V1Restore Args - Restore parameters for the datastore. It's a complex value. See description below. Changing this creates a new datastore.
- Timeouts
Dbaas
Datastore V1Timeouts Args
- node
Count Double - Number of nodes to create for the datastore.
- project
Id String - An associated Selectel VPC project. Changing this creates a new datastore.
- region String
- A Selectel VPC region of where the datastore is located. Changing this creates a new datastore.
- subnet
Id String - Associated OpenStack Networking service subnet ID. Changing this creates a new datastore.
- type
Id String - The datastore type for the datastore. Changing this creates a new datastore.
- backup
Retention DoubleDays - Number of days to retain backups.
- config Map<String,String>
- Configuration parameters for the datastore.
- dbaas
Datastore StringV1Id - firewalls
List<Dbaas
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 datastore, use the selectel.DbaasFirewallV1 resource.
- flavor
Id String - Flavor identifier for the datastore. It can be omitted in cases when
flavor
is set. - flavors
List<Dbaas
Datastore V1Flavor> - Flavor configuration for the datastore. It's a complex value. See description below.
- floating
Ips List<DbaasDatastore V1Floating Ip> - name String
- A name of the datastore. Changing this creates a new datastore.
- poolers
List<Dbaas
Datastore V1Pooler> - Pooler configuration for the datastore (only for PostgreSQL datastore). It's a complex value. See description below.
- redis
Password String Password for the Redis datastore (only for Redis datastores)
flavor
- restores
List<Dbaas
Datastore V1Restore> - Restore parameters for the datastore. It's a complex value. See description below. Changing this creates a new datastore.
- timeouts
Dbaas
Datastore V1Timeouts
- node
Count number - Number of nodes to create for the datastore.
- project
Id string - An associated Selectel VPC project. Changing this creates a new datastore.
- region string
- A Selectel VPC region of where the datastore is located. Changing this creates a new datastore.
- subnet
Id string - Associated OpenStack Networking service subnet ID. Changing this creates a new datastore.
- type
Id string - The datastore type for the datastore. Changing this creates a new datastore.
- backup
Retention numberDays - Number of days to retain backups.
- config {[key: string]: string}
- Configuration parameters for the datastore.
- dbaas
Datastore stringV1Id - firewalls
Dbaas
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 datastore, use the selectel.DbaasFirewallV1 resource.
- flavor
Id string - Flavor identifier for the datastore. It can be omitted in cases when
flavor
is set. - flavors
Dbaas
Datastore V1Flavor[] - Flavor configuration for the datastore. It's a complex value. See description below.
- floating
Ips DbaasDatastore V1Floating Ip[] - name string
- A name of the datastore. Changing this creates a new datastore.
- poolers
Dbaas
Datastore V1Pooler[] - Pooler configuration for the datastore (only for PostgreSQL datastore). It's a complex value. See description below.
- redis
Password string Password for the Redis datastore (only for Redis datastores)
flavor
- restores
Dbaas
Datastore V1Restore[] - Restore parameters for the datastore. It's a complex value. See description below. Changing this creates a new datastore.
- timeouts
Dbaas
Datastore V1Timeouts
- node_
count float - Number of nodes to create for the datastore.
- project_
id str - An associated Selectel VPC project. Changing this creates a new datastore.
- region str
- A Selectel VPC region of where the datastore is located. Changing this creates a new datastore.
- subnet_
id str - Associated OpenStack Networking service subnet ID. Changing this creates a new datastore.
- type_
id str - The datastore type for the datastore. Changing this creates a new datastore.
- backup_
retention_ floatdays - Number of days to retain backups.
- config Mapping[str, str]
- Configuration parameters for the datastore.
- dbaas_
datastore_ strv1_ id - firewalls
Sequence[Dbaas
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 datastore, use the selectel.DbaasFirewallV1 resource.
- flavor_
id str - Flavor identifier for the datastore. It can be omitted in cases when
flavor
is set. - flavors
Sequence[Dbaas
Datastore V1Flavor Args] - Flavor configuration for the datastore. It's a complex value. See description below.
- floating_
ips Sequence[DbaasDatastore V1Floating Ip Args] - name str
- A name of the datastore. Changing this creates a new datastore.
- poolers
Sequence[Dbaas
Datastore V1Pooler Args] - Pooler configuration for the datastore (only for PostgreSQL datastore). It's a complex value. See description below.
- redis_
password str Password for the Redis datastore (only for Redis datastores)
flavor
- restores
Sequence[Dbaas
Datastore V1Restore Args] - Restore parameters for the datastore. It's a complex value. See description below. Changing this creates a new datastore.
- timeouts
Dbaas
Datastore V1Timeouts Args
- node
Count Number - Number of nodes to create for the datastore.
- project
Id String - An associated Selectel VPC project. Changing this creates a new datastore.
- region String
- A Selectel VPC region of where the datastore is located. Changing this creates a new datastore.
- subnet
Id String - Associated OpenStack Networking service subnet ID. Changing this creates a new datastore.
- type
Id String - The datastore type for the datastore. Changing this creates a new datastore.
- backup
Retention NumberDays - Number of days to retain backups.
- config Map<String>
- Configuration parameters for the datastore.
- dbaas
Datastore StringV1Id - 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 datastore, use the selectel.DbaasFirewallV1 resource.
- flavor
Id String - Flavor identifier for the datastore. It can be omitted in cases when
flavor
is set. - flavors List<Property Map>
- Flavor configuration for the datastore. It's a complex value. See description below.
- floating
Ips List<Property Map> - name String
- A name of the datastore. Changing this creates a new datastore.
- poolers List<Property Map>
- Pooler configuration for the datastore (only for PostgreSQL datastore). It's a complex value. See description below.
- redis
Password String Password for the Redis datastore (only for Redis datastores)
flavor
- restores List<Property Map>
- Restore parameters for the datastore. It's a complex value. See description below. Changing this creates a new datastore.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DbaasDatastoreV1 resource produces the following output properties:
- Connections Dictionary<string, string>
- Shows DNS connection strings for the datastore.
- Enabled bool
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
List<Dbaas
Datastore V1Instance> - Status string
- Shows the current status of the datastore.
- Connections map[string]string
- Shows DNS connection strings for the datastore.
- Enabled bool
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
[]Dbaas
Datastore V1Instance - Status string
- Shows the current status of the datastore.
- connections Map<String,String>
- Shows DNS connection strings for the datastore.
- enabled Boolean
- id String
- The provider-assigned unique ID for this managed resource.
- instances
List<Dbaas
Datastore V1Instance> - status String
- Shows the current status of the datastore.
- connections {[key: string]: string}
- Shows DNS connection strings for the datastore.
- enabled boolean
- id string
- The provider-assigned unique ID for this managed resource.
- instances
Dbaas
Datastore V1Instance[] - status string
- Shows the current status of the datastore.
- connections Mapping[str, str]
- Shows DNS connection strings for the datastore.
- enabled bool
- id str
- The provider-assigned unique ID for this managed resource.
- instances
Sequence[Dbaas
Datastore V1Instance] - status str
- Shows the current status of the datastore.
- connections Map<String>
- Shows DNS connection strings for the datastore.
- enabled Boolean
- id String
- The provider-assigned unique ID for this managed resource.
- instances List<Property Map>
- status String
- Shows the current status of the datastore.
Look up Existing DbaasDatastoreV1 Resource
Get an existing DbaasDatastoreV1 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?: DbaasDatastoreV1State, opts?: CustomResourceOptions): DbaasDatastoreV1
@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_datastore_v1_id: Optional[str] = None,
enabled: Optional[bool] = None,
firewalls: Optional[Sequence[DbaasDatastoreV1FirewallArgs]] = None,
flavor_id: Optional[str] = None,
flavors: Optional[Sequence[DbaasDatastoreV1FlavorArgs]] = None,
floating_ips: Optional[Sequence[DbaasDatastoreV1FloatingIpArgs]] = None,
instances: Optional[Sequence[DbaasDatastoreV1InstanceArgs]] = None,
name: Optional[str] = None,
node_count: Optional[float] = None,
poolers: Optional[Sequence[DbaasDatastoreV1PoolerArgs]] = None,
project_id: Optional[str] = None,
redis_password: Optional[str] = None,
region: Optional[str] = None,
restores: Optional[Sequence[DbaasDatastoreV1RestoreArgs]] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
timeouts: Optional[DbaasDatastoreV1TimeoutsArgs] = None,
type_id: Optional[str] = None) -> DbaasDatastoreV1
func GetDbaasDatastoreV1(ctx *Context, name string, id IDInput, state *DbaasDatastoreV1State, opts ...ResourceOption) (*DbaasDatastoreV1, error)
public static DbaasDatastoreV1 Get(string name, Input<string> id, DbaasDatastoreV1State? state, CustomResourceOptions? opts = null)
public static DbaasDatastoreV1 get(String name, Output<String> id, DbaasDatastoreV1State state, CustomResourceOptions options)
resources: _: type: selectel:DbaasDatastoreV1 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 datastore.
- Connections Dictionary<string, string>
- Shows DNS connection strings for the datastore.
- Dbaas
Datastore stringV1Id - Enabled bool
- Firewalls
List<Dbaas
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 datastore, use the selectel.DbaasFirewallV1 resource.
- Flavor
Id string - Flavor identifier for the datastore. It can be omitted in cases when
flavor
is set. - Flavors
List<Dbaas
Datastore V1Flavor> - Flavor configuration for the datastore. It's a complex value. See description below.
- Floating
Ips List<DbaasDatastore V1Floating Ip> - Instances
List<Dbaas
Datastore V1Instance> - Name string
- A name of the datastore. Changing this creates a new datastore.
- Node
Count double - Number of nodes to create for the datastore.
- Poolers
List<Dbaas
Datastore V1Pooler> - Pooler configuration for the datastore (only for PostgreSQL datastore). It's a complex value. See description below.
- Project
Id string - An associated Selectel VPC project. Changing this creates a new datastore.
- Redis
Password string Password for the Redis datastore (only for Redis datastores)
flavor
- Region string
- A Selectel VPC region of where the datastore is located. Changing this creates a new datastore.
- Restores
List<Dbaas
Datastore V1Restore> - Restore parameters for the datastore. It's a complex value. See description below. Changing this creates a new datastore.
- Status string
- Shows the current status of the datastore.
- Subnet
Id string - Associated OpenStack Networking service subnet ID. Changing this creates a new datastore.
- Timeouts
Dbaas
Datastore V1Timeouts - Type
Id string - The datastore type for the datastore. Changing this creates a new datastore.
- Backup
Retention float64Days - Number of days to retain backups.
- Config map[string]string
- Configuration parameters for the datastore.
- Connections map[string]string
- Shows DNS connection strings for the datastore.
- Dbaas
Datastore stringV1Id - Enabled bool
- Firewalls
[]Dbaas
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 datastore, use the selectel.DbaasFirewallV1 resource.
- Flavor
Id string - Flavor identifier for the datastore. It can be omitted in cases when
flavor
is set. - Flavors
[]Dbaas
Datastore V1Flavor Args - Flavor configuration for the datastore. It's a complex value. See description below.
- Floating
Ips []DbaasDatastore V1Floating Ip Args - Instances
[]Dbaas
Datastore V1Instance Args - Name string
- A name of the datastore. Changing this creates a new datastore.
- Node
Count float64 - Number of nodes to create for the datastore.
- Poolers
[]Dbaas
Datastore V1Pooler Args - Pooler configuration for the datastore (only for PostgreSQL datastore). It's a complex value. See description below.
- Project
Id string - An associated Selectel VPC project. Changing this creates a new datastore.
- Redis
Password string Password for the Redis datastore (only for Redis datastores)
flavor
- Region string
- A Selectel VPC region of where the datastore is located. Changing this creates a new datastore.
- Restores
[]Dbaas
Datastore V1Restore Args - Restore parameters for the datastore. It's a complex value. See description below. Changing this creates a new datastore.
- Status string
- Shows the current status of the datastore.
- Subnet
Id string - Associated OpenStack Networking service subnet ID. Changing this creates a new datastore.
- Timeouts
Dbaas
Datastore V1Timeouts Args - Type
Id string - The datastore type for the datastore. Changing this creates a new datastore.
- backup
Retention DoubleDays - Number of days to retain backups.
- config Map<String,String>
- Configuration parameters for the datastore.
- connections Map<String,String>
- Shows DNS connection strings for the datastore.
- dbaas
Datastore StringV1Id - enabled Boolean
- firewalls
List<Dbaas
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 datastore, use the selectel.DbaasFirewallV1 resource.
- flavor
Id String - Flavor identifier for the datastore. It can be omitted in cases when
flavor
is set. - flavors
List<Dbaas
Datastore V1Flavor> - Flavor configuration for the datastore. It's a complex value. See description below.
- floating
Ips List<DbaasDatastore V1Floating Ip> - instances
List<Dbaas
Datastore V1Instance> - name String
- A name of the datastore. Changing this creates a new datastore.
- node
Count Double - Number of nodes to create for the datastore.
- poolers
List<Dbaas
Datastore V1Pooler> - Pooler configuration for the datastore (only for PostgreSQL datastore). It's a complex value. See description below.
- project
Id String - An associated Selectel VPC project. Changing this creates a new datastore.
- redis
Password String Password for the Redis datastore (only for Redis datastores)
flavor
- region String
- A Selectel VPC region of where the datastore is located. Changing this creates a new datastore.
- restores
List<Dbaas
Datastore V1Restore> - Restore parameters for the datastore. It's a complex value. See description below. Changing this creates a new datastore.
- status String
- Shows the current status of the datastore.
- subnet
Id String - Associated OpenStack Networking service subnet ID. Changing this creates a new datastore.
- timeouts
Dbaas
Datastore V1Timeouts - type
Id String - The datastore type for the datastore. Changing this creates a new datastore.
- backup
Retention numberDays - Number of days to retain backups.
- config {[key: string]: string}
- Configuration parameters for the datastore.
- connections {[key: string]: string}
- Shows DNS connection strings for the datastore.
- dbaas
Datastore stringV1Id - enabled boolean
- firewalls
Dbaas
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 datastore, use the selectel.DbaasFirewallV1 resource.
- flavor
Id string - Flavor identifier for the datastore. It can be omitted in cases when
flavor
is set. - flavors
Dbaas
Datastore V1Flavor[] - Flavor configuration for the datastore. It's a complex value. See description below.
- floating
Ips DbaasDatastore V1Floating Ip[] - instances
Dbaas
Datastore V1Instance[] - name string
- A name of the datastore. Changing this creates a new datastore.
- node
Count number - Number of nodes to create for the datastore.
- poolers
Dbaas
Datastore V1Pooler[] - Pooler configuration for the datastore (only for PostgreSQL datastore). It's a complex value. See description below.
- project
Id string - An associated Selectel VPC project. Changing this creates a new datastore.
- redis
Password string Password for the Redis datastore (only for Redis datastores)
flavor
- region string
- A Selectel VPC region of where the datastore is located. Changing this creates a new datastore.
- restores
Dbaas
Datastore V1Restore[] - Restore parameters for the datastore. It's a complex value. See description below. Changing this creates a new datastore.
- status string
- Shows the current status of the datastore.
- subnet
Id string - Associated OpenStack Networking service subnet ID. Changing this creates a new datastore.
- timeouts
Dbaas
Datastore V1Timeouts - type
Id string - The datastore type for the datastore. Changing this creates a new datastore.
- backup_
retention_ floatdays - Number of days to retain backups.
- config Mapping[str, str]
- Configuration parameters for the datastore.
- connections Mapping[str, str]
- Shows DNS connection strings for the datastore.
- dbaas_
datastore_ strv1_ id - enabled bool
- firewalls
Sequence[Dbaas
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 datastore, use the selectel.DbaasFirewallV1 resource.
- flavor_
id str - Flavor identifier for the datastore. It can be omitted in cases when
flavor
is set. - flavors
Sequence[Dbaas
Datastore V1Flavor Args] - Flavor configuration for the datastore. It's a complex value. See description below.
- floating_
ips Sequence[DbaasDatastore V1Floating Ip Args] - instances
Sequence[Dbaas
Datastore V1Instance Args] - name str
- A name of the datastore. Changing this creates a new datastore.
- node_
count float - Number of nodes to create for the datastore.
- poolers
Sequence[Dbaas
Datastore V1Pooler Args] - Pooler configuration for the datastore (only for PostgreSQL datastore). It's a complex value. See description below.
- project_
id str - An associated Selectel VPC project. Changing this creates a new datastore.
- redis_
password str Password for the Redis datastore (only for Redis datastores)
flavor
- region str
- A Selectel VPC region of where the datastore is located. Changing this creates a new datastore.
- restores
Sequence[Dbaas
Datastore V1Restore Args] - Restore parameters for the datastore. It's a complex value. See description below. Changing this creates a new datastore.
- status str
- Shows the current status of the datastore.
- subnet_
id str - Associated OpenStack Networking service subnet ID. Changing this creates a new datastore.
- timeouts
Dbaas
Datastore V1Timeouts Args - type_
id str - The datastore type for the datastore. Changing this creates a new datastore.
- backup
Retention NumberDays - Number of days to retain backups.
- config Map<String>
- Configuration parameters for the datastore.
- connections Map<String>
- Shows DNS connection strings for the datastore.
- dbaas
Datastore StringV1Id - 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 datastore, use the selectel.DbaasFirewallV1 resource.
- flavor
Id String - Flavor identifier for the datastore. It can be omitted in cases when
flavor
is set. - flavors List<Property Map>
- Flavor configuration for the datastore. It's a complex value. See description below.
- floating
Ips List<Property Map> - instances List<Property Map>
- name String
- A name of the datastore. Changing this creates a new datastore.
- node
Count Number - Number of nodes to create for the datastore.
- poolers List<Property Map>
- Pooler configuration for the datastore (only for PostgreSQL datastore). It's a complex value. See description below.
- project
Id String - An associated Selectel VPC project. Changing this creates a new datastore.
- redis
Password String Password for the Redis datastore (only for Redis datastores)
flavor
- region String
- A Selectel VPC region of where the datastore is located. Changing this creates a new datastore.
- restores List<Property Map>
- Restore parameters for the datastore. It's a complex value. See description below. Changing this creates a new datastore.
- status String
- Shows the current status of the datastore.
- subnet
Id String - Associated OpenStack Networking service subnet ID. Changing this creates a new datastore.
- timeouts Property Map
- type
Id String - The datastore type for the datastore. Changing this creates a new datastore.
Supporting Types
DbaasDatastoreV1Firewall, DbaasDatastoreV1FirewallArgs
- Ips List<string>
- Ips []string
- ips List<String>
- ips string[]
- ips Sequence[str]
- ips List<String>
DbaasDatastoreV1Flavor, DbaasDatastoreV1FlavorArgs
DbaasDatastoreV1FloatingIp, DbaasDatastoreV1FloatingIpArgs
DbaasDatastoreV1Instance, DbaasDatastoreV1InstanceArgs
- 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
DbaasDatastoreV1Pooler, DbaasDatastoreV1PoolerArgs
DbaasDatastoreV1Restore, DbaasDatastoreV1RestoreArgs
- Datastore
Id string - Datastore ID to restore from.
- Target
Time string - Restore by the target time.
- Datastore
Id string - Datastore ID to restore from.
- Target
Time string - Restore by the target time.
- datastore
Id String - Datastore ID to restore from.
- target
Time String - Restore by the target time.
- datastore
Id string - Datastore ID to restore from.
- target
Time string - Restore by the target time.
- datastore_
id str - Datastore ID to restore from.
- target_
time str - Restore by the target time.
- datastore
Id String - Datastore ID to restore from.
- target
Time String - Restore by the target time.
DbaasDatastoreV1Timeouts, DbaasDatastoreV1TimeoutsArgs
Import
Datastore can be imported using the id
, e.g.
export OS_DOMAIN_NAME=999999
export OS_USERNAME=example_user
export OS_PASSWORD=example_password
export INFRA_PROJECT_ID=SELECTEL_VPC_PROJECT_ID
export INFRA_REGION=SELECTEL_VPC_REGION
$ pulumi import selectel:index/dbaasDatastoreV1:DbaasDatastoreV1 datastore_1 b311ce58-2658-46b5-b733-7a0f418703f2
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
selectel
Terraform Provider.