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

opentelekomcloud.getRdsVersionsV3

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 versions you can get at documentation portal

    Use this data source to get available OpenTelekomCloud rds versions.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const versions = opentelekomcloud.getRdsVersionsV3({
        databaseName: "mysql",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    versions = opentelekomcloud.get_rds_versions_v3(database_name="mysql")
    
    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.GetRdsVersionsV3(ctx, &opentelekomcloud.GetRdsVersionsV3Args{
    			DatabaseName: "mysql",
    		}, 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 versions = Opentelekomcloud.GetRdsVersionsV3.Invoke(new()
        {
            DatabaseName = "mysql",
        });
    
    });
    
    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.GetRdsVersionsV3Args;
    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 versions = OpentelekomcloudFunctions.getRdsVersionsV3(GetRdsVersionsV3Args.builder()
                .databaseName("mysql")
                .build());
    
        }
    }
    
    variables:
      versions:
        fn::invoke:
          function: opentelekomcloud:getRdsVersionsV3
          arguments:
            databaseName: mysql
    

    Using getRdsVersionsV3

    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 getRdsVersionsV3(args: GetRdsVersionsV3Args, opts?: InvokeOptions): Promise<GetRdsVersionsV3Result>
    function getRdsVersionsV3Output(args: GetRdsVersionsV3OutputArgs, opts?: InvokeOptions): Output<GetRdsVersionsV3Result>
    def get_rds_versions_v3(database_name: Optional[str] = None,
                            id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetRdsVersionsV3Result
    def get_rds_versions_v3_output(database_name: Optional[pulumi.Input[str]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetRdsVersionsV3Result]
    func GetRdsVersionsV3(ctx *Context, args *GetRdsVersionsV3Args, opts ...InvokeOption) (*GetRdsVersionsV3Result, error)
    func GetRdsVersionsV3Output(ctx *Context, args *GetRdsVersionsV3OutputArgs, opts ...InvokeOption) GetRdsVersionsV3ResultOutput

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

    public static class GetRdsVersionsV3 
    {
        public static Task<GetRdsVersionsV3Result> InvokeAsync(GetRdsVersionsV3Args args, InvokeOptions? opts = null)
        public static Output<GetRdsVersionsV3Result> Invoke(GetRdsVersionsV3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRdsVersionsV3Result> getRdsVersionsV3(GetRdsVersionsV3Args args, InvokeOptions options)
    public static Output<GetRdsVersionsV3Result> getRdsVersionsV3(GetRdsVersionsV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getRdsVersionsV3:getRdsVersionsV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DatabaseName string
    Specifies the DB engine. Value: MySQL, PostgreSQL, SQLServer. Case-insensitive.
    Id string
    DatabaseName string
    Specifies the DB engine. Value: MySQL, PostgreSQL, SQLServer. Case-insensitive.
    Id string
    databaseName String
    Specifies the DB engine. Value: MySQL, PostgreSQL, SQLServer. Case-insensitive.
    id String
    databaseName string
    Specifies the DB engine. Value: MySQL, PostgreSQL, SQLServer. Case-insensitive.
    id string
    database_name str
    Specifies the DB engine. Value: MySQL, PostgreSQL, SQLServer. Case-insensitive.
    id str
    databaseName String
    Specifies the DB engine. Value: MySQL, PostgreSQL, SQLServer. Case-insensitive.
    id String

    getRdsVersionsV3 Result

    The following output properties are available:

    DatabaseName string
    Id string
    Versions List<string>
    List of version names, sorted by a version (higher to lower). Example: ["16", "14", "14", "13"].
    DatabaseName string
    Id string
    Versions []string
    List of version names, sorted by a version (higher to lower). Example: ["16", "14", "14", "13"].
    databaseName String
    id String
    versions List<String>
    List of version names, sorted by a version (higher to lower). Example: ["16", "14", "14", "13"].
    databaseName string
    id string
    versions string[]
    List of version names, sorted by a version (higher to lower). Example: ["16", "14", "14", "13"].
    database_name str
    id str
    versions Sequence[str]
    List of version names, sorted by a version (higher to lower). Example: ["16", "14", "14", "13"].
    databaseName String
    id String
    versions List<String>
    List of version names, sorted by a version (higher to lower). Example: ["16", "14", "14", "13"].

    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