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

ionoscloud.dbaas.getInMemoryDBReplicaSet

Explore with Pulumi AI

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

    The ionoscloud.dbaas.InMemoryDBReplicaSet data source can be used to retrieve information about an existing InMemoryDB Replica Set.

    Example Usage

    By id

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example = ionoscloud.dbaas.getInMemoryDBReplicaSet({
        id: "example-id",
        location: "es/vit",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.dbaas.get_in_memory_db_replica_set(id="example-id",
        location="es/vit")
    
    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.LookupInMemoryDBReplicaSet(ctx, &dbaas.LookupInMemoryDBReplicaSetArgs{
    			Id:       pulumi.StringRef("example-id"),
    			Location: pulumi.StringRef("es/vit"),
    		}, 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.GetInMemoryDBReplicaSet.Invoke(new()
        {
            Id = "example-id",
            Location = "es/vit",
        });
    
    });
    
    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.GetInMemoryDBReplicaSetArgs;
    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.getInMemoryDBReplicaSet(GetInMemoryDBReplicaSetArgs.builder()
                .id("example-id")
                .location("es/vit")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:dbaas:getInMemoryDBReplicaSet
          arguments:
            id: example-id
            location: es/vit
    

    By display_name

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example = ionoscloud.dbaas.getInMemoryDBReplicaSet({
        displayName: "example-id",
        location: "us/las",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.dbaas.get_in_memory_db_replica_set(display_name="example-id",
        location="us/las")
    
    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.LookupInMemoryDBReplicaSet(ctx, &dbaas.LookupInMemoryDBReplicaSetArgs{
    			DisplayName: pulumi.StringRef("example-id"),
    			Location:    pulumi.StringRef("us/las"),
    		}, 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.GetInMemoryDBReplicaSet.Invoke(new()
        {
            DisplayName = "example-id",
            Location = "us/las",
        });
    
    });
    
    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.GetInMemoryDBReplicaSetArgs;
    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.getInMemoryDBReplicaSet(GetInMemoryDBReplicaSetArgs.builder()
                .displayName("example-id")
                .location("us/las")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:dbaas:getInMemoryDBReplicaSet
          arguments:
            displayName: example-id
            location: us/las
    

    Using getInMemoryDBReplicaSet

    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 getInMemoryDBReplicaSet(args: GetInMemoryDBReplicaSetArgs, opts?: InvokeOptions): Promise<GetInMemoryDBReplicaSetResult>
    function getInMemoryDBReplicaSetOutput(args: GetInMemoryDBReplicaSetOutputArgs, opts?: InvokeOptions): Output<GetInMemoryDBReplicaSetResult>
    def get_in_memory_db_replica_set(display_name: Optional[str] = None,
                                     id: Optional[str] = None,
                                     location: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetInMemoryDBReplicaSetResult
    def get_in_memory_db_replica_set_output(display_name: Optional[pulumi.Input[str]] = None,
                                     id: Optional[pulumi.Input[str]] = None,
                                     location: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetInMemoryDBReplicaSetResult]
    func LookupInMemoryDBReplicaSet(ctx *Context, args *LookupInMemoryDBReplicaSetArgs, opts ...InvokeOption) (*LookupInMemoryDBReplicaSetResult, error)
    func LookupInMemoryDBReplicaSetOutput(ctx *Context, args *LookupInMemoryDBReplicaSetOutputArgs, opts ...InvokeOption) LookupInMemoryDBReplicaSetResultOutput

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

    public static class GetInMemoryDBReplicaSet 
    {
        public static Task<GetInMemoryDBReplicaSetResult> InvokeAsync(GetInMemoryDBReplicaSetArgs args, InvokeOptions? opts = null)
        public static Output<GetInMemoryDBReplicaSetResult> Invoke(GetInMemoryDBReplicaSetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInMemoryDBReplicaSetResult> getInMemoryDBReplicaSet(GetInMemoryDBReplicaSetArgs args, InvokeOptions options)
    public static Output<GetInMemoryDBReplicaSetResult> getInMemoryDBReplicaSet(GetInMemoryDBReplicaSetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ionoscloud:dbaas/getInMemoryDBReplicaSet:getInMemoryDBReplicaSet
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DisplayName string
    The display name of the InMemoryDB Replica Set.
    Id string
    The ID of the InMemoryDB Replica Set.
    Location string

    The location of the InMemoryDB Replica Set.

    Note: Either id or display_name must be provided. If none, or both are provided, the datasource will return an error.

    DisplayName string
    The display name of the InMemoryDB Replica Set.
    Id string
    The ID of the InMemoryDB Replica Set.
    Location string

    The location of the InMemoryDB Replica Set.

    Note: Either id or display_name must be provided. If none, or both are provided, the datasource will return an error.

    displayName String
    The display name of the InMemoryDB Replica Set.
    id String
    The ID of the InMemoryDB Replica Set.
    location String

    The location of the InMemoryDB Replica Set.

    Note: Either id or display_name must be provided. If none, or both are provided, the datasource will return an error.

    displayName string
    The display name of the InMemoryDB Replica Set.
    id string
    The ID of the InMemoryDB Replica Set.
    location string

    The location of the InMemoryDB Replica Set.

    Note: Either id or display_name must be provided. If none, or both are provided, the datasource will return an error.

    display_name str
    The display name of the InMemoryDB Replica Set.
    id str
    The ID of the InMemoryDB Replica Set.
    location str

    The location of the InMemoryDB Replica Set.

    Note: Either id or display_name must be provided. If none, or both are provided, the datasource will return an error.

    displayName String
    The display name of the InMemoryDB Replica Set.
    id String
    The ID of the InMemoryDB Replica Set.
    location String

    The location of the InMemoryDB Replica Set.

    Note: Either id or display_name must be provided. If none, or both are provided, the datasource will return an error.

    getInMemoryDBReplicaSet Result

    The following output properties are available:

    Connections List<Ionoscloud.GetInMemoryDBReplicaSetConnection>
    [object] The network connection for your replica set. Only one connection is allowed. It includes:
    Credentials List<Ionoscloud.GetInMemoryDBReplicaSetCredential>
    [object] Credentials for the InMemoryDB replicaset, only one type of password can be used since they are mutually exclusive. It includes:
    DisplayName string
    DnsName string
    [string] The DNS name pointing to your replica set. Will be used to connect to the active/standalone instance.
    EvictionPolicy string
    [string] The eviction policy for the replica set, possible values are:
    Id string
    MaintenanceWindows List<Ionoscloud.GetInMemoryDBReplicaSetMaintenanceWindow>
    A weekly 4 hour-long window, during which maintenance might occur. It includes:
    PersistenceMode string
    [string] Specifies How and If data is persisted, possible values are:

    • None - Data is inMemory only and will not be persisted. Useful for cache only applications.
    • AOF - (Append Only File) AOF persistence logs every write operation received by the server. These operations can then be replayed again at server startup, reconstructing the original dataset. Commands are logged using the same format as the InMemoryDB protocol itself.
    • RDB - RDB persistence performs snapshots of the current in memory state.
    • RDB_AOF - Both, RDB and AOF persistence are enabled.
    Replicas int
    [int] The total number of replicas in the replica set (one active and n-1 passive). In case of a standalone instance, the value is 1. In all other cases, the value is > 1. The replicas will not be available as read replicas, they are only standby for a failure of the active instance.
    Resources List<Ionoscloud.GetInMemoryDBReplicaSetResource>
    [object] The resources of the individual replicas. It includes:
    Version string
    [string] The InMemoryDB version of your replica set.
    Location string
    Connections []GetInMemoryDBReplicaSetConnection
    [object] The network connection for your replica set. Only one connection is allowed. It includes:
    Credentials []GetInMemoryDBReplicaSetCredential
    [object] Credentials for the InMemoryDB replicaset, only one type of password can be used since they are mutually exclusive. It includes:
    DisplayName string
    DnsName string
    [string] The DNS name pointing to your replica set. Will be used to connect to the active/standalone instance.
    EvictionPolicy string
    [string] The eviction policy for the replica set, possible values are:
    Id string
    MaintenanceWindows []GetInMemoryDBReplicaSetMaintenanceWindow
    A weekly 4 hour-long window, during which maintenance might occur. It includes:
    PersistenceMode string
    [string] Specifies How and If data is persisted, possible values are:

    • None - Data is inMemory only and will not be persisted. Useful for cache only applications.
    • AOF - (Append Only File) AOF persistence logs every write operation received by the server. These operations can then be replayed again at server startup, reconstructing the original dataset. Commands are logged using the same format as the InMemoryDB protocol itself.
    • RDB - RDB persistence performs snapshots of the current in memory state.
    • RDB_AOF - Both, RDB and AOF persistence are enabled.
    Replicas int
    [int] The total number of replicas in the replica set (one active and n-1 passive). In case of a standalone instance, the value is 1. In all other cases, the value is > 1. The replicas will not be available as read replicas, they are only standby for a failure of the active instance.
    Resources []GetInMemoryDBReplicaSetResource
    [object] The resources of the individual replicas. It includes:
    Version string
    [string] The InMemoryDB version of your replica set.
    Location string
    connections List<GetInMemoryDBReplicaSetConnection>
    [object] The network connection for your replica set. Only one connection is allowed. It includes:
    credentials List<GetInMemoryDBReplicaSetCredential>
    [object] Credentials for the InMemoryDB replicaset, only one type of password can be used since they are mutually exclusive. It includes:
    displayName String
    dnsName String
    [string] The DNS name pointing to your replica set. Will be used to connect to the active/standalone instance.
    evictionPolicy String
    [string] The eviction policy for the replica set, possible values are:
    id String
    maintenanceWindows List<GetInMemoryDBReplicaSetMaintenanceWindow>
    A weekly 4 hour-long window, during which maintenance might occur. It includes:
    persistenceMode String
    [string] Specifies How and If data is persisted, possible values are:

    • None - Data is inMemory only and will not be persisted. Useful for cache only applications.
    • AOF - (Append Only File) AOF persistence logs every write operation received by the server. These operations can then be replayed again at server startup, reconstructing the original dataset. Commands are logged using the same format as the InMemoryDB protocol itself.
    • RDB - RDB persistence performs snapshots of the current in memory state.
    • RDB_AOF - Both, RDB and AOF persistence are enabled.
    replicas Integer
    [int] The total number of replicas in the replica set (one active and n-1 passive). In case of a standalone instance, the value is 1. In all other cases, the value is > 1. The replicas will not be available as read replicas, they are only standby for a failure of the active instance.
    resources List<GetInMemoryDBReplicaSetResource>
    [object] The resources of the individual replicas. It includes:
    version String
    [string] The InMemoryDB version of your replica set.
    location String
    connections GetInMemoryDBReplicaSetConnection[]
    [object] The network connection for your replica set. Only one connection is allowed. It includes:
    credentials GetInMemoryDBReplicaSetCredential[]
    [object] Credentials for the InMemoryDB replicaset, only one type of password can be used since they are mutually exclusive. It includes:
    displayName string
    dnsName string
    [string] The DNS name pointing to your replica set. Will be used to connect to the active/standalone instance.
    evictionPolicy string
    [string] The eviction policy for the replica set, possible values are:
    id string
    maintenanceWindows GetInMemoryDBReplicaSetMaintenanceWindow[]
    A weekly 4 hour-long window, during which maintenance might occur. It includes:
    persistenceMode string
    [string] Specifies How and If data is persisted, possible values are:

    • None - Data is inMemory only and will not be persisted. Useful for cache only applications.
    • AOF - (Append Only File) AOF persistence logs every write operation received by the server. These operations can then be replayed again at server startup, reconstructing the original dataset. Commands are logged using the same format as the InMemoryDB protocol itself.
    • RDB - RDB persistence performs snapshots of the current in memory state.
    • RDB_AOF - Both, RDB and AOF persistence are enabled.
    replicas number
    [int] The total number of replicas in the replica set (one active and n-1 passive). In case of a standalone instance, the value is 1. In all other cases, the value is > 1. The replicas will not be available as read replicas, they are only standby for a failure of the active instance.
    resources GetInMemoryDBReplicaSetResource[]
    [object] The resources of the individual replicas. It includes:
    version string
    [string] The InMemoryDB version of your replica set.
    location string
    connections Sequence[GetInMemoryDBReplicaSetConnection]
    [object] The network connection for your replica set. Only one connection is allowed. It includes:
    credentials Sequence[GetInMemoryDBReplicaSetCredential]
    [object] Credentials for the InMemoryDB replicaset, only one type of password can be used since they are mutually exclusive. It includes:
    display_name str
    dns_name str
    [string] The DNS name pointing to your replica set. Will be used to connect to the active/standalone instance.
    eviction_policy str
    [string] The eviction policy for the replica set, possible values are:
    id str
    maintenance_windows Sequence[GetInMemoryDBReplicaSetMaintenanceWindow]
    A weekly 4 hour-long window, during which maintenance might occur. It includes:
    persistence_mode str
    [string] Specifies How and If data is persisted, possible values are:

    • None - Data is inMemory only and will not be persisted. Useful for cache only applications.
    • AOF - (Append Only File) AOF persistence logs every write operation received by the server. These operations can then be replayed again at server startup, reconstructing the original dataset. Commands are logged using the same format as the InMemoryDB protocol itself.
    • RDB - RDB persistence performs snapshots of the current in memory state.
    • RDB_AOF - Both, RDB and AOF persistence are enabled.
    replicas int
    [int] The total number of replicas in the replica set (one active and n-1 passive). In case of a standalone instance, the value is 1. In all other cases, the value is > 1. The replicas will not be available as read replicas, they are only standby for a failure of the active instance.
    resources Sequence[GetInMemoryDBReplicaSetResource]
    [object] The resources of the individual replicas. It includes:
    version str
    [string] The InMemoryDB version of your replica set.
    location str
    connections List<Property Map>
    [object] The network connection for your replica set. Only one connection is allowed. It includes:
    credentials List<Property Map>
    [object] Credentials for the InMemoryDB replicaset, only one type of password can be used since they are mutually exclusive. It includes:
    displayName String
    dnsName String
    [string] The DNS name pointing to your replica set. Will be used to connect to the active/standalone instance.
    evictionPolicy String
    [string] The eviction policy for the replica set, possible values are:
    id String
    maintenanceWindows List<Property Map>
    A weekly 4 hour-long window, during which maintenance might occur. It includes:
    persistenceMode String
    [string] Specifies How and If data is persisted, possible values are:

    • None - Data is inMemory only and will not be persisted. Useful for cache only applications.
    • AOF - (Append Only File) AOF persistence logs every write operation received by the server. These operations can then be replayed again at server startup, reconstructing the original dataset. Commands are logged using the same format as the InMemoryDB protocol itself.
    • RDB - RDB persistence performs snapshots of the current in memory state.
    • RDB_AOF - Both, RDB and AOF persistence are enabled.
    replicas Number
    [int] The total number of replicas in the replica set (one active and n-1 passive). In case of a standalone instance, the value is 1. In all other cases, the value is > 1. The replicas will not be available as read replicas, they are only standby for a failure of the active instance.
    resources List<Property Map>
    [object] The resources of the individual replicas. It includes:
    version String
    [string] The InMemoryDB version of your replica set.
    location String

    Supporting Types

    GetInMemoryDBReplicaSetConnection

    Cidr string
    [string] The IP and subnet for your instance. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24.
    DatacenterId string
    [string] The datacenter to connect your instance to.
    LanId string
    [string] The numeric LAN ID to connect your instance to.
    Cidr string
    [string] The IP and subnet for your instance. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24.
    DatacenterId string
    [string] The datacenter to connect your instance to.
    LanId string
    [string] The numeric LAN ID to connect your instance to.
    cidr String
    [string] The IP and subnet for your instance. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24.
    datacenterId String
    [string] The datacenter to connect your instance to.
    lanId String
    [string] The numeric LAN ID to connect your instance to.
    cidr string
    [string] The IP and subnet for your instance. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24.
    datacenterId string
    [string] The datacenter to connect your instance to.
    lanId string
    [string] The numeric LAN ID to connect your instance to.
    cidr str
    [string] The IP and subnet for your instance. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24.
    datacenter_id str
    [string] The datacenter to connect your instance to.
    lan_id str
    [string] The numeric LAN ID to connect your instance to.
    cidr String
    [string] The IP and subnet for your instance. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24.
    datacenterId String
    [string] The datacenter to connect your instance to.
    lanId String
    [string] The numeric LAN ID to connect your instance to.

    GetInMemoryDBReplicaSetCredential

    Username string
    [string] The username for the initial InMemoryDB user. Some system usernames are restricted (e.g. 'admin', 'standby').
    Username string
    [string] The username for the initial InMemoryDB user. Some system usernames are restricted (e.g. 'admin', 'standby').
    username String
    [string] The username for the initial InMemoryDB user. Some system usernames are restricted (e.g. 'admin', 'standby').
    username string
    [string] The username for the initial InMemoryDB user. Some system usernames are restricted (e.g. 'admin', 'standby').
    username str
    [string] The username for the initial InMemoryDB user. Some system usernames are restricted (e.g. 'admin', 'standby').
    username String
    [string] The username for the initial InMemoryDB user. Some system usernames are restricted (e.g. 'admin', 'standby').

    GetInMemoryDBReplicaSetMaintenanceWindow

    DayOfTheWeek string
    [string] The name of the week day.
    Time string
    [string] Start of the maintenance window in UTC time.
    DayOfTheWeek string
    [string] The name of the week day.
    Time string
    [string] Start of the maintenance window in UTC time.
    dayOfTheWeek String
    [string] The name of the week day.
    time String
    [string] Start of the maintenance window in UTC time.
    dayOfTheWeek string
    [string] The name of the week day.
    time string
    [string] Start of the maintenance window in UTC time.
    day_of_the_week str
    [string] The name of the week day.
    time str
    [string] Start of the maintenance window in UTC time.
    dayOfTheWeek String
    [string] The name of the week day.
    time String
    [string] Start of the maintenance window in UTC time.

    GetInMemoryDBReplicaSetResource

    Cores int
    [int] The number of CPU cores per instance.
    Ram int
    [int] The amount of memory per instance in gigabytes (GB).
    Storage int
    [int] The size of the storage in GB. The size is derived from the amount of RAM and the persistence mode and is not configurable.
    Cores int
    [int] The number of CPU cores per instance.
    Ram int
    [int] The amount of memory per instance in gigabytes (GB).
    Storage int
    [int] The size of the storage in GB. The size is derived from the amount of RAM and the persistence mode and is not configurable.
    cores Integer
    [int] The number of CPU cores per instance.
    ram Integer
    [int] The amount of memory per instance in gigabytes (GB).
    storage Integer
    [int] The size of the storage in GB. The size is derived from the amount of RAM and the persistence mode and is not configurable.
    cores number
    [int] The number of CPU cores per instance.
    ram number
    [int] The amount of memory per instance in gigabytes (GB).
    storage number
    [int] The size of the storage in GB. The size is derived from the amount of RAM and the persistence mode and is not configurable.
    cores int
    [int] The number of CPU cores per instance.
    ram int
    [int] The amount of memory per instance in gigabytes (GB).
    storage int
    [int] The size of the storage in GB. The size is derived from the amount of RAM and the persistence mode and is not configurable.
    cores Number
    [int] The number of CPU cores per instance.
    ram Number
    [int] The amount of memory per instance in gigabytes (GB).
    storage Number
    [int] The size of the storage in GB. The size is derived from the amount of RAM and the persistence mode and is not configurable.

    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