1. Packages
  2. Packages
  3. Ionoscloud
  4. API Docs
  5. dbaas
  6. getInMemoryDBSnapshotsV2
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.getInMemoryDBSnapshotsV2 data source can be used to retrieve information about existing InMemoryDB V2 snapshots, with an optional cluster ID filter.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const all = ionoscloud.dbaas.getInMemoryDBSnapshotsV2({
        location: "de/txl",
    });
    const forCluster = ionoscloud.dbaas.getInMemoryDBSnapshotsV2({
        location: "de/txl",
        clusterId: "example-id",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    all = ionoscloud.dbaas.get_in_memory_db_snapshots_v2(location="de/txl")
    for_cluster = ionoscloud.dbaas.get_in_memory_db_snapshots_v2(location="de/txl",
        cluster_id="example-id")
    
    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.GetInMemoryDBSnapshotsV2(ctx, &dbaas.GetInMemoryDBSnapshotsV2Args{
    			Location: "de/txl",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = dbaas.GetInMemoryDBSnapshotsV2(ctx, &dbaas.GetInMemoryDBSnapshotsV2Args{
    			Location:  "de/txl",
    			ClusterId: pulumi.StringRef("example-id"),
    		}, 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.GetInMemoryDBSnapshotsV2.Invoke(new()
        {
            Location = "de/txl",
        });
    
        var forCluster = Ionoscloud.Dbaas.GetInMemoryDBSnapshotsV2.Invoke(new()
        {
            Location = "de/txl",
            ClusterId = "example-id",
        });
    
    });
    
    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.GetInMemoryDBSnapshotsV2Args;
    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.getInMemoryDBSnapshotsV2(GetInMemoryDBSnapshotsV2Args.builder()
                .location("de/txl")
                .build());
    
            final var forCluster = DbaasFunctions.getInMemoryDBSnapshotsV2(GetInMemoryDBSnapshotsV2Args.builder()
                .location("de/txl")
                .clusterId("example-id")
                .build());
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: ionoscloud:dbaas:getInMemoryDBSnapshotsV2
          arguments:
            location: de/txl
      forCluster:
        fn::invoke:
          function: ionoscloud:dbaas:getInMemoryDBSnapshotsV2
          arguments:
            location: de/txl
            clusterId: example-id
    
    pulumi {
      required_providers {
        ionoscloud = {
          source = "pulumi/ionoscloud"
        }
      }
    }
    
    data "ionoscloud_dbaas_getinmemorydbsnapshotsv2" "all" {
      location = "de/txl"
    }
    data "ionoscloud_dbaas_getinmemorydbsnapshotsv2" "forCluster" {
      location   = "de/txl"
      cluster_id = "example-id"
    }
    

    Using getInMemoryDBSnapshotsV2

    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 getInMemoryDBSnapshotsV2(args: GetInMemoryDBSnapshotsV2Args, opts?: InvokeOptions): Promise<GetInMemoryDBSnapshotsV2Result>
    function getInMemoryDBSnapshotsV2Output(args: GetInMemoryDBSnapshotsV2OutputArgs, opts?: InvokeOptions): Output<GetInMemoryDBSnapshotsV2Result>
    def get_in_memory_db_snapshots_v2(cluster_id: Optional[str] = None,
                                      location: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetInMemoryDBSnapshotsV2Result
    def get_in_memory_db_snapshots_v2_output(cluster_id: pulumi.Input[Optional[str]] = None,
                                      location: pulumi.Input[Optional[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetInMemoryDBSnapshotsV2Result]
    func GetInMemoryDBSnapshotsV2(ctx *Context, args *GetInMemoryDBSnapshotsV2Args, opts ...InvokeOption) (*GetInMemoryDBSnapshotsV2Result, error)
    func GetInMemoryDBSnapshotsV2Output(ctx *Context, args *GetInMemoryDBSnapshotsV2OutputArgs, opts ...InvokeOption) GetInMemoryDBSnapshotsV2ResultOutput

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

    public static class GetInMemoryDBSnapshotsV2 
    {
        public static Task<GetInMemoryDBSnapshotsV2Result> InvokeAsync(GetInMemoryDBSnapshotsV2Args args, InvokeOptions? opts = null)
        public static Output<GetInMemoryDBSnapshotsV2Result> Invoke(GetInMemoryDBSnapshotsV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInMemoryDBSnapshotsV2Result> getInMemoryDBSnapshotsV2(GetInMemoryDBSnapshotsV2Args args, InvokeOptions options)
    public static Output<GetInMemoryDBSnapshotsV2Result> getInMemoryDBSnapshotsV2(GetInMemoryDBSnapshotsV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: ionoscloud:dbaas/getInMemoryDBSnapshotsV2:getInMemoryDBSnapshotsV2
      arguments:
        # arguments dictionary
    data "ionoscloud_dbaas_get_in_memory_d_b_snapshots_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    Location string
    [string] The location to query.
    ClusterId string
    [string] Filter snapshots by cluster UUID.
    Location string
    [string] The location to query.
    ClusterId string
    [string] Filter snapshots by cluster UUID.
    location string
    [string] The location to query.
    cluster_id string
    [string] Filter snapshots by cluster UUID.
    location String
    [string] The location to query.
    clusterId String
    [string] Filter snapshots by cluster UUID.
    location string
    [string] The location to query.
    clusterId string
    [string] Filter snapshots by cluster UUID.
    location str
    [string] The location to query.
    cluster_id str
    [string] Filter snapshots by cluster UUID.
    location String
    [string] The location to query.
    clusterId String
    [string] Filter snapshots by cluster UUID.

    getInMemoryDBSnapshotsV2 Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<Ionoscloud.GetInMemoryDBSnapshotsV2Item>
    List of snapshots. Each item includes:
    Location string
    The location of the snapshot.
    ClusterId string
    The ID of the cluster this snapshot belongs to.
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetInMemoryDBSnapshotsV2Item
    List of snapshots. Each item includes:
    Location string
    The location of the snapshot.
    ClusterId string
    The ID of the cluster this snapshot belongs to.
    id string
    The provider-assigned unique ID for this managed resource.
    items list(object)
    List of snapshots. Each item includes:
    location string
    The location of the snapshot.
    cluster_id string
    The ID of the cluster this snapshot belongs to.
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetInMemoryDBSnapshotsV2Item>
    List of snapshots. Each item includes:
    location String
    The location of the snapshot.
    clusterId String
    The ID of the cluster this snapshot belongs to.
    id string
    The provider-assigned unique ID for this managed resource.
    items GetInMemoryDBSnapshotsV2Item[]
    List of snapshots. Each item includes:
    location string
    The location of the snapshot.
    clusterId string
    The ID of the cluster this snapshot belongs to.
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetInMemoryDBSnapshotsV2Item]
    List of snapshots. Each item includes:
    location str
    The location of the snapshot.
    cluster_id str
    The ID of the cluster this snapshot belongs to.
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    List of snapshots. Each item includes:
    location String
    The location of the snapshot.
    clusterId String
    The ID of the cluster this snapshot belongs to.

    Supporting Types

    GetInMemoryDBSnapshotsV2Item

    ClusterId string
    [string] Filter snapshots by cluster UUID.
    ClusterName string
    The name of the cluster this snapshot belongs to.
    ClusterVersion string
    The InMemoryDB version of the cluster at the time of the snapshot.
    DatacenterId string
    The ID of the data center where the snapshot was created.
    EarliestRecoveryTargetTime string
    The earliest time for which a snapshot is available to restore from (RFC3339).
    Id string
    The UUID of the snapshot.
    LatestRecoveryTargetTime string
    The most recent time for which a snapshot is available to restore from (RFC3339). Empty if available up to the current time.
    Location string
    [string] The location to query.
    RequiredSizeForRestore double
    The minimum storage size in GB required to restore from this snapshot.
    SnapshotLocation string
    The Object Storage location where the snapshot is stored.
    SnapshotSize double
    The size of the snapshot in GB.
    ClusterId string
    [string] Filter snapshots by cluster UUID.
    ClusterName string
    The name of the cluster this snapshot belongs to.
    ClusterVersion string
    The InMemoryDB version of the cluster at the time of the snapshot.
    DatacenterId string
    The ID of the data center where the snapshot was created.
    EarliestRecoveryTargetTime string
    The earliest time for which a snapshot is available to restore from (RFC3339).
    Id string
    The UUID of the snapshot.
    LatestRecoveryTargetTime string
    The most recent time for which a snapshot is available to restore from (RFC3339). Empty if available up to the current time.
    Location string
    [string] The location to query.
    RequiredSizeForRestore float64
    The minimum storage size in GB required to restore from this snapshot.
    SnapshotLocation string
    The Object Storage location where the snapshot is stored.
    SnapshotSize float64
    The size of the snapshot in GB.
    cluster_id string
    [string] Filter snapshots by cluster UUID.
    cluster_name string
    The name of the cluster this snapshot belongs to.
    cluster_version string
    The InMemoryDB version of the cluster at the time of the snapshot.
    datacenter_id string
    The ID of the data center where the snapshot was created.
    earliest_recovery_target_time string
    The earliest time for which a snapshot is available to restore from (RFC3339).
    id string
    The UUID of the snapshot.
    latest_recovery_target_time string
    The most recent time for which a snapshot is available to restore from (RFC3339). Empty if available up to the current time.
    location string
    [string] The location to query.
    required_size_for_restore number
    The minimum storage size in GB required to restore from this snapshot.
    snapshot_location string
    The Object Storage location where the snapshot is stored.
    snapshot_size number
    The size of the snapshot in GB.
    clusterId String
    [string] Filter snapshots by cluster UUID.
    clusterName String
    The name of the cluster this snapshot belongs to.
    clusterVersion String
    The InMemoryDB version of the cluster at the time of the snapshot.
    datacenterId String
    The ID of the data center where the snapshot was created.
    earliestRecoveryTargetTime String
    The earliest time for which a snapshot is available to restore from (RFC3339).
    id String
    The UUID of the snapshot.
    latestRecoveryTargetTime String
    The most recent time for which a snapshot is available to restore from (RFC3339). Empty if available up to the current time.
    location String
    [string] The location to query.
    requiredSizeForRestore Double
    The minimum storage size in GB required to restore from this snapshot.
    snapshotLocation String
    The Object Storage location where the snapshot is stored.
    snapshotSize Double
    The size of the snapshot in GB.
    clusterId string
    [string] Filter snapshots by cluster UUID.
    clusterName string
    The name of the cluster this snapshot belongs to.
    clusterVersion string
    The InMemoryDB version of the cluster at the time of the snapshot.
    datacenterId string
    The ID of the data center where the snapshot was created.
    earliestRecoveryTargetTime string
    The earliest time for which a snapshot is available to restore from (RFC3339).
    id string
    The UUID of the snapshot.
    latestRecoveryTargetTime string
    The most recent time for which a snapshot is available to restore from (RFC3339). Empty if available up to the current time.
    location string
    [string] The location to query.
    requiredSizeForRestore number
    The minimum storage size in GB required to restore from this snapshot.
    snapshotLocation string
    The Object Storage location where the snapshot is stored.
    snapshotSize number
    The size of the snapshot in GB.
    cluster_id str
    [string] Filter snapshots by cluster UUID.
    cluster_name str
    The name of the cluster this snapshot belongs to.
    cluster_version str
    The InMemoryDB version of the cluster at the time of the snapshot.
    datacenter_id str
    The ID of the data center where the snapshot was created.
    earliest_recovery_target_time str
    The earliest time for which a snapshot is available to restore from (RFC3339).
    id str
    The UUID of the snapshot.
    latest_recovery_target_time str
    The most recent time for which a snapshot is available to restore from (RFC3339). Empty if available up to the current time.
    location str
    [string] The location to query.
    required_size_for_restore float
    The minimum storage size in GB required to restore from this snapshot.
    snapshot_location str
    The Object Storage location where the snapshot is stored.
    snapshot_size float
    The size of the snapshot in GB.
    clusterId String
    [string] Filter snapshots by cluster UUID.
    clusterName String
    The name of the cluster this snapshot belongs to.
    clusterVersion String
    The InMemoryDB version of the cluster at the time of the snapshot.
    datacenterId String
    The ID of the data center where the snapshot was created.
    earliestRecoveryTargetTime String
    The earliest time for which a snapshot is available to restore from (RFC3339).
    id String
    The UUID of the snapshot.
    latestRecoveryTargetTime String
    The most recent time for which a snapshot is available to restore from (RFC3339). Empty if available up to the current time.
    location String
    [string] The location to query.
    requiredSizeForRestore Number
    The minimum storage size in GB required to restore from this snapshot.
    snapshotLocation String
    The Object Storage location where the snapshot is stored.
    snapshotSize Number
    The size of the snapshot in GB.

    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