1. Packages
  2. Ionoscloud
  3. API Docs
  4. dbaas
  5. getInmemorydbSnapshot
IonosCloud v0.2.3 published on Tuesday, May 13, 2025 by ionos-cloud

ionoscloud.dbaas.getInmemorydbSnapshot

Explore with Pulumi AI

ionoscloud logo
IonosCloud v0.2.3 published on Tuesday, May 13, 2025 by ionos-cloud

    The ionoscloud.dbaas.getInmemorydbSnapshot data source can be used to retrieve information about an existing InMemoryDB Snapshot.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example = ionoscloud.dbaas.getInmemorydbSnapshot({
        id: "snapshot-id",
        location: "de/txl",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.dbaas.get_inmemorydb_snapshot(id="snapshot-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.GetInmemorydbSnapshot(ctx, &dbaas.GetInmemorydbSnapshotArgs{
    			Id:       "snapshot-id",
    			Location: "de/txl",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ionoscloud.Dbaas.GetInmemorydbSnapshot.Invoke(new()
        {
            Id = "snapshot-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.GetInmemorydbSnapshotArgs;
    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) {
            final var example = DbaasFunctions.getInmemorydbSnapshot(GetInmemorydbSnapshotArgs.builder()
                .id("snapshot-id")
                .location("de/txl")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:dbaas:getInmemorydbSnapshot
          arguments:
            id: snapshot-id
            location: de/txl
    

    Using getInmemorydbSnapshot

    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 getInmemorydbSnapshot(args: GetInmemorydbSnapshotArgs, opts?: InvokeOptions): Promise<GetInmemorydbSnapshotResult>
    function getInmemorydbSnapshotOutput(args: GetInmemorydbSnapshotOutputArgs, opts?: InvokeOptions): Output<GetInmemorydbSnapshotResult>
    def get_inmemorydb_snapshot(id: Optional[str] = None,
                                location: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetInmemorydbSnapshotResult
    def get_inmemorydb_snapshot_output(id: Optional[pulumi.Input[str]] = None,
                                location: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetInmemorydbSnapshotResult]
    func GetInmemorydbSnapshot(ctx *Context, args *GetInmemorydbSnapshotArgs, opts ...InvokeOption) (*GetInmemorydbSnapshotResult, error)
    func GetInmemorydbSnapshotOutput(ctx *Context, args *GetInmemorydbSnapshotOutputArgs, opts ...InvokeOption) GetInmemorydbSnapshotResultOutput

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

    public static class GetInmemorydbSnapshot 
    {
        public static Task<GetInmemorydbSnapshotResult> InvokeAsync(GetInmemorydbSnapshotArgs args, InvokeOptions? opts = null)
        public static Output<GetInmemorydbSnapshotResult> Invoke(GetInmemorydbSnapshotInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInmemorydbSnapshotResult> getInmemorydbSnapshot(GetInmemorydbSnapshotArgs args, InvokeOptions options)
    public static Output<GetInmemorydbSnapshotResult> getInmemorydbSnapshot(GetInmemorydbSnapshotArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ionoscloud:dbaas/getInmemorydbSnapshot:getInmemorydbSnapshot
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the InMemoryDB Snapshot.
    Location string
    The location of the InMemoryDB Snapshot.
    Id string
    The ID of the InMemoryDB Snapshot.
    Location string
    The location of the InMemoryDB Snapshot.
    id String
    The ID of the InMemoryDB Snapshot.
    location String
    The location of the InMemoryDB Snapshot.
    id string
    The ID of the InMemoryDB Snapshot.
    location string
    The location of the InMemoryDB Snapshot.
    id str
    The ID of the InMemoryDB Snapshot.
    location str
    The location of the InMemoryDB Snapshot.
    id String
    The ID of the InMemoryDB Snapshot.
    location String
    The location of the InMemoryDB Snapshot.

    getInmemorydbSnapshot Result

    The following output properties are available:

    Id string
    Location string
    Metadatas []GetInmemorydbSnapshotMetadata
    Metadata of the snapshot.
    id String
    location String
    metadatas List<GetInmemorydbSnapshotMetadata>
    Metadata of the snapshot.
    id string
    location string
    metadatas GetInmemorydbSnapshotMetadata[]
    Metadata of the snapshot.
    id String
    location String
    metadatas List<Property Map>
    Metadata of the snapshot.

    Supporting Types

    GetInmemorydbSnapshotMetadata

    CreatedDate string
    The ISO 8601 creation timestamp.
    DatacenterId string
    The ID of the datacenter in which the snapshot is located.
    LastModifiedDate string
    The ISO 8601 modified timestamp.
    ReplicaSetId string
    The ID of the replica set from which the snapshot was created.
    SnapshotTime string
    The time at which the snapshot was taken.
    CreatedDate string
    The ISO 8601 creation timestamp.
    DatacenterId string
    The ID of the datacenter in which the snapshot is located.
    LastModifiedDate string
    The ISO 8601 modified timestamp.
    ReplicaSetId string
    The ID of the replica set from which the snapshot was created.
    SnapshotTime string
    The time at which the snapshot was taken.
    createdDate String
    The ISO 8601 creation timestamp.
    datacenterId String
    The ID of the datacenter in which the snapshot is located.
    lastModifiedDate String
    The ISO 8601 modified timestamp.
    replicaSetId String
    The ID of the replica set from which the snapshot was created.
    snapshotTime String
    The time at which the snapshot was taken.
    createdDate string
    The ISO 8601 creation timestamp.
    datacenterId string
    The ID of the datacenter in which the snapshot is located.
    lastModifiedDate string
    The ISO 8601 modified timestamp.
    replicaSetId string
    The ID of the replica set from which the snapshot was created.
    snapshotTime string
    The time at which the snapshot was taken.
    created_date str
    The ISO 8601 creation timestamp.
    datacenter_id str
    The ID of the datacenter in which the snapshot is located.
    last_modified_date str
    The ISO 8601 modified timestamp.
    replica_set_id str
    The ID of the replica set from which the snapshot was created.
    snapshot_time str
    The time at which the snapshot was taken.
    createdDate String
    The ISO 8601 creation timestamp.
    datacenterId String
    The ID of the datacenter in which the snapshot is located.
    lastModifiedDate String
    The ISO 8601 modified timestamp.
    replicaSetId String
    The ID of the replica set from which the snapshot was created.
    snapshotTime String
    The time at which the snapshot was 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
    IonosCloud v0.2.3 published on Tuesday, May 13, 2025 by ionos-cloud