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

    Provides a list of flavors available in Managed Databases using public API v2. Learn more about available configurations for ClickHouse.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const flavor = selectel.getDbaasFlavorV2({
        projectId: project1.id,
        region: "ru-3",
        filters: [{
            datastoreTypeId: dt.datastoreTypes[0].id,
            allowedRole: "KEEPER",
            flSize: "STANDARD",
        }],
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    flavor = selectel.get_dbaas_flavor_v2(project_id=project1["id"],
        region="ru-3",
        filters=[{
            "datastore_type_id": dt["datastoreTypes"][0]["id"],
            "allowed_role": "KEEPER",
            "fl_size": "STANDARD",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v8/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.GetDbaasFlavorV2(ctx, &selectel.GetDbaasFlavorV2Args{
    			ProjectId: project1.Id,
    			Region:    "ru-3",
    			Filters: []selectel.GetDbaasFlavorV2Filter{
    				{
    					DatastoreTypeId: pulumi.StringRef(dt.DatastoreTypes[0].Id),
    					AllowedRole:     pulumi.StringRef("KEEPER"),
    					FlSize:          pulumi.StringRef("STANDARD"),
    				},
    			},
    		}, 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 flavor = Selectel.GetDbaasFlavorV2.Invoke(new()
        {
            ProjectId = project1.Id,
            Region = "ru-3",
            Filters = new[]
            {
                new Selectel.Inputs.GetDbaasFlavorV2FilterInputArgs
                {
                    DatastoreTypeId = dt.DatastoreTypes[0].Id,
                    AllowedRole = "KEEPER",
                    FlSize = "STANDARD",
                },
            },
        });
    
    });
    
    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.GetDbaasFlavorV2Args;
    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 flavor = SelectelFunctions.getDbaasFlavorV2(GetDbaasFlavorV2Args.builder()
                .projectId(project1.id())
                .region("ru-3")
                .filters(GetDbaasFlavorV2FilterArgs.builder()
                    .datastoreTypeId(dt.datastoreTypes()[0].id())
                    .allowedRole("KEEPER")
                    .flSize("STANDARD")
                    .build())
                .build());
    
        }
    }
    
    variables:
      flavor:
        fn::invoke:
          function: selectel:getDbaasFlavorV2
          arguments:
            projectId: ${project1.id}
            region: ru-3
            filters:
              - datastoreTypeId: ${dt.datastoreTypes[0].id}
                allowedRole: KEEPER
                flSize: STANDARD
    
    Example coming soon!
    

    Using getDbaasFlavorV2

    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 getDbaasFlavorV2(args: GetDbaasFlavorV2Args, opts?: InvokeOptions): Promise<GetDbaasFlavorV2Result>
    function getDbaasFlavorV2Output(args: GetDbaasFlavorV2OutputArgs, opts?: InvokeOutputOptions): Output<GetDbaasFlavorV2Result>
    def get_dbaas_flavor_v2(filters: Optional[Sequence[GetDbaasFlavorV2Filter]] = None,
                            id: Optional[str] = None,
                            project_id: Optional[str] = None,
                            region: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetDbaasFlavorV2Result
    def get_dbaas_flavor_v2_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetDbaasFlavorV2FilterArgs]]]] = 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[GetDbaasFlavorV2Result]
    func GetDbaasFlavorV2(ctx *Context, args *GetDbaasFlavorV2Args, opts ...InvokeOption) (*GetDbaasFlavorV2Result, error)
    func GetDbaasFlavorV2Output(ctx *Context, args *GetDbaasFlavorV2OutputArgs, opts ...InvokeOption) GetDbaasFlavorV2ResultOutput

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

    public static class GetDbaasFlavorV2 
    {
        public static Task<GetDbaasFlavorV2Result> InvokeAsync(GetDbaasFlavorV2Args args, InvokeOptions? opts = null)
        public static Output<GetDbaasFlavorV2Result> Invoke(GetDbaasFlavorV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetDbaasFlavorV2Result> Invoke(GetDbaasFlavorV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetDbaasFlavorV2Result> getDbaasFlavorV2(GetDbaasFlavorV2Args args, InvokeOptions options)
    public static Output<GetDbaasFlavorV2Result> getDbaasFlavorV2(GetDbaasFlavorV2Args args, InvokeOptions options)
    public static Output<GetDbaasFlavorV2Result> getDbaasFlavorV2(GetDbaasFlavorV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: selectel:index/getDbaasFlavorV2:getDbaasFlavorV2
      arguments:
        # arguments dictionary
    data "selectel_get_dbaas_flavor_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<GetDbaasFlavorV2Filter>
    Values to filter available flavors.
    Id string
    Unique identifier of the flavor.
    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 []GetDbaasFlavorV2Filter
    Values to filter available flavors.
    Id string
    Unique identifier of the flavor.
    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 flavors.
    id string
    Unique identifier of the flavor.
    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<GetDbaasFlavorV2Filter>
    Values to filter available flavors.
    id String
    Unique identifier of the flavor.
    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 GetDbaasFlavorV2Filter[]
    Values to filter available flavors.
    id string
    Unique identifier of the flavor.
    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[GetDbaasFlavorV2Filter]
    Values to filter available flavors.
    id str
    Unique identifier of the flavor.
    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 flavors.
    id String
    Unique identifier of the flavor.

    getDbaasFlavorV2 Result

    The following output properties are available:

    Flavors List<GetDbaasFlavorV2Flavor>
    List of available flavors.
    Id string
    Unique identifier of the flavor.
    ProjectId string
    Region string
    Filters List<GetDbaasFlavorV2Filter>
    Flavors []GetDbaasFlavorV2Flavor
    List of available flavors.
    Id string
    Unique identifier of the flavor.
    ProjectId string
    Region string
    Filters []GetDbaasFlavorV2Filter
    flavors list(object)
    List of available flavors.
    id string
    Unique identifier of the flavor.
    project_id string
    region string
    filters list(object)
    flavors List<GetDbaasFlavorV2Flavor>
    List of available flavors.
    id String
    Unique identifier of the flavor.
    projectId String
    region String
    filters List<GetDbaasFlavorV2Filter>
    flavors GetDbaasFlavorV2Flavor[]
    List of available flavors.
    id string
    Unique identifier of the flavor.
    projectId string
    region string
    filters GetDbaasFlavorV2Filter[]
    flavors Sequence[GetDbaasFlavorV2Flavor]
    List of available flavors.
    id str
    Unique identifier of the flavor.
    project_id str
    region str
    filters Sequence[GetDbaasFlavorV2Filter]
    flavors List<Property Map>
    List of available flavors.
    id String
    Unique identifier of the flavor.
    projectId String
    region String
    filters List<Property Map>

    Supporting Types

    GetDbaasFlavorV2Filter

    AllowedRole string
    Role that the flavor supports. Available values are DATA and KEEPER. You can use this filter, for example, to find flavors for ClickHouse Keeper nodes.
    DatastoreTypeId string
    Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV2 data source.
    Disk double
    Volume size in GB.
    FlSize string
    Line of flavors. Available values are STANDARD (for the Standard, CPU, and Memory lines) and HIGH_FREQ (for the HighFreq line). Learn more about available configurations for ClickHouse.
    Ram double
    Amount of RAM in MB.
    Vcpus double
    Number of vCPUs.
    AllowedRole string
    Role that the flavor supports. Available values are DATA and KEEPER. You can use this filter, for example, to find flavors for ClickHouse Keeper nodes.
    DatastoreTypeId string
    Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV2 data source.
    Disk float64
    Volume size in GB.
    FlSize string
    Line of flavors. Available values are STANDARD (for the Standard, CPU, and Memory lines) and HIGH_FREQ (for the HighFreq line). Learn more about available configurations for ClickHouse.
    Ram float64
    Amount of RAM in MB.
    Vcpus float64
    Number of vCPUs.
    allowed_role string
    Role that the flavor supports. Available values are DATA and KEEPER. You can use this filter, for example, to find flavors for ClickHouse Keeper nodes.
    datastore_type_id string
    Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV2 data source.
    disk number
    Volume size in GB.
    fl_size string
    Line of flavors. Available values are STANDARD (for the Standard, CPU, and Memory lines) and HIGH_FREQ (for the HighFreq line). Learn more about available configurations for ClickHouse.
    ram number
    Amount of RAM in MB.
    vcpus number
    Number of vCPUs.
    allowedRole String
    Role that the flavor supports. Available values are DATA and KEEPER. You can use this filter, for example, to find flavors for ClickHouse Keeper nodes.
    datastoreTypeId String
    Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV2 data source.
    disk Double
    Volume size in GB.
    flSize String
    Line of flavors. Available values are STANDARD (for the Standard, CPU, and Memory lines) and HIGH_FREQ (for the HighFreq line). Learn more about available configurations for ClickHouse.
    ram Double
    Amount of RAM in MB.
    vcpus Double
    Number of vCPUs.
    allowedRole string
    Role that the flavor supports. Available values are DATA and KEEPER. You can use this filter, for example, to find flavors for ClickHouse Keeper nodes.
    datastoreTypeId string
    Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV2 data source.
    disk number
    Volume size in GB.
    flSize string
    Line of flavors. Available values are STANDARD (for the Standard, CPU, and Memory lines) and HIGH_FREQ (for the HighFreq line). Learn more about available configurations for ClickHouse.
    ram number
    Amount of RAM in MB.
    vcpus number
    Number of vCPUs.
    allowed_role str
    Role that the flavor supports. Available values are DATA and KEEPER. You can use this filter, for example, to find flavors for ClickHouse Keeper nodes.
    datastore_type_id str
    Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV2 data source.
    disk float
    Volume size in GB.
    fl_size str
    Line of flavors. Available values are STANDARD (for the Standard, CPU, and Memory lines) and HIGH_FREQ (for the HighFreq line). Learn more about available configurations for ClickHouse.
    ram float
    Amount of RAM in MB.
    vcpus float
    Number of vCPUs.
    allowedRole String
    Role that the flavor supports. Available values are DATA and KEEPER. You can use this filter, for example, to find flavors for ClickHouse Keeper nodes.
    datastoreTypeId String
    Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV2 data source.
    disk Number
    Volume size in GB.
    flSize String
    Line of flavors. Available values are STANDARD (for the Standard, CPU, and Memory lines) and HIGH_FREQ (for the HighFreq line). Learn more about available configurations for ClickHouse.
    ram Number
    Amount of RAM in MB.
    vcpus Number
    Number of vCPUs.

    GetDbaasFlavorV2Flavor

    AllowedRoles List<string>
    List of roles that the flavor supports.
    DatastoreTypeIds List<string>
    List of cluster types that support this flavor.
    Disk double
    Volume size in GB.
    FlSize string
    Line of flavors.
    Id string
    Unique identifier of the flavor.
    Ram double
    Amount of RAM in MB.
    Vcpus double
    Number of vCPUs.
    AllowedRoles []string
    List of roles that the flavor supports.
    DatastoreTypeIds []string
    List of cluster types that support this flavor.
    Disk float64
    Volume size in GB.
    FlSize string
    Line of flavors.
    Id string
    Unique identifier of the flavor.
    Ram float64
    Amount of RAM in MB.
    Vcpus float64
    Number of vCPUs.
    allowed_roles list(string)
    List of roles that the flavor supports.
    datastore_type_ids list(string)
    List of cluster types that support this flavor.
    disk number
    Volume size in GB.
    fl_size string
    Line of flavors.
    id string
    Unique identifier of the flavor.
    ram number
    Amount of RAM in MB.
    vcpus number
    Number of vCPUs.
    allowedRoles List<String>
    List of roles that the flavor supports.
    datastoreTypeIds List<String>
    List of cluster types that support this flavor.
    disk Double
    Volume size in GB.
    flSize String
    Line of flavors.
    id String
    Unique identifier of the flavor.
    ram Double
    Amount of RAM in MB.
    vcpus Double
    Number of vCPUs.
    allowedRoles string[]
    List of roles that the flavor supports.
    datastoreTypeIds string[]
    List of cluster types that support this flavor.
    disk number
    Volume size in GB.
    flSize string
    Line of flavors.
    id string
    Unique identifier of the flavor.
    ram number
    Amount of RAM in MB.
    vcpus number
    Number of vCPUs.
    allowed_roles Sequence[str]
    List of roles that the flavor supports.
    datastore_type_ids Sequence[str]
    List of cluster types that support this flavor.
    disk float
    Volume size in GB.
    fl_size str
    Line of flavors.
    id str
    Unique identifier of the flavor.
    ram float
    Amount of RAM in MB.
    vcpus float
    Number of vCPUs.
    allowedRoles List<String>
    List of roles that the flavor supports.
    datastoreTypeIds List<String>
    List of cluster types that support this flavor.
    disk Number
    Volume size in GB.
    flSize String
    Line of flavors.
    id String
    Unique identifier of the flavor.
    ram Number
    Amount of RAM in MB.
    vcpus Number
    Number of vCPUs.

    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 8.6.0
    published on Friday, Oct 2, 2026 by selectel

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial