1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getRdsFlavorsV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getRdsFlavorsV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for RDSv3 flavor you can get at documentation portal

    Use this data source to get available OpenTelekomCloud RDSv3 flavors.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const flavor = opentelekomcloud.getRdsFlavorsV3({
        dbType: "PostgreSQL",
        dbVersion: "16",
        instanceMode: "ha",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    flavor = opentelekomcloud.get_rds_flavors_v3(db_type="PostgreSQL",
        db_version="16",
        instance_mode="ha")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.GetRdsFlavorsV3(ctx, &opentelekomcloud.GetRdsFlavorsV3Args{
    			DbType:       "PostgreSQL",
    			DbVersion:    "16",
    			InstanceMode: "ha",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var flavor = Opentelekomcloud.GetRdsFlavorsV3.Invoke(new()
        {
            DbType = "PostgreSQL",
            DbVersion = "16",
            InstanceMode = "ha",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetRdsFlavorsV3Args;
    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 = OpentelekomcloudFunctions.getRdsFlavorsV3(GetRdsFlavorsV3Args.builder()
                .dbType("PostgreSQL")
                .dbVersion("16")
                .instanceMode("ha")
                .build());
    
        }
    }
    
    variables:
      flavor:
        fn::invoke:
          function: opentelekomcloud:getRdsFlavorsV3
          arguments:
            dbType: PostgreSQL
            dbVersion: '16'
            instanceMode: ha
    

    Using getRdsFlavorsV3

    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 getRdsFlavorsV3(args: GetRdsFlavorsV3Args, opts?: InvokeOptions): Promise<GetRdsFlavorsV3Result>
    function getRdsFlavorsV3Output(args: GetRdsFlavorsV3OutputArgs, opts?: InvokeOptions): Output<GetRdsFlavorsV3Result>
    def get_rds_flavors_v3(db_type: Optional[str] = None,
                           db_version: Optional[str] = None,
                           id: Optional[str] = None,
                           instance_mode: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetRdsFlavorsV3Result
    def get_rds_flavors_v3_output(db_type: Optional[pulumi.Input[str]] = None,
                           db_version: Optional[pulumi.Input[str]] = None,
                           id: Optional[pulumi.Input[str]] = None,
                           instance_mode: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetRdsFlavorsV3Result]
    func GetRdsFlavorsV3(ctx *Context, args *GetRdsFlavorsV3Args, opts ...InvokeOption) (*GetRdsFlavorsV3Result, error)
    func GetRdsFlavorsV3Output(ctx *Context, args *GetRdsFlavorsV3OutputArgs, opts ...InvokeOption) GetRdsFlavorsV3ResultOutput

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

    public static class GetRdsFlavorsV3 
    {
        public static Task<GetRdsFlavorsV3Result> InvokeAsync(GetRdsFlavorsV3Args args, InvokeOptions? opts = null)
        public static Output<GetRdsFlavorsV3Result> Invoke(GetRdsFlavorsV3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRdsFlavorsV3Result> getRdsFlavorsV3(GetRdsFlavorsV3Args args, InvokeOptions options)
    public static Output<GetRdsFlavorsV3Result> getRdsFlavorsV3(GetRdsFlavorsV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getRdsFlavorsV3:getRdsFlavorsV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DbType string
    Specifies the DB engine. Possible values are: MySQL, PostgreSQL, SQLServer.
    DbVersion string
    Specifies the database version.

    • MySQL: 8.0, 5.7, and 5.6
    • PostgreSQL: 11 through 16
    • Microsoft SQL Server: 2017 (Enterprise/Standard) through 2022 (Enterprise/Standard)
    InstanceMode string
    The mode of instance. Possible values are: ha indicates primary/standby instance, single indicates single instance and replica indicates read-replica instance.
    Id string
    DbType string
    Specifies the DB engine. Possible values are: MySQL, PostgreSQL, SQLServer.
    DbVersion string
    Specifies the database version.

    • MySQL: 8.0, 5.7, and 5.6
    • PostgreSQL: 11 through 16
    • Microsoft SQL Server: 2017 (Enterprise/Standard) through 2022 (Enterprise/Standard)
    InstanceMode string
    The mode of instance. Possible values are: ha indicates primary/standby instance, single indicates single instance and replica indicates read-replica instance.
    Id string
    dbType String
    Specifies the DB engine. Possible values are: MySQL, PostgreSQL, SQLServer.
    dbVersion String
    Specifies the database version.

    • MySQL: 8.0, 5.7, and 5.6
    • PostgreSQL: 11 through 16
    • Microsoft SQL Server: 2017 (Enterprise/Standard) through 2022 (Enterprise/Standard)
    instanceMode String
    The mode of instance. Possible values are: ha indicates primary/standby instance, single indicates single instance and replica indicates read-replica instance.
    id String
    dbType string
    Specifies the DB engine. Possible values are: MySQL, PostgreSQL, SQLServer.
    dbVersion string
    Specifies the database version.

    • MySQL: 8.0, 5.7, and 5.6
    • PostgreSQL: 11 through 16
    • Microsoft SQL Server: 2017 (Enterprise/Standard) through 2022 (Enterprise/Standard)
    instanceMode string
    The mode of instance. Possible values are: ha indicates primary/standby instance, single indicates single instance and replica indicates read-replica instance.
    id string
    db_type str
    Specifies the DB engine. Possible values are: MySQL, PostgreSQL, SQLServer.
    db_version str
    Specifies the database version.

    • MySQL: 8.0, 5.7, and 5.6
    • PostgreSQL: 11 through 16
    • Microsoft SQL Server: 2017 (Enterprise/Standard) through 2022 (Enterprise/Standard)
    instance_mode str
    The mode of instance. Possible values are: ha indicates primary/standby instance, single indicates single instance and replica indicates read-replica instance.
    id str
    dbType String
    Specifies the DB engine. Possible values are: MySQL, PostgreSQL, SQLServer.
    dbVersion String
    Specifies the database version.

    • MySQL: 8.0, 5.7, and 5.6
    • PostgreSQL: 11 through 16
    • Microsoft SQL Server: 2017 (Enterprise/Standard) through 2022 (Enterprise/Standard)
    instanceMode String
    The mode of instance. Possible values are: ha indicates primary/standby instance, single indicates single instance and replica indicates read-replica instance.
    id String

    getRdsFlavorsV3 Result

    The following output properties are available:

    DbType string
    DbVersion string
    Flavors List<GetRdsFlavorsV3Flavor>
    Indicates the flavors information. Structure is documented below.
    Id string
    InstanceMode string
    DbType string
    DbVersion string
    Flavors []GetRdsFlavorsV3Flavor
    Indicates the flavors information. Structure is documented below.
    Id string
    InstanceMode string
    dbType String
    dbVersion String
    flavors List<GetRdsFlavorsV3Flavor>
    Indicates the flavors information. Structure is documented below.
    id String
    instanceMode String
    dbType string
    dbVersion string
    flavors GetRdsFlavorsV3Flavor[]
    Indicates the flavors information. Structure is documented below.
    id string
    instanceMode string
    db_type str
    db_version str
    flavors Sequence[GetRdsFlavorsV3Flavor]
    Indicates the flavors information. Structure is documented below.
    id str
    instance_mode str
    dbType String
    dbVersion String
    flavors List<Property Map>
    Indicates the flavors information. Structure is documented below.
    id String
    instanceMode String

    Supporting Types

    GetRdsFlavorsV3Flavor

    AzStatus Dictionary<string, string>
    Indicates the status of the AZ to which the DB instance specifications belong.
    Memory double
    Indicates the memory size in GB.
    Mode string
    Indicates the DB instance type.
    Name string
    The name of the rds flavor.
    Vcpus string
    Indicates the CPU size.
    AzStatus map[string]string
    Indicates the status of the AZ to which the DB instance specifications belong.
    Memory float64
    Indicates the memory size in GB.
    Mode string
    Indicates the DB instance type.
    Name string
    The name of the rds flavor.
    Vcpus string
    Indicates the CPU size.
    azStatus Map<String,String>
    Indicates the status of the AZ to which the DB instance specifications belong.
    memory Double
    Indicates the memory size in GB.
    mode String
    Indicates the DB instance type.
    name String
    The name of the rds flavor.
    vcpus String
    Indicates the CPU size.
    azStatus {[key: string]: string}
    Indicates the status of the AZ to which the DB instance specifications belong.
    memory number
    Indicates the memory size in GB.
    mode string
    Indicates the DB instance type.
    name string
    The name of the rds flavor.
    vcpus string
    Indicates the CPU size.
    az_status Mapping[str, str]
    Indicates the status of the AZ to which the DB instance specifications belong.
    memory float
    Indicates the memory size in GB.
    mode str
    Indicates the DB instance type.
    name str
    The name of the rds flavor.
    vcpus str
    Indicates the CPU size.
    azStatus Map<String>
    Indicates the status of the AZ to which the DB instance specifications belong.
    memory Number
    Indicates the memory size in GB.
    mode String
    Indicates the DB instance type.
    name String
    The name of the rds flavor.
    vcpus String
    Indicates the CPU size.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud