1. Registry
  2. Packages
  3. Ionoscloud
  4. API Docs
  5. dbaas
  6. getInMemoryDBSnapshotLocationsV2
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.getInMemoryDBSnapshotLocationsV2 data source can be used to retrieve available InMemoryDB V2 snapshot locations for a given API endpoint.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const example = ionoscloud.dbaas.getInMemoryDBSnapshotLocationsV2({
        location: "de/txl",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.dbaas.get_in_memory_db_snapshot_locations_v2(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.GetInMemoryDBSnapshotLocationsV2(ctx, &dbaas.GetInMemoryDBSnapshotLocationsV2Args{
    			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 example = Ionoscloud.Dbaas.GetInMemoryDBSnapshotLocationsV2.Invoke(new()
        {
            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.GetInMemoryDBSnapshotLocationsV2Args;
    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 example = DbaasFunctions.getInMemoryDBSnapshotLocationsV2(GetInMemoryDBSnapshotLocationsV2Args.builder()
                .location("de/txl")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:dbaas:getInMemoryDBSnapshotLocationsV2
          arguments:
            location: de/txl
    
    pulumi {
      required_providers {
        ionoscloud = {
          source = "pulumi/ionoscloud"
        }
      }
    }
    
    data "ionoscloud_dbaas_getinmemorydbsnapshotlocationsv2" "example" {
      location = "de/txl"
    }
    

    Using getInMemoryDBSnapshotLocationsV2

    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 getInMemoryDBSnapshotLocationsV2(args: GetInMemoryDBSnapshotLocationsV2Args, opts?: InvokeOptions): Promise<GetInMemoryDBSnapshotLocationsV2Result>
    function getInMemoryDBSnapshotLocationsV2Output(args: GetInMemoryDBSnapshotLocationsV2OutputArgs, opts?: InvokeOutputOptions): Output<GetInMemoryDBSnapshotLocationsV2Result>
    def get_in_memory_db_snapshot_locations_v2(location: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetInMemoryDBSnapshotLocationsV2Result
    def get_in_memory_db_snapshot_locations_v2_output(location: pulumi.Input[Optional[str]] = None,
                                               opts: Optional[InvokeOutputOptions] = None) -> Output[GetInMemoryDBSnapshotLocationsV2Result]
    func GetInMemoryDBSnapshotLocationsV2(ctx *Context, args *GetInMemoryDBSnapshotLocationsV2Args, opts ...InvokeOption) (*GetInMemoryDBSnapshotLocationsV2Result, error)
    func GetInMemoryDBSnapshotLocationsV2Output(ctx *Context, args *GetInMemoryDBSnapshotLocationsV2OutputArgs, opts ...InvokeOption) GetInMemoryDBSnapshotLocationsV2ResultOutput

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

    public static class GetInMemoryDBSnapshotLocationsV2 
    {
        public static Task<GetInMemoryDBSnapshotLocationsV2Result> InvokeAsync(GetInMemoryDBSnapshotLocationsV2Args args, InvokeOptions? opts = null)
        public static Output<GetInMemoryDBSnapshotLocationsV2Result> Invoke(GetInMemoryDBSnapshotLocationsV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetInMemoryDBSnapshotLocationsV2Result> Invoke(GetInMemoryDBSnapshotLocationsV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetInMemoryDBSnapshotLocationsV2Result> getInMemoryDBSnapshotLocationsV2(GetInMemoryDBSnapshotLocationsV2Args args, InvokeOptions options)
    public static Output<GetInMemoryDBSnapshotLocationsV2Result> getInMemoryDBSnapshotLocationsV2(GetInMemoryDBSnapshotLocationsV2Args args, InvokeOptions options)
    public static Output<GetInMemoryDBSnapshotLocationsV2Result> getInMemoryDBSnapshotLocationsV2(GetInMemoryDBSnapshotLocationsV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: ionoscloud:dbaas/getInMemoryDBSnapshotLocationsV2:getInMemoryDBSnapshotLocationsV2
      arguments:
        # arguments dictionary
    data "ionoscloud_dbaas_get_in_memory_d_b_snapshot_locations_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    Location string
    [string] The location to query. Requests are routed to the corresponding regional InMemoryDB endpoint.
    Location string
    [string] The location to query. Requests are routed to the corresponding regional InMemoryDB endpoint.
    location string
    [string] The location to query. Requests are routed to the corresponding regional InMemoryDB endpoint.
    location String
    [string] The location to query. Requests are routed to the corresponding regional InMemoryDB endpoint.
    location string
    [string] The location to query. Requests are routed to the corresponding regional InMemoryDB endpoint.
    location str
    [string] The location to query. Requests are routed to the corresponding regional InMemoryDB endpoint.
    location String
    [string] The location to query. Requests are routed to the corresponding regional InMemoryDB endpoint.

    getInMemoryDBSnapshotLocationsV2 Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<Ionoscloud.GetInMemoryDBSnapshotLocationsV2Item>
    List of snapshot location objects. Each item includes:
    Location string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetInMemoryDBSnapshotLocationsV2Item
    List of snapshot location objects. Each item includes:
    Location string
    id string
    The provider-assigned unique ID for this managed resource.
    items list(object)
    List of snapshot location objects. Each item includes:
    location string
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetInMemoryDBSnapshotLocationsV2Item>
    List of snapshot location objects. Each item includes:
    location String
    id string
    The provider-assigned unique ID for this managed resource.
    items GetInMemoryDBSnapshotLocationsV2Item[]
    List of snapshot location objects. Each item includes:
    location string
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetInMemoryDBSnapshotLocationsV2Item]
    List of snapshot location objects. Each item includes:
    location str
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    List of snapshot location objects. Each item includes:
    location String

    Supporting Types

    GetInMemoryDBSnapshotLocationsV2Item

    Id string
    The ID of the snapshot location.
    SnapshotRegion string
    The snapshot region identifier.
    Id string
    The ID of the snapshot location.
    SnapshotRegion string
    The snapshot region identifier.
    id string
    The ID of the snapshot location.
    snapshot_region string
    The snapshot region identifier.
    id String
    The ID of the snapshot location.
    snapshotRegion String
    The snapshot region identifier.
    id string
    The ID of the snapshot location.
    snapshotRegion string
    The snapshot region identifier.
    id str
    The ID of the snapshot location.
    snapshot_region str
    The snapshot region identifier.
    id String
    The ID of the snapshot location.
    snapshotRegion String
    The snapshot region identifier.

    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