1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getRdsFlavorsV3
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.getRdsFlavorsV3

Explore with Pulumi AI

opentelekomcloud 1.36.35 published on Monday, Apr 14, 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",
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

flavor = opentelekomcloud.get_rds_flavors_v3(db_type="PostgreSQL",
    db_version="16",
    instance_mode="ha")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  flavor:
    fn::invoke:
      function: opentelekomcloud:getRdsFlavorsV3
      arguments:
        dbType: PostgreSQL
        dbVersion: '16'
        instanceMode: ha
Copy

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>
Copy
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]
Copy
func GetRdsFlavorsV3(ctx *Context, args *GetRdsFlavorsV3Args, opts ...InvokeOption) (*GetRdsFlavorsV3Result, error)
func GetRdsFlavorsV3Output(ctx *Context, args *GetRdsFlavorsV3OutputArgs, opts ...InvokeOption) GetRdsFlavorsV3ResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetRdsFlavorsV3Result> getRdsFlavorsV3(GetRdsFlavorsV3Args args, InvokeOptions options)
public static Output<GetRdsFlavorsV3Result> getRdsFlavorsV3(GetRdsFlavorsV3Args args, InvokeOptions options)
Copy
fn::invoke:
  function: opentelekomcloud:index/getRdsFlavorsV3:getRdsFlavorsV3
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DbType This property is required. string
Specifies the DB engine. Possible values are: MySQL, PostgreSQL, SQLServer.
DbVersion This property is required. 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 This property is required. 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 This property is required. string
Specifies the DB engine. Possible values are: MySQL, PostgreSQL, SQLServer.
DbVersion This property is required. 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 This property is required. 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 This property is required. String
Specifies the DB engine. Possible values are: MySQL, PostgreSQL, SQLServer.
dbVersion This property is required. 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 This property is required. 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 This property is required. string
Specifies the DB engine. Possible values are: MySQL, PostgreSQL, SQLServer.
dbVersion This property is required. 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 This property is required. 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 This property is required. str
Specifies the DB engine. Possible values are: MySQL, PostgreSQL, SQLServer.
db_version This property is required. 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 This property is required. 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 This property is required. String
Specifies the DB engine. Possible values are: MySQL, PostgreSQL, SQLServer.
dbVersion This property is required. 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 This property is required. 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 This property is required. Dictionary<string, string>
Indicates the status of the AZ to which the DB instance specifications belong.
Memory This property is required. double
Indicates the memory size in GB.
Mode This property is required. string
Indicates the DB instance type.
Name This property is required. string
The name of the rds flavor.
Vcpus This property is required. string
Indicates the CPU size.
AzStatus This property is required. map[string]string
Indicates the status of the AZ to which the DB instance specifications belong.
Memory This property is required. float64
Indicates the memory size in GB.
Mode This property is required. string
Indicates the DB instance type.
Name This property is required. string
The name of the rds flavor.
Vcpus This property is required. string
Indicates the CPU size.
azStatus This property is required. Map<String,String>
Indicates the status of the AZ to which the DB instance specifications belong.
memory This property is required. Double
Indicates the memory size in GB.
mode This property is required. String
Indicates the DB instance type.
name This property is required. String
The name of the rds flavor.
vcpus This property is required. String
Indicates the CPU size.
azStatus This property is required. {[key: string]: string}
Indicates the status of the AZ to which the DB instance specifications belong.
memory This property is required. number
Indicates the memory size in GB.
mode This property is required. string
Indicates the DB instance type.
name This property is required. string
The name of the rds flavor.
vcpus This property is required. string
Indicates the CPU size.
az_status This property is required. Mapping[str, str]
Indicates the status of the AZ to which the DB instance specifications belong.
memory This property is required. float
Indicates the memory size in GB.
mode This property is required. str
Indicates the DB instance type.
name This property is required. str
The name of the rds flavor.
vcpus This property is required. str
Indicates the CPU size.
azStatus This property is required. Map<String>
Indicates the status of the AZ to which the DB instance specifications belong.
memory This property is required. Number
Indicates the memory size in GB.
mode This property is required. String
Indicates the DB instance type.
name This property is required. String
The name of the rds flavor.
vcpus This property is required. 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 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud