Viewing docs for MongoDB Atlas v4.8.0
published on Thursday, Apr 23, 2026 by Pulumi
published on Thursday, Apr 23, 2026 by Pulumi
Viewing docs for MongoDB Atlas v4.8.0
published on Thursday, Apr 23, 2026 by Pulumi
published on Thursday, Apr 23, 2026 by Pulumi
mongodbatlas.MongodbEmployeeAccessGrant describes a MongoDB employee access grant.
Example Usage
S
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const example = new mongodbatlas.MongodbEmployeeAccessGrant("example", {
projectId: projectId,
clusterName: clusterName,
grantType: "CLUSTER_INFRASTRUCTURE_AND_APP_SERVICES_SYNC_DATA",
expirationTime: "2025-01-01T12:00:00Z",
});
const dsExample = mongodbatlas.getMongodbEmployeeAccessGrant({
projectId: projectId,
clusterName: clusterName,
});
export const grantType = dsExample.then(dsExample => dsExample.grantType);
export const expirationTime = dsExample.then(dsExample => dsExample.expirationTime);
import pulumi
import pulumi_mongodbatlas as mongodbatlas
example = mongodbatlas.MongodbEmployeeAccessGrant("example",
project_id=project_id,
cluster_name=cluster_name,
grant_type="CLUSTER_INFRASTRUCTURE_AND_APP_SERVICES_SYNC_DATA",
expiration_time="2025-01-01T12:00:00Z")
ds_example = mongodbatlas.get_mongodb_employee_access_grant(project_id=project_id,
cluster_name=cluster_name)
pulumi.export("grantType", ds_example.grant_type)
pulumi.export("expirationTime", ds_example.expiration_time)
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mongodbatlas.NewMongodbEmployeeAccessGrant(ctx, "example", &mongodbatlas.MongodbEmployeeAccessGrantArgs{
ProjectId: pulumi.Any(projectId),
ClusterName: pulumi.Any(clusterName),
GrantType: pulumi.String("CLUSTER_INFRASTRUCTURE_AND_APP_SERVICES_SYNC_DATA"),
ExpirationTime: pulumi.String("2025-01-01T12:00:00Z"),
})
if err != nil {
return err
}
dsExample, err := mongodbatlas.GetMongodbEmployeeAccessGrant(ctx, &mongodbatlas.LookupMongodbEmployeeAccessGrantArgs{
ProjectId: projectId,
ClusterName: clusterName,
}, nil)
if err != nil {
return err
}
ctx.Export("grantType", dsExample.GrantType)
ctx.Export("expirationTime", dsExample.ExpirationTime)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var example = new Mongodbatlas.Index.MongodbEmployeeAccessGrant("example", new()
{
ProjectId = projectId,
ClusterName = clusterName,
GrantType = "CLUSTER_INFRASTRUCTURE_AND_APP_SERVICES_SYNC_DATA",
ExpirationTime = "2025-01-01T12:00:00Z",
});
var dsExample = Mongodbatlas.Index.GetMongodbEmployeeAccessGrant.Invoke(new()
{
ProjectId = projectId,
ClusterName = clusterName,
});
return new Dictionary<string, object?>
{
["grantType"] = dsExample.Apply(getMongodbEmployeeAccessGrantResult => getMongodbEmployeeAccessGrantResult.GrantType),
["expirationTime"] = dsExample.Apply(getMongodbEmployeeAccessGrantResult => getMongodbEmployeeAccessGrantResult.ExpirationTime),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.MongodbEmployeeAccessGrant;
import com.pulumi.mongodbatlas.MongodbEmployeeAccessGrantArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetMongodbEmployeeAccessGrantArgs;
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) {
var example = new MongodbEmployeeAccessGrant("example", MongodbEmployeeAccessGrantArgs.builder()
.projectId(projectId)
.clusterName(clusterName)
.grantType("CLUSTER_INFRASTRUCTURE_AND_APP_SERVICES_SYNC_DATA")
.expirationTime("2025-01-01T12:00:00Z")
.build());
final var dsExample = MongodbatlasFunctions.getMongodbEmployeeAccessGrant(GetMongodbEmployeeAccessGrantArgs.builder()
.projectId(projectId)
.clusterName(clusterName)
.build());
ctx.export("grantType", dsExample.grantType());
ctx.export("expirationTime", dsExample.expirationTime());
}
}
resources:
example:
type: mongodbatlas:MongodbEmployeeAccessGrant
properties:
projectId: ${projectId}
clusterName: ${clusterName}
grantType: CLUSTER_INFRASTRUCTURE_AND_APP_SERVICES_SYNC_DATA
expirationTime: 2025-01-01T12:00:00Z
variables:
dsExample:
fn::invoke:
function: mongodbatlas:getMongodbEmployeeAccessGrant
arguments:
projectId: ${projectId}
clusterName: ${clusterName}
outputs:
grantType: ${dsExample.grantType}
expirationTime: ${dsExample.expirationTime}
Using getMongodbEmployeeAccessGrant
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 getMongodbEmployeeAccessGrant(args: GetMongodbEmployeeAccessGrantArgs, opts?: InvokeOptions): Promise<GetMongodbEmployeeAccessGrantResult>
function getMongodbEmployeeAccessGrantOutput(args: GetMongodbEmployeeAccessGrantOutputArgs, opts?: InvokeOptions): Output<GetMongodbEmployeeAccessGrantResult>def get_mongodb_employee_access_grant(cluster_name: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMongodbEmployeeAccessGrantResult
def get_mongodb_employee_access_grant_output(cluster_name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMongodbEmployeeAccessGrantResult]func LookupMongodbEmployeeAccessGrant(ctx *Context, args *LookupMongodbEmployeeAccessGrantArgs, opts ...InvokeOption) (*LookupMongodbEmployeeAccessGrantResult, error)
func LookupMongodbEmployeeAccessGrantOutput(ctx *Context, args *LookupMongodbEmployeeAccessGrantOutputArgs, opts ...InvokeOption) LookupMongodbEmployeeAccessGrantResultOutput> Note: This function is named LookupMongodbEmployeeAccessGrant in the Go SDK.
public static class GetMongodbEmployeeAccessGrant
{
public static Task<GetMongodbEmployeeAccessGrantResult> InvokeAsync(GetMongodbEmployeeAccessGrantArgs args, InvokeOptions? opts = null)
public static Output<GetMongodbEmployeeAccessGrantResult> Invoke(GetMongodbEmployeeAccessGrantInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMongodbEmployeeAccessGrantResult> getMongodbEmployeeAccessGrant(GetMongodbEmployeeAccessGrantArgs args, InvokeOptions options)
public static Output<GetMongodbEmployeeAccessGrantResult> getMongodbEmployeeAccessGrant(GetMongodbEmployeeAccessGrantArgs args, InvokeOptions options)
fn::invoke:
function: mongodbatlas:index/getMongodbEmployeeAccessGrant:getMongodbEmployeeAccessGrant
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Name string - Human-readable label that identifies this cluster.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- Cluster
Name string - Human-readable label that identifies this cluster.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- cluster
Name String - Human-readable label that identifies this cluster.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- cluster
Name string - Human-readable label that identifies this cluster.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- cluster_
name str - Human-readable label that identifies this cluster.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- cluster
Name String - Human-readable label that identifies this cluster.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
getMongodbEmployeeAccessGrant Result
The following output properties are available:
- Cluster
Name string - Human-readable label that identifies this cluster.
- Expiration
Time string - Expiration date for the employee access grant.
- Grant
Type string - Level of access to grant to MongoDB Employees. Possible values are CLUSTERDATABASELOGS, CLUSTERINFRASTRUCTURE or CLUSTERINFRASTRUCTUREANDAPPSERVICESSYNC_DATA.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- Cluster
Name string - Human-readable label that identifies this cluster.
- Expiration
Time string - Expiration date for the employee access grant.
- Grant
Type string - Level of access to grant to MongoDB Employees. Possible values are CLUSTERDATABASELOGS, CLUSTERINFRASTRUCTURE or CLUSTERINFRASTRUCTUREANDAPPSERVICESSYNC_DATA.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- cluster
Name String - Human-readable label that identifies this cluster.
- expiration
Time String - Expiration date for the employee access grant.
- grant
Type String - Level of access to grant to MongoDB Employees. Possible values are CLUSTERDATABASELOGS, CLUSTERINFRASTRUCTURE or CLUSTERINFRASTRUCTUREANDAPPSERVICESSYNC_DATA.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- cluster
Name string - Human-readable label that identifies this cluster.
- expiration
Time string - Expiration date for the employee access grant.
- grant
Type string - Level of access to grant to MongoDB Employees. Possible values are CLUSTERDATABASELOGS, CLUSTERINFRASTRUCTURE or CLUSTERINFRASTRUCTUREANDAPPSERVICESSYNC_DATA.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- cluster_
name str - Human-readable label that identifies this cluster.
- expiration_
time str - Expiration date for the employee access grant.
- grant_
type str - Level of access to grant to MongoDB Employees. Possible values are CLUSTERDATABASELOGS, CLUSTERINFRASTRUCTURE or CLUSTERINFRASTRUCTUREANDAPPSERVICESSYNC_DATA.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- cluster
Name String - Human-readable label that identifies this cluster.
- expiration
Time String - Expiration date for the employee access grant.
- grant
Type String - Level of access to grant to MongoDB Employees. Possible values are CLUSTERDATABASELOGS, CLUSTERINFRASTRUCTURE or CLUSTERINFRASTRUCTUREANDAPPSERVICESSYNC_DATA.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.
Viewing docs for MongoDB Atlas v4.8.0
published on Thursday, Apr 23, 2026 by Pulumi
published on Thursday, Apr 23, 2026 by Pulumi
