mongodbatlas.getServerlessInstances
Explore with Pulumi AI
mongodbatlas.getServerlessInstances
describe all serverless instances. This represents serverless instances that have been created for the specified group id.
NOTE: Serverless instances do not support some Atlas features at this time. For a full list of unsupported features, see Serverless Instance Limitations.
NOTE: Groups and projects are synonymous terms. You may find
groupId
in the official documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const dataServerless = mongodbatlas.getServerlessInstances({
projectId: "<PROJECT_ID",
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
data_serverless = mongodbatlas.get_serverless_instances(project_id="<PROJECT_ID")
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mongodbatlas.LookupServerlessInstances(ctx, &mongodbatlas.LookupServerlessInstancesArgs{
ProjectId: "<PROJECT_ID",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var dataServerless = Mongodbatlas.GetServerlessInstances.Invoke(new()
{
ProjectId = "<PROJECT_ID",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetServerlessInstancesArgs;
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 dataServerless = MongodbatlasFunctions.getServerlessInstances(GetServerlessInstancesArgs.builder()
.projectId("<PROJECT_ID")
.build());
}
}
variables:
dataServerless:
fn::invoke:
Function: mongodbatlas:getServerlessInstances
Arguments:
projectId: <PROJECT_ID
Using getServerlessInstances
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 getServerlessInstances(args: GetServerlessInstancesArgs, opts?: InvokeOptions): Promise<GetServerlessInstancesResult>
function getServerlessInstancesOutput(args: GetServerlessInstancesOutputArgs, opts?: InvokeOptions): Output<GetServerlessInstancesResult>
def get_serverless_instances(project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServerlessInstancesResult
def get_serverless_instances_output(project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServerlessInstancesResult]
func LookupServerlessInstances(ctx *Context, args *LookupServerlessInstancesArgs, opts ...InvokeOption) (*LookupServerlessInstancesResult, error)
func LookupServerlessInstancesOutput(ctx *Context, args *LookupServerlessInstancesOutputArgs, opts ...InvokeOption) LookupServerlessInstancesResultOutput
> Note: This function is named LookupServerlessInstances
in the Go SDK.
public static class GetServerlessInstances
{
public static Task<GetServerlessInstancesResult> InvokeAsync(GetServerlessInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetServerlessInstancesResult> Invoke(GetServerlessInstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServerlessInstancesResult> getServerlessInstances(GetServerlessInstancesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getServerlessInstances:getServerlessInstances
arguments:
# arguments dictionary
The following arguments are supported:
- project_
id str - Unique identifier for the project that contains the specified cluster.
getServerlessInstances Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Results
List<Get
Serverless Instances Result> - A list where each result represents a Serverless Instance. To learn more, see Serverless Instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Results
[]Get
Serverless Instances Result - A list where each result represents a Serverless Instance. To learn more, see Serverless Instance.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - results
List<Get
Serverless Instances Result> - A list where each result represents a Serverless Instance. To learn more, see Serverless Instance.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - results
Get
Serverless Instances Result[] - A list where each result represents a Serverless Instance. To learn more, see Serverless Instance.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - results
Sequence[Get
Serverless Instances Result] - A list where each result represents a Serverless Instance. To learn more, see Serverless Instance.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - results List<Property Map>
- A list where each result represents a Serverless Instance. To learn more, see Serverless Instance.
Supporting Types
GetServerlessInstancesResult
- Auto
Indexing bool - Flag that indicates whether the serverless instance uses Serverless Auto Indexing.
- Connection
Strings List<string>Private Endpoint Srvs - Connection
Strings stringStandard Srv - Public
mongodb+srv://
connection string that you can use to connect to this serverless instance. - Continuous
Backup boolEnabled - Flag that indicates whether the serverless instance uses Serverless Continuous Backup.
- Create
Date string - Id string
- Unique 24-hexadecimal digit string that identifies the serverless instance.
- Links
List<Get
Serverless Instances Result Link> - Mongo
Db stringVersion - Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format. - Name string
- (Required) Human-readable label that identifies your serverless instance.
- Project
Id string - Unique identifier for the project that contains the specified cluster.
- Provider
Settings stringBacking Provider Name - Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- Provider
Settings stringProvider Name - Cloud service provider that applies to the provisioned the serverless instance.
- Provider
Settings stringRegion Name - Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- State
Name string - Stage of deployment of this serverless instance when the resource made its request.
- List<Get
Serverless Instances Result Tag> - Set that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster. See below.
- Termination
Protection boolEnabled - Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- Auto
Indexing bool - Flag that indicates whether the serverless instance uses Serverless Auto Indexing.
- Connection
Strings []stringPrivate Endpoint Srvs - Connection
Strings stringStandard Srv - Public
mongodb+srv://
connection string that you can use to connect to this serverless instance. - Continuous
Backup boolEnabled - Flag that indicates whether the serverless instance uses Serverless Continuous Backup.
- Create
Date string - Id string
- Unique 24-hexadecimal digit string that identifies the serverless instance.
- Links
[]Get
Serverless Instances Result Link - Mongo
Db stringVersion - Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format. - Name string
- (Required) Human-readable label that identifies your serverless instance.
- Project
Id string - Unique identifier for the project that contains the specified cluster.
- Provider
Settings stringBacking Provider Name - Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- Provider
Settings stringProvider Name - Cloud service provider that applies to the provisioned the serverless instance.
- Provider
Settings stringRegion Name - Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- State
Name string - Stage of deployment of this serverless instance when the resource made its request.
- []Get
Serverless Instances Result Tag - Set that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster. See below.
- Termination
Protection boolEnabled - Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- auto
Indexing Boolean - Flag that indicates whether the serverless instance uses Serverless Auto Indexing.
- connection
Strings List<String>Private Endpoint Srvs - connection
Strings StringStandard Srv - Public
mongodb+srv://
connection string that you can use to connect to this serverless instance. - continuous
Backup BooleanEnabled - Flag that indicates whether the serverless instance uses Serverless Continuous Backup.
- create
Date String - id String
- Unique 24-hexadecimal digit string that identifies the serverless instance.
- links
List<Get
Serverless Instances Result Link> - mongo
Db StringVersion - Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format. - name String
- (Required) Human-readable label that identifies your serverless instance.
- project
Id String - Unique identifier for the project that contains the specified cluster.
- provider
Settings StringBacking Provider Name - Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- provider
Settings StringProvider Name - Cloud service provider that applies to the provisioned the serverless instance.
- provider
Settings StringRegion Name - Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- state
Name String - Stage of deployment of this serverless instance when the resource made its request.
- List<Get
Serverless Instances Result Tag> - Set that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster. See below.
- termination
Protection BooleanEnabled - Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- auto
Indexing boolean - Flag that indicates whether the serverless instance uses Serverless Auto Indexing.
- connection
Strings string[]Private Endpoint Srvs - connection
Strings stringStandard Srv - Public
mongodb+srv://
connection string that you can use to connect to this serverless instance. - continuous
Backup booleanEnabled - Flag that indicates whether the serverless instance uses Serverless Continuous Backup.
- create
Date string - id string
- Unique 24-hexadecimal digit string that identifies the serverless instance.
- links
Get
Serverless Instances Result Link[] - mongo
Db stringVersion - Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format. - name string
- (Required) Human-readable label that identifies your serverless instance.
- project
Id string - Unique identifier for the project that contains the specified cluster.
- provider
Settings stringBacking Provider Name - Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- provider
Settings stringProvider Name - Cloud service provider that applies to the provisioned the serverless instance.
- provider
Settings stringRegion Name - Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- state
Name string - Stage of deployment of this serverless instance when the resource made its request.
- Get
Serverless Instances Result Tag[] - Set that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster. See below.
- termination
Protection booleanEnabled - Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- auto_
indexing bool - Flag that indicates whether the serverless instance uses Serverless Auto Indexing.
- connection_
strings_ Sequence[str]private_ endpoint_ srvs - connection_
strings_ strstandard_ srv - Public
mongodb+srv://
connection string that you can use to connect to this serverless instance. - continuous_
backup_ boolenabled - Flag that indicates whether the serverless instance uses Serverless Continuous Backup.
- create_
date str - id str
- Unique 24-hexadecimal digit string that identifies the serverless instance.
- links
Sequence[Get
Serverless Instances Result Link] - mongo_
db_ strversion - Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format. - name str
- (Required) Human-readable label that identifies your serverless instance.
- project_
id str - Unique identifier for the project that contains the specified cluster.
- provider_
settings_ strbacking_ provider_ name - Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- provider_
settings_ strprovider_ name - Cloud service provider that applies to the provisioned the serverless instance.
- provider_
settings_ strregion_ name - Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- state_
name str - Stage of deployment of this serverless instance when the resource made its request.
- Sequence[Get
Serverless Instances Result Tag] - Set that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster. See below.
- termination_
protection_ boolenabled - Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- auto
Indexing Boolean - Flag that indicates whether the serverless instance uses Serverless Auto Indexing.
- connection
Strings List<String>Private Endpoint Srvs - connection
Strings StringStandard Srv - Public
mongodb+srv://
connection string that you can use to connect to this serverless instance. - continuous
Backup BooleanEnabled - Flag that indicates whether the serverless instance uses Serverless Continuous Backup.
- create
Date String - id String
- Unique 24-hexadecimal digit string that identifies the serverless instance.
- links List<Property Map>
- mongo
Db StringVersion - Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format. - name String
- (Required) Human-readable label that identifies your serverless instance.
- project
Id String - Unique identifier for the project that contains the specified cluster.
- provider
Settings StringBacking Provider Name - Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- provider
Settings StringProvider Name - Cloud service provider that applies to the provisioned the serverless instance.
- provider
Settings StringRegion Name - Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- state
Name String - Stage of deployment of this serverless instance when the resource made its request.
- List<Property Map>
- Set that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster. See below.
- termination
Protection BooleanEnabled - Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
GetServerlessInstancesResultLink
GetServerlessInstancesResultTag
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.