ionoscloud.dbaas.getInMemoryDBReplicaSet
Explore with Pulumi AI
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:
- Display
Name 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
ordisplay_name
must be provided. If none, or both are provided, the datasource will return an error.
- Display
Name 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
ordisplay_name
must be provided. If none, or both are provided, the datasource will return an error.
- display
Name 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
ordisplay_name
must be provided. If none, or both are provided, the datasource will return an error.
- display
Name 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
ordisplay_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
ordisplay_name
must be provided. If none, or both are provided, the datasource will return an error.
- display
Name 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
ordisplay_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.
Get In Memory DBReplica Set Connection> - [object] The network connection for your replica set. Only one connection is allowed. It includes:
- Credentials
List<Ionoscloud.
Get In Memory DBReplica Set Credential> - [object] Credentials for the InMemoryDB replicaset, only one type of password can be used since they are mutually exclusive. It includes:
- Display
Name string - Dns
Name string - [string] The DNS name pointing to your replica set. Will be used to connect to the active/standalone instance.
- Eviction
Policy string - [string] The eviction policy for the replica set, possible values are:
- Id string
- Maintenance
Windows List<Ionoscloud.Get In Memory DBReplica Set Maintenance Window> - A weekly 4 hour-long window, during which maintenance might occur. It includes:
- Persistence
Mode 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.
Get In Memory DBReplica Set Resource> - [object] The resources of the individual replicas. It includes:
- Version string
- [string] The InMemoryDB version of your replica set.
- Location string
- Connections
[]Get
In Memory DBReplica Set Connection - [object] The network connection for your replica set. Only one connection is allowed. It includes:
- Credentials
[]Get
In Memory DBReplica Set Credential - [object] Credentials for the InMemoryDB replicaset, only one type of password can be used since they are mutually exclusive. It includes:
- Display
Name string - Dns
Name string - [string] The DNS name pointing to your replica set. Will be used to connect to the active/standalone instance.
- Eviction
Policy string - [string] The eviction policy for the replica set, possible values are:
- Id string
- Maintenance
Windows []GetIn Memory DBReplica Set Maintenance Window - A weekly 4 hour-long window, during which maintenance might occur. It includes:
- Persistence
Mode 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
[]Get
In Memory DBReplica Set Resource - [object] The resources of the individual replicas. It includes:
- Version string
- [string] The InMemoryDB version of your replica set.
- Location string
- connections
List<Get
In Memory DBReplica Set Connection> - [object] The network connection for your replica set. Only one connection is allowed. It includes:
- credentials
List<Get
In Memory DBReplica Set Credential> - [object] Credentials for the InMemoryDB replicaset, only one type of password can be used since they are mutually exclusive. It includes:
- display
Name String - dns
Name String - [string] The DNS name pointing to your replica set. Will be used to connect to the active/standalone instance.
- eviction
Policy String - [string] The eviction policy for the replica set, possible values are:
- id String
- maintenance
Windows List<GetIn Memory DBReplica Set Maintenance Window> - A weekly 4 hour-long window, during which maintenance might occur. It includes:
- persistence
Mode 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<Get
In Memory DBReplica Set Resource> - [object] The resources of the individual replicas. It includes:
- version String
- [string] The InMemoryDB version of your replica set.
- location String
- connections
Get
In Memory DBReplica Set Connection[] - [object] The network connection for your replica set. Only one connection is allowed. It includes:
- credentials
Get
In Memory DBReplica Set Credential[] - [object] Credentials for the InMemoryDB replicaset, only one type of password can be used since they are mutually exclusive. It includes:
- display
Name string - dns
Name string - [string] The DNS name pointing to your replica set. Will be used to connect to the active/standalone instance.
- eviction
Policy string - [string] The eviction policy for the replica set, possible values are:
- id string
- maintenance
Windows GetIn Memory DBReplica Set Maintenance Window[] - A weekly 4 hour-long window, during which maintenance might occur. It includes:
- persistence
Mode 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
Get
In Memory DBReplica Set Resource[] - [object] The resources of the individual replicas. It includes:
- version string
- [string] The InMemoryDB version of your replica set.
- location string
- connections
Sequence[Get
In Memory DBReplica Set Connection] - [object] The network connection for your replica set. Only one connection is allowed. It includes:
- credentials
Sequence[Get
In Memory DBReplica Set Credential] - [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[GetIn Memory DBReplica Set Maintenance Window] - 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[Get
In Memory DBReplica Set Resource] - [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:
- display
Name String - dns
Name String - [string] The DNS name pointing to your replica set. Will be used to connect to the active/standalone instance.
- eviction
Policy String - [string] The eviction policy for the replica set, possible values are:
- id String
- maintenance
Windows List<Property Map> - A weekly 4 hour-long window, during which maintenance might occur. It includes:
- persistence
Mode 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.
- Datacenter
Id string - [string] The datacenter to connect your instance to.
- Lan
Id 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.
- Datacenter
Id string - [string] The datacenter to connect your instance to.
- Lan
Id 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.
- datacenter
Id String - [string] The datacenter to connect your instance to.
- lan
Id 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.
- datacenter
Id string - [string] The datacenter to connect your instance to.
- lan
Id 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.
- datacenter
Id String - [string] The datacenter to connect your instance to.
- lan
Id 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
- Day
Of stringThe Week - [string] The name of the week day.
- Time string
- [string] Start of the maintenance window in UTC time.
- Day
Of stringThe Week - [string] The name of the week day.
- Time string
- [string] Start of the maintenance window in UTC time.
- day
Of StringThe Week - [string] The name of the week day.
- time String
- [string] Start of the maintenance window in UTC time.
- day
Of stringThe Week - [string] The name of the week day.
- time string
- [string] Start of the maintenance window in UTC time.
- day_
of_ strthe_ week - [string] The name of the week day.
- time str
- [string] Start of the maintenance window in UTC time.
- day
Of StringThe Week - [string] The name of the week day.
- time String
- [string] Start of the maintenance window in UTC time.
GetInMemoryDBReplicaSetResource
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.