1. Packages
  2. Selectel Provider
  3. API Docs
  4. DbaasKafkaDatastoreV1
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

selectel.DbaasKafkaDatastoreV1

Explore with Pulumi AI

selectel logo
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

    Creates and manages a Kafka 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.DbaasKafkaDatastoreV1("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: 1,
        flavors: [{
            vcpus: 2,
            ram: 8192,
            disk: 32,
        }],
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    datastore1 = selectel.DbaasKafkaDatastoreV1("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=1,
        flavors=[{
            "vcpus": 2,
            "ram": 8192,
            "disk": 32,
        }])
    
    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.NewDbaasKafkaDatastoreV1(ctx, "datastore1", &selectel.DbaasKafkaDatastoreV1Args{
    			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(1),
    			Flavors: selectel.DbaasKafkaDatastoreV1FlavorArray{
    				&selectel.DbaasKafkaDatastoreV1FlavorArgs{
    					Vcpus: pulumi.Float64(2),
    					Ram:   pulumi.Float64(8192),
    					Disk:  pulumi.Float64(32),
    				},
    			},
    		})
    		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.DbaasKafkaDatastoreV1("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 = 1,
            Flavors = new[]
            {
                new Selectel.Inputs.DbaasKafkaDatastoreV1FlavorArgs
                {
                    Vcpus = 2,
                    Ram = 8192,
                    Disk = 32,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DbaasKafkaDatastoreV1;
    import com.pulumi.selectel.DbaasKafkaDatastoreV1Args;
    import com.pulumi.selectel.inputs.DbaasKafkaDatastoreV1FlavorArgs;
    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 DbaasKafkaDatastoreV1("datastore1", DbaasKafkaDatastoreV1Args.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(1)
                .flavors(DbaasKafkaDatastoreV1FlavorArgs.builder()
                    .vcpus(2)
                    .ram(8192)
                    .disk(32)
                    .build())
                .build());
    
        }
    }
    
    resources:
      datastore1:
        type: selectel:DbaasKafkaDatastoreV1
        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: 1
          flavors:
            - vcpus: 2
              ram: 8192
              disk: 32
    

    Create DbaasKafkaDatastoreV1 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DbaasKafkaDatastoreV1(name: string, args: DbaasKafkaDatastoreV1Args, opts?: CustomResourceOptions);
    @overload
    def DbaasKafkaDatastoreV1(resource_name: str,
                              args: DbaasKafkaDatastoreV1Args,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def DbaasKafkaDatastoreV1(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              node_count: Optional[float] = None,
                              project_id: Optional[str] = None,
                              region: Optional[str] = None,
                              subnet_id: Optional[str] = None,
                              type_id: Optional[str] = None,
                              config: Optional[Mapping[str, str]] = None,
                              dbaas_kafka_datastore_v1_id: Optional[str] = None,
                              firewalls: Optional[Sequence[DbaasKafkaDatastoreV1FirewallArgs]] = None,
                              flavor_id: Optional[str] = None,
                              flavors: Optional[Sequence[DbaasKafkaDatastoreV1FlavorArgs]] = None,
                              name: Optional[str] = None,
                              timeouts: Optional[DbaasKafkaDatastoreV1TimeoutsArgs] = None)
    func NewDbaasKafkaDatastoreV1(ctx *Context, name string, args DbaasKafkaDatastoreV1Args, opts ...ResourceOption) (*DbaasKafkaDatastoreV1, error)
    public DbaasKafkaDatastoreV1(string name, DbaasKafkaDatastoreV1Args args, CustomResourceOptions? opts = null)
    public DbaasKafkaDatastoreV1(String name, DbaasKafkaDatastoreV1Args args)
    public DbaasKafkaDatastoreV1(String name, DbaasKafkaDatastoreV1Args args, CustomResourceOptions options)
    
    type: selectel:DbaasKafkaDatastoreV1
    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 DbaasKafkaDatastoreV1Args
    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 DbaasKafkaDatastoreV1Args
    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 DbaasKafkaDatastoreV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DbaasKafkaDatastoreV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DbaasKafkaDatastoreV1Args
    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 dbaasKafkaDatastoreV1Resource = new Selectel.DbaasKafkaDatastoreV1("dbaasKafkaDatastoreV1Resource", new()
    {
        NodeCount = 0,
        ProjectId = "string",
        Region = "string",
        SubnetId = "string",
        TypeId = "string",
        Config = 
        {
            { "string", "string" },
        },
        DbaasKafkaDatastoreV1Id = "string",
        FlavorId = "string",
        Flavors = new[]
        {
            new Selectel.Inputs.DbaasKafkaDatastoreV1FlavorArgs
            {
                Disk = 0,
                Ram = 0,
                Vcpus = 0,
            },
        },
        Name = "string",
        Timeouts = new Selectel.Inputs.DbaasKafkaDatastoreV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := selectel.NewDbaasKafkaDatastoreV1(ctx, "dbaasKafkaDatastoreV1Resource", &selectel.DbaasKafkaDatastoreV1Args{
    	NodeCount: pulumi.Float64(0),
    	ProjectId: pulumi.String("string"),
    	Region:    pulumi.String("string"),
    	SubnetId:  pulumi.String("string"),
    	TypeId:    pulumi.String("string"),
    	Config: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	DbaasKafkaDatastoreV1Id: pulumi.String("string"),
    	FlavorId:                pulumi.String("string"),
    	Flavors: selectel.DbaasKafkaDatastoreV1FlavorArray{
    		&selectel.DbaasKafkaDatastoreV1FlavorArgs{
    			Disk:  pulumi.Float64(0),
    			Ram:   pulumi.Float64(0),
    			Vcpus: pulumi.Float64(0),
    		},
    	},
    	Name: pulumi.String("string"),
    	Timeouts: &selectel.DbaasKafkaDatastoreV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var dbaasKafkaDatastoreV1Resource = new DbaasKafkaDatastoreV1("dbaasKafkaDatastoreV1Resource", DbaasKafkaDatastoreV1Args.builder()
        .nodeCount(0)
        .projectId("string")
        .region("string")
        .subnetId("string")
        .typeId("string")
        .config(Map.of("string", "string"))
        .dbaasKafkaDatastoreV1Id("string")
        .flavorId("string")
        .flavors(DbaasKafkaDatastoreV1FlavorArgs.builder()
            .disk(0)
            .ram(0)
            .vcpus(0)
            .build())
        .name("string")
        .timeouts(DbaasKafkaDatastoreV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    dbaas_kafka_datastore_v1_resource = selectel.DbaasKafkaDatastoreV1("dbaasKafkaDatastoreV1Resource",
        node_count=0,
        project_id="string",
        region="string",
        subnet_id="string",
        type_id="string",
        config={
            "string": "string",
        },
        dbaas_kafka_datastore_v1_id="string",
        flavor_id="string",
        flavors=[{
            "disk": 0,
            "ram": 0,
            "vcpus": 0,
        }],
        name="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const dbaasKafkaDatastoreV1Resource = new selectel.DbaasKafkaDatastoreV1("dbaasKafkaDatastoreV1Resource", {
        nodeCount: 0,
        projectId: "string",
        region: "string",
        subnetId: "string",
        typeId: "string",
        config: {
            string: "string",
        },
        dbaasKafkaDatastoreV1Id: "string",
        flavorId: "string",
        flavors: [{
            disk: 0,
            ram: 0,
            vcpus: 0,
        }],
        name: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: selectel:DbaasKafkaDatastoreV1
    properties:
        config:
            string: string
        dbaasKafkaDatastoreV1Id: string
        flavorId: string
        flavors:
            - disk: 0
              ram: 0
              vcpus: 0
        name: string
        nodeCount: 0
        projectId: string
        region: string
        subnetId: string
        timeouts:
            create: string
            delete: string
            update: string
        typeId: string
    

    DbaasKafkaDatastoreV1 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 DbaasKafkaDatastoreV1 resource accepts the following input properties:

    NodeCount double
    Number of nodes in the datastore. The only available value is 1. Learn more about Replication.
    ProjectId 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.
    SubnetId 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.
    TypeId string
    Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
    Config Dictionary<string, string>
    Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
    DbaasKafkaDatastoreV1Id string
    Firewalls List<DbaasKafkaDatastoreV1Firewall>
    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.

    Deprecated: Deprecated

    FlavorId string
    Unique identifier of the flavor for the datastore. Can be skipped when flavor is set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source.
    Flavors List<DbaasKafkaDatastoreV1Flavor>
    Flavor configuration for the datastore. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for Kafka.
    Name string
    Datastore name. Changing this creates a new datastore.
    Timeouts DbaasKafkaDatastoreV1Timeouts
    NodeCount float64
    Number of nodes in the datastore. The only available value is 1. Learn more about Replication.
    ProjectId 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.
    SubnetId 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.
    TypeId string
    Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
    Config map[string]string
    Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
    DbaasKafkaDatastoreV1Id string
    Firewalls []DbaasKafkaDatastoreV1FirewallArgs
    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.

    Deprecated: Deprecated

    FlavorId string
    Unique identifier of the flavor for the datastore. Can be skipped when flavor is set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source.
    Flavors []DbaasKafkaDatastoreV1FlavorArgs
    Flavor configuration for the datastore. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for Kafka.
    Name string
    Datastore name. Changing this creates a new datastore.
    Timeouts DbaasKafkaDatastoreV1TimeoutsArgs
    nodeCount Double
    Number of nodes in the datastore. The only available value is 1. Learn more about Replication.
    projectId 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.
    subnetId 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.
    typeId String
    Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
    config Map<String,String>
    Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
    dbaasKafkaDatastoreV1Id String
    firewalls List<DbaasKafkaDatastoreV1Firewall>
    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.

    Deprecated: Deprecated

    flavorId String
    Unique identifier of the flavor for the datastore. Can be skipped when flavor is set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source.
    flavors List<DbaasKafkaDatastoreV1Flavor>
    Flavor configuration for the datastore. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for Kafka.
    name String
    Datastore name. Changing this creates a new datastore.
    timeouts DbaasKafkaDatastoreV1Timeouts
    nodeCount number
    Number of nodes in the datastore. The only available value is 1. Learn more about Replication.
    projectId 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.
    subnetId 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.
    typeId string
    Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
    config {[key: string]: string}
    Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
    dbaasKafkaDatastoreV1Id string
    firewalls DbaasKafkaDatastoreV1Firewall[]
    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.

    Deprecated: Deprecated

    flavorId string
    Unique identifier of the flavor for the datastore. Can be skipped when flavor is set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source.
    flavors DbaasKafkaDatastoreV1Flavor[]
    Flavor configuration for the datastore. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for Kafka.
    name string
    Datastore name. Changing this creates a new datastore.
    timeouts DbaasKafkaDatastoreV1Timeouts
    node_count float
    Number of nodes in the datastore. The only available value is 1. 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.
    config Mapping[str, str]
    Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
    dbaas_kafka_datastore_v1_id str
    firewalls Sequence[DbaasKafkaDatastoreV1FirewallArgs]
    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.

    Deprecated: Deprecated

    flavor_id str
    Unique identifier of the flavor for the datastore. Can be skipped when flavor is set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source.
    flavors Sequence[DbaasKafkaDatastoreV1FlavorArgs]
    Flavor configuration for the datastore. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for Kafka.
    name str
    Datastore name. Changing this creates a new datastore.
    timeouts DbaasKafkaDatastoreV1TimeoutsArgs
    nodeCount Number
    Number of nodes in the datastore. The only available value is 1. Learn more about Replication.
    projectId 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.
    subnetId 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.
    typeId String
    Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
    config Map<String>
    Configuration parameters for the datastore. You can retrieve information about available configuration parameters with the selectel.getDbaasConfigurationParameterV1 data source.
    dbaasKafkaDatastoreV1Id String
    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.

    Deprecated: Deprecated

    flavorId String
    Unique identifier of the flavor for the datastore. Can be skipped when flavor is set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source.
    flavors List<Property Map>
    Flavor configuration for the datastore. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for Kafka.
    name String
    Datastore name. Changing this creates a new datastore.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DbaasKafkaDatastoreV1 resource produces the following output properties:

    Connections Dictionary<string, string>
    DNS addresses to connect to the datastore.
    Enabled bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Instances List<DbaasKafkaDatastoreV1Instance>
    Status string
    Datastore status.
    Connections map[string]string
    DNS addresses to connect to the datastore.
    Enabled bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Instances []DbaasKafkaDatastoreV1Instance
    Status string
    Datastore status.
    connections Map<String,String>
    DNS addresses to connect to the datastore.
    enabled Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    instances List<DbaasKafkaDatastoreV1Instance>
    status String
    Datastore status.
    connections {[key: string]: string}
    DNS addresses to connect to the datastore.
    enabled boolean
    id string
    The provider-assigned unique ID for this managed resource.
    instances DbaasKafkaDatastoreV1Instance[]
    status string
    Datastore status.
    connections Mapping[str, str]
    DNS addresses to connect to the datastore.
    enabled bool
    id str
    The provider-assigned unique ID for this managed resource.
    instances Sequence[DbaasKafkaDatastoreV1Instance]
    status str
    Datastore status.
    connections Map<String>
    DNS addresses to connect to the datastore.
    enabled Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    instances List<Property Map>
    status String
    Datastore status.

    Look up Existing DbaasKafkaDatastoreV1 Resource

    Get an existing DbaasKafkaDatastoreV1 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?: DbaasKafkaDatastoreV1State, opts?: CustomResourceOptions): DbaasKafkaDatastoreV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config: Optional[Mapping[str, str]] = None,
            connections: Optional[Mapping[str, str]] = None,
            dbaas_kafka_datastore_v1_id: Optional[str] = None,
            enabled: Optional[bool] = None,
            firewalls: Optional[Sequence[DbaasKafkaDatastoreV1FirewallArgs]] = None,
            flavor_id: Optional[str] = None,
            flavors: Optional[Sequence[DbaasKafkaDatastoreV1FlavorArgs]] = None,
            instances: Optional[Sequence[DbaasKafkaDatastoreV1InstanceArgs]] = None,
            name: Optional[str] = None,
            node_count: Optional[float] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            timeouts: Optional[DbaasKafkaDatastoreV1TimeoutsArgs] = None,
            type_id: Optional[str] = None) -> DbaasKafkaDatastoreV1
    func GetDbaasKafkaDatastoreV1(ctx *Context, name string, id IDInput, state *DbaasKafkaDatastoreV1State, opts ...ResourceOption) (*DbaasKafkaDatastoreV1, error)
    public static DbaasKafkaDatastoreV1 Get(string name, Input<string> id, DbaasKafkaDatastoreV1State? state, CustomResourceOptions? opts = null)
    public static DbaasKafkaDatastoreV1 get(String name, Output<String> id, DbaasKafkaDatastoreV1State state, CustomResourceOptions options)
    resources:  _:    type: selectel:DbaasKafkaDatastoreV1    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    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.
    DbaasKafkaDatastoreV1Id string
    Enabled bool
    Firewalls List<DbaasKafkaDatastoreV1Firewall>
    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.

    Deprecated: Deprecated

    FlavorId string
    Unique identifier of the flavor for the datastore. Can be skipped when flavor is set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source.
    Flavors List<DbaasKafkaDatastoreV1Flavor>
    Flavor configuration for the datastore. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for Kafka.
    Instances List<DbaasKafkaDatastoreV1Instance>
    Name string
    Datastore name. Changing this creates a new datastore.
    NodeCount double
    Number of nodes in the datastore. The only available value is 1. Learn more about Replication.
    ProjectId 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.
    Status string
    Datastore status.
    SubnetId 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 DbaasKafkaDatastoreV1Timeouts
    TypeId string
    Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
    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.
    DbaasKafkaDatastoreV1Id string
    Enabled bool
    Firewalls []DbaasKafkaDatastoreV1FirewallArgs
    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.

    Deprecated: Deprecated

    FlavorId string
    Unique identifier of the flavor for the datastore. Can be skipped when flavor is set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source.
    Flavors []DbaasKafkaDatastoreV1FlavorArgs
    Flavor configuration for the datastore. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for Kafka.
    Instances []DbaasKafkaDatastoreV1InstanceArgs
    Name string
    Datastore name. Changing this creates a new datastore.
    NodeCount float64
    Number of nodes in the datastore. The only available value is 1. Learn more about Replication.
    ProjectId 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.
    Status string
    Datastore status.
    SubnetId 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 DbaasKafkaDatastoreV1TimeoutsArgs
    TypeId string
    Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
    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.
    dbaasKafkaDatastoreV1Id String
    enabled Boolean
    firewalls List<DbaasKafkaDatastoreV1Firewall>
    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.

    Deprecated: Deprecated

    flavorId String
    Unique identifier of the flavor for the datastore. Can be skipped when flavor is set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source.
    flavors List<DbaasKafkaDatastoreV1Flavor>
    Flavor configuration for the datastore. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for Kafka.
    instances List<DbaasKafkaDatastoreV1Instance>
    name String
    Datastore name. Changing this creates a new datastore.
    nodeCount Double
    Number of nodes in the datastore. The only available value is 1. Learn more about Replication.
    projectId 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.
    status String
    Datastore status.
    subnetId 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 DbaasKafkaDatastoreV1Timeouts
    typeId String
    Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
    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.
    dbaasKafkaDatastoreV1Id string
    enabled boolean
    firewalls DbaasKafkaDatastoreV1Firewall[]
    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.

    Deprecated: Deprecated

    flavorId string
    Unique identifier of the flavor for the datastore. Can be skipped when flavor is set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source.
    flavors DbaasKafkaDatastoreV1Flavor[]
    Flavor configuration for the datastore. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for Kafka.
    instances DbaasKafkaDatastoreV1Instance[]
    name string
    Datastore name. Changing this creates a new datastore.
    nodeCount number
    Number of nodes in the datastore. The only available value is 1. Learn more about Replication.
    projectId 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.
    status string
    Datastore status.
    subnetId 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 DbaasKafkaDatastoreV1Timeouts
    typeId string
    Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
    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_kafka_datastore_v1_id str
    enabled bool
    firewalls Sequence[DbaasKafkaDatastoreV1FirewallArgs]
    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.

    Deprecated: Deprecated

    flavor_id str
    Unique identifier of the flavor for the datastore. Can be skipped when flavor is set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source.
    flavors Sequence[DbaasKafkaDatastoreV1FlavorArgs]
    Flavor configuration for the datastore. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for Kafka.
    instances Sequence[DbaasKafkaDatastoreV1InstanceArgs]
    name str
    Datastore name. Changing this creates a new datastore.
    node_count float
    Number of nodes in the datastore. The only available value is 1. 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.
    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 DbaasKafkaDatastoreV1TimeoutsArgs
    type_id str
    Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.
    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.
    dbaasKafkaDatastoreV1Id String
    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.

    Deprecated: Deprecated

    flavorId String
    Unique identifier of the flavor for the datastore. Can be skipped when flavor is set. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source.
    flavors List<Property Map>
    Flavor configuration for the datastore. You can retrieve information about available flavors with the selectel.getDbaasFlavorV1 data source. Learn more about available configurations for Kafka.
    instances List<Property Map>
    name String
    Datastore name. Changing this creates a new datastore.
    nodeCount Number
    Number of nodes in the datastore. The only available value is 1. Learn more about Replication.
    projectId 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.
    status String
    Datastore status.
    subnetId 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
    typeId String
    Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel.getDbaasDatastoreTypeV1 data source.

    Supporting Types

    DbaasKafkaDatastoreV1Firewall, DbaasKafkaDatastoreV1FirewallArgs

    Ips List<string>
    Ips []string
    ips List<String>
    ips string[]
    ips Sequence[str]
    ips List<String>

    DbaasKafkaDatastoreV1Flavor, DbaasKafkaDatastoreV1FlavorArgs

    Disk double
    Volume size in GB.
    Ram double
    Amount of RAM in MB.
    Vcpus double
    Number of vCPUs.
    Disk float64
    Volume size in GB.
    Ram float64
    Amount of RAM in MB.
    Vcpus float64
    Number of vCPUs.
    disk Double
    Volume size in GB.
    ram Double
    Amount of RAM in MB.
    vcpus Double
    Number of vCPUs.
    disk number
    Volume size in GB.
    ram number
    Amount of RAM in MB.
    vcpus number
    Number of vCPUs.
    disk float
    Volume size in GB.
    ram float
    Amount of RAM in MB.
    vcpus float
    Number of vCPUs.
    disk Number
    Volume size in GB.
    ram Number
    Amount of RAM in MB.
    vcpus Number
    Number of vCPUs.

    DbaasKafkaDatastoreV1Instance, DbaasKafkaDatastoreV1InstanceArgs

    FloatingIp string
    Role string
    FloatingIp string
    Role string
    floatingIp String
    role String
    floatingIp string
    role string
    floatingIp String
    role String

    DbaasKafkaDatastoreV1Timeouts, DbaasKafkaDatastoreV1TimeoutsArgs

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

    Import

    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/dbaasKafkaDatastoreV1:DbaasKafkaDatastoreV1 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 ManagementUser 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 PlatformManaged 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 PlatformManaged 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.
    selectel logo
    selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel