IonosCloud v0.2.3 published on Tuesday, May 13, 2025 by ionos-cloud
ionoscloud.dbaas.getInmemorydbSnapshot
Explore with Pulumi AI
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:
getInmemorydbSnapshot Result
The following output properties are available:
- Id string
- Location string
- Metadatas
List<Ionoscloud.
Get Inmemorydb Snapshot Metadata> - Metadata of the snapshot.
- Id string
- Location string
- Metadatas
[]Get
Inmemorydb Snapshot Metadata - Metadata of the snapshot.
- id String
- location String
- metadatas
List<Get
Inmemorydb Snapshot Metadata> - Metadata of the snapshot.
- id string
- location string
- metadatas
Get
Inmemorydb Snapshot Metadata[] - Metadata of the snapshot.
- id str
- location str
- metadatas
Sequence[Get
Inmemorydb Snapshot Metadata] - Metadata of the snapshot.
- id String
- location String
- metadatas List<Property Map>
- Metadata of the snapshot.
Supporting Types
GetInmemorydbSnapshotMetadata
- Created
Date string - The ISO 8601 creation timestamp.
- Datacenter
Id string - The ID of the datacenter in which the snapshot is located.
- Last
Modified stringDate - The ISO 8601 modified timestamp.
- Replica
Set stringId - The ID of the replica set from which the snapshot was created.
- Snapshot
Time string - The time at which the snapshot was taken.
- Created
Date string - The ISO 8601 creation timestamp.
- Datacenter
Id string - The ID of the datacenter in which the snapshot is located.
- Last
Modified stringDate - The ISO 8601 modified timestamp.
- Replica
Set stringId - The ID of the replica set from which the snapshot was created.
- Snapshot
Time string - The time at which the snapshot was taken.
- created
Date String - The ISO 8601 creation timestamp.
- datacenter
Id String - The ID of the datacenter in which the snapshot is located.
- last
Modified StringDate - The ISO 8601 modified timestamp.
- replica
Set StringId - The ID of the replica set from which the snapshot was created.
- snapshot
Time String - The time at which the snapshot was taken.
- created
Date string - The ISO 8601 creation timestamp.
- datacenter
Id string - The ID of the datacenter in which the snapshot is located.
- last
Modified stringDate - The ISO 8601 modified timestamp.
- replica
Set stringId - The ID of the replica set from which the snapshot was created.
- snapshot
Time 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_ strdate - The ISO 8601 modified timestamp.
- replica_
set_ strid - The ID of the replica set from which the snapshot was created.
- snapshot_
time str - The time at which the snapshot was taken.
- created
Date String - The ISO 8601 creation timestamp.
- datacenter
Id String - The ID of the datacenter in which the snapshot is located.
- last
Modified StringDate - The ISO 8601 modified timestamp.
- replica
Set StringId - The ID of the replica set from which the snapshot was created.
- snapshot
Time 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.