1. Packages
  2. Packages
  3. Ionoscloud
  4. API Docs
  5. dbaas
  6. getInMemoryDBClusterV2
Viewing docs for IonosCloud v0.3.2
published on Wednesday, Jul 15, 2026 by ionos-cloud
ionoscloud logo
Viewing docs for IonosCloud v0.3.2
published on Wednesday, Jul 15, 2026 by ionos-cloud

    The ionoscloud.dbaas.InMemoryDBClusterV2 data source can be used to retrieve information about an existing InMemoryDB V2 cluster.

    Example Usage

    By id

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const byId = ionoscloud.dbaas.getInMemoryDBClusterV2({
        id: "example-id",
        location: "de/txl",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    by_id = ionoscloud.dbaas.get_in_memory_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.LookupInMemoryDBClusterV2(ctx, &dbaas.LookupInMemoryDBClusterV2Args{
    			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.GetInMemoryDBClusterV2.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.GetInMemoryDBClusterV2Args;
    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.getInMemoryDBClusterV2(GetInMemoryDBClusterV2Args.builder()
                .id("example-id")
                .location("de/txl")
                .build());
    
        }
    }
    
    variables:
      byId:
        fn::invoke:
          function: ionoscloud:dbaas:getInMemoryDBClusterV2
          arguments:
            id: example-id
            location: de/txl
    
    pulumi {
      required_providers {
        ionoscloud = {
          source = "pulumi/ionoscloud"
        }
      }
    }
    
    data "ionoscloud_dbaas_getinmemorydbclusterv2" "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.getInMemoryDBClusterV2({
        name: "my-inmemorydb-cluster",
        location: "de/txl",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    by_name = ionoscloud.dbaas.get_in_memory_db_cluster_v2(name="my-inmemorydb-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.LookupInMemoryDBClusterV2(ctx, &dbaas.LookupInMemoryDBClusterV2Args{
    			Name:     pulumi.StringRef("my-inmemorydb-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.GetInMemoryDBClusterV2.Invoke(new()
        {
            Name = "my-inmemorydb-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.GetInMemoryDBClusterV2Args;
    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.getInMemoryDBClusterV2(GetInMemoryDBClusterV2Args.builder()
                .name("my-inmemorydb-cluster")
                .location("de/txl")
                .build());
    
        }
    }
    
    variables:
      byName:
        fn::invoke:
          function: ionoscloud:dbaas:getInMemoryDBClusterV2
          arguments:
            name: my-inmemorydb-cluster
            location: de/txl
    
    pulumi {
      required_providers {
        ionoscloud = {
          source = "pulumi/ionoscloud"
        }
      }
    }
    
    data "ionoscloud_dbaas_getinmemorydbclusterv2" "byName" {
      name     = "my-inmemorydb-cluster"
      location = "de/txl"
    }
    

    Using getInMemoryDBClusterV2

    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 getInMemoryDBClusterV2(args: GetInMemoryDBClusterV2Args, opts?: InvokeOptions): Promise<GetInMemoryDBClusterV2Result>
    function getInMemoryDBClusterV2Output(args: GetInMemoryDBClusterV2OutputArgs, opts?: InvokeOptions): Output<GetInMemoryDBClusterV2Result>
    def get_in_memory_db_cluster_v2(id: Optional[str] = None,
                                    location: Optional[str] = None,
                                    name: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetInMemoryDBClusterV2Result
    def get_in_memory_db_cluster_v2_output(id: pulumi.Input[Optional[str]] = None,
                                    location: pulumi.Input[Optional[str]] = None,
                                    name: pulumi.Input[Optional[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetInMemoryDBClusterV2Result]
    func LookupInMemoryDBClusterV2(ctx *Context, args *LookupInMemoryDBClusterV2Args, opts ...InvokeOption) (*LookupInMemoryDBClusterV2Result, error)
    func LookupInMemoryDBClusterV2Output(ctx *Context, args *LookupInMemoryDBClusterV2OutputArgs, opts ...InvokeOption) LookupInMemoryDBClusterV2ResultOutput

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

    public static class GetInMemoryDBClusterV2 
    {
        public static Task<GetInMemoryDBClusterV2Result> InvokeAsync(GetInMemoryDBClusterV2Args args, InvokeOptions? opts = null)
        public static Output<GetInMemoryDBClusterV2Result> Invoke(GetInMemoryDBClusterV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInMemoryDBClusterV2Result> getInMemoryDBClusterV2(GetInMemoryDBClusterV2Args args, InvokeOptions options)
    public static Output<GetInMemoryDBClusterV2Result> getInMemoryDBClusterV2(GetInMemoryDBClusterV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: ionoscloud:dbaas/getInMemoryDBClusterV2:getInMemoryDBClusterV2
      arguments:
        # arguments dictionary
    data "ionoscloud_dbaas_get_in_memory_d_b_cluster_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    Location string

    [string] The location of the cluster.

    Note: Either id or name must 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 of the cluster.

    Note: Either id or name must 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 of the cluster.

    Note: Either id or name must 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 of the cluster.

    Note: Either id or name must 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 of the cluster.

    Note: Either id or name must 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 of the cluster.

    Note: Either id or name must 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 of the cluster.

    Note: Either id or name must 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).

    getInMemoryDBClusterV2 Result

    The following output properties are available:

    Connections Ionoscloud.GetInMemoryDBClusterV2Connections
    Network connection configuration:
    Credentials Ionoscloud.GetInMemoryDBClusterV2Credentials
    Credentials block:
    Description string
    Human-readable description for the cluster.
    DnsName string
    The DNS name for connecting to the cluster's primary instance.
    EvictionPolicy string
    The key eviction strategy.
    Id string
    The UUID of the cluster.
    Instances Ionoscloud.GetInMemoryDBClusterV2Instances
    Instance sizing configuration:
    Location string
    Object Storage location for snapshots.
    LogsEnabled bool
    Whether log collection is enabled.
    MaintenanceWindow Ionoscloud.GetInMemoryDBClusterV2MaintenanceWindow
    Maintenance window configuration:
    MetricsEnabled bool
    Whether metrics collection is enabled.
    Name string
    The name of the cluster.
    PersistenceMode string
    The data persistence mode.
    Snapshot Ionoscloud.GetInMemoryDBClusterV2Snapshot
    Snapshot configuration:
    Version string
    The InMemoryDB version.
    Connections GetInMemoryDBClusterV2Connections
    Network connection configuration:
    Credentials GetInMemoryDBClusterV2Credentials
    Credentials block:
    Description string
    Human-readable description for the cluster.
    DnsName string
    The DNS name for connecting to the cluster's primary instance.
    EvictionPolicy string
    The key eviction strategy.
    Id string
    The UUID of the cluster.
    Instances GetInMemoryDBClusterV2Instances
    Instance sizing configuration:
    Location string
    Object Storage location for snapshots.
    LogsEnabled bool
    Whether log collection is enabled.
    MaintenanceWindow GetInMemoryDBClusterV2MaintenanceWindow
    Maintenance window configuration:
    MetricsEnabled bool
    Whether metrics collection is enabled.
    Name string
    The name of the cluster.
    PersistenceMode string
    The data persistence mode.
    Snapshot GetInMemoryDBClusterV2Snapshot
    Snapshot configuration:
    Version string
    The InMemoryDB version.
    connections object
    Network connection configuration:
    credentials object
    Credentials block:
    description string
    Human-readable description for the cluster.
    dns_name string
    The DNS name for connecting to the cluster's primary instance.
    eviction_policy string
    The key eviction strategy.
    id string
    The UUID of the cluster.
    instances object
    Instance sizing configuration:
    location string
    Object Storage location for snapshots.
    logs_enabled bool
    Whether log collection is enabled.
    maintenance_window object
    Maintenance window configuration:
    metrics_enabled bool
    Whether metrics collection is enabled.
    name string
    The name of the cluster.
    persistence_mode string
    The data persistence mode.
    snapshot object
    Snapshot configuration:
    version string
    The InMemoryDB version.
    connections GetInMemoryDBClusterV2Connections
    Network connection configuration:
    credentials GetInMemoryDBClusterV2Credentials
    Credentials block:
    description String
    Human-readable description for the cluster.
    dnsName String
    The DNS name for connecting to the cluster's primary instance.
    evictionPolicy String
    The key eviction strategy.
    id String
    The UUID of the cluster.
    instances GetInMemoryDBClusterV2Instances
    Instance sizing configuration:
    location String
    Object Storage location for snapshots.
    logsEnabled Boolean
    Whether log collection is enabled.
    maintenanceWindow GetInMemoryDBClusterV2MaintenanceWindow
    Maintenance window configuration:
    metricsEnabled Boolean
    Whether metrics collection is enabled.
    name String
    The name of the cluster.
    persistenceMode String
    The data persistence mode.
    snapshot GetInMemoryDBClusterV2Snapshot
    Snapshot configuration:
    version String
    The InMemoryDB version.
    connections GetInMemoryDBClusterV2Connections
    Network connection configuration:
    credentials GetInMemoryDBClusterV2Credentials
    Credentials block:
    description string
    Human-readable description for the cluster.
    dnsName string
    The DNS name for connecting to the cluster's primary instance.
    evictionPolicy string
    The key eviction strategy.
    id string
    The UUID of the cluster.
    instances GetInMemoryDBClusterV2Instances
    Instance sizing configuration:
    location string
    Object Storage location for snapshots.
    logsEnabled boolean
    Whether log collection is enabled.
    maintenanceWindow GetInMemoryDBClusterV2MaintenanceWindow
    Maintenance window configuration:
    metricsEnabled boolean
    Whether metrics collection is enabled.
    name string
    The name of the cluster.
    persistenceMode string
    The data persistence mode.
    snapshot GetInMemoryDBClusterV2Snapshot
    Snapshot configuration:
    version string
    The InMemoryDB version.
    connections GetInMemoryDBClusterV2Connections
    Network connection configuration:
    credentials GetInMemoryDBClusterV2Credentials
    Credentials block:
    description str
    Human-readable description for the cluster.
    dns_name str
    The DNS name for connecting to the cluster's primary instance.
    eviction_policy str
    The key eviction strategy.
    id str
    The UUID of the cluster.
    instances GetInMemoryDBClusterV2Instances
    Instance sizing configuration:
    location str
    Object Storage location for snapshots.
    logs_enabled bool
    Whether log collection is enabled.
    maintenance_window GetInMemoryDBClusterV2MaintenanceWindow
    Maintenance window configuration:
    metrics_enabled bool
    Whether metrics collection is enabled.
    name str
    The name of the cluster.
    persistence_mode str
    The data persistence mode.
    snapshot GetInMemoryDBClusterV2Snapshot
    Snapshot configuration:
    version str
    The InMemoryDB version.
    connections Property Map
    Network connection configuration:
    credentials Property Map
    Credentials block:
    description String
    Human-readable description for the cluster.
    dnsName String
    The DNS name for connecting to the cluster's primary instance.
    evictionPolicy String
    The key eviction strategy.
    id String
    The UUID of the cluster.
    instances Property Map
    Instance sizing configuration:
    location String
    Object Storage location for snapshots.
    logsEnabled Boolean
    Whether log collection is enabled.
    maintenanceWindow Property Map
    Maintenance window configuration:
    metricsEnabled Boolean
    Whether metrics collection is enabled.
    name String
    The name of the cluster.
    persistenceMode String
    The data persistence mode.
    snapshot Property Map
    Snapshot configuration:
    version String
    The InMemoryDB version.

    Supporting Types

    GetInMemoryDBClusterV2Connections

    DatacenterId string
    The Virtual Data Center ID.
    LanId string
    The numeric LAN ID.
    PrimaryInstanceAddress string
    The primary instance IP in CIDR notation.
    DatacenterId string
    The Virtual Data Center ID.
    LanId string
    The numeric LAN ID.
    PrimaryInstanceAddress string
    The primary instance IP in CIDR notation.
    datacenter_id string
    The Virtual Data Center ID.
    lan_id string
    The numeric LAN ID.
    primary_instance_address string
    The primary instance IP in CIDR notation.
    datacenterId String
    The Virtual Data Center ID.
    lanId String
    The numeric LAN ID.
    primaryInstanceAddress String
    The primary instance IP in CIDR notation.
    datacenterId string
    The Virtual Data Center ID.
    lanId string
    The numeric LAN ID.
    primaryInstanceAddress string
    The primary instance IP in CIDR notation.
    datacenter_id str
    The Virtual Data Center ID.
    lan_id str
    The numeric LAN ID.
    primary_instance_address str
    The primary instance IP in CIDR notation.
    datacenterId String
    The Virtual Data Center ID.
    lanId String
    The numeric LAN ID.
    primaryInstanceAddress String
    The primary instance IP in CIDR notation.

    GetInMemoryDBClusterV2Credentials

    Username string
    The username for the InMemoryDB user.
    Username string
    The username for the InMemoryDB user.
    username string
    The username for the InMemoryDB user.
    username String
    The username for the InMemoryDB user.
    username string
    The username for the InMemoryDB user.
    username str
    The username for the InMemoryDB user.
    username String
    The username for the InMemoryDB user.

    GetInMemoryDBClusterV2Instances

    Cores int
    CPU cores per instance.
    Count int
    Number of instances.
    Ram int
    RAM per instance in GB.
    Cores int
    CPU cores per instance.
    Count int
    Number of instances.
    Ram int
    RAM per instance in GB.
    cores number
    CPU cores per instance.
    count number
    Number of instances.
    ram number
    RAM per instance in GB.
    cores Integer
    CPU cores per instance.
    count Integer
    Number of instances.
    ram Integer
    RAM per instance in GB.
    cores number
    CPU cores per instance.
    count number
    Number of instances.
    ram number
    RAM per instance in GB.
    cores int
    CPU cores per instance.
    count int
    Number of instances.
    ram int
    RAM per instance in GB.
    cores Number
    CPU cores per instance.
    count Number
    Number of instances.
    ram Number
    RAM per instance in GB.

    GetInMemoryDBClusterV2MaintenanceWindow

    DayOfTheWeek string
    Maintenance window day of the week.
    Time string
    Maintenance window start time in UTC (HH:MM:SS).
    DayOfTheWeek string
    Maintenance window day of the week.
    Time string
    Maintenance window start time in UTC (HH:MM:SS).
    day_of_the_week string
    Maintenance window day of the week.
    time string
    Maintenance window start time in UTC (HH:MM:SS).
    dayOfTheWeek String
    Maintenance window day of the week.
    time String
    Maintenance window start time in UTC (HH:MM:SS).
    dayOfTheWeek string
    Maintenance window day of the week.
    time string
    Maintenance window start time in UTC (HH:MM:SS).
    day_of_the_week str
    Maintenance window day of the week.
    time str
    Maintenance window start time in UTC (HH:MM:SS).
    dayOfTheWeek String
    Maintenance window day of the week.
    time String
    Maintenance window start time in UTC (HH:MM:SS).

    GetInMemoryDBClusterV2Snapshot

    Location string

    [string] The location of the cluster.

    Note: Either id or name must be provided. If none, or both are provided, the datasource will return an error.

    RetentionDays int
    Days snapshots are retained.
    SnapshotHours List<int>
    UTC hours at which snapshots are taken.
    Location string

    [string] The location of the cluster.

    Note: Either id or name must be provided. If none, or both are provided, the datasource will return an error.

    RetentionDays int
    Days snapshots are retained.
    SnapshotHours []int
    UTC hours at which snapshots are taken.
    location string

    [string] The location of the cluster.

    Note: Either id or name must be provided. If none, or both are provided, the datasource will return an error.

    retention_days number
    Days snapshots are retained.
    snapshot_hours list(number)
    UTC hours at which snapshots are taken.
    location String

    [string] The location of the cluster.

    Note: Either id or name must be provided. If none, or both are provided, the datasource will return an error.

    retentionDays Integer
    Days snapshots are retained.
    snapshotHours List<Integer>
    UTC hours at which snapshots are taken.
    location string

    [string] The location of the cluster.

    Note: Either id or name must be provided. If none, or both are provided, the datasource will return an error.

    retentionDays number
    Days snapshots are retained.
    snapshotHours number[]
    UTC hours at which snapshots are taken.
    location str

    [string] The location of the cluster.

    Note: Either id or name must be provided. If none, or both are provided, the datasource will return an error.

    retention_days int
    Days snapshots are retained.
    snapshot_hours Sequence[int]
    UTC hours at which snapshots are taken.
    location String

    [string] The location of the cluster.

    Note: Either id or name must be provided. If none, or both are provided, the datasource will return an error.

    retentionDays Number
    Days snapshots are retained.
    snapshotHours List<Number>
    UTC hours at which snapshots are taken.

    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.2
    published on Wednesday, Jul 15, 2026 by ionos-cloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial