published on Tuesday, Sep 15, 2026 by ionos-cloud
published on Tuesday, Sep 15, 2026 by ionos-cloud
The ionoscloud.dbaas.MariaDBClusterV2 data source can be used to retrieve information about an existing MariaDB V2 cluster.
Example Usage
By id
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
const byId = ionoscloud.dbaas.getMariaDBClusterV2({
id: "example-id",
location: "de/txl",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
by_id = ionoscloud.dbaas.get_maria_db_cluster_v2(id="example-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.LookupMariaDBClusterV2(ctx, &dbaas.LookupMariaDBClusterV2Args{
Id: pulumi.StringRef("example-id"),
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 byId = Ionoscloud.Dbaas.GetMariaDBClusterV2.Invoke(new()
{
Id = "example-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.GetMariaDBClusterV2Args;
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 byId = DbaasFunctions.getMariaDBClusterV2(GetMariaDBClusterV2Args.builder()
.id("example-id")
.location("de/txl")
.build());
}
}
variables:
byId:
fn::invoke:
function: ionoscloud:dbaas:getMariaDBClusterV2
arguments:
id: example-id
location: de/txl
pulumi {
required_providers {
ionoscloud = {
source = "pulumi/ionoscloud"
}
}
}
data "ionoscloud_dbaas_getmariadbclusterv2" "byId" {
id = "example-id"
location = "de/txl"
}
By name
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
const byName = ionoscloud.dbaas.getMariaDBClusterV2({
name: "my-mariadb-cluster",
location: "de/txl",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
by_name = ionoscloud.dbaas.get_maria_db_cluster_v2(name="my-mariadb-cluster",
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.LookupMariaDBClusterV2(ctx, &dbaas.LookupMariaDBClusterV2Args{
Name: pulumi.StringRef("my-mariadb-cluster"),
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 byName = Ionoscloud.Dbaas.GetMariaDBClusterV2.Invoke(new()
{
Name = "my-mariadb-cluster",
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.GetMariaDBClusterV2Args;
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 byName = DbaasFunctions.getMariaDBClusterV2(GetMariaDBClusterV2Args.builder()
.name("my-mariadb-cluster")
.location("de/txl")
.build());
}
}
variables:
byName:
fn::invoke:
function: ionoscloud:dbaas:getMariaDBClusterV2
arguments:
name: my-mariadb-cluster
location: de/txl
pulumi {
required_providers {
ionoscloud = {
source = "pulumi/ionoscloud"
}
}
}
data "ionoscloud_dbaas_getmariadbclusterv2" "byName" {
name = "my-mariadb-cluster"
location = "de/txl"
}
Using getMariaDBClusterV2
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 getMariaDBClusterV2(args: GetMariaDBClusterV2Args, opts?: InvokeOptions): Promise<GetMariaDBClusterV2Result>
function getMariaDBClusterV2Output(args: GetMariaDBClusterV2OutputArgs, opts?: InvokeOutputOptions): Output<GetMariaDBClusterV2Result>def get_maria_db_cluster_v2(id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMariaDBClusterV2Result
def get_maria_db_cluster_v2_output(id: pulumi.Input[Optional[str]] = None,
location: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetMariaDBClusterV2Result]func LookupMariaDBClusterV2(ctx *Context, args *LookupMariaDBClusterV2Args, opts ...InvokeOption) (*LookupMariaDBClusterV2Result, error)
func LookupMariaDBClusterV2Output(ctx *Context, args *LookupMariaDBClusterV2OutputArgs, opts ...InvokeOption) LookupMariaDBClusterV2ResultOutput> Note: This function is named LookupMariaDBClusterV2 in the Go SDK.
public static class GetMariaDBClusterV2
{
public static Task<GetMariaDBClusterV2Result> InvokeAsync(GetMariaDBClusterV2Args args, InvokeOptions? opts = null)
public static Output<GetMariaDBClusterV2Result> Invoke(GetMariaDBClusterV2InvokeArgs args, InvokeOptions? opts = null)
public static Output<GetMariaDBClusterV2Result> Invoke(GetMariaDBClusterV2InvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetMariaDBClusterV2Result> getMariaDBClusterV2(GetMariaDBClusterV2Args args, InvokeOptions options)
public static Output<GetMariaDBClusterV2Result> getMariaDBClusterV2(GetMariaDBClusterV2Args args, InvokeOptions options)
public static Output<GetMariaDBClusterV2Result> getMariaDBClusterV2(GetMariaDBClusterV2Args args, InvokeOutputOptions options)
fn::invoke:
function: ionoscloud:dbaas/getMariaDBClusterV2:getMariaDBClusterV2
arguments:
# arguments dictionarydata "ionoscloud_dbaas_get_maria_d_b_cluster_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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- Id string
- The UUID of the cluster.
- Name string
- The cluster name (exact match).
- 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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- Id string
- The UUID of the cluster.
- Name string
- The cluster name (exact match).
- 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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- id string
- The UUID of the cluster.
- name string
- The cluster name (exact match).
- 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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- id String
- The UUID of the cluster.
- name String
- The cluster name (exact match).
- 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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- id string
- The UUID of the cluster.
- name string
- The cluster name (exact match).
- 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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- id str
- The UUID of the cluster.
- name str
- The cluster name (exact match).
- 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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- id String
- The UUID of the cluster.
- name String
- The cluster name (exact match).
getMariaDBClusterV2 Result
The following output properties are available:
- Backup
Ionoscloud.
Get Maria DBCluster V2Backup - Backup location and retention configuration:
- Connections
Ionoscloud.
Get Maria DBCluster V2Connections - Connection information of the MariaDB cluster:
- Credentials
Ionoscloud.
Get Maria DBCluster V2Credentials - Credentials block:
- Description string
- Human-readable description for the cluster.
- Dns
Name string - The DNS name used to access the cluster.
- Id string
- The UUID of the cluster.
- Instances
Ionoscloud.
Get Maria DBCluster V2Instances - Compute and storage configuration:
- Location string
- The Object Storage location where the backup is stored.
- Logs
Enabled bool - Whether log collection and reporting is enabled for this cluster's observability.
- Maintenance
Window Ionoscloud.Get Maria DBCluster V2Maintenance Window - Maintenance window configuration:
- Metrics
Enabled bool - Whether metrics collection and reporting is enabled for this cluster's observability.
- Name string
- The name of the cluster.
- Version string
- The MariaDB version for the cluster.
- Backup
Get
Maria DBCluster V2Backup - Backup location and retention configuration:
- Connections
Get
Maria DBCluster V2Connections - Connection information of the MariaDB cluster:
- Credentials
Get
Maria DBCluster V2Credentials - Credentials block:
- Description string
- Human-readable description for the cluster.
- Dns
Name string - The DNS name used to access the cluster.
- Id string
- The UUID of the cluster.
- Instances
Get
Maria DBCluster V2Instances - Compute and storage configuration:
- Location string
- The Object Storage location where the backup is stored.
- Logs
Enabled bool - Whether log collection and reporting is enabled for this cluster's observability.
- Maintenance
Window GetMaria DBCluster V2Maintenance Window - Maintenance window configuration:
- Metrics
Enabled bool - Whether metrics collection and reporting is enabled for this cluster's observability.
- Name string
- The name of the cluster.
- Version string
- The MariaDB version for the cluster.
- backup object
- Backup location and retention configuration:
- connections object
- Connection information of the MariaDB cluster:
- credentials object
- Credentials block:
- description string
- Human-readable description for the cluster.
- dns_
name string - The DNS name used to access the cluster.
- id string
- The UUID of the cluster.
- instances object
- Compute and storage configuration:
- location string
- The Object Storage location where the backup is stored.
- logs_
enabled bool - Whether log collection and reporting is enabled for this cluster's observability.
- maintenance_
window object - Maintenance window configuration:
- metrics_
enabled bool - Whether metrics collection and reporting is enabled for this cluster's observability.
- name string
- The name of the cluster.
- version string
- The MariaDB version for the cluster.
- backup
Get
Maria DBCluster V2Backup - Backup location and retention configuration:
- connections
Get
Maria DBCluster V2Connections - Connection information of the MariaDB cluster:
- credentials
Get
Maria DBCluster V2Credentials - Credentials block:
- description String
- Human-readable description for the cluster.
- dns
Name String - The DNS name used to access the cluster.
- id String
- The UUID of the cluster.
- instances
Get
Maria DBCluster V2Instances - Compute and storage configuration:
- location String
- The Object Storage location where the backup is stored.
- logs
Enabled Boolean - Whether log collection and reporting is enabled for this cluster's observability.
- maintenance
Window GetMaria DBCluster V2Maintenance Window - Maintenance window configuration:
- metrics
Enabled Boolean - Whether metrics collection and reporting is enabled for this cluster's observability.
- name String
- The name of the cluster.
- version String
- The MariaDB version for the cluster.
- backup
Get
Maria DBCluster V2Backup - Backup location and retention configuration:
- connections
Get
Maria DBCluster V2Connections - Connection information of the MariaDB cluster:
- credentials
Get
Maria DBCluster V2Credentials - Credentials block:
- description string
- Human-readable description for the cluster.
- dns
Name string - The DNS name used to access the cluster.
- id string
- The UUID of the cluster.
- instances
Get
Maria DBCluster V2Instances - Compute and storage configuration:
- location string
- The Object Storage location where the backup is stored.
- logs
Enabled boolean - Whether log collection and reporting is enabled for this cluster's observability.
- maintenance
Window GetMaria DBCluster V2Maintenance Window - Maintenance window configuration:
- metrics
Enabled boolean - Whether metrics collection and reporting is enabled for this cluster's observability.
- name string
- The name of the cluster.
- version string
- The MariaDB version for the cluster.
- backup
Get
Maria DBCluster V2Backup - Backup location and retention configuration:
- connections
Get
Maria DBCluster V2Connections - Connection information of the MariaDB cluster:
- credentials
Get
Maria DBCluster V2Credentials - Credentials block:
- description str
- Human-readable description for the cluster.
- dns_
name str - The DNS name used to access the cluster.
- id str
- The UUID of the cluster.
- instances
Get
Maria DBCluster V2Instances - Compute and storage configuration:
- location str
- The Object Storage location where the backup is stored.
- logs_
enabled bool - Whether log collection and reporting is enabled for this cluster's observability.
- maintenance_
window GetMaria DBCluster V2Maintenance Window - Maintenance window configuration:
- metrics_
enabled bool - Whether metrics collection and reporting is enabled for this cluster's observability.
- name str
- The name of the cluster.
- version str
- The MariaDB version for the cluster.
- backup Property Map
- Backup location and retention configuration:
- connections Property Map
- Connection information of the MariaDB cluster:
- credentials Property Map
- Credentials block:
- description String
- Human-readable description for the cluster.
- dns
Name String - The DNS name used to access the cluster.
- id String
- The UUID of the cluster.
- instances Property Map
- Compute and storage configuration:
- location String
- The Object Storage location where the backup is stored.
- logs
Enabled Boolean - Whether log collection and reporting is enabled for this cluster's observability.
- maintenance
Window Property Map - Maintenance window configuration:
- metrics
Enabled Boolean - Whether metrics collection and reporting is enabled for this cluster's observability.
- name String
- The name of the cluster.
- version String
- The MariaDB version for the cluster.
Supporting Types
GetMariaDBClusterV2Backup
- 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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- Retention
Days int - The number of days cluster backups are retained.
- 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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- Retention
Days int - The number of days cluster backups are retained.
- 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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- retention_
days number - The number of days cluster backups are retained.
- 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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- retention
Days Integer - The number of days cluster backups are retained.
- 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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- retention
Days number - The number of days cluster backups are retained.
- 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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- retention_
days int - The number of days cluster backups are retained.
- 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.Note: Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- retention
Days Number - The number of days cluster backups are retained.
GetMariaDBClusterV2Connections
- Datacenter
Id string - The ID of the Virtual Data Center the cluster is connected to.
- Lan
Id string - The numeric LAN ID the cluster is connected to.
- Primary
Instance stringAddress - The IP address and netmask of the cluster's primary instance, in CIDR notation.
- Datacenter
Id string - The ID of the Virtual Data Center the cluster is connected to.
- Lan
Id string - The numeric LAN ID the cluster is connected to.
- Primary
Instance stringAddress - The IP address and netmask of the cluster's primary instance, in CIDR notation.
- datacenter_
id string - The ID of the Virtual Data Center the cluster is connected to.
- lan_
id string - The numeric LAN ID the cluster is connected to.
- primary_
instance_ stringaddress - The IP address and netmask of the cluster's primary instance, in CIDR notation.
- datacenter
Id String - The ID of the Virtual Data Center the cluster is connected to.
- lan
Id String - The numeric LAN ID the cluster is connected to.
- primary
Instance StringAddress - The IP address and netmask of the cluster's primary instance, in CIDR notation.
- datacenter
Id string - The ID of the Virtual Data Center the cluster is connected to.
- lan
Id string - The numeric LAN ID the cluster is connected to.
- primary
Instance stringAddress - The IP address and netmask of the cluster's primary instance, in CIDR notation.
- datacenter_
id str - The ID of the Virtual Data Center the cluster is connected to.
- lan_
id str - The numeric LAN ID the cluster is connected to.
- primary_
instance_ straddress - The IP address and netmask of the cluster's primary instance, in CIDR notation.
- datacenter
Id String - The ID of the Virtual Data Center the cluster is connected to.
- lan
Id String - The numeric LAN ID the cluster is connected to.
- primary
Instance StringAddress - The IP address and netmask of the cluster's primary instance, in CIDR notation.
GetMariaDBClusterV2Credentials
GetMariaDBClusterV2Instances
- Cores int
- The number of CPU cores per instance.
- Count int
- The total number of instances in the cluster.
- Ram int
- The amount of memory per instance in gigabytes (GB).
- Storage
Size int - The amount of storage per instance in gigabytes (GB).
- Cores int
- The number of CPU cores per instance.
- Count int
- The total number of instances in the cluster.
- Ram int
- The amount of memory per instance in gigabytes (GB).
- Storage
Size int - The amount of storage per instance in gigabytes (GB).
- cores number
- The number of CPU cores per instance.
- count number
- The total number of instances in the cluster.
- ram number
- The amount of memory per instance in gigabytes (GB).
- storage_
size number - The amount of storage per instance in gigabytes (GB).
- cores Integer
- The number of CPU cores per instance.
- count Integer
- The total number of instances in the cluster.
- ram Integer
- The amount of memory per instance in gigabytes (GB).
- storage
Size Integer - The amount of storage per instance in gigabytes (GB).
- cores number
- The number of CPU cores per instance.
- count number
- The total number of instances in the cluster.
- ram number
- The amount of memory per instance in gigabytes (GB).
- storage
Size number - The amount of storage per instance in gigabytes (GB).
- cores int
- The number of CPU cores per instance.
- count int
- The total number of instances in the cluster.
- ram int
- The amount of memory per instance in gigabytes (GB).
- storage_
size int - The amount of storage per instance in gigabytes (GB).
- cores Number
- The number of CPU cores per instance.
- count Number
- The total number of instances in the cluster.
- ram Number
- The amount of memory per instance in gigabytes (GB).
- storage
Size Number - The amount of storage per instance in gigabytes (GB).
GetMariaDBClusterV2MaintenanceWindow
- Day
Of stringThe Week - The name of the week day.
- Time string
- Start of the maintenance window in UTC time.
- Day
Of stringThe Week - The name of the week day.
- Time string
- Start of the maintenance window in UTC time.
- day_
of_ stringthe_ week - The name of the week day.
- time string
- Start of the maintenance window in UTC time.
- day
Of StringThe Week - The name of the week day.
- time String
- Start of the maintenance window in UTC time.
- day
Of stringThe Week - The name of the week day.
- time string
- Start of the maintenance window in UTC time.
- day_
of_ strthe_ week - The name of the week day.
- time str
- Start of the maintenance window in UTC time.
- day
Of StringThe Week - The name of the week day.
- time String
- Start of the maintenance window in UTC time.
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloudTerraform Provider.
published on Tuesday, Sep 15, 2026 by ionos-cloud