ionoscloud.dbaas.getMongoCluster
Explore with Pulumi AI
The DbaaS Mongo Cluster data source can be used to search for and return an existing DbaaS MongoDB Cluster. If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned. When this happens, please refine your search string so that it is specific enough to return only one result.
Example Usage
By ID
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.dbaas.getMongoCluster({
id: "cluster_id",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.dbaas.get_mongo_cluster(id="cluster_id")
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.LookupMongoCluster(ctx, &dbaas.LookupMongoClusterArgs{
Id: pulumi.StringRef("cluster_id"),
}, 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.GetMongoCluster.Invoke(new()
{
Id = "cluster_id",
});
});
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.GetMongoClusterArgs;
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.getMongoCluster(GetMongoClusterArgs.builder()
.id("cluster_id")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:dbaas:getMongoCluster
arguments:
id: cluster_id
By display_name
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.dbaas.getMongoCluster({
displayName: "display_name",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.dbaas.get_mongo_cluster(display_name="display_name")
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.LookupMongoCluster(ctx, &dbaas.LookupMongoClusterArgs{
DisplayName: pulumi.StringRef("display_name"),
}, 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.GetMongoCluster.Invoke(new()
{
DisplayName = "display_name",
});
});
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.GetMongoClusterArgs;
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.getMongoCluster(GetMongoClusterArgs.builder()
.displayName("display_name")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:dbaas:getMongoCluster
arguments:
displayName: display_name
display_name
- (Optional) Display Name of an existing cluster that you want to search for.id
- (Optional) ID of the cluster you want to search for.
Either display_name
or id
must be provided. If none, or both are provided, the datasource will return an error.
Using getMongoCluster
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 getMongoCluster(args: GetMongoClusterArgs, opts?: InvokeOptions): Promise<GetMongoClusterResult>
function getMongoClusterOutput(args: GetMongoClusterOutputArgs, opts?: InvokeOptions): Output<GetMongoClusterResult>
def get_mongo_cluster(display_name: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMongoClusterResult
def get_mongo_cluster_output(display_name: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMongoClusterResult]
func LookupMongoCluster(ctx *Context, args *LookupMongoClusterArgs, opts ...InvokeOption) (*LookupMongoClusterResult, error)
func LookupMongoClusterOutput(ctx *Context, args *LookupMongoClusterOutputArgs, opts ...InvokeOption) LookupMongoClusterResultOutput
> Note: This function is named LookupMongoCluster
in the Go SDK.
public static class GetMongoCluster
{
public static Task<GetMongoClusterResult> InvokeAsync(GetMongoClusterArgs args, InvokeOptions? opts = null)
public static Output<GetMongoClusterResult> Invoke(GetMongoClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMongoClusterResult> getMongoCluster(GetMongoClusterArgs args, InvokeOptions options)
public static Output<GetMongoClusterResult> getMongoCluster(GetMongoClusterArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:dbaas/getMongoCluster:getMongoCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Display
Name string - The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- Id string
- Display
Name string - The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- Id string
- display
Name String - The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- id String
- display
Name string - The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- id string
- display_
name str - The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- id str
- display
Name String - The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- id String
getMongoCluster Result
The following output properties are available:
- Backups
List<Ionoscloud.
Get Mongo Cluster Backup> - Bi
Connectors List<Ionoscloud.Get Mongo Cluster Bi Connector> - Connection
String string - The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit"
- Connections
List<Ionoscloud.
Get Mongo Cluster Connection> - Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- Cores int
- The number of CPU cores per replica. Required for enterprise edition.
- Display
Name string - The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- Edition string
- Cluster edition. Playground, business or enterprise.
- Id string
- Instances int
- The total number of instances in the cluster (one master and n-1 standbys). Example: 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- Location string
- The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- Maintenance
Windows List<Ionoscloud.Get Mongo Cluster Maintenance Window> - A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- Mongodb
Version string - The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- Ram int
- The amount of memory per instance in megabytes. Required for enterprise edition.
- int
- Storage
Size int - The amount of storage per instance in MB. Required for enterprise edition.
- Storage
Type string - The storage type used in your cluster. Required for enterprise edition.
- Template
Id string - The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created.
- Type string
- Backups
[]Get
Mongo Cluster Backup - Bi
Connectors []GetMongo Cluster Bi Connector - Connection
String string - The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit"
- Connections
[]Get
Mongo Cluster Connection - Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- Cores int
- The number of CPU cores per replica. Required for enterprise edition.
- Display
Name string - The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- Edition string
- Cluster edition. Playground, business or enterprise.
- Id string
- Instances int
- The total number of instances in the cluster (one master and n-1 standbys). Example: 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- Location string
- The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- Maintenance
Windows []GetMongo Cluster Maintenance Window - A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- Mongodb
Version string - The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- Ram int
- The amount of memory per instance in megabytes. Required for enterprise edition.
- int
- Storage
Size int - The amount of storage per instance in MB. Required for enterprise edition.
- Storage
Type string - The storage type used in your cluster. Required for enterprise edition.
- Template
Id string - The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created.
- Type string
- backups
List<Get
Mongo Cluster Backup> - bi
Connectors List<GetMongo Cluster Bi Connector> - connection
String String - The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit"
- connections
List<Get
Mongo Cluster Connection> - Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- cores Integer
- The number of CPU cores per replica. Required for enterprise edition.
- display
Name String - The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- edition String
- Cluster edition. Playground, business or enterprise.
- id String
- instances Integer
- The total number of instances in the cluster (one master and n-1 standbys). Example: 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- location String
- The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- maintenance
Windows List<GetMongo Cluster Maintenance Window> - A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- mongodb
Version String - The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- ram Integer
- The amount of memory per instance in megabytes. Required for enterprise edition.
- Integer
- storage
Size Integer - The amount of storage per instance in MB. Required for enterprise edition.
- storage
Type String - The storage type used in your cluster. Required for enterprise edition.
- template
Id String - The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created.
- type String
- backups
Get
Mongo Cluster Backup[] - bi
Connectors GetMongo Cluster Bi Connector[] - connection
String string - The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit"
- connections
Get
Mongo Cluster Connection[] - Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- cores number
- The number of CPU cores per replica. Required for enterprise edition.
- display
Name string - The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- edition string
- Cluster edition. Playground, business or enterprise.
- id string
- instances number
- The total number of instances in the cluster (one master and n-1 standbys). Example: 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- location string
- The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- maintenance
Windows GetMongo Cluster Maintenance Window[] - A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- mongodb
Version string - The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- ram number
- The amount of memory per instance in megabytes. Required for enterprise edition.
- number
- storage
Size number - The amount of storage per instance in MB. Required for enterprise edition.
- storage
Type string - The storage type used in your cluster. Required for enterprise edition.
- template
Id string - The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created.
- type string
- backups
Sequence[Get
Mongo Cluster Backup] - bi_
connectors Sequence[GetMongo Cluster Bi Connector] - connection_
string str - The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit"
- connections
Sequence[Get
Mongo Cluster Connection] - Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- cores int
- The number of CPU cores per replica. Required for enterprise edition.
- display_
name str - The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- edition str
- Cluster edition. Playground, business or enterprise.
- id str
- instances int
- The total number of instances in the cluster (one master and n-1 standbys). Example: 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- location str
- The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- maintenance_
windows Sequence[GetMongo Cluster Maintenance Window] - A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- mongodb_
version str - The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- ram int
- The amount of memory per instance in megabytes. Required for enterprise edition.
- int
- storage_
size int - The amount of storage per instance in MB. Required for enterprise edition.
- storage_
type str - The storage type used in your cluster. Required for enterprise edition.
- template_
id str - The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created.
- type str
- backups List<Property Map>
- bi
Connectors List<Property Map> - connection
String String - The physical location where the cluster will be created. This will be where all of your instances live. Updates to the value of the field force the cluster to be re-created. Available locations: de/txl, gb/lhr, es/vit"
- connections List<Property Map>
- Details about the network connection for your cluster. Updates to the value of the field force the cluster to be re-created.
- cores Number
- The number of CPU cores per replica. Required for enterprise edition.
- display
Name String - The name of your cluster. Updates to the value of the field force the cluster to be re-created.
- edition String
- Cluster edition. Playground, business or enterprise.
- id String
- instances Number
- The total number of instances in the cluster (one master and n-1 standbys). Example: 3, 5, 7. Updates to the value of the field force the cluster to be re-created.
- location String
- The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- maintenance
Windows List<Property Map> - A weekly 4 hour-long window, during which maintenance might occur. Updates to the value of the field force the cluster to be re-created.
- mongodb
Version String - The MongoDB version of your cluster. Updates to the value of the field force the cluster to be re-created.
- ram Number
- The amount of memory per instance in megabytes. Required for enterprise edition.
- Number
- storage
Size Number - The amount of storage per instance in MB. Required for enterprise edition.
- storage
Type String - The storage type used in your cluster. Required for enterprise edition.
- template
Id String - The unique ID of the template, which specifies the number of cores, storage size, and memory. Updates to the value of the field force the cluster to be re-created.
- type String
Supporting Types
GetMongoClusterBackup
- Location string
- The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- Location string
- The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- location String
- The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- location string
- The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- location str
- The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
- location String
- The location where the cluster backups will be stored. If not set, the backup is stored in the nearest location of the cluster. Possible values are de, eu-south-2, or eu-central-2.
GetMongoClusterBiConnector
GetMongoClusterConnection
- Cidr
Lists List<string> - The list of IPs and subnet for your cluster. Note the following unavailable IP ranges: 10.233.64.0/18 10.233.0.0/18 10.233.114.0/24 example: [192.168.1.100/24, 192.168.1.101/24]
- Datacenter
Id string - The datacenter to connect your cluster to.
- Lan
Id string - The LAN to connect your cluster to.
- Cidr
Lists []string - The list of IPs and subnet for your cluster. Note the following unavailable IP ranges: 10.233.64.0/18 10.233.0.0/18 10.233.114.0/24 example: [192.168.1.100/24, 192.168.1.101/24]
- Datacenter
Id string - The datacenter to connect your cluster to.
- Lan
Id string - The LAN to connect your cluster to.
- cidr
Lists List<String> - The list of IPs and subnet for your cluster. Note the following unavailable IP ranges: 10.233.64.0/18 10.233.0.0/18 10.233.114.0/24 example: [192.168.1.100/24, 192.168.1.101/24]
- datacenter
Id String - The datacenter to connect your cluster to.
- lan
Id String - The LAN to connect your cluster to.
- cidr
Lists string[] - The list of IPs and subnet for your cluster. Note the following unavailable IP ranges: 10.233.64.0/18 10.233.0.0/18 10.233.114.0/24 example: [192.168.1.100/24, 192.168.1.101/24]
- datacenter
Id string - The datacenter to connect your cluster to.
- lan
Id string - The LAN to connect your cluster to.
- cidr_
lists Sequence[str] - The list of IPs and subnet for your cluster. Note the following unavailable IP ranges: 10.233.64.0/18 10.233.0.0/18 10.233.114.0/24 example: [192.168.1.100/24, 192.168.1.101/24]
- datacenter_
id str - The datacenter to connect your cluster to.
- lan_
id str - The LAN to connect your cluster to.
- cidr
Lists List<String> - The list of IPs and subnet for your cluster. Note the following unavailable IP ranges: 10.233.64.0/18 10.233.0.0/18 10.233.114.0/24 example: [192.168.1.100/24, 192.168.1.101/24]
- datacenter
Id String - The datacenter to connect your cluster to.
- lan
Id String - The LAN to connect your cluster to.
GetMongoClusterMaintenanceWindow
- Day
Of stringThe Week - Time string
- Day
Of stringThe Week - Time string
- day
Of StringThe Week - time String
- day
Of stringThe Week - time string
- day_
of_ strthe_ week - time str
- day
Of StringThe Week - time String
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.