ionoscloud.dbaas.getMariaDBBackups
Explore with Pulumi AI
The DBaaS MariaDB Backups data source can be used to search for and return existing DBaaS MariaDB Backups for a specific cluster.
Example Usage
Get all backups for a specific cluster
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.dbaas.getMariaDBBackups({
clusterId: "cluster_id",
location: "de/txl",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.dbaas.get_maria_db_backups(cluster_id="cluster_id",
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.GetMariaDBBackups(ctx, &dbaas.GetMariaDBBackupsArgs{
ClusterId: pulumi.StringRef("cluster_id"),
Location: pulumi.StringRef("de/txl"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.Dbaas.GetMariaDBBackups.Invoke(new()
{
ClusterId = "cluster_id",
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.GetMariaDBBackupsArgs;
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 example = DbaasFunctions.getMariaDBBackups(GetMariaDBBackupsArgs.builder()
.clusterId("cluster_id")
.location("de/txl")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:dbaas:getMariaDBBackups
arguments:
clusterId: cluster_id
location: de/txl
Get a specific backup
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.dbaas.getMariaDBBackups({
backupId: "backup_id",
location: "de/txl",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.dbaas.get_maria_db_backups(backup_id="backup_id",
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.GetMariaDBBackups(ctx, &dbaas.GetMariaDBBackupsArgs{
BackupId: pulumi.StringRef("backup_id"),
Location: pulumi.StringRef("de/txl"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.Dbaas.GetMariaDBBackups.Invoke(new()
{
BackupId = "backup_id",
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.GetMariaDBBackupsArgs;
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 example = DbaasFunctions.getMariaDBBackups(GetMariaDBBackupsArgs.builder()
.backupId("backup_id")
.location("de/txl")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:dbaas:getMariaDBBackups
arguments:
backupId: backup_id
location: de/txl
Using getMariaDBBackups
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 getMariaDBBackups(args: GetMariaDBBackupsArgs, opts?: InvokeOptions): Promise<GetMariaDBBackupsResult>
function getMariaDBBackupsOutput(args: GetMariaDBBackupsOutputArgs, opts?: InvokeOptions): Output<GetMariaDBBackupsResult>
def get_maria_db_backups(backup_id: Optional[str] = None,
cluster_id: Optional[str] = None,
location: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMariaDBBackupsResult
def get_maria_db_backups_output(backup_id: Optional[pulumi.Input[str]] = None,
cluster_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMariaDBBackupsResult]
func GetMariaDBBackups(ctx *Context, args *GetMariaDBBackupsArgs, opts ...InvokeOption) (*GetMariaDBBackupsResult, error)
func GetMariaDBBackupsOutput(ctx *Context, args *GetMariaDBBackupsOutputArgs, opts ...InvokeOption) GetMariaDBBackupsResultOutput
> Note: This function is named GetMariaDBBackups
in the Go SDK.
public static class GetMariaDBBackups
{
public static Task<GetMariaDBBackupsResult> InvokeAsync(GetMariaDBBackupsArgs args, InvokeOptions? opts = null)
public static Output<GetMariaDBBackupsResult> Invoke(GetMariaDBBackupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMariaDBBackupsResult> getMariaDBBackups(GetMariaDBBackupsArgs args, InvokeOptions options)
public static Output<GetMariaDBBackupsResult> getMariaDBBackups(GetMariaDBBackupsArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:dbaas/getMariaDBBackups:getMariaDBBackups
arguments:
# arguments dictionary
The following arguments are supported:
- Backup
Id string - [string] The unique ID of the backup.
- Cluster
Id string - [string] The unique ID of the cluster.
- Location string
[string] The location of the cluster. Different service endpoints are used based on location, possible options are: "de/fra", "de/txl", "es/vit", "fr/par", "gb/lhr", "us/ewr", "us/las", "us/mci". If not set, the endpoint will be the one corresponding to "de/txl".
⚠️ Note: Either
cluster_id
orbackup_id
must be used, but not both at the same time.⚠ WARNING:
Location
attribute will become required in the future.
- Backup
Id string - [string] The unique ID of the backup.
- Cluster
Id string - [string] The unique ID of the cluster.
- Location string
[string] The location of the cluster. Different service endpoints are used based on location, possible options are: "de/fra", "de/txl", "es/vit", "fr/par", "gb/lhr", "us/ewr", "us/las", "us/mci". If not set, the endpoint will be the one corresponding to "de/txl".
⚠️ Note: Either
cluster_id
orbackup_id
must be used, but not both at the same time.⚠ WARNING:
Location
attribute will become required in the future.
- backup
Id String - [string] The unique ID of the backup.
- cluster
Id String - [string] The unique ID of the cluster.
- location String
[string] The location of the cluster. Different service endpoints are used based on location, possible options are: "de/fra", "de/txl", "es/vit", "fr/par", "gb/lhr", "us/ewr", "us/las", "us/mci". If not set, the endpoint will be the one corresponding to "de/txl".
⚠️ Note: Either
cluster_id
orbackup_id
must be used, but not both at the same time.⚠ WARNING:
Location
attribute will become required in the future.
- backup
Id string - [string] The unique ID of the backup.
- cluster
Id string - [string] The unique ID of the cluster.
- location string
[string] The location of the cluster. Different service endpoints are used based on location, possible options are: "de/fra", "de/txl", "es/vit", "fr/par", "gb/lhr", "us/ewr", "us/las", "us/mci". If not set, the endpoint will be the one corresponding to "de/txl".
⚠️ Note: Either
cluster_id
orbackup_id
must be used, but not both at the same time.⚠ WARNING:
Location
attribute will become required in the future.
- backup_
id str - [string] The unique ID of the backup.
- cluster_
id str - [string] The unique ID of the cluster.
- location str
[string] The location of the cluster. Different service endpoints are used based on location, possible options are: "de/fra", "de/txl", "es/vit", "fr/par", "gb/lhr", "us/ewr", "us/las", "us/mci". If not set, the endpoint will be the one corresponding to "de/txl".
⚠️ Note: Either
cluster_id
orbackup_id
must be used, but not both at the same time.⚠ WARNING:
Location
attribute will become required in the future.
- backup
Id String - [string] The unique ID of the backup.
- cluster
Id String - [string] The unique ID of the cluster.
- location String
[string] The location of the cluster. Different service endpoints are used based on location, possible options are: "de/fra", "de/txl", "es/vit", "fr/par", "gb/lhr", "us/ewr", "us/las", "us/mci". If not set, the endpoint will be the one corresponding to "de/txl".
⚠️ Note: Either
cluster_id
orbackup_id
must be used, but not both at the same time.⚠ WARNING:
Location
attribute will become required in the future.
getMariaDBBackups Result
The following output properties are available:
- backup_
id str - backups
Sequence[Get
Maria DBBackups Backup] - cluster_
id str - The unique ID of the cluster that was backed up.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
Supporting Types
GetMariaDBBackupsBackup
- Base
Backups List<Ionoscloud.Get Maria DBBackups Backup Base Backup> - The list of backups for the specified cluster
- Cluster
Id string - [string] The unique ID of the cluster.
- Earliest
Recovery stringTarget Time - The oldest available timestamp to which you can restore.
- Size int
- The size of the backup in Mebibytes (MiB). This is the size of the binary backup file that was stored
- Base
Backups []GetMaria DBBackups Backup Base Backup - The list of backups for the specified cluster
- Cluster
Id string - [string] The unique ID of the cluster.
- Earliest
Recovery stringTarget Time - The oldest available timestamp to which you can restore.
- Size int
- The size of the backup in Mebibytes (MiB). This is the size of the binary backup file that was stored
- base
Backups List<GetMaria DBBackups Backup Base Backup> - The list of backups for the specified cluster
- cluster
Id String - [string] The unique ID of the cluster.
- earliest
Recovery StringTarget Time - The oldest available timestamp to which you can restore.
- size Integer
- The size of the backup in Mebibytes (MiB). This is the size of the binary backup file that was stored
- base
Backups GetMaria DBBackups Backup Base Backup[] - The list of backups for the specified cluster
- cluster
Id string - [string] The unique ID of the cluster.
- earliest
Recovery stringTarget Time - The oldest available timestamp to which you can restore.
- size number
- The size of the backup in Mebibytes (MiB). This is the size of the binary backup file that was stored
- base_
backups Sequence[GetMaria DBBackups Backup Base Backup] - The list of backups for the specified cluster
- cluster_
id str - [string] The unique ID of the cluster.
- earliest_
recovery_ strtarget_ time - The oldest available timestamp to which you can restore.
- size int
- The size of the backup in Mebibytes (MiB). This is the size of the binary backup file that was stored
- base
Backups List<Property Map> - The list of backups for the specified cluster
- cluster
Id String - [string] The unique ID of the cluster.
- earliest
Recovery StringTarget Time - The oldest available timestamp to which you can restore.
- size Number
- The size of the backup in Mebibytes (MiB). This is the size of the binary backup file that was stored
GetMariaDBBackupsBackupBaseBackup
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.