1. Registry
  2. Packages
  3. Ionoscloud
  4. API Docs
  5. dbaas
  6. getMariaDBBackupsV2
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.getMariaDBBackupsV2 data source can be used to retrieve information about existing MariaDB V2 backups, with an optional cluster ID filter.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const all = ionoscloud.dbaas.getMariaDBBackupsV2({
        location: "de/txl",
    });
    const forCluster = ionoscloud.dbaas.getMariaDBBackupsV2({
        location: "de/txl",
        clusterId: "example-id",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    all = ionoscloud.dbaas.get_maria_db_backups_v2(location="de/txl")
    for_cluster = ionoscloud.dbaas.get_maria_db_backups_v2(location="de/txl",
        cluster_id="example-id")
    
    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.GetMariaDBBackupsV2(ctx, &dbaas.GetMariaDBBackupsV2Args{
    			Location: "de/txl",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = dbaas.GetMariaDBBackupsV2(ctx, &dbaas.GetMariaDBBackupsV2Args{
    			Location:  "de/txl",
    			ClusterId: pulumi.StringRef("example-id"),
    		}, 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 all = Ionoscloud.Dbaas.GetMariaDBBackupsV2.Invoke(new()
        {
            Location = "de/txl",
        });
    
        var forCluster = Ionoscloud.Dbaas.GetMariaDBBackupsV2.Invoke(new()
        {
            Location = "de/txl",
            ClusterId = "example-id",
        });
    
    });
    
    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.GetMariaDBBackupsV2Args;
    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 all = DbaasFunctions.getMariaDBBackupsV2(GetMariaDBBackupsV2Args.builder()
                .location("de/txl")
                .build());
    
            final var forCluster = DbaasFunctions.getMariaDBBackupsV2(GetMariaDBBackupsV2Args.builder()
                .location("de/txl")
                .clusterId("example-id")
                .build());
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: ionoscloud:dbaas:getMariaDBBackupsV2
          arguments:
            location: de/txl
      forCluster:
        fn::invoke:
          function: ionoscloud:dbaas:getMariaDBBackupsV2
          arguments:
            location: de/txl
            clusterId: example-id
    
    pulumi {
      required_providers {
        ionoscloud = {
          source = "pulumi/ionoscloud"
        }
      }
    }
    
    data "ionoscloud_dbaas_getmariadbbackupsv2" "all" {
      location = "de/txl"
    }
    data "ionoscloud_dbaas_getmariadbbackupsv2" "forCluster" {
      location   = "de/txl"
      cluster_id = "example-id"
    }
    

    Using getMariaDBBackupsV2

    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 getMariaDBBackupsV2(args: GetMariaDBBackupsV2Args, opts?: InvokeOptions): Promise<GetMariaDBBackupsV2Result>
    function getMariaDBBackupsV2Output(args: GetMariaDBBackupsV2OutputArgs, opts?: InvokeOutputOptions): Output<GetMariaDBBackupsV2Result>
    def get_maria_db_backups_v2(cluster_id: Optional[str] = None,
                                location: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetMariaDBBackupsV2Result
    def get_maria_db_backups_v2_output(cluster_id: pulumi.Input[Optional[str]] = None,
                                location: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOutputOptions] = None) -> Output[GetMariaDBBackupsV2Result]
    func GetMariaDBBackupsV2(ctx *Context, args *GetMariaDBBackupsV2Args, opts ...InvokeOption) (*GetMariaDBBackupsV2Result, error)
    func GetMariaDBBackupsV2Output(ctx *Context, args *GetMariaDBBackupsV2OutputArgs, opts ...InvokeOption) GetMariaDBBackupsV2ResultOutput

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

    public static class GetMariaDBBackupsV2 
    {
        public static Task<GetMariaDBBackupsV2Result> InvokeAsync(GetMariaDBBackupsV2Args args, InvokeOptions? opts = null)
        public static Output<GetMariaDBBackupsV2Result> Invoke(GetMariaDBBackupsV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetMariaDBBackupsV2Result> Invoke(GetMariaDBBackupsV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetMariaDBBackupsV2Result> getMariaDBBackupsV2(GetMariaDBBackupsV2Args args, InvokeOptions options)
    public static Output<GetMariaDBBackupsV2Result> getMariaDBBackupsV2(GetMariaDBBackupsV2Args args, InvokeOptions options)
    public static Output<GetMariaDBBackupsV2Result> getMariaDBBackupsV2(GetMariaDBBackupsV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: ionoscloud:dbaas/getMariaDBBackupsV2:getMariaDBBackupsV2
      arguments:
        # arguments dictionary
    data "ionoscloud_dbaas_get_maria_d_b_backups_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.
    ClusterId string
    [string] Filter backups by the cluster they belong to.
    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.
    ClusterId string
    [string] Filter backups by the cluster they belong to.
    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.
    cluster_id string
    [string] Filter backups by the cluster they belong to.
    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.
    clusterId String
    [string] Filter backups by the cluster they belong to.
    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.
    clusterId string
    [string] Filter backups by the cluster they belong to.
    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.
    cluster_id str
    [string] Filter backups by the cluster they belong to.
    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.
    clusterId String
    [string] Filter backups by the cluster they belong to.

    getMariaDBBackupsV2 Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<Ionoscloud.GetMariaDBBackupsV2Item>
    List of backups. Each item includes:
    Location string
    The Object Storage location where the backup is stored.
    ClusterId string
    The ID of the cluster this backup belongs to.
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetMariaDBBackupsV2Item
    List of backups. Each item includes:
    Location string
    The Object Storage location where the backup is stored.
    ClusterId string
    The ID of the cluster this backup belongs to.
    id string
    The provider-assigned unique ID for this managed resource.
    items list(object)
    List of backups. Each item includes:
    location string
    The Object Storage location where the backup is stored.
    cluster_id string
    The ID of the cluster this backup belongs to.
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetMariaDBBackupsV2Item>
    List of backups. Each item includes:
    location String
    The Object Storage location where the backup is stored.
    clusterId String
    The ID of the cluster this backup belongs to.
    id string
    The provider-assigned unique ID for this managed resource.
    items GetMariaDBBackupsV2Item[]
    List of backups. Each item includes:
    location string
    The Object Storage location where the backup is stored.
    clusterId string
    The ID of the cluster this backup belongs to.
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetMariaDBBackupsV2Item]
    List of backups. Each item includes:
    location str
    The Object Storage location where the backup is stored.
    cluster_id str
    The ID of the cluster this backup belongs to.
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    List of backups. Each item includes:
    location String
    The Object Storage location where the backup is stored.
    clusterId String
    The ID of the cluster this backup belongs to.

    Supporting Types

    GetMariaDBBackupsV2Item

    ClusterId string
    [string] Filter backups by the cluster they belong to.
    ClusterName string
    The name of the cluster this backup belongs to.
    EarliestRecoveryTargetTime string
    The earliest point in time to which the cluster can be restored from this backup (RFC3339).
    Id string
    The ID (UUID) of the backup.
    LatestRecoveryTargetTime string
    The latest point in time to which the cluster can be restored (RFC3339). Empty if the backup can be restored up to the current time.
    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.
    MariadbClusterVersion string
    The MariaDB version of the cluster at backup time.
    ClusterId string
    [string] Filter backups by the cluster they belong to.
    ClusterName string
    The name of the cluster this backup belongs to.
    EarliestRecoveryTargetTime string
    The earliest point in time to which the cluster can be restored from this backup (RFC3339).
    Id string
    The ID (UUID) of the backup.
    LatestRecoveryTargetTime string
    The latest point in time to which the cluster can be restored (RFC3339). Empty if the backup can be restored up to the current time.
    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.
    MariadbClusterVersion string
    The MariaDB version of the cluster at backup time.
    cluster_id string
    [string] Filter backups by the cluster they belong to.
    cluster_name string
    The name of the cluster this backup belongs to.
    earliest_recovery_target_time string
    The earliest point in time to which the cluster can be restored from this backup (RFC3339).
    id string
    The ID (UUID) of the backup.
    latest_recovery_target_time string
    The latest point in time to which the cluster can be restored (RFC3339). Empty if the backup can be restored up to the current time.
    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.
    mariadb_cluster_version string
    The MariaDB version of the cluster at backup time.
    clusterId String
    [string] Filter backups by the cluster they belong to.
    clusterName String
    The name of the cluster this backup belongs to.
    earliestRecoveryTargetTime String
    The earliest point in time to which the cluster can be restored from this backup (RFC3339).
    id String
    The ID (UUID) of the backup.
    latestRecoveryTargetTime String
    The latest point in time to which the cluster can be restored (RFC3339). Empty if the backup can be restored up to the current time.
    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.
    mariadbClusterVersion String
    The MariaDB version of the cluster at backup time.
    clusterId string
    [string] Filter backups by the cluster they belong to.
    clusterName string
    The name of the cluster this backup belongs to.
    earliestRecoveryTargetTime string
    The earliest point in time to which the cluster can be restored from this backup (RFC3339).
    id string
    The ID (UUID) of the backup.
    latestRecoveryTargetTime string
    The latest point in time to which the cluster can be restored (RFC3339). Empty if the backup can be restored up to the current time.
    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.
    mariadbClusterVersion string
    The MariaDB version of the cluster at backup time.
    cluster_id str
    [string] Filter backups by the cluster they belong to.
    cluster_name str
    The name of the cluster this backup belongs to.
    earliest_recovery_target_time str
    The earliest point in time to which the cluster can be restored from this backup (RFC3339).
    id str
    The ID (UUID) of the backup.
    latest_recovery_target_time str
    The latest point in time to which the cluster can be restored (RFC3339). Empty if the backup can be restored up to the current time.
    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.
    mariadb_cluster_version str
    The MariaDB version of the cluster at backup time.
    clusterId String
    [string] Filter backups by the cluster they belong to.
    clusterName String
    The name of the cluster this backup belongs to.
    earliestRecoveryTargetTime String
    The earliest point in time to which the cluster can be restored from this backup (RFC3339).
    id String
    The ID (UUID) of the backup.
    latestRecoveryTargetTime String
    The latest point in time to which the cluster can be restored (RFC3339). Empty if the backup can be restored up to the current time.
    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.
    mariadbClusterVersion String
    The MariaDB version of the cluster at backup time.

    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