1. Registry
  2. Packages
  3. Ionoscloud
  4. API Docs
  5. dbaas
  6. getInMemoryDBClustersV2
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.getInMemoryDBClustersV2 data source can be used to retrieve information about existing InMemoryDB V2 clusters in a given location, with an optional name filter.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const all = ionoscloud.dbaas.getInMemoryDBClustersV2({
        location: "de/txl",
    });
    const filtered = ionoscloud.dbaas.getInMemoryDBClustersV2({
        location: "de/txl",
        name: "my-cluster",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    all = ionoscloud.dbaas.get_in_memory_db_clusters_v2(location="de/txl")
    filtered = ionoscloud.dbaas.get_in_memory_db_clusters_v2(location="de/txl",
        name="my-cluster")
    
    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.GetInMemoryDBClustersV2(ctx, &dbaas.GetInMemoryDBClustersV2Args{
    			Location: "de/txl",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = dbaas.GetInMemoryDBClustersV2(ctx, &dbaas.GetInMemoryDBClustersV2Args{
    			Location: "de/txl",
    			Name:     pulumi.StringRef("my-cluster"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Ionoscloud.Dbaas.GetInMemoryDBClustersV2.Invoke(new()
        {
            Location = "de/txl",
        });
    
        var filtered = Ionoscloud.Dbaas.GetInMemoryDBClustersV2.Invoke(new()
        {
            Location = "de/txl",
            Name = "my-cluster",
        });
    
    });
    
    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.GetInMemoryDBClustersV2Args;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var all = DbaasFunctions.getInMemoryDBClustersV2(GetInMemoryDBClustersV2Args.builder()
                .location("de/txl")
                .build());
    
            final var filtered = DbaasFunctions.getInMemoryDBClustersV2(GetInMemoryDBClustersV2Args.builder()
                .location("de/txl")
                .name("my-cluster")
                .build());
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: ionoscloud:dbaas:getInMemoryDBClustersV2
          arguments:
            location: de/txl
      filtered:
        fn::invoke:
          function: ionoscloud:dbaas:getInMemoryDBClustersV2
          arguments:
            location: de/txl
            name: my-cluster
    
    pulumi {
      required_providers {
        ionoscloud = {
          source = "pulumi/ionoscloud"
        }
      }
    }
    
    data "ionoscloud_dbaas_getinmemorydbclustersv2" "all" {
      location = "de/txl"
    }
    data "ionoscloud_dbaas_getinmemorydbclustersv2" "filtered" {
      location = "de/txl"
      name     = "my-cluster"
    }
    

    Using getInMemoryDBClustersV2

    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 getInMemoryDBClustersV2(args: GetInMemoryDBClustersV2Args, opts?: InvokeOptions): Promise<GetInMemoryDBClustersV2Result>
    function getInMemoryDBClustersV2Output(args: GetInMemoryDBClustersV2OutputArgs, opts?: InvokeOutputOptions): Output<GetInMemoryDBClustersV2Result>
    def get_in_memory_db_clusters_v2(location: Optional[str] = None,
                                     name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetInMemoryDBClustersV2Result
    def get_in_memory_db_clusters_v2_output(location: pulumi.Input[Optional[str]] = None,
                                     name: pulumi.Input[Optional[str]] = None,
                                     opts: Optional[InvokeOutputOptions] = None) -> Output[GetInMemoryDBClustersV2Result]
    func GetInMemoryDBClustersV2(ctx *Context, args *GetInMemoryDBClustersV2Args, opts ...InvokeOption) (*GetInMemoryDBClustersV2Result, error)
    func GetInMemoryDBClustersV2Output(ctx *Context, args *GetInMemoryDBClustersV2OutputArgs, opts ...InvokeOption) GetInMemoryDBClustersV2ResultOutput

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

    public static class GetInMemoryDBClustersV2 
    {
        public static Task<GetInMemoryDBClustersV2Result> InvokeAsync(GetInMemoryDBClustersV2Args args, InvokeOptions? opts = null)
        public static Output<GetInMemoryDBClustersV2Result> Invoke(GetInMemoryDBClustersV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetInMemoryDBClustersV2Result> Invoke(GetInMemoryDBClustersV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetInMemoryDBClustersV2Result> getInMemoryDBClustersV2(GetInMemoryDBClustersV2Args args, InvokeOptions options)
    public static Output<GetInMemoryDBClustersV2Result> getInMemoryDBClustersV2(GetInMemoryDBClustersV2Args args, InvokeOptions options)
    public static Output<GetInMemoryDBClustersV2Result> getInMemoryDBClustersV2(GetInMemoryDBClustersV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: ionoscloud:dbaas/getInMemoryDBClustersV2:getInMemoryDBClustersV2
      arguments:
        # arguments dictionary
    data "ionoscloud_dbaas_get_in_memory_d_b_clusters_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    Location string
    [string] The location to query.
    Name string
    [string] Filter by name (case-insensitive contains match).
    Location string
    [string] The location to query.
    Name string
    [string] Filter by name (case-insensitive contains match).
    location string
    [string] The location to query.
    name string
    [string] Filter by name (case-insensitive contains match).
    location String
    [string] The location to query.
    name String
    [string] Filter by name (case-insensitive contains match).
    location string
    [string] The location to query.
    name string
    [string] Filter by name (case-insensitive contains match).
    location str
    [string] The location to query.
    name str
    [string] Filter by name (case-insensitive contains match).
    location String
    [string] The location to query.
    name String
    [string] Filter by name (case-insensitive contains match).

    getInMemoryDBClustersV2 Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<Ionoscloud.GetInMemoryDBClustersV2Item>
    List of clusters. Each item exposes the same attributes as the ionoscloud.dbaas.InMemoryDBClusterV2 data source. Note that credentials.password is not available — only credentials.username is returned by the API.
    Location string
    Name string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetInMemoryDBClustersV2Item
    List of clusters. Each item exposes the same attributes as the ionoscloud.dbaas.InMemoryDBClusterV2 data source. Note that credentials.password is not available — only credentials.username is returned by the API.
    Location string
    Name string
    id string
    The provider-assigned unique ID for this managed resource.
    items list(object)
    List of clusters. Each item exposes the same attributes as the ionoscloud.dbaas.InMemoryDBClusterV2 data source. Note that credentials.password is not available — only credentials.username is returned by the API.
    location string
    name string
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetInMemoryDBClustersV2Item>
    List of clusters. Each item exposes the same attributes as the ionoscloud.dbaas.InMemoryDBClusterV2 data source. Note that credentials.password is not available — only credentials.username is returned by the API.
    location String
    name String
    id string
    The provider-assigned unique ID for this managed resource.
    items GetInMemoryDBClustersV2Item[]
    List of clusters. Each item exposes the same attributes as the ionoscloud.dbaas.InMemoryDBClusterV2 data source. Note that credentials.password is not available — only credentials.username is returned by the API.
    location string
    name string
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetInMemoryDBClustersV2Item]
    List of clusters. Each item exposes the same attributes as the ionoscloud.dbaas.InMemoryDBClusterV2 data source. Note that credentials.password is not available — only credentials.username is returned by the API.
    location str
    name str
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    List of clusters. Each item exposes the same attributes as the ionoscloud.dbaas.InMemoryDBClusterV2 data source. Note that credentials.password is not available — only credentials.username is returned by the API.
    location String
    name String

    Supporting Types

    GetInMemoryDBClustersV2Item

    Connections Ionoscloud.GetInMemoryDBClustersV2ItemConnections
    Network connection configuration for the cluster.
    Credentials Ionoscloud.GetInMemoryDBClustersV2ItemCredentials
    Credentials for the user with access to the cluster.
    Description string
    Human-readable description for the cluster.
    DnsName string
    The DNS name used to connect to the cluster's primary instance.
    EvictionPolicy string
    The key eviction strategy.
    Id string
    The ID (UUID) of the cluster.
    Instances Ionoscloud.GetInMemoryDBClustersV2ItemInstances
    Compute configuration for each instance. Storage size is automatically derived from RAM and persistence mode.
    Location string
    [string] The location to query.
    LogsEnabled bool
    Whether log collection is enabled.
    MaintenanceWindow Ionoscloud.GetInMemoryDBClustersV2ItemMaintenanceWindow
    A weekly 4-hour maintenance window.
    MetricsEnabled bool
    Whether metrics collection is enabled.
    Name string
    [string] Filter by name (case-insensitive contains match).
    PersistenceMode string
    The data persistence mode.
    Snapshot Ionoscloud.GetInMemoryDBClustersV2ItemSnapshot
    Snapshot storage and retention configuration.
    Version string
    The In-Memory DB version.
    Connections GetInMemoryDBClustersV2ItemConnections
    Network connection configuration for the cluster.
    Credentials GetInMemoryDBClustersV2ItemCredentials
    Credentials for the user with access to the cluster.
    Description string
    Human-readable description for the cluster.
    DnsName string
    The DNS name used to connect to the cluster's primary instance.
    EvictionPolicy string
    The key eviction strategy.
    Id string
    The ID (UUID) of the cluster.
    Instances GetInMemoryDBClustersV2ItemInstances
    Compute configuration for each instance. Storage size is automatically derived from RAM and persistence mode.
    Location string
    [string] The location to query.
    LogsEnabled bool
    Whether log collection is enabled.
    MaintenanceWindow GetInMemoryDBClustersV2ItemMaintenanceWindow
    A weekly 4-hour maintenance window.
    MetricsEnabled bool
    Whether metrics collection is enabled.
    Name string
    [string] Filter by name (case-insensitive contains match).
    PersistenceMode string
    The data persistence mode.
    Snapshot GetInMemoryDBClustersV2ItemSnapshot
    Snapshot storage and retention configuration.
    Version string
    The In-Memory DB version.
    connections object
    Network connection configuration for the cluster.
    credentials object
    Credentials for the user with access to the cluster.
    description string
    Human-readable description for the cluster.
    dns_name string
    The DNS name used to connect to the cluster's primary instance.
    eviction_policy string
    The key eviction strategy.
    id string
    The ID (UUID) of the cluster.
    instances object
    Compute configuration for each instance. Storage size is automatically derived from RAM and persistence mode.
    location string
    [string] The location to query.
    logs_enabled bool
    Whether log collection is enabled.
    maintenance_window object
    A weekly 4-hour maintenance window.
    metrics_enabled bool
    Whether metrics collection is enabled.
    name string
    [string] Filter by name (case-insensitive contains match).
    persistence_mode string
    The data persistence mode.
    snapshot object
    Snapshot storage and retention configuration.
    version string
    The In-Memory DB version.
    connections GetInMemoryDBClustersV2ItemConnections
    Network connection configuration for the cluster.
    credentials GetInMemoryDBClustersV2ItemCredentials
    Credentials for the user with access to the cluster.
    description String
    Human-readable description for the cluster.
    dnsName String
    The DNS name used to connect to the cluster's primary instance.
    evictionPolicy String
    The key eviction strategy.
    id String
    The ID (UUID) of the cluster.
    instances GetInMemoryDBClustersV2ItemInstances
    Compute configuration for each instance. Storage size is automatically derived from RAM and persistence mode.
    location String
    [string] The location to query.
    logsEnabled Boolean
    Whether log collection is enabled.
    maintenanceWindow GetInMemoryDBClustersV2ItemMaintenanceWindow
    A weekly 4-hour maintenance window.
    metricsEnabled Boolean
    Whether metrics collection is enabled.
    name String
    [string] Filter by name (case-insensitive contains match).
    persistenceMode String
    The data persistence mode.
    snapshot GetInMemoryDBClustersV2ItemSnapshot
    Snapshot storage and retention configuration.
    version String
    The In-Memory DB version.
    connections GetInMemoryDBClustersV2ItemConnections
    Network connection configuration for the cluster.
    credentials GetInMemoryDBClustersV2ItemCredentials
    Credentials for the user with access to the cluster.
    description string
    Human-readable description for the cluster.
    dnsName string
    The DNS name used to connect to the cluster's primary instance.
    evictionPolicy string
    The key eviction strategy.
    id string
    The ID (UUID) of the cluster.
    instances GetInMemoryDBClustersV2ItemInstances
    Compute configuration for each instance. Storage size is automatically derived from RAM and persistence mode.
    location string
    [string] The location to query.
    logsEnabled boolean
    Whether log collection is enabled.
    maintenanceWindow GetInMemoryDBClustersV2ItemMaintenanceWindow
    A weekly 4-hour maintenance window.
    metricsEnabled boolean
    Whether metrics collection is enabled.
    name string
    [string] Filter by name (case-insensitive contains match).
    persistenceMode string
    The data persistence mode.
    snapshot GetInMemoryDBClustersV2ItemSnapshot
    Snapshot storage and retention configuration.
    version string
    The In-Memory DB version.
    connections GetInMemoryDBClustersV2ItemConnections
    Network connection configuration for the cluster.
    credentials GetInMemoryDBClustersV2ItemCredentials
    Credentials for the user with access to the cluster.
    description str
    Human-readable description for the cluster.
    dns_name str
    The DNS name used to connect to the cluster's primary instance.
    eviction_policy str
    The key eviction strategy.
    id str
    The ID (UUID) of the cluster.
    instances GetInMemoryDBClustersV2ItemInstances
    Compute configuration for each instance. Storage size is automatically derived from RAM and persistence mode.
    location str
    [string] The location to query.
    logs_enabled bool
    Whether log collection is enabled.
    maintenance_window GetInMemoryDBClustersV2ItemMaintenanceWindow
    A weekly 4-hour maintenance window.
    metrics_enabled bool
    Whether metrics collection is enabled.
    name str
    [string] Filter by name (case-insensitive contains match).
    persistence_mode str
    The data persistence mode.
    snapshot GetInMemoryDBClustersV2ItemSnapshot
    Snapshot storage and retention configuration.
    version str
    The In-Memory DB version.
    connections Property Map
    Network connection configuration for the cluster.
    credentials Property Map
    Credentials for the user with access to the cluster.
    description String
    Human-readable description for the cluster.
    dnsName String
    The DNS name used to connect to the cluster's primary instance.
    evictionPolicy String
    The key eviction strategy.
    id String
    The ID (UUID) of the cluster.
    instances Property Map
    Compute configuration for each instance. Storage size is automatically derived from RAM and persistence mode.
    location String
    [string] The location to query.
    logsEnabled Boolean
    Whether log collection is enabled.
    maintenanceWindow Property Map
    A weekly 4-hour maintenance window.
    metricsEnabled Boolean
    Whether metrics collection is enabled.
    name String
    [string] Filter by name (case-insensitive contains match).
    persistenceMode String
    The data persistence mode.
    snapshot Property Map
    Snapshot storage and retention configuration.
    version String
    The In-Memory DB version.

    GetInMemoryDBClustersV2ItemConnections

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

    GetInMemoryDBClustersV2ItemCredentials

    Username string
    The username for the In-Memory DB user.
    Username string
    The username for the In-Memory DB user.
    username string
    The username for the In-Memory DB user.
    username String
    The username for the In-Memory DB user.
    username string
    The username for the In-Memory DB user.
    username str
    The username for the In-Memory DB user.
    username String
    The username for the In-Memory DB user.

    GetInMemoryDBClustersV2ItemInstances

    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.

    GetInMemoryDBClustersV2ItemMaintenanceWindow

    DayOfTheWeek string
    Day of the week.
    Time string
    Start time in UTC (HH:MM:SS).
    DayOfTheWeek string
    Day of the week.
    Time string
    Start time in UTC (HH:MM:SS).
    day_of_the_week string
    Day of the week.
    time string
    Start time in UTC (HH:MM:SS).
    dayOfTheWeek String
    Day of the week.
    time String
    Start time in UTC (HH:MM:SS).
    dayOfTheWeek string
    Day of the week.
    time string
    Start time in UTC (HH:MM:SS).
    day_of_the_week str
    Day of the week.
    time str
    Start time in UTC (HH:MM:SS).
    dayOfTheWeek String
    Day of the week.
    time String
    Start time in UTC (HH:MM:SS).

    GetInMemoryDBClustersV2ItemSnapshot

    Location string
    [string] The location to query.
    RetentionDays int
    Number of days snapshots are retained.
    SnapshotHours List<int>
    UTC hours at which snapshots are taken.
    Location string
    [string] The location to query.
    RetentionDays int
    Number of days snapshots are retained.
    SnapshotHours []int
    UTC hours at which snapshots are taken.
    location string
    [string] The location to query.
    retention_days number
    Number of days snapshots are retained.
    snapshot_hours list(number)
    UTC hours at which snapshots are taken.
    location String
    [string] The location to query.
    retentionDays Integer
    Number of days snapshots are retained.
    snapshotHours List<Integer>
    UTC hours at which snapshots are taken.
    location string
    [string] The location to query.
    retentionDays number
    Number of days snapshots are retained.
    snapshotHours number[]
    UTC hours at which snapshots are taken.
    location str
    [string] The location to query.
    retention_days int
    Number of days snapshots are retained.
    snapshot_hours Sequence[int]
    UTC hours at which snapshots are taken.
    location String
    [string] The location to query.
    retentionDays Number
    Number of 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