1. Registry
  2. Packages
  3. Ionoscloud
  4. API Docs
  5. dbaas
  6. getMariaDBVersionsV2
Viewing docs for IonosCloud v0.3.3
published on Tuesday, Sep 15, 2026 by ionos-cloud
ionoscloud logo
Viewing docs for IonosCloud v0.3.3
published on Tuesday, Sep 15, 2026 by ionos-cloud

    The ionoscloud.dbaas.getMariaDBVersionsV2 data source can be used to retrieve the supported MariaDB V2 versions in a given location.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const example = ionoscloud.dbaas.getMariaDBVersionsV2({
        location: "de/txl",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.dbaas.get_maria_db_versions_v2(location="de/txl")
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/dbaas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dbaas.GetMariaDBVersionsV2(ctx, &dbaas.GetMariaDBVersionsV2Args{
    			Location: "de/txl",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ionoscloud.Dbaas.GetMariaDBVersionsV2.Invoke(new()
        {
            Location = "de/txl",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.dbaas.DbaasFunctions;
    import com.pulumi.ionoscloud.dbaas.inputs.GetMariaDBVersionsV2Args;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 example = DbaasFunctions.getMariaDBVersionsV2(GetMariaDBVersionsV2Args.builder()
                .location("de/txl")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:dbaas:getMariaDBVersionsV2
          arguments:
            location: de/txl
    
    pulumi {
      required_providers {
        ionoscloud = {
          source = "pulumi/ionoscloud"
        }
      }
    }
    
    data "ionoscloud_dbaas_getmariadbversionsv2" "example" {
      location = "de/txl"
    }
    

    Using getMariaDBVersionsV2

    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 getMariaDBVersionsV2(args: GetMariaDBVersionsV2Args, opts?: InvokeOptions): Promise<GetMariaDBVersionsV2Result>
    function getMariaDBVersionsV2Output(args: GetMariaDBVersionsV2OutputArgs, opts?: InvokeOutputOptions): Output<GetMariaDBVersionsV2Result>
    def get_maria_db_versions_v2(location: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetMariaDBVersionsV2Result
    def get_maria_db_versions_v2_output(location: pulumi.Input[Optional[str]] = None,
                                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetMariaDBVersionsV2Result]
    func GetMariaDBVersionsV2(ctx *Context, args *GetMariaDBVersionsV2Args, opts ...InvokeOption) (*GetMariaDBVersionsV2Result, error)
    func GetMariaDBVersionsV2Output(ctx *Context, args *GetMariaDBVersionsV2OutputArgs, opts ...InvokeOption) GetMariaDBVersionsV2ResultOutput

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

    public static class GetMariaDBVersionsV2 
    {
        public static Task<GetMariaDBVersionsV2Result> InvokeAsync(GetMariaDBVersionsV2Args args, InvokeOptions? opts = null)
        public static Output<GetMariaDBVersionsV2Result> Invoke(GetMariaDBVersionsV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetMariaDBVersionsV2Result> Invoke(GetMariaDBVersionsV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetMariaDBVersionsV2Result> getMariaDBVersionsV2(GetMariaDBVersionsV2Args args, InvokeOptions options)
    public static Output<GetMariaDBVersionsV2Result> getMariaDBVersionsV2(GetMariaDBVersionsV2Args args, InvokeOptions options)
    public static Output<GetMariaDBVersionsV2Result> getMariaDBVersionsV2(GetMariaDBVersionsV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: ionoscloud:dbaas/getMariaDBVersionsV2:getMariaDBVersionsV2
      arguments:
        # arguments dictionary
    data "ionoscloud_dbaas_get_maria_d_b_versions_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    Location string
    [string] The location to query. Available locations: de/fra, de/fra/1, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    Location string
    [string] The location to query. Available locations: de/fra, de/fra/1, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    location string
    [string] The location to query. Available locations: de/fra, de/fra/1, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    location String
    [string] The location to query. Available locations: de/fra, de/fra/1, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    location string
    [string] The location to query. Available locations: de/fra, de/fra/1, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    location str
    [string] The location to query. Available locations: de/fra, de/fra/1, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    location String
    [string] The location to query. Available locations: de/fra, de/fra/1, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.

    getMariaDBVersionsV2 Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<Ionoscloud.GetMariaDBVersionsV2Item>
    List of supported versions. Each item includes:
    Location string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetMariaDBVersionsV2Item
    List of supported versions. Each item includes:
    Location string
    id string
    The provider-assigned unique ID for this managed resource.
    items list(object)
    List of supported versions. Each item includes:
    location string
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetMariaDBVersionsV2Item>
    List of supported versions. Each item includes:
    location String
    id string
    The provider-assigned unique ID for this managed resource.
    items GetMariaDBVersionsV2Item[]
    List of supported versions. Each item includes:
    location string
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetMariaDBVersionsV2Item]
    List of supported versions. Each item includes:
    location str
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    List of supported versions. Each item includes:
    location String

    Supporting Types

    GetMariaDBVersionsV2Item

    CanUpgradeTos List<string>
    List of versions that a cluster running this version can be upgraded to.
    Comment string
    Additional human-readable information about the version lifecycle.
    Id string
    The ID (UUID) of the version.
    Status string
    The support status of the version.
    Version string
    The MariaDB version string (e.g. 11.4).
    CanUpgradeTos []string
    List of versions that a cluster running this version can be upgraded to.
    Comment string
    Additional human-readable information about the version lifecycle.
    Id string
    The ID (UUID) of the version.
    Status string
    The support status of the version.
    Version string
    The MariaDB version string (e.g. 11.4).
    can_upgrade_tos list(string)
    List of versions that a cluster running this version can be upgraded to.
    comment string
    Additional human-readable information about the version lifecycle.
    id string
    The ID (UUID) of the version.
    status string
    The support status of the version.
    version string
    The MariaDB version string (e.g. 11.4).
    canUpgradeTos List<String>
    List of versions that a cluster running this version can be upgraded to.
    comment String
    Additional human-readable information about the version lifecycle.
    id String
    The ID (UUID) of the version.
    status String
    The support status of the version.
    version String
    The MariaDB version string (e.g. 11.4).
    canUpgradeTos string[]
    List of versions that a cluster running this version can be upgraded to.
    comment string
    Additional human-readable information about the version lifecycle.
    id string
    The ID (UUID) of the version.
    status string
    The support status of the version.
    version string
    The MariaDB version string (e.g. 11.4).
    can_upgrade_tos Sequence[str]
    List of versions that a cluster running this version can be upgraded to.
    comment str
    Additional human-readable information about the version lifecycle.
    id str
    The ID (UUID) of the version.
    status str
    The support status of the version.
    version str
    The MariaDB version string (e.g. 11.4).
    canUpgradeTos List<String>
    List of versions that a cluster running this version can be upgraded to.
    comment String
    Additional human-readable information about the version lifecycle.
    id String
    The ID (UUID) of the version.
    status String
    The support status of the version.
    version String
    The MariaDB version string (e.g. 11.4).

    Package Details

    Repository
    ionoscloud ionos-cloud/pulumi-ionoscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    Viewing docs for IonosCloud v0.3.3
    published on Tuesday, Sep 15, 2026 by ionos-cloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial