selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel
selectel.getDbaasFlavorV1
Explore with Pulumi AI
Provides a list of flavors available in Managed Databases. For more information about available configurations, see the official Selectel documentation for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB, MySQL semi-sync, MySQL sync, Redis, and Kafka.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const flavor = selectel.getDbaasFlavorV1({
projectId: selectel_vpc_project_v2.project_1.id,
region: "ru-3",
});
import pulumi
import pulumi_selectel as selectel
flavor = selectel.get_dbaas_flavor_v1(project_id=selectel_vpc_project_v2["project_1"]["id"],
region="ru-3")
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.GetDbaasFlavorV1(ctx, &selectel.GetDbaasFlavorV1Args{
ProjectId: selectel_vpc_project_v2.Project_1.Id,
Region: "ru-3",
}, 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.GetDbaasFlavorV1.Invoke(new()
{
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Region = "ru-3",
});
});
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.GetDbaasFlavorV1Args;
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.getDbaasFlavorV1(GetDbaasFlavorV1Args.builder()
.projectId(selectel_vpc_project_v2.project_1().id())
.region("ru-3")
.build());
}
}
variables:
flavor:
fn::invoke:
function: selectel:getDbaasFlavorV1
arguments:
projectId: ${selectel_vpc_project_v2.project_1.id}
region: ru-3
Using getDbaasFlavorV1
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 getDbaasFlavorV1(args: GetDbaasFlavorV1Args, opts?: InvokeOptions): Promise<GetDbaasFlavorV1Result>
function getDbaasFlavorV1Output(args: GetDbaasFlavorV1OutputArgs, opts?: InvokeOptions): Output<GetDbaasFlavorV1Result>
def get_dbaas_flavor_v1(filters: Optional[Sequence[GetDbaasFlavorV1Filter]] = None,
id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbaasFlavorV1Result
def get_dbaas_flavor_v1_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDbaasFlavorV1FilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbaasFlavorV1Result]
func GetDbaasFlavorV1(ctx *Context, args *GetDbaasFlavorV1Args, opts ...InvokeOption) (*GetDbaasFlavorV1Result, error)
func GetDbaasFlavorV1Output(ctx *Context, args *GetDbaasFlavorV1OutputArgs, opts ...InvokeOption) GetDbaasFlavorV1ResultOutput
> Note: This function is named GetDbaasFlavorV1
in the Go SDK.
public static class GetDbaasFlavorV1
{
public static Task<GetDbaasFlavorV1Result> InvokeAsync(GetDbaasFlavorV1Args args, InvokeOptions? opts = null)
public static Output<GetDbaasFlavorV1Result> Invoke(GetDbaasFlavorV1InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbaasFlavorV1Result> getDbaasFlavorV1(GetDbaasFlavorV1Args args, InvokeOptions options)
public static Output<GetDbaasFlavorV1Result> getDbaasFlavorV1(GetDbaasFlavorV1Args args, InvokeOptions options)
fn::invoke:
function: selectel:index/getDbaasFlavorV1:getDbaasFlavorV1
arguments:
# arguments dictionary
The following arguments are supported:
- 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<Get
Dbaas Flavor V1Filter> - 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
[]Get
Dbaas Flavor V1Filter - 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<Get
Dbaas Flavor V1Filter> - 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
Get
Dbaas Flavor V1Filter[] - 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[Get
Dbaas Flavor V1Filter] - Values to filter available flavors:
- id str
- 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<Property Map>
- Values to filter available flavors:
- id String
- Unique identifier of the flavor.
getDbaasFlavorV1 Result
The following output properties are available:
- Flavors
List<Get
Dbaas Flavor V1Flavor> - List of available flavors.
- Id string
- Unique identifier of the flavor.
- Project
Id string - Region string
- Filters
List<Get
Dbaas Flavor V1Filter>
- Flavors
[]Get
Dbaas Flavor V1Flavor - List of available flavors.
- Id string
- Unique identifier of the flavor.
- Project
Id string - Region string
- Filters
[]Get
Dbaas Flavor V1Filter
- flavors
List<Get
Dbaas Flavor V1Flavor> - List of available flavors.
- id String
- Unique identifier of the flavor.
- project
Id String - region String
- filters
List<Get
Dbaas Flavor V1Filter>
- flavors
Get
Dbaas Flavor V1Flavor[] - List of available flavors.
- id string
- Unique identifier of the flavor.
- project
Id string - region string
- filters
Get
Dbaas Flavor V1Filter[]
- flavors
Sequence[Get
Dbaas Flavor V1Flavor] - List of available flavors.
- id str
- Unique identifier of the flavor.
- project_
id str - region str
- filters
Sequence[Get
Dbaas Flavor V1Filter]
- flavors List<Property Map>
- List of available flavors.
- id String
- Unique identifier of the flavor.
- project
Id String - region String
- filters List<Property Map>
Supporting Types
GetDbaasFlavorV1Filter
- Datastore
Type stringId - Unique identifier of the datastore type.
- Disk double
- Volume size in GB.
- Fl
Size string - Line of flavors. Available values are
standard
(for the Standard, CPU, and Memory lines) andhigh_freq
(for the HighFreq line). Learn more about available lines for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB, MySQL semi-sync, MySQL sync, Redis, and Kafka. - Ram double
- Amount of RAM in MB.
- Vcpus double
- Number of vCPUs.
- Datastore
Type stringId - Unique identifier of the datastore type.
- Disk float64
- Volume size in GB.
- Fl
Size string - Line of flavors. Available values are
standard
(for the Standard, CPU, and Memory lines) andhigh_freq
(for the HighFreq line). Learn more about available lines for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB, MySQL semi-sync, MySQL sync, Redis, and Kafka. - Ram float64
- Amount of RAM in MB.
- Vcpus float64
- Number of vCPUs.
- datastore
Type StringId - Unique identifier of the datastore type.
- disk Double
- Volume size in GB.
- fl
Size String - Line of flavors. Available values are
standard
(for the Standard, CPU, and Memory lines) andhigh_freq
(for the HighFreq line). Learn more about available lines for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB, MySQL semi-sync, MySQL sync, Redis, and Kafka. - ram Double
- Amount of RAM in MB.
- vcpus Double
- Number of vCPUs.
- datastore
Type stringId - Unique identifier of the datastore type.
- disk number
- Volume size in GB.
- fl
Size string - Line of flavors. Available values are
standard
(for the Standard, CPU, and Memory lines) andhigh_freq
(for the HighFreq line). Learn more about available lines for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB, MySQL semi-sync, MySQL sync, Redis, and Kafka. - ram number
- Amount of RAM in MB.
- vcpus number
- Number of vCPUs.
- datastore_
type_ strid - Unique identifier of the datastore type.
- disk float
- Volume size in GB.
- fl_
size str - Line of flavors. Available values are
standard
(for the Standard, CPU, and Memory lines) andhigh_freq
(for the HighFreq line). Learn more about available lines for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB, MySQL semi-sync, MySQL sync, Redis, and Kafka. - ram float
- Amount of RAM in MB.
- vcpus float
- Number of vCPUs.
- datastore
Type StringId - Unique identifier of the datastore type.
- disk Number
- Volume size in GB.
- fl
Size String - Line of flavors. Available values are
standard
(for the Standard, CPU, and Memory lines) andhigh_freq
(for the HighFreq line). Learn more about available lines for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB, MySQL semi-sync, MySQL sync, Redis, and Kafka. - ram Number
- Amount of RAM in MB.
- vcpus Number
- Number of vCPUs.
GetDbaasFlavorV1Flavor
- Datastore
Type List<string>Ids - List of datastore types that support this flavor.
- Description string
- Flavor description.
- Disk double
- Volume size in GB.
- Fl
Size string - Line of flavors.
- Id string
- Unique identifier of the flavor.
- Name string
- Flavor name.
- Ram double
- Amount of RAM in MB.
- Vcpus double
- Number of vCPUs.
- Datastore
Type []stringIds - List of datastore types that support this flavor.
- Description string
- Flavor description.
- Disk float64
- Volume size in GB.
- Fl
Size string - Line of flavors.
- Id string
- Unique identifier of the flavor.
- Name string
- Flavor name.
- Ram float64
- Amount of RAM in MB.
- Vcpus float64
- Number of vCPUs.
- datastore
Type List<String>Ids - List of datastore types that support this flavor.
- description String
- Flavor description.
- disk Double
- Volume size in GB.
- fl
Size String - Line of flavors.
- id String
- Unique identifier of the flavor.
- name String
- Flavor name.
- ram Double
- Amount of RAM in MB.
- vcpus Double
- Number of vCPUs.
- datastore
Type string[]Ids - List of datastore types that support this flavor.
- description string
- Flavor description.
- disk number
- Volume size in GB.
- fl
Size string - Line of flavors.
- id string
- Unique identifier of the flavor.
- name string
- Flavor name.
- ram number
- Amount of RAM in MB.
- vcpus number
- Number of vCPUs.
- datastore_
type_ Sequence[str]ids - List of datastore types that support this flavor.
- description str
- Flavor description.
- disk float
- Volume size in GB.
- fl_
size str - Line of flavors.
- id str
- Unique identifier of the flavor.
- name str
- Flavor name.
- ram float
- Amount of RAM in MB.
- vcpus float
- Number of vCPUs.
- datastore
Type List<String>Ids - List of datastore types that support this flavor.
- description String
- Flavor description.
- disk Number
- Volume size in GB.
- fl
Size String - Line of flavors.
- id String
- Unique identifier of the flavor.
- name String
- Flavor name.
- 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.