1. Registry
  2. Packages
  3. Selectel Provider
  4. API Docs
  5. getDbaasDatastoreTypeV2
Viewing docs for selectel 9.4.1
published on Friday, Oct 23, 2026 by selectel
selectel
Viewing docs for selectel 9.4.1
published on Friday, Oct 23, 2026 by selectel

    Provides a list of available cluster types in Managed Databases using public API v2. For more information about available cluster types, see the official Selectel documentation.

    Example Usage

    ClickHouse

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const dt = selectel.getDbaasDatastoreTypeV2({
        projectId: project1.id,
        region: "ru-3",
        filters: [{
            engine: "clickhouse",
        }],
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    dt = selectel.get_dbaas_datastore_type_v2(project_id=project1["id"],
        region="ru-3",
        filters=[{
            "engine": "clickhouse",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v9/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.GetDbaasDatastoreTypeV2(ctx, &selectel.GetDbaasDatastoreTypeV2Args{
    			ProjectId: project1.Id,
    			Region:    "ru-3",
    			Filters: []selectel.GetDbaasDatastoreTypeV2Filter{
    				{
    					Engine: pulumi.StringRef("clickhouse"),
    				},
    			},
    		}, nil)
    		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 dt = Selectel.GetDbaasDatastoreTypeV2.Invoke(new()
        {
            ProjectId = project1.Id,
            Region = "ru-3",
            Filters = new[]
            {
                new Selectel.Inputs.GetDbaasDatastoreTypeV2FilterInputArgs
                {
                    Engine = "clickhouse",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.SelectelFunctions;
    import com.pulumi.selectel.inputs.GetDbaasDatastoreTypeV2Args;
    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) {
            final var dt = SelectelFunctions.getDbaasDatastoreTypeV2(GetDbaasDatastoreTypeV2Args.builder()
                .projectId(project1.id())
                .region("ru-3")
                .filters(GetDbaasDatastoreTypeV2FilterArgs.builder()
                    .engine("clickhouse")
                    .build())
                .build());
    
        }
    }
    
    variables:
      dt:
        fn::invoke:
          function: selectel:getDbaasDatastoreTypeV2
          arguments:
            projectId: ${project1.id}
            region: ru-3
            filters:
              - engine: clickhouse
    
    Example coming soon!
    

    Using getDbaasDatastoreTypeV2

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDbaasDatastoreTypeV2(args: GetDbaasDatastoreTypeV2Args, opts?: InvokeOptions): Promise<GetDbaasDatastoreTypeV2Result>
    function getDbaasDatastoreTypeV2Output(args: GetDbaasDatastoreTypeV2OutputArgs, opts?: InvokeOutputOptions): Output<GetDbaasDatastoreTypeV2Result>
    def get_dbaas_datastore_type_v2(filters: Optional[Sequence[GetDbaasDatastoreTypeV2Filter]] = None,
                                    id: Optional[str] = None,
                                    project_id: Optional[str] = None,
                                    region: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetDbaasDatastoreTypeV2Result
    def get_dbaas_datastore_type_v2_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetDbaasDatastoreTypeV2FilterArgs]]]] = None,
                                    id: pulumi.Input[Optional[str]] = None,
                                    project_id: pulumi.Input[Optional[str]] = None,
                                    region: pulumi.Input[Optional[str]] = None,
                                    opts: Optional[InvokeOutputOptions] = None) -> Output[GetDbaasDatastoreTypeV2Result]
    func GetDbaasDatastoreTypeV2(ctx *Context, args *GetDbaasDatastoreTypeV2Args, opts ...InvokeOption) (*GetDbaasDatastoreTypeV2Result, error)
    func GetDbaasDatastoreTypeV2Output(ctx *Context, args *GetDbaasDatastoreTypeV2OutputArgs, opts ...InvokeOption) GetDbaasDatastoreTypeV2ResultOutput

    > Note: This function is named GetDbaasDatastoreTypeV2 in the Go SDK.

    public static class GetDbaasDatastoreTypeV2 
    {
        public static Task<GetDbaasDatastoreTypeV2Result> InvokeAsync(GetDbaasDatastoreTypeV2Args args, InvokeOptions? opts = null)
        public static Output<GetDbaasDatastoreTypeV2Result> Invoke(GetDbaasDatastoreTypeV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetDbaasDatastoreTypeV2Result> Invoke(GetDbaasDatastoreTypeV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetDbaasDatastoreTypeV2Result> getDbaasDatastoreTypeV2(GetDbaasDatastoreTypeV2Args args, InvokeOptions options)
    public static Output<GetDbaasDatastoreTypeV2Result> getDbaasDatastoreTypeV2(GetDbaasDatastoreTypeV2Args args, InvokeOptions options)
    public static Output<GetDbaasDatastoreTypeV2Result> getDbaasDatastoreTypeV2(GetDbaasDatastoreTypeV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: selectel:index/getDbaasDatastoreTypeV2:getDbaasDatastoreTypeV2
      arguments:
        # arguments dictionary
    data "selectel_get_dbaas_datastore_type_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    Filters List<GetDbaasDatastoreTypeV2Filter>
    Values to filter available cluster types.
    Id string
    Unique identifier of the cluster type.
    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    Filters []GetDbaasDatastoreTypeV2Filter
    Values to filter available cluster types.
    Id string
    Unique identifier of the cluster type.
    project_id string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    filters list(object)
    Values to filter available cluster types.
    id string
    Unique identifier of the cluster type.
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    filters List<GetDbaasDatastoreTypeV2Filter>
    Values to filter available cluster types.
    id String
    Unique identifier of the cluster type.
    projectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    filters GetDbaasDatastoreTypeV2Filter[]
    Values to filter available cluster types.
    id string
    Unique identifier of the cluster type.
    project_id str
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    filters Sequence[GetDbaasDatastoreTypeV2Filter]
    Values to filter available cluster types.
    id str
    Unique identifier of the cluster type.
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    filters List<Property Map>
    Values to filter available cluster types.
    id String
    Unique identifier of the cluster type.

    getDbaasDatastoreTypeV2 Result

    The following output properties are available:

    DatastoreTypes List<GetDbaasDatastoreTypeV2DatastoreType>
    List of available cluster types.
    Id string
    Unique identifier of the cluster type.
    ProjectId string
    Region string
    Filters List<GetDbaasDatastoreTypeV2Filter>
    DatastoreTypes []GetDbaasDatastoreTypeV2DatastoreType
    List of available cluster types.
    Id string
    Unique identifier of the cluster type.
    ProjectId string
    Region string
    Filters []GetDbaasDatastoreTypeV2Filter
    datastore_types list(object)
    List of available cluster types.
    id string
    Unique identifier of the cluster type.
    project_id string
    region string
    filters list(object)
    datastoreTypes List<GetDbaasDatastoreTypeV2DatastoreType>
    List of available cluster types.
    id String
    Unique identifier of the cluster type.
    projectId String
    region String
    filters List<GetDbaasDatastoreTypeV2Filter>
    datastoreTypes GetDbaasDatastoreTypeV2DatastoreType[]
    List of available cluster types.
    id string
    Unique identifier of the cluster type.
    projectId string
    region string
    filters GetDbaasDatastoreTypeV2Filter[]
    datastore_types Sequence[GetDbaasDatastoreTypeV2DatastoreType]
    List of available cluster types.
    id str
    Unique identifier of the cluster type.
    project_id str
    region str
    filters Sequence[GetDbaasDatastoreTypeV2Filter]
    datastoreTypes List<Property Map>
    List of available cluster types.
    id String
    Unique identifier of the cluster type.
    projectId String
    region String
    filters List<Property Map>

    Supporting Types

    GetDbaasDatastoreTypeV2DatastoreType

    Engine string
    Engine of the cluster type.
    Id string
    Unique identifier of the cluster type.
    Version string
    Version of the cluster type.
    Engine string
    Engine of the cluster type.
    Id string
    Unique identifier of the cluster type.
    Version string
    Version of the cluster type.
    engine string
    Engine of the cluster type.
    id string
    Unique identifier of the cluster type.
    version string
    Version of the cluster type.
    engine String
    Engine of the cluster type.
    id String
    Unique identifier of the cluster type.
    version String
    Version of the cluster type.
    engine string
    Engine of the cluster type.
    id string
    Unique identifier of the cluster type.
    version string
    Version of the cluster type.
    engine str
    Engine of the cluster type.
    id str
    Unique identifier of the cluster type.
    version str
    Version of the cluster type.
    engine String
    Engine of the cluster type.
    id String
    Unique identifier of the cluster type.
    version String
    Version of the cluster type.

    GetDbaasDatastoreTypeV2Filter

    Engine string
    Engine of the cluster type to search. Available values: clickhouse, kafka, mysql, mysql_native, postgresql, redis.
    Version string
    Version of the cluster type to search.
    Engine string
    Engine of the cluster type to search. Available values: clickhouse, kafka, mysql, mysql_native, postgresql, redis.
    Version string
    Version of the cluster type to search.
    engine string
    Engine of the cluster type to search. Available values: clickhouse, kafka, mysql, mysql_native, postgresql, redis.
    version string
    Version of the cluster type to search.
    engine String
    Engine of the cluster type to search. Available values: clickhouse, kafka, mysql, mysql_native, postgresql, redis.
    version String
    Version of the cluster type to search.
    engine string
    Engine of the cluster type to search. Available values: clickhouse, kafka, mysql, mysql_native, postgresql, redis.
    version string
    Version of the cluster type to search.
    engine str
    Engine of the cluster type to search. Available values: clickhouse, kafka, mysql, mysql_native, postgresql, redis.
    version str
    Version of the cluster type to search.
    engine String
    Engine of the cluster type to search. Available values: clickhouse, kafka, mysql, mysql_native, postgresql, redis.
    version String
    Version of the cluster type to search.

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel
    Viewing docs for selectel 9.4.1
    published on Friday, Oct 23, 2026 by selectel

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial