1. Packages
  2. Ionoscloud
  3. API Docs
  4. dbaas
  5. MariaDBCluster
IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud

ionoscloud.dbaas.MariaDBCluster

Explore with Pulumi AI

ionoscloud logo
IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud

    Manages a DBaaS MariaDB Cluster.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    import * as random from "@pulumi/random";
    
    const example = new ionoscloud.compute.Datacenter("example", {
        name: "example",
        location: "de/txl",
        description: "Datacenter for testing DBaaS cluster",
    });
    const exampleLan = new ionoscloud.compute.Lan("example", {
        datacenterId: example.id,
        "public": false,
        name: "example",
    });
    const exampleServer = new ionoscloud.compute.Server("example", {
        name: "example",
        datacenterId: example.id,
        cores: 2,
        ram: 2048,
        availabilityZone: "ZONE_1",
        cpuFamily: "INTEL_SKYLAKE",
        imageName: "rockylinux-8-GenericCloud-20230518",
        imagePassword: "password",
        volume: {
            name: "example",
            size: 10,
            diskType: "SSD Standard",
        },
        nic: {
            lan: exampleLan.id,
            name: "example",
            dhcp: true,
        },
    });
    const clusterPassword = new random.index.Password("cluster_password", {
        length: 16,
        special: true,
        overrideSpecial: "!#$%&*()-_=+[]{}<>:?",
    });
    const exampleMariaDBCluster = new ionoscloud.dbaas.MariaDBCluster("example", {
        mariadbVersion: "10.6",
        location: "de/txl",
        instances: 1,
        cores: 4,
        ram: 4,
        storageSize: 10,
        connections: {
            datacenterId: example.id,
            lanId: exampleLan.id,
            cidr: "database_ip_cidr_from_nic",
        },
        displayName: "MariaDB_cluster",
        maintenanceWindow: {
            dayOfTheWeek: "Sunday",
            time: "09:00:00",
        },
        credentials: {
            username: "username",
            password: clusterPassword.result,
        },
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    import pulumi_random as random
    
    example = ionoscloud.compute.Datacenter("example",
        name="example",
        location="de/txl",
        description="Datacenter for testing DBaaS cluster")
    example_lan = ionoscloud.compute.Lan("example",
        datacenter_id=example.id,
        public=False,
        name="example")
    example_server = ionoscloud.compute.Server("example",
        name="example",
        datacenter_id=example.id,
        cores=2,
        ram=2048,
        availability_zone="ZONE_1",
        cpu_family="INTEL_SKYLAKE",
        image_name="rockylinux-8-GenericCloud-20230518",
        image_password="password",
        volume={
            "name": "example",
            "size": 10,
            "disk_type": "SSD Standard",
        },
        nic={
            "lan": example_lan.id,
            "name": "example",
            "dhcp": True,
        })
    cluster_password = random.index.Password("cluster_password",
        length=16,
        special=True,
        override_special=!#$%&*()-_=+[]{}<>:?)
    example_maria_db_cluster = ionoscloud.dbaas.MariaDBCluster("example",
        mariadb_version="10.6",
        location="de/txl",
        instances=1,
        cores=4,
        ram=4,
        storage_size=10,
        connections={
            "datacenter_id": example.id,
            "lan_id": example_lan.id,
            "cidr": "database_ip_cidr_from_nic",
        },
        display_name="MariaDB_cluster",
        maintenance_window={
            "day_of_the_week": "Sunday",
            "time": "09:00:00",
        },
        credentials={
            "username": "username",
            "password": cluster_password["result"],
        })
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/dbaas"
    	"github.com/pulumi/pulumi-random/sdk/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := compute.NewDatacenter(ctx, "example", &compute.DatacenterArgs{
    			Name:        pulumi.String("example"),
    			Location:    pulumi.String("de/txl"),
    			Description: pulumi.String("Datacenter for testing DBaaS cluster"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleLan, err := compute.NewLan(ctx, "example", &compute.LanArgs{
    			DatacenterId: example.ID(),
    			Public:       pulumi.Bool(false),
    			Name:         pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewServer(ctx, "example", &compute.ServerArgs{
    			Name:             pulumi.String("example"),
    			DatacenterId:     example.ID(),
    			Cores:            pulumi.Int(2),
    			Ram:              pulumi.Int(2048),
    			AvailabilityZone: pulumi.String("ZONE_1"),
    			CpuFamily:        pulumi.String("INTEL_SKYLAKE"),
    			ImageName:        pulumi.String("rockylinux-8-GenericCloud-20230518"),
    			ImagePassword:    pulumi.String("password"),
    			Volume: &compute.ServerVolumeArgs{
    				Name:     pulumi.String("example"),
    				Size:     pulumi.Int(10),
    				DiskType: pulumi.String("SSD Standard"),
    			},
    			Nic: &compute.ServerNicArgs{
    				Lan:  exampleLan.ID(),
    				Name: pulumi.String("example"),
    				Dhcp: pulumi.Bool(true),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		clusterPassword, err := random.NewPassword(ctx, "cluster_password", &random.PasswordArgs{
    			Length:          16,
    			Special:         true,
    			OverrideSpecial: "!#$%&*()-_=+[]{}<>:?",
    		})
    		if err != nil {
    			return err
    		}
    		_, err = dbaas.NewMariaDBCluster(ctx, "example", &dbaas.MariaDBClusterArgs{
    			MariadbVersion: pulumi.String("10.6"),
    			Location:       pulumi.String("de/txl"),
    			Instances:      pulumi.Int(1),
    			Cores:          pulumi.Int(4),
    			Ram:            pulumi.Int(4),
    			StorageSize:    pulumi.Int(10),
    			Connections: &dbaas.MariaDBClusterConnectionsArgs{
    				DatacenterId: example.ID(),
    				LanId:        exampleLan.ID(),
    				Cidr:         pulumi.String("database_ip_cidr_from_nic"),
    			},
    			DisplayName: pulumi.String("MariaDB_cluster"),
    			MaintenanceWindow: &dbaas.MariaDBClusterMaintenanceWindowArgs{
    				DayOfTheWeek: pulumi.String("Sunday"),
    				Time:         pulumi.String("09:00:00"),
    			},
    			Credentials: &dbaas.MariaDBClusterCredentialsArgs{
    				Username: pulumi.String("username"),
    				Password: clusterPassword.Result,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ionoscloud.Compute.Datacenter("example", new()
        {
            Name = "example",
            Location = "de/txl",
            Description = "Datacenter for testing DBaaS cluster",
        });
    
        var exampleLan = new Ionoscloud.Compute.Lan("example", new()
        {
            DatacenterId = example.Id,
            Public = false,
            Name = "example",
        });
    
        var exampleServer = new Ionoscloud.Compute.Server("example", new()
        {
            Name = "example",
            DatacenterId = example.Id,
            Cores = 2,
            Ram = 2048,
            AvailabilityZone = "ZONE_1",
            CpuFamily = "INTEL_SKYLAKE",
            ImageName = "rockylinux-8-GenericCloud-20230518",
            ImagePassword = "password",
            Volume = new Ionoscloud.Compute.Inputs.ServerVolumeArgs
            {
                Name = "example",
                Size = 10,
                DiskType = "SSD Standard",
            },
            Nic = new Ionoscloud.Compute.Inputs.ServerNicArgs
            {
                Lan = exampleLan.Id,
                Name = "example",
                Dhcp = true,
            },
        });
    
        var clusterPassword = new Random.Index.Password("cluster_password", new()
        {
            Length = 16,
            Special = true,
            OverrideSpecial = "!#$%&*()-_=+[]{}<>:?",
        });
    
        var exampleMariaDBCluster = new Ionoscloud.Dbaas.MariaDBCluster("example", new()
        {
            MariadbVersion = "10.6",
            Location = "de/txl",
            Instances = 1,
            Cores = 4,
            Ram = 4,
            StorageSize = 10,
            Connections = new Ionoscloud.Dbaas.Inputs.MariaDBClusterConnectionsArgs
            {
                DatacenterId = example.Id,
                LanId = exampleLan.Id,
                Cidr = "database_ip_cidr_from_nic",
            },
            DisplayName = "MariaDB_cluster",
            MaintenanceWindow = new Ionoscloud.Dbaas.Inputs.MariaDBClusterMaintenanceWindowArgs
            {
                DayOfTheWeek = "Sunday",
                Time = "09:00:00",
            },
            Credentials = new Ionoscloud.Dbaas.Inputs.MariaDBClusterCredentialsArgs
            {
                Username = "username",
                Password = clusterPassword.Result,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.compute.Datacenter;
    import com.pulumi.ionoscloud.compute.DatacenterArgs;
    import com.pulumi.ionoscloud.compute.Lan;
    import com.pulumi.ionoscloud.compute.LanArgs;
    import com.pulumi.ionoscloud.compute.Server;
    import com.pulumi.ionoscloud.compute.ServerArgs;
    import com.pulumi.ionoscloud.compute.inputs.ServerVolumeArgs;
    import com.pulumi.ionoscloud.compute.inputs.ServerNicArgs;
    import com.pulumi.random.password;
    import com.pulumi.random.PasswordArgs;
    import com.pulumi.ionoscloud.dbaas.MariaDBCluster;
    import com.pulumi.ionoscloud.dbaas.MariaDBClusterArgs;
    import com.pulumi.ionoscloud.dbaas.inputs.MariaDBClusterConnectionsArgs;
    import com.pulumi.ionoscloud.dbaas.inputs.MariaDBClusterMaintenanceWindowArgs;
    import com.pulumi.ionoscloud.dbaas.inputs.MariaDBClusterCredentialsArgs;
    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) {
            var example = new Datacenter("example", DatacenterArgs.builder()
                .name("example")
                .location("de/txl")
                .description("Datacenter for testing DBaaS cluster")
                .build());
    
            var exampleLan = new Lan("exampleLan", LanArgs.builder()
                .datacenterId(example.id())
                .public_(false)
                .name("example")
                .build());
    
            var exampleServer = new Server("exampleServer", ServerArgs.builder()
                .name("example")
                .datacenterId(example.id())
                .cores(2)
                .ram(2048)
                .availabilityZone("ZONE_1")
                .cpuFamily("INTEL_SKYLAKE")
                .imageName("rockylinux-8-GenericCloud-20230518")
                .imagePassword("password")
                .volume(ServerVolumeArgs.builder()
                    .name("example")
                    .size(10)
                    .diskType("SSD Standard")
                    .build())
                .nic(ServerNicArgs.builder()
                    .lan(exampleLan.id())
                    .name("example")
                    .dhcp(true)
                    .build())
                .build());
    
            var clusterPassword = new Password("clusterPassword", PasswordArgs.builder()
                .length(16)
                .special(true)
                .overrideSpecial("!#$%&*()-_=+[]{}<>:?")
                .build());
    
            var exampleMariaDBCluster = new MariaDBCluster("exampleMariaDBCluster", MariaDBClusterArgs.builder()
                .mariadbVersion("10.6")
                .location("de/txl")
                .instances(1)
                .cores(4)
                .ram(4)
                .storageSize(10)
                .connections(MariaDBClusterConnectionsArgs.builder()
                    .datacenterId(example.id())
                    .lanId(exampleLan.id())
                    .cidr("database_ip_cidr_from_nic")
                    .build())
                .displayName("MariaDB_cluster")
                .maintenanceWindow(MariaDBClusterMaintenanceWindowArgs.builder()
                    .dayOfTheWeek("Sunday")
                    .time("09:00:00")
                    .build())
                .credentials(MariaDBClusterCredentialsArgs.builder()
                    .username("username")
                    .password(clusterPassword.result())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: ionoscloud:compute:Datacenter
        properties:
          name: example
          location: de/txl
          description: Datacenter for testing DBaaS cluster
      exampleLan:
        type: ionoscloud:compute:Lan
        name: example
        properties:
          datacenterId: ${example.id}
          public: false
          name: example
      exampleServer:
        type: ionoscloud:compute:Server
        name: example
        properties:
          name: example
          datacenterId: ${example.id}
          cores: 2
          ram: 2048
          availabilityZone: ZONE_1
          cpuFamily: INTEL_SKYLAKE
          imageName: rockylinux-8-GenericCloud-20230518
          imagePassword: password
          volume:
            name: example
            size: 10
            diskType: SSD Standard
          nic:
            lan: ${exampleLan.id}
            name: example
            dhcp: true
      exampleMariaDBCluster:
        type: ionoscloud:dbaas:MariaDBCluster
        name: example
        properties:
          mariadbVersion: '10.6'
          location: de/txl
          instances: 1
          cores: 4
          ram: 4
          storageSize: 10
          connections:
            datacenterId: ${example.id}
            lanId: ${exampleLan.id}
            cidr: database_ip_cidr_from_nic
          displayName: MariaDB_cluster
          maintenanceWindow:
            dayOfTheWeek: Sunday
            time: 09:00:00
          credentials:
            username: username
            password: ${clusterPassword.result}
      clusterPassword:
        type: random:password
        name: cluster_password
        properties:
          length: 16
          special: true
          overrideSpecial: '!#$%&*()-_=+[]{}<>:?'
    

    Create MariaDBCluster Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MariaDBCluster(name: string, args: MariaDBClusterArgs, opts?: CustomResourceOptions);
    @overload
    def MariaDBCluster(resource_name: str,
                       args: MariaDBClusterArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def MariaDBCluster(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       connections: Optional[MariaDBClusterConnectionsArgs] = None,
                       cores: Optional[int] = None,
                       credentials: Optional[MariaDBClusterCredentialsArgs] = None,
                       display_name: Optional[str] = None,
                       instances: Optional[int] = None,
                       mariadb_version: Optional[str] = None,
                       ram: Optional[int] = None,
                       storage_size: Optional[int] = None,
                       location: Optional[str] = None,
                       maintenance_window: Optional[MariaDBClusterMaintenanceWindowArgs] = None)
    func NewMariaDBCluster(ctx *Context, name string, args MariaDBClusterArgs, opts ...ResourceOption) (*MariaDBCluster, error)
    public MariaDBCluster(string name, MariaDBClusterArgs args, CustomResourceOptions? opts = null)
    public MariaDBCluster(String name, MariaDBClusterArgs args)
    public MariaDBCluster(String name, MariaDBClusterArgs args, CustomResourceOptions options)
    
    type: ionoscloud:dbaas:MariaDBCluster
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MariaDBClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MariaDBClusterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MariaDBClusterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MariaDBClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MariaDBClusterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var mariaDBClusterResource = new Ionoscloud.Dbaas.MariaDBCluster("mariaDBClusterResource", new()
    {
        Connections = new Ionoscloud.Dbaas.Inputs.MariaDBClusterConnectionsArgs
        {
            Cidr = "string",
            DatacenterId = "string",
            LanId = "string",
        },
        Cores = 0,
        Credentials = new Ionoscloud.Dbaas.Inputs.MariaDBClusterCredentialsArgs
        {
            Password = "string",
            Username = "string",
        },
        DisplayName = "string",
        Instances = 0,
        MariadbVersion = "string",
        Ram = 0,
        StorageSize = 0,
        Location = "string",
        MaintenanceWindow = new Ionoscloud.Dbaas.Inputs.MariaDBClusterMaintenanceWindowArgs
        {
            DayOfTheWeek = "string",
            Time = "string",
        },
    });
    
    example, err := dbaas.NewMariaDBCluster(ctx, "mariaDBClusterResource", &dbaas.MariaDBClusterArgs{
    	Connections: &dbaas.MariaDBClusterConnectionsArgs{
    		Cidr:         pulumi.String("string"),
    		DatacenterId: pulumi.String("string"),
    		LanId:        pulumi.String("string"),
    	},
    	Cores: pulumi.Int(0),
    	Credentials: &dbaas.MariaDBClusterCredentialsArgs{
    		Password: pulumi.String("string"),
    		Username: pulumi.String("string"),
    	},
    	DisplayName:    pulumi.String("string"),
    	Instances:      pulumi.Int(0),
    	MariadbVersion: pulumi.String("string"),
    	Ram:            pulumi.Int(0),
    	StorageSize:    pulumi.Int(0),
    	Location:       pulumi.String("string"),
    	MaintenanceWindow: &dbaas.MariaDBClusterMaintenanceWindowArgs{
    		DayOfTheWeek: pulumi.String("string"),
    		Time:         pulumi.String("string"),
    	},
    })
    
    var mariaDBClusterResource = new MariaDBCluster("mariaDBClusterResource", MariaDBClusterArgs.builder()
        .connections(MariaDBClusterConnectionsArgs.builder()
            .cidr("string")
            .datacenterId("string")
            .lanId("string")
            .build())
        .cores(0)
        .credentials(MariaDBClusterCredentialsArgs.builder()
            .password("string")
            .username("string")
            .build())
        .displayName("string")
        .instances(0)
        .mariadbVersion("string")
        .ram(0)
        .storageSize(0)
        .location("string")
        .maintenanceWindow(MariaDBClusterMaintenanceWindowArgs.builder()
            .dayOfTheWeek("string")
            .time("string")
            .build())
        .build());
    
    maria_db_cluster_resource = ionoscloud.dbaas.MariaDBCluster("mariaDBClusterResource",
        connections={
            "cidr": "string",
            "datacenter_id": "string",
            "lan_id": "string",
        },
        cores=0,
        credentials={
            "password": "string",
            "username": "string",
        },
        display_name="string",
        instances=0,
        mariadb_version="string",
        ram=0,
        storage_size=0,
        location="string",
        maintenance_window={
            "day_of_the_week": "string",
            "time": "string",
        })
    
    const mariaDBClusterResource = new ionoscloud.dbaas.MariaDBCluster("mariaDBClusterResource", {
        connections: {
            cidr: "string",
            datacenterId: "string",
            lanId: "string",
        },
        cores: 0,
        credentials: {
            password: "string",
            username: "string",
        },
        displayName: "string",
        instances: 0,
        mariadbVersion: "string",
        ram: 0,
        storageSize: 0,
        location: "string",
        maintenanceWindow: {
            dayOfTheWeek: "string",
            time: "string",
        },
    });
    
    type: ionoscloud:dbaas:MariaDBCluster
    properties:
        connections:
            cidr: string
            datacenterId: string
            lanId: string
        cores: 0
        credentials:
            password: string
            username: string
        displayName: string
        instances: 0
        location: string
        maintenanceWindow:
            dayOfTheWeek: string
            time: string
        mariadbVersion: string
        ram: 0
        storageSize: 0
    

    MariaDBCluster Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MariaDBCluster resource accepts the following input properties:

    Connections Ionoscloud.MariaDBClusterConnections
    The network connection for your cluster. Only one connection is allowed.
    Cores int
    [int] The number of CPU cores per instance.
    Credentials Ionoscloud.MariaDBClusterCredentials
    Credentials for the database user to be created.
    DisplayName string
    [string] The friendly name of your cluster.
    Instances int
    [int] The total number of instances in the cluster (one primary and n-1 secondary).
    MariadbVersion string
    [string] The MariaDB version of your cluster. Cannot be downgraded.
    Ram int
    [int] The amount of memory per instance in gigabytes (GB).
    StorageSize int
    [int] The amount of storage per instance in gigabytes (GB).
    Location string
    [string] The location in which the cluster will be created. 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".
    MaintenanceWindow Ionoscloud.MariaDBClusterMaintenanceWindow
    (Computed) A weekly 4 hour-long window, during which maintenance might occur
    Connections MariaDBClusterConnectionsArgs
    The network connection for your cluster. Only one connection is allowed.
    Cores int
    [int] The number of CPU cores per instance.
    Credentials MariaDBClusterCredentialsArgs
    Credentials for the database user to be created.
    DisplayName string
    [string] The friendly name of your cluster.
    Instances int
    [int] The total number of instances in the cluster (one primary and n-1 secondary).
    MariadbVersion string
    [string] The MariaDB version of your cluster. Cannot be downgraded.
    Ram int
    [int] The amount of memory per instance in gigabytes (GB).
    StorageSize int
    [int] The amount of storage per instance in gigabytes (GB).
    Location string
    [string] The location in which the cluster will be created. 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".
    MaintenanceWindow MariaDBClusterMaintenanceWindowArgs
    (Computed) A weekly 4 hour-long window, during which maintenance might occur
    connections MariaDBClusterConnections
    The network connection for your cluster. Only one connection is allowed.
    cores Integer
    [int] The number of CPU cores per instance.
    credentials MariaDBClusterCredentials
    Credentials for the database user to be created.
    displayName String
    [string] The friendly name of your cluster.
    instances Integer
    [int] The total number of instances in the cluster (one primary and n-1 secondary).
    mariadbVersion String
    [string] The MariaDB version of your cluster. Cannot be downgraded.
    ram Integer
    [int] The amount of memory per instance in gigabytes (GB).
    storageSize Integer
    [int] The amount of storage per instance in gigabytes (GB).
    location String
    [string] The location in which the cluster will be created. 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".
    maintenanceWindow MariaDBClusterMaintenanceWindow
    (Computed) A weekly 4 hour-long window, during which maintenance might occur
    connections MariaDBClusterConnections
    The network connection for your cluster. Only one connection is allowed.
    cores number
    [int] The number of CPU cores per instance.
    credentials MariaDBClusterCredentials
    Credentials for the database user to be created.
    displayName string
    [string] The friendly name of your cluster.
    instances number
    [int] The total number of instances in the cluster (one primary and n-1 secondary).
    mariadbVersion string
    [string] The MariaDB version of your cluster. Cannot be downgraded.
    ram number
    [int] The amount of memory per instance in gigabytes (GB).
    storageSize number
    [int] The amount of storage per instance in gigabytes (GB).
    location string
    [string] The location in which the cluster will be created. 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".
    maintenanceWindow MariaDBClusterMaintenanceWindow
    (Computed) A weekly 4 hour-long window, during which maintenance might occur
    connections MariaDBClusterConnectionsArgs
    The network connection for your cluster. Only one connection is allowed.
    cores int
    [int] The number of CPU cores per instance.
    credentials MariaDBClusterCredentialsArgs
    Credentials for the database user to be created.
    display_name str
    [string] The friendly name of your cluster.
    instances int
    [int] The total number of instances in the cluster (one primary and n-1 secondary).
    mariadb_version str
    [string] The MariaDB version of your cluster. Cannot be downgraded.
    ram int
    [int] The amount of memory per instance in gigabytes (GB).
    storage_size int
    [int] The amount of storage per instance in gigabytes (GB).
    location str
    [string] The location in which the cluster will be created. 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".
    maintenance_window MariaDBClusterMaintenanceWindowArgs
    (Computed) A weekly 4 hour-long window, during which maintenance might occur
    connections Property Map
    The network connection for your cluster. Only one connection is allowed.
    cores Number
    [int] The number of CPU cores per instance.
    credentials Property Map
    Credentials for the database user to be created.
    displayName String
    [string] The friendly name of your cluster.
    instances Number
    [int] The total number of instances in the cluster (one primary and n-1 secondary).
    mariadbVersion String
    [string] The MariaDB version of your cluster. Cannot be downgraded.
    ram Number
    [int] The amount of memory per instance in gigabytes (GB).
    storageSize Number
    [int] The amount of storage per instance in gigabytes (GB).
    location String
    [string] The location in which the cluster will be created. 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".
    maintenanceWindow Property Map
    (Computed) A weekly 4 hour-long window, during which maintenance might occur

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MariaDBCluster resource produces the following output properties:

    DnsName string

    [string] The DNS name pointing to your cluster.

    ⚠ WARNING: IONOS_API_URL_MARIADB can be used to set a custom API URL for the MariaDB Cluster. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    Id string
    The provider-assigned unique ID for this managed resource.
    DnsName string

    [string] The DNS name pointing to your cluster.

    ⚠ WARNING: IONOS_API_URL_MARIADB can be used to set a custom API URL for the MariaDB Cluster. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    Id string
    The provider-assigned unique ID for this managed resource.
    dnsName String

    [string] The DNS name pointing to your cluster.

    ⚠ WARNING: IONOS_API_URL_MARIADB can be used to set a custom API URL for the MariaDB Cluster. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    id String
    The provider-assigned unique ID for this managed resource.
    dnsName string

    [string] The DNS name pointing to your cluster.

    ⚠ WARNING: IONOS_API_URL_MARIADB can be used to set a custom API URL for the MariaDB Cluster. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    id string
    The provider-assigned unique ID for this managed resource.
    dns_name str

    [string] The DNS name pointing to your cluster.

    ⚠ WARNING: IONOS_API_URL_MARIADB can be used to set a custom API URL for the MariaDB Cluster. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    id str
    The provider-assigned unique ID for this managed resource.
    dnsName String

    [string] The DNS name pointing to your cluster.

    ⚠ WARNING: IONOS_API_URL_MARIADB can be used to set a custom API URL for the MariaDB Cluster. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MariaDBCluster Resource

    Get an existing MariaDBCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MariaDBClusterState, opts?: CustomResourceOptions): MariaDBCluster
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            connections: Optional[MariaDBClusterConnectionsArgs] = None,
            cores: Optional[int] = None,
            credentials: Optional[MariaDBClusterCredentialsArgs] = None,
            display_name: Optional[str] = None,
            dns_name: Optional[str] = None,
            instances: Optional[int] = None,
            location: Optional[str] = None,
            maintenance_window: Optional[MariaDBClusterMaintenanceWindowArgs] = None,
            mariadb_version: Optional[str] = None,
            ram: Optional[int] = None,
            storage_size: Optional[int] = None) -> MariaDBCluster
    func GetMariaDBCluster(ctx *Context, name string, id IDInput, state *MariaDBClusterState, opts ...ResourceOption) (*MariaDBCluster, error)
    public static MariaDBCluster Get(string name, Input<string> id, MariaDBClusterState? state, CustomResourceOptions? opts = null)
    public static MariaDBCluster get(String name, Output<String> id, MariaDBClusterState state, CustomResourceOptions options)
    resources:  _:    type: ionoscloud:dbaas:MariaDBCluster    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Connections Ionoscloud.MariaDBClusterConnections
    The network connection for your cluster. Only one connection is allowed.
    Cores int
    [int] The number of CPU cores per instance.
    Credentials Ionoscloud.MariaDBClusterCredentials
    Credentials for the database user to be created.
    DisplayName string
    [string] The friendly name of your cluster.
    DnsName string

    [string] The DNS name pointing to your cluster.

    ⚠ WARNING: IONOS_API_URL_MARIADB can be used to set a custom API URL for the MariaDB Cluster. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    Instances int
    [int] The total number of instances in the cluster (one primary and n-1 secondary).
    Location string
    [string] The location in which the cluster will be created. 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".
    MaintenanceWindow Ionoscloud.MariaDBClusterMaintenanceWindow
    (Computed) A weekly 4 hour-long window, during which maintenance might occur
    MariadbVersion string
    [string] The MariaDB version of your cluster. Cannot be downgraded.
    Ram int
    [int] The amount of memory per instance in gigabytes (GB).
    StorageSize int
    [int] The amount of storage per instance in gigabytes (GB).
    Connections MariaDBClusterConnectionsArgs
    The network connection for your cluster. Only one connection is allowed.
    Cores int
    [int] The number of CPU cores per instance.
    Credentials MariaDBClusterCredentialsArgs
    Credentials for the database user to be created.
    DisplayName string
    [string] The friendly name of your cluster.
    DnsName string

    [string] The DNS name pointing to your cluster.

    ⚠ WARNING: IONOS_API_URL_MARIADB can be used to set a custom API URL for the MariaDB Cluster. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    Instances int
    [int] The total number of instances in the cluster (one primary and n-1 secondary).
    Location string
    [string] The location in which the cluster will be created. 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".
    MaintenanceWindow MariaDBClusterMaintenanceWindowArgs
    (Computed) A weekly 4 hour-long window, during which maintenance might occur
    MariadbVersion string
    [string] The MariaDB version of your cluster. Cannot be downgraded.
    Ram int
    [int] The amount of memory per instance in gigabytes (GB).
    StorageSize int
    [int] The amount of storage per instance in gigabytes (GB).
    connections MariaDBClusterConnections
    The network connection for your cluster. Only one connection is allowed.
    cores Integer
    [int] The number of CPU cores per instance.
    credentials MariaDBClusterCredentials
    Credentials for the database user to be created.
    displayName String
    [string] The friendly name of your cluster.
    dnsName String

    [string] The DNS name pointing to your cluster.

    ⚠ WARNING: IONOS_API_URL_MARIADB can be used to set a custom API URL for the MariaDB Cluster. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    instances Integer
    [int] The total number of instances in the cluster (one primary and n-1 secondary).
    location String
    [string] The location in which the cluster will be created. 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".
    maintenanceWindow MariaDBClusterMaintenanceWindow
    (Computed) A weekly 4 hour-long window, during which maintenance might occur
    mariadbVersion String
    [string] The MariaDB version of your cluster. Cannot be downgraded.
    ram Integer
    [int] The amount of memory per instance in gigabytes (GB).
    storageSize Integer
    [int] The amount of storage per instance in gigabytes (GB).
    connections MariaDBClusterConnections
    The network connection for your cluster. Only one connection is allowed.
    cores number
    [int] The number of CPU cores per instance.
    credentials MariaDBClusterCredentials
    Credentials for the database user to be created.
    displayName string
    [string] The friendly name of your cluster.
    dnsName string

    [string] The DNS name pointing to your cluster.

    ⚠ WARNING: IONOS_API_URL_MARIADB can be used to set a custom API URL for the MariaDB Cluster. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    instances number
    [int] The total number of instances in the cluster (one primary and n-1 secondary).
    location string
    [string] The location in which the cluster will be created. 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".
    maintenanceWindow MariaDBClusterMaintenanceWindow
    (Computed) A weekly 4 hour-long window, during which maintenance might occur
    mariadbVersion string
    [string] The MariaDB version of your cluster. Cannot be downgraded.
    ram number
    [int] The amount of memory per instance in gigabytes (GB).
    storageSize number
    [int] The amount of storage per instance in gigabytes (GB).
    connections MariaDBClusterConnectionsArgs
    The network connection for your cluster. Only one connection is allowed.
    cores int
    [int] The number of CPU cores per instance.
    credentials MariaDBClusterCredentialsArgs
    Credentials for the database user to be created.
    display_name str
    [string] The friendly name of your cluster.
    dns_name str

    [string] The DNS name pointing to your cluster.

    ⚠ WARNING: IONOS_API_URL_MARIADB can be used to set a custom API URL for the MariaDB Cluster. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    instances int
    [int] The total number of instances in the cluster (one primary and n-1 secondary).
    location str
    [string] The location in which the cluster will be created. 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".
    maintenance_window MariaDBClusterMaintenanceWindowArgs
    (Computed) A weekly 4 hour-long window, during which maintenance might occur
    mariadb_version str
    [string] The MariaDB version of your cluster. Cannot be downgraded.
    ram int
    [int] The amount of memory per instance in gigabytes (GB).
    storage_size int
    [int] The amount of storage per instance in gigabytes (GB).
    connections Property Map
    The network connection for your cluster. Only one connection is allowed.
    cores Number
    [int] The number of CPU cores per instance.
    credentials Property Map
    Credentials for the database user to be created.
    displayName String
    [string] The friendly name of your cluster.
    dnsName String

    [string] The DNS name pointing to your cluster.

    ⚠ WARNING: IONOS_API_URL_MARIADB can be used to set a custom API URL for the MariaDB Cluster. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    instances Number
    [int] The total number of instances in the cluster (one primary and n-1 secondary).
    location String
    [string] The location in which the cluster will be created. 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".
    maintenanceWindow Property Map
    (Computed) A weekly 4 hour-long window, during which maintenance might occur
    mariadbVersion String
    [string] The MariaDB version of your cluster. Cannot be downgraded.
    ram Number
    [int] The amount of memory per instance in gigabytes (GB).
    storageSize Number
    [int] The amount of storage per instance in gigabytes (GB).

    Supporting Types

    MariaDBClusterConnections, MariaDBClusterConnectionsArgs

    Cidr string
    [true] The IP and subnet for the database. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. Please enter in the correct format like IP/Subnet, exp: 192.168.10.0/24. See Private IPs and Configuring the network.
    DatacenterId string
    [true] The datacenter to connect your cluster to.
    LanId string
    [true] The numeric LAN ID to connect your cluster to.
    Cidr string
    [true] The IP and subnet for the database. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. Please enter in the correct format like IP/Subnet, exp: 192.168.10.0/24. See Private IPs and Configuring the network.
    DatacenterId string
    [true] The datacenter to connect your cluster to.
    LanId string
    [true] The numeric LAN ID to connect your cluster to.
    cidr String
    [true] The IP and subnet for the database. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. Please enter in the correct format like IP/Subnet, exp: 192.168.10.0/24. See Private IPs and Configuring the network.
    datacenterId String
    [true] The datacenter to connect your cluster to.
    lanId String
    [true] The numeric LAN ID to connect your cluster to.
    cidr string
    [true] The IP and subnet for the database. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. Please enter in the correct format like IP/Subnet, exp: 192.168.10.0/24. See Private IPs and Configuring the network.
    datacenterId string
    [true] The datacenter to connect your cluster to.
    lanId string
    [true] The numeric LAN ID to connect your cluster to.
    cidr str
    [true] The IP and subnet for the database. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. Please enter in the correct format like IP/Subnet, exp: 192.168.10.0/24. See Private IPs and Configuring the network.
    datacenter_id str
    [true] The datacenter to connect your cluster to.
    lan_id str
    [true] The numeric LAN ID to connect your cluster to.
    cidr String
    [true] The IP and subnet for the database. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. Please enter in the correct format like IP/Subnet, exp: 192.168.10.0/24. See Private IPs and Configuring the network.
    datacenterId String
    [true] The datacenter to connect your cluster to.
    lanId String
    [true] The numeric LAN ID to connect your cluster to.

    MariaDBClusterCredentials, MariaDBClusterCredentialsArgs

    Password string
    [string] The password for a MariaDB user.
    Username string
    [string] The username for the initial MariaDB user. Some system usernames are restricted (e.g 'mariadb', 'admin', 'standby').
    Password string
    [string] The password for a MariaDB user.
    Username string
    [string] The username for the initial MariaDB user. Some system usernames are restricted (e.g 'mariadb', 'admin', 'standby').
    password String
    [string] The password for a MariaDB user.
    username String
    [string] The username for the initial MariaDB user. Some system usernames are restricted (e.g 'mariadb', 'admin', 'standby').
    password string
    [string] The password for a MariaDB user.
    username string
    [string] The username for the initial MariaDB user. Some system usernames are restricted (e.g 'mariadb', 'admin', 'standby').
    password str
    [string] The password for a MariaDB user.
    username str
    [string] The username for the initial MariaDB user. Some system usernames are restricted (e.g 'mariadb', 'admin', 'standby').
    password String
    [string] The password for a MariaDB user.
    username String
    [string] The username for the initial MariaDB user. Some system usernames are restricted (e.g 'mariadb', 'admin', 'standby').

    MariaDBClusterMaintenanceWindow, MariaDBClusterMaintenanceWindowArgs

    DayOfTheWeek string
    [string] The name of the week day.
    Time string
    [string] Start of the maintenance window in UTC time.
    DayOfTheWeek string
    [string] The name of the week day.
    Time string
    [string] Start of the maintenance window in UTC time.
    dayOfTheWeek String
    [string] The name of the week day.
    time String
    [string] Start of the maintenance window in UTC time.
    dayOfTheWeek string
    [string] The name of the week day.
    time string
    [string] Start of the maintenance window in UTC time.
    day_of_the_week str
    [string] The name of the week day.
    time str
    [string] Start of the maintenance window in UTC time.
    dayOfTheWeek String
    [string] The name of the week day.
    time String
    [string] Start of the maintenance window in UTC time.

    Import

    Resource DBaaS MariaDB Cluster can be imported using the cluster_id and the location, separated by :, e.g.

    $ pulumi import ionoscloud:dbaas/mariaDBCluster:MariaDBCluster mycluster location:cluster uuid
    

    To learn more about importing existing cloud resources, see Importing resources.

    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
    IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud