selectel.DbaasRedisDatastoreV1
Explore with Pulumi AI
Creates and manages a Redis datastore using public API v1. For more information about Managed Databases, see the official Selectel documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const datastore1 = new selectel.DbaasRedisDatastoreV1("datastore1", {
projectId: selectel_vpc_project_v2.project_1.id,
region: "ru-3",
typeId: data.selectel_dbaas_datastore_type_v1.datastore_type_1.datastore_types[0].iddatastore_types[0].id,
subnetId: selectel_vpc_subnet_v2.subnet.subnet_id,
nodeCount: 3,
flavorId: data.selectel_dbaas_flavor_v1.flavor.flavors[0].id,
redisPassword: "secret",
});
import pulumi
import pulumi_selectel as selectel
datastore1 = selectel.DbaasRedisDatastoreV1("datastore1",
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]["iddatastore_types"][0]["id"],
subnet_id=selectel_vpc_subnet_v2["subnet"]["subnet_id"],
node_count=3,
flavor_id=data["selectel_dbaas_flavor_v1"]["flavor"]["flavors"][0]["id"],
redis_password="secret")
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 {
_, err := selectel.NewDbaasRedisDatastoreV1(ctx, "datastore1", &selectel.DbaasRedisDatastoreV1Args{
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].Iddatastore_types[0].Id),
SubnetId: pulumi.Any(selectel_vpc_subnet_v2.Subnet.Subnet_id),
NodeCount: pulumi.Float64(3),
FlavorId: pulumi.Any(data.Selectel_dbaas_flavor_v1.Flavor.Flavors[0].Id),
RedisPassword: pulumi.String("secret"),
})
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 datastore1 = new Selectel.DbaasRedisDatastoreV1("datastore1", 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].Iddatastore_types[0].Id,
SubnetId = selectel_vpc_subnet_v2.Subnet.Subnet_id,
NodeCount = 3,
FlavorId = data.Selectel_dbaas_flavor_v1.Flavor.Flavors[0].Id,
RedisPassword = "secret",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DbaasRedisDatastoreV1;
import com.pulumi.selectel.DbaasRedisDatastoreV1Args;
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 datastore1 = new DbaasRedisDatastoreV1("datastore1", DbaasRedisDatastoreV1Args.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].iddatastore_types()[0].id())
.subnetId(selectel_vpc_subnet_v2.subnet().subnet_id())
.nodeCount(3)
.flavorId(data.selectel_dbaas_flavor_v1().flavor().flavors()[0].id())
.redisPassword("secret")
.build());
}
}
resources:
datastore1:
type: selectel:DbaasRedisDatastoreV1
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].iddatastore_types[0].id}
subnetId: ${selectel_vpc_subnet_v2.subnet.subnet_id}
nodeCount: 3
flavorId: ${data.selectel_dbaas_flavor_v1.flavor.flavors[0].id}
redisPassword: secret
Create DbaasRedisDatastoreV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbaasRedisDatastoreV1(name: string, args: DbaasRedisDatastoreV1Args, opts?: CustomResourceOptions);
@overload
def DbaasRedisDatastoreV1(resource_name: str,
args: DbaasRedisDatastoreV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def DbaasRedisDatastoreV1(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,
flavor_id: Optional[str] = None,
project_id: Optional[str] = None,
name: Optional[str] = None,
backup_retention_days: Optional[float] = None,
floating_ips: Optional[Sequence[DbaasRedisDatastoreV1FloatingIpArgs]] = None,
redis_password: Optional[str] = None,
firewalls: Optional[Sequence[DbaasRedisDatastoreV1FirewallArgs]] = None,
restores: Optional[Sequence[DbaasRedisDatastoreV1RestoreArgs]] = None,
dbaas_redis_datastore_v1_id: Optional[str] = None,
timeouts: Optional[DbaasRedisDatastoreV1TimeoutsArgs] = None,
config: Optional[Mapping[str, str]] = None)
func NewDbaasRedisDatastoreV1(ctx *Context, name string, args DbaasRedisDatastoreV1Args, opts ...ResourceOption) (*DbaasRedisDatastoreV1, error)
public DbaasRedisDatastoreV1(string name, DbaasRedisDatastoreV1Args args, CustomResourceOptions? opts = null)
public DbaasRedisDatastoreV1(String name, DbaasRedisDatastoreV1Args args)
public DbaasRedisDatastoreV1(String name, DbaasRedisDatastoreV1Args args, CustomResourceOptions options)
type: selectel:DbaasRedisDatastoreV1
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 DbaasRedisDatastoreV1Args
- 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 DbaasRedisDatastoreV1Args
- 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 DbaasRedisDatastoreV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbaasRedisDatastoreV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbaasRedisDatastoreV1Args
- 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 dbaasRedisDatastoreV1Resource = new Selectel.DbaasRedisDatastoreV1("dbaasRedisDatastoreV1Resource", new()
{
NodeCount = 0,
TypeId = "string",
SubnetId = "string",
Region = "string",
FlavorId = "string",
ProjectId = "string",
Name = "string",
BackupRetentionDays = 0,
FloatingIps = new[]
{
new Selectel.Inputs.DbaasRedisDatastoreV1FloatingIpArgs
{
Master = 0,
Replica = 0,
},
},
RedisPassword = "string",
Restores = new[]
{
new Selectel.Inputs.DbaasRedisDatastoreV1RestoreArgs
{
DatastoreId = "string",
TargetTime = "string",
},
},
DbaasRedisDatastoreV1Id = "string",
Timeouts = new Selectel.Inputs.DbaasRedisDatastoreV1TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Config =
{
{ "string", "string" },
},
});
example, err := selectel.NewDbaasRedisDatastoreV1(ctx, "dbaasRedisDatastoreV1Resource", &selectel.DbaasRedisDatastoreV1Args{
NodeCount: pulumi.Float64(0),
TypeId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
Region: pulumi.String("string"),
FlavorId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Name: pulumi.String("string"),
BackupRetentionDays: pulumi.Float64(0),
FloatingIps: selectel.DbaasRedisDatastoreV1FloatingIpArray{
&selectel.DbaasRedisDatastoreV1FloatingIpArgs{
Master: pulumi.Float64(0),
Replica: pulumi.Float64(0),
},
},
RedisPassword: pulumi.String("string"),
Restores: selectel.DbaasRedisDatastoreV1RestoreArray{
&selectel.DbaasRedisDatastoreV1RestoreArgs{
DatastoreId: pulumi.String("string"),
TargetTime: pulumi.String("string"),
},
},
DbaasRedisDatastoreV1Id: pulumi.String("string"),
Timeouts: &selectel.DbaasRedisDatastoreV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Config: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var dbaasRedisDatastoreV1Resource = new DbaasRedisDatastoreV1("dbaasRedisDatastoreV1Resource", DbaasRedisDatastoreV1Args.builder()
.nodeCount(0)
.typeId("string")
.subnetId("string")
.region("string")
.flavorId("string")
.projectId("string")
.name("string")
.backupRetentionDays(0)
.floatingIps(DbaasRedisDatastoreV1FloatingIpArgs.builder()
.master(0)
.replica(0)
.build())
.redisPassword("string")
.restores(DbaasRedisDatastoreV1RestoreArgs.builder()
.datastoreId("string")
.targetTime("string")
.build())
.dbaasRedisDatastoreV1Id("string")
.timeouts(DbaasRedisDatastoreV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.config(Map.of("string", "string"))
.build());
dbaas_redis_datastore_v1_resource = selectel.DbaasRedisDatastoreV1("dbaasRedisDatastoreV1Resource",
node_count=0,
type_id="string",
subnet_id="string",
region="string",
flavor_id="string",
project_id="string",
name="string",
backup_retention_days=0,
floating_ips=[{
"master": 0,
"replica": 0,
}],
redis_password="string",
restores=[{
"datastore_id": "string",
"target_time": "string",
}],
dbaas_redis_datastore_v1_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
config={
"string": "string",
})
const dbaasRedisDatastoreV1Resource = new selectel.DbaasRedisDatastoreV1("dbaasRedisDatastoreV1Resource", {
nodeCount: 0,
typeId: "string",
subnetId: "string",
region: "string",
flavorId: "string",
projectId: "string",
name: "string",
backupRetentionDays: 0,
floatingIps: [{
master: 0,
replica: 0,
}],
redisPassword: "string",
restores: [{
datastoreId: "string",
targetTime: "string",
}],
dbaasRedisDatastoreV1Id: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
config: {
string: "string",
},
});
type: selectel:DbaasRedisDatastoreV1
properties:
backupRetentionDays: 0
config:
string: string
dbaasRedisDatastoreV1Id: string
flavorId: string
floatingIps:
- master: 0
replica: 0
name: string
nodeCount: 0
projectId: string
redisPassword: string
region: string
restores:
- datastoreId: string
targetTime: string
subnetId: string
timeouts:
create: string
delete: string
update: string
typeId: string
DbaasRedisDatastoreV1 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 DbaasRedisDatastoreV1 resource accepts the following input properties:
- Flavor
Id string - Unique identifier of the flavor for the datastore. Retrieved from the selectel.getDbaasFlavorV1 data source.
- Node
Count double - Number of nodes in the datastore. The available range is from 1 to 3. Learn more about Replication.
- Project
Id string - Unique identifier of the associated project. Changing this creates a new datastore. 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 datastore. Learn more about available pools in the Availability matrix. - Subnet
Id string - Unique identifier of the associated OpenStack network. Changing this creates a new datastore. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
- Type
Id string - Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- Backup
Retention doubleDays - Number of days to retain backups.
- Config Dictionary<string, string>
- Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- Dbaas
Redis stringDatastore V1Id - Firewalls
List<Dbaas
Redis 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.
- Floating
Ips List<DbaasRedis Datastore V1Floating Ip> Assigns public IP addresses to the nodes in the datastore. 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
0
and1
.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_count
argument.
- Name string
- Datastore name. Changing this creates a new datastore.
- Redis
Password string - Datastore password.
- Restores
List<Dbaas
Redis Datastore V1Restore> - Restores parameters for the datastore. Changing this creates a new datastore.
- Timeouts
Dbaas
Redis Datastore V1Timeouts
- Flavor
Id string - Unique identifier of the flavor for the datastore. Retrieved from the selectel.getDbaasFlavorV1 data source.
- Node
Count float64 - Number of nodes in the datastore. The available range is from 1 to 3. Learn more about Replication.
- Project
Id string - Unique identifier of the associated project. Changing this creates a new datastore. 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 datastore. Learn more about available pools in the Availability matrix. - Subnet
Id string - Unique identifier of the associated OpenStack network. Changing this creates a new datastore. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
- Type
Id string - Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- Backup
Retention float64Days - Number of days to retain backups.
- Config map[string]string
- Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- Dbaas
Redis stringDatastore V1Id - Firewalls
[]Dbaas
Redis 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.
- Floating
Ips []DbaasRedis Datastore V1Floating Ip Args Assigns public IP addresses to the nodes in the datastore. 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
0
and1
.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_count
argument.
- Name string
- Datastore name. Changing this creates a new datastore.
- Redis
Password string - Datastore password.
- Restores
[]Dbaas
Redis Datastore V1Restore Args - Restores parameters for the datastore. Changing this creates a new datastore.
- Timeouts
Dbaas
Redis Datastore V1Timeouts Args
- flavor
Id String - Unique identifier of the flavor for the datastore. Retrieved from the selectel.getDbaasFlavorV1 data source.
- node
Count Double - Number of nodes in the datastore. The available range is from 1 to 3. Learn more about Replication.
- project
Id String - Unique identifier of the associated project. Changing this creates a new datastore. 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 datastore. Learn more about available pools in the Availability matrix. - subnet
Id String - Unique identifier of the associated OpenStack network. Changing this creates a new datastore. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
- type
Id String - Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup
Retention DoubleDays - Number of days to retain backups.
- config Map<String,String>
- Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- dbaas
Redis StringDatastore V1Id - firewalls
List<Dbaas
Redis 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.
- floating
Ips List<DbaasRedis Datastore V1Floating Ip> Assigns public IP addresses to the nodes in the datastore. 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
0
and1
.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_count
argument.
- name String
- Datastore name. Changing this creates a new datastore.
- redis
Password String - Datastore password.
- restores
List<Dbaas
Redis Datastore V1Restore> - Restores parameters for the datastore. Changing this creates a new datastore.
- timeouts
Dbaas
Redis Datastore V1Timeouts
- flavor
Id string - Unique identifier of the flavor for the datastore. Retrieved from the selectel.getDbaasFlavorV1 data source.
- node
Count number - Number of nodes in the datastore. The available range is from 1 to 3. Learn more about Replication.
- project
Id string - Unique identifier of the associated project. Changing this creates a new datastore. 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 datastore. Learn more about available pools in the Availability matrix. - subnet
Id string - Unique identifier of the associated OpenStack network. Changing this creates a new datastore. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
- type
Id string - Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup
Retention numberDays - Number of days to retain backups.
- config {[key: string]: string}
- Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- dbaas
Redis stringDatastore V1Id - firewalls
Dbaas
Redis 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.
- floating
Ips DbaasRedis Datastore V1Floating Ip[] Assigns public IP addresses to the nodes in the datastore. 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
0
and1
.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_count
argument.
- name string
- Datastore name. Changing this creates a new datastore.
- redis
Password string - Datastore password.
- restores
Dbaas
Redis Datastore V1Restore[] - Restores parameters for the datastore. Changing this creates a new datastore.
- timeouts
Dbaas
Redis Datastore V1Timeouts
- flavor_
id str - Unique identifier of the flavor for the datastore. Retrieved from the selectel.getDbaasFlavorV1 data source.
- node_
count float - Number of nodes in the datastore. The available range is from 1 to 3. Learn more about Replication.
- project_
id str - Unique identifier of the associated project. Changing this creates a new datastore. 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 datastore. Learn more about available pools in the Availability matrix. - subnet_
id str - Unique identifier of the associated OpenStack network. Changing this creates a new datastore. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
- type_
id str - Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup_
retention_ floatdays - Number of days to retain backups.
- config Mapping[str, str]
- Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- dbaas_
redis_ strdatastore_ v1_ id - firewalls
Sequence[Dbaas
Redis 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.
- floating_
ips Sequence[DbaasRedis Datastore V1Floating Ip Args] Assigns public IP addresses to the nodes in the datastore. 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
0
and1
.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_count
argument.
- name str
- Datastore name. Changing this creates a new datastore.
- redis_
password str - Datastore password.
- restores
Sequence[Dbaas
Redis Datastore V1Restore Args] - Restores parameters for the datastore. Changing this creates a new datastore.
- timeouts
Dbaas
Redis Datastore V1Timeouts Args
- flavor
Id String - Unique identifier of the flavor for the datastore. Retrieved from the selectel.getDbaasFlavorV1 data source.
- node
Count Number - Number of nodes in the datastore. The available range is from 1 to 3. Learn more about Replication.
- project
Id String - Unique identifier of the associated project. Changing this creates a new datastore. 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 datastore. Learn more about available pools in the Availability matrix. - subnet
Id String - Unique identifier of the associated OpenStack network. Changing this creates a new datastore. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
- type
Id String - Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup
Retention NumberDays - Number of days to retain backups.
- config Map<String>
- Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- dbaas
Redis 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 datastore, use the selectel.DbaasFirewallV1 resource.
- floating
Ips List<Property Map> Assigns public IP addresses to the nodes in the datastore. 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
0
and1
.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_count
argument.
- name String
- Datastore name. Changing this creates a new datastore.
- redis
Password String - Datastore password.
- restores List<Property Map>
- Restores parameters for the datastore. Changing this creates a new datastore.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DbaasRedisDatastoreV1 resource produces the following output properties:
- Connections Dictionary<string, string>
- DNS addresses to connect to the datastore.
- Enabled bool
- Flavors
List<Dbaas
Redis Datastore V1Flavor> - Id string
- The provider-assigned unique ID for this managed resource.
- Instances
List<Dbaas
Redis Datastore V1Instance> - Status string
- Datastore status.
- Connections map[string]string
- DNS addresses to connect to the datastore.
- Enabled bool
- Flavors
[]Dbaas
Redis Datastore V1Flavor - Id string
- The provider-assigned unique ID for this managed resource.
- Instances
[]Dbaas
Redis Datastore V1Instance - Status string
- Datastore status.
- connections Map<String,String>
- DNS addresses to connect to the datastore.
- enabled Boolean
- flavors
List<Dbaas
Redis Datastore V1Flavor> - id String
- The provider-assigned unique ID for this managed resource.
- instances
List<Dbaas
Redis Datastore V1Instance> - status String
- Datastore status.
- connections {[key: string]: string}
- DNS addresses to connect to the datastore.
- enabled boolean
- flavors
Dbaas
Redis Datastore V1Flavor[] - id string
- The provider-assigned unique ID for this managed resource.
- instances
Dbaas
Redis Datastore V1Instance[] - status string
- Datastore status.
- connections Mapping[str, str]
- DNS addresses to connect to the datastore.
- enabled bool
- flavors
Sequence[Dbaas
Redis Datastore V1Flavor] - id str
- The provider-assigned unique ID for this managed resource.
- instances
Sequence[Dbaas
Redis Datastore V1Instance] - status str
- Datastore status.
- connections Map<String>
- DNS addresses to connect to the datastore.
- enabled Boolean
- flavors List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- instances List<Property Map>
- status String
- Datastore status.
Look up Existing DbaasRedisDatastoreV1 Resource
Get an existing DbaasRedisDatastoreV1 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?: DbaasRedisDatastoreV1State, opts?: CustomResourceOptions): DbaasRedisDatastoreV1
@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_redis_datastore_v1_id: Optional[str] = None,
enabled: Optional[bool] = None,
firewalls: Optional[Sequence[DbaasRedisDatastoreV1FirewallArgs]] = None,
flavor_id: Optional[str] = None,
flavors: Optional[Sequence[DbaasRedisDatastoreV1FlavorArgs]] = None,
floating_ips: Optional[Sequence[DbaasRedisDatastoreV1FloatingIpArgs]] = None,
instances: Optional[Sequence[DbaasRedisDatastoreV1InstanceArgs]] = None,
name: Optional[str] = None,
node_count: Optional[float] = None,
project_id: Optional[str] = None,
redis_password: Optional[str] = None,
region: Optional[str] = None,
restores: Optional[Sequence[DbaasRedisDatastoreV1RestoreArgs]] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
timeouts: Optional[DbaasRedisDatastoreV1TimeoutsArgs] = None,
type_id: Optional[str] = None) -> DbaasRedisDatastoreV1
func GetDbaasRedisDatastoreV1(ctx *Context, name string, id IDInput, state *DbaasRedisDatastoreV1State, opts ...ResourceOption) (*DbaasRedisDatastoreV1, error)
public static DbaasRedisDatastoreV1 Get(string name, Input<string> id, DbaasRedisDatastoreV1State? state, CustomResourceOptions? opts = null)
public static DbaasRedisDatastoreV1 get(String name, Output<String> id, DbaasRedisDatastoreV1State state, CustomResourceOptions options)
resources: _: type: selectel:DbaasRedisDatastoreV1 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. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- Connections Dictionary<string, string>
- DNS addresses to connect to the datastore.
- Dbaas
Redis stringDatastore V1Id - Enabled bool
- Firewalls
List<Dbaas
Redis 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 - Unique identifier of the flavor for the datastore. Retrieved from the selectel.getDbaasFlavorV1 data source.
- Flavors
List<Dbaas
Redis Datastore V1Flavor> - Floating
Ips List<DbaasRedis Datastore V1Floating Ip> Assigns public IP addresses to the nodes in the datastore. 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
0
and1
.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_count
argument.
- Instances
List<Dbaas
Redis Datastore V1Instance> - Name string
- Datastore name. Changing this creates a new datastore.
- Node
Count double - Number of nodes in the datastore. The available range is from 1 to 3. Learn more about Replication.
- Project
Id string - Unique identifier of the associated project. Changing this creates a new datastore. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Redis
Password string - Datastore password.
- Region string
- Pool where the database is located, for example,
ru-3
. Changing this creates a new datastore. Learn more about available pools in the Availability matrix. - Restores
List<Dbaas
Redis Datastore V1Restore> - Restores parameters for the datastore. Changing this creates a new datastore.
- Status string
- Datastore status.
- Subnet
Id string - Unique identifier of the associated OpenStack network. Changing this creates a new datastore. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
- Timeouts
Dbaas
Redis Datastore V1Timeouts - Type
Id string - Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- Backup
Retention float64Days - Number of days to retain backups.
- Config map[string]string
- Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- Connections map[string]string
- DNS addresses to connect to the datastore.
- Dbaas
Redis stringDatastore V1Id - Enabled bool
- Firewalls
[]Dbaas
Redis 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 - Unique identifier of the flavor for the datastore. Retrieved from the selectel.getDbaasFlavorV1 data source.
- Flavors
[]Dbaas
Redis Datastore V1Flavor Args - Floating
Ips []DbaasRedis Datastore V1Floating Ip Args Assigns public IP addresses to the nodes in the datastore. 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
0
and1
.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_count
argument.
- Instances
[]Dbaas
Redis Datastore V1Instance Args - Name string
- Datastore name. Changing this creates a new datastore.
- Node
Count float64 - Number of nodes in the datastore. The available range is from 1 to 3. Learn more about Replication.
- Project
Id string - Unique identifier of the associated project. Changing this creates a new datastore. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Redis
Password string - Datastore password.
- Region string
- Pool where the database is located, for example,
ru-3
. Changing this creates a new datastore. Learn more about available pools in the Availability matrix. - Restores
[]Dbaas
Redis Datastore V1Restore Args - Restores parameters for the datastore. Changing this creates a new datastore.
- Status string
- Datastore status.
- Subnet
Id string - Unique identifier of the associated OpenStack network. Changing this creates a new datastore. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
- Timeouts
Dbaas
Redis Datastore V1Timeouts Args - Type
Id string - Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup
Retention DoubleDays - Number of days to retain backups.
- config Map<String,String>
- Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- connections Map<String,String>
- DNS addresses to connect to the datastore.
- dbaas
Redis StringDatastore V1Id - enabled Boolean
- firewalls
List<Dbaas
Redis 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 - Unique identifier of the flavor for the datastore. Retrieved from the selectel.getDbaasFlavorV1 data source.
- flavors
List<Dbaas
Redis Datastore V1Flavor> - floating
Ips List<DbaasRedis Datastore V1Floating Ip> Assigns public IP addresses to the nodes in the datastore. 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
0
and1
.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_count
argument.
- instances
List<Dbaas
Redis Datastore V1Instance> - name String
- Datastore name. Changing this creates a new datastore.
- node
Count Double - Number of nodes in the datastore. The available range is from 1 to 3. Learn more about Replication.
- project
Id String - Unique identifier of the associated project. Changing this creates a new datastore. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- redis
Password String - Datastore password.
- region String
- Pool where the database is located, for example,
ru-3
. Changing this creates a new datastore. Learn more about available pools in the Availability matrix. - restores
List<Dbaas
Redis Datastore V1Restore> - Restores parameters for the datastore. Changing this creates a new datastore.
- status String
- Datastore status.
- subnet
Id String - Unique identifier of the associated OpenStack network. Changing this creates a new datastore. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
- timeouts
Dbaas
Redis Datastore V1Timeouts - type
Id String - Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup
Retention numberDays - Number of days to retain backups.
- config {[key: string]: string}
- Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- connections {[key: string]: string}
- DNS addresses to connect to the datastore.
- dbaas
Redis stringDatastore V1Id - enabled boolean
- firewalls
Dbaas
Redis 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 - Unique identifier of the flavor for the datastore. Retrieved from the selectel.getDbaasFlavorV1 data source.
- flavors
Dbaas
Redis Datastore V1Flavor[] - floating
Ips DbaasRedis Datastore V1Floating Ip[] Assigns public IP addresses to the nodes in the datastore. 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
0
and1
.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_count
argument.
- instances
Dbaas
Redis Datastore V1Instance[] - name string
- Datastore name. Changing this creates a new datastore.
- node
Count number - Number of nodes in the datastore. The available range is from 1 to 3. Learn more about Replication.
- project
Id string - Unique identifier of the associated project. Changing this creates a new datastore. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- redis
Password string - Datastore password.
- region string
- Pool where the database is located, for example,
ru-3
. Changing this creates a new datastore. Learn more about available pools in the Availability matrix. - restores
Dbaas
Redis Datastore V1Restore[] - Restores parameters for the datastore. Changing this creates a new datastore.
- status string
- Datastore status.
- subnet
Id string - Unique identifier of the associated OpenStack network. Changing this creates a new datastore. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
- timeouts
Dbaas
Redis Datastore V1Timeouts - type
Id string - Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup_
retention_ floatdays - Number of days to retain backups.
- config Mapping[str, str]
- Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- connections Mapping[str, str]
- DNS addresses to connect to the datastore.
- dbaas_
redis_ strdatastore_ v1_ id - enabled bool
- firewalls
Sequence[Dbaas
Redis 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 - Unique identifier of the flavor for the datastore. Retrieved from the selectel.getDbaasFlavorV1 data source.
- flavors
Sequence[Dbaas
Redis Datastore V1Flavor Args] - floating_
ips Sequence[DbaasRedis Datastore V1Floating Ip Args] Assigns public IP addresses to the nodes in the datastore. 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
0
and1
.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_count
argument.
- instances
Sequence[Dbaas
Redis Datastore V1Instance Args] - name str
- Datastore name. Changing this creates a new datastore.
- node_
count float - Number of nodes in the datastore. The available range is from 1 to 3. Learn more about Replication.
- project_
id str - Unique identifier of the associated project. Changing this creates a new datastore. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- redis_
password str - Datastore password.
- region str
- Pool where the database is located, for example,
ru-3
. Changing this creates a new datastore. Learn more about available pools in the Availability matrix. - restores
Sequence[Dbaas
Redis Datastore V1Restore Args] - Restores parameters for the datastore. Changing this creates a new datastore.
- status str
- Datastore status.
- subnet_
id str - Unique identifier of the associated OpenStack network. Changing this creates a new datastore. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
- timeouts
Dbaas
Redis Datastore V1Timeouts Args - type_
id str - Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
- backup
Retention NumberDays - Number of days to retain backups.
- config Map<String>
- Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
- connections Map<String>
- DNS addresses to connect to the datastore.
- dbaas
Redis 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 datastore, use the selectel.DbaasFirewallV1 resource.
- flavor
Id String - Unique identifier of the flavor for the datastore. Retrieved from the selectel.getDbaasFlavorV1 data source.
- flavors List<Property Map>
- floating
Ips List<Property Map> Assigns public IP addresses to the nodes in the datastore. 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
0
and1
.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_count
argument.
- instances List<Property Map>
- name String
- Datastore name. Changing this creates a new datastore.
- node
Count Number - Number of nodes in the datastore. The available range is from 1 to 3. Learn more about Replication.
- project
Id String - Unique identifier of the associated project. Changing this creates a new datastore. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- redis
Password String - Datastore password.
- region String
- Pool where the database is located, for example,
ru-3
. Changing this creates a new datastore. Learn more about available pools in the Availability matrix. - restores List<Property Map>
- Restores parameters for the datastore. Changing this creates a new datastore.
- status String
- Datastore status.
- subnet
Id String - Unique identifier of the associated OpenStack network. Changing this creates a new datastore. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
- timeouts Property Map
- type
Id String - Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
Supporting Types
DbaasRedisDatastoreV1Firewall, DbaasRedisDatastoreV1FirewallArgs
- Ips List<string>
- Ips []string
- ips List<String>
- ips string[]
- ips Sequence[str]
- ips List<String>
DbaasRedisDatastoreV1Flavor, DbaasRedisDatastoreV1FlavorArgs
DbaasRedisDatastoreV1FloatingIp, DbaasRedisDatastoreV1FloatingIpArgs
DbaasRedisDatastoreV1Instance, DbaasRedisDatastoreV1InstanceArgs
- 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
DbaasRedisDatastoreV1Restore, DbaasRedisDatastoreV1RestoreArgs
- Datastore
Id string - Unique identifier of the datastore from which you restore. To get the datastore 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 datastore state to restore.
- Datastore
Id string - Unique identifier of the datastore from which you restore. To get the datastore 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 datastore state to restore.
- datastore
Id String - Unique identifier of the datastore from which you restore. To get the datastore 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 datastore state to restore.
- datastore
Id string - Unique identifier of the datastore from which you restore. To get the datastore 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 datastore state to restore.
- datastore_
id str - Unique identifier of the datastore from which you restore. To get the datastore 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 datastore state to restore.
- datastore
Id String - Unique identifier of the datastore from which you restore. To get the datastore 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 datastore state to restore.
DbaasRedisDatastoreV1Timeouts, DbaasRedisDatastoreV1TimeoutsArgs
Import
You can import a datastore:
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/dbaasRedisDatastoreV1:DbaasRedisDatastoreV1 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 datastore, for example,b311ce58-2658-46b5-b733-7a0f418703f2
. To get the datastore 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
selectel
Terraform Provider.