Viewing docs for MongoDB Atlas v4.16.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
Viewing docs for MongoDB Atlas v4.16.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
mongodbatlas.McpConfigSecret describes an ingress secret for an Organization Remote MCP Configuration. Secret values are never returned. Only masked metadata is available.
IMPORTANT: Managing MCP Config Secrets with Terraform exposes sensitive organizational secrets in Terraform’s state. We suggest following Terraform’s best practices.
Example Usage
S
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const _this = mongodbatlas.getMcpConfigSecret({
orgId: orgId,
mcpConfigId: thisMongodbatlasMcpConfig.mcpConfigId,
secretId: thisMongodbatlasMcpConfigSecret.secretId,
});
export const secretExpiresAt = _this.then(_this => _this.expiresAt);
import pulumi
import pulumi_mongodbatlas as mongodbatlas
this = mongodbatlas.get_mcp_config_secret(org_id=org_id,
mcp_config_id=this_mongodbatlas_mcp_config["mcpConfigId"],
secret_id=this_mongodbatlas_mcp_config_secret["secretId"])
pulumi.export("secretExpiresAt", this.expires_at)
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 {
this, err := mongodbatlas.GetMcpConfigSecret(ctx, &mongodbatlas.LookupMcpConfigSecretArgs{
OrgId: orgId,
McpConfigId: thisMongodbatlasMcpConfig.McpConfigId,
SecretId: thisMongodbatlasMcpConfigSecret.SecretId,
}, nil)
if err != nil {
return err
}
ctx.Export("secretExpiresAt", this.ExpiresAt)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var @this = Mongodbatlas.GetMcpConfigSecret.Invoke(new()
{
OrgId = orgId,
McpConfigId = thisMongodbatlasMcpConfig.McpConfigId,
SecretId = thisMongodbatlasMcpConfigSecret.SecretId,
});
return new Dictionary<string, object?>
{
["secretExpiresAt"] = @this.Apply(@this => @this.Apply(getMcpConfigSecretResult => getMcpConfigSecretResult.ExpiresAt)),
};
});
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.GetMcpConfigSecretArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 this = MongodbatlasFunctions.getMcpConfigSecret(GetMcpConfigSecretArgs.builder()
.orgId(orgId)
.mcpConfigId(thisMongodbatlasMcpConfig.mcpConfigId())
.secretId(thisMongodbatlasMcpConfigSecret.secretId())
.build());
ctx.export("secretExpiresAt", this_.expiresAt());
}
}
variables:
this:
fn::invoke:
function: mongodbatlas:getMcpConfigSecret
arguments:
orgId: ${orgId}
mcpConfigId: ${thisMongodbatlasMcpConfig.mcpConfigId}
secretId: ${thisMongodbatlasMcpConfigSecret.secretId}
outputs:
secretExpiresAt: ${this.expiresAt}
pulumi {
required_providers {
mongodbatlas = {
source = "pulumi/mongodbatlas"
}
}
}
data "mongodbatlas_getmcpconfigsecret" "this" {
org_id = orgId
mcp_config_id = thisMongodbatlasMcpConfig.mcpConfigId
secret_id = thisMongodbatlasMcpConfigSecret.secretId
}
output "secretExpiresAt" {
value = data.mongodbatlas_getmcpconfigsecret.this.expires_at
}
Using getMcpConfigSecret
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 getMcpConfigSecret(args: GetMcpConfigSecretArgs, opts?: InvokeOptions): Promise<GetMcpConfigSecretResult>
function getMcpConfigSecretOutput(args: GetMcpConfigSecretOutputArgs, opts?: InvokeOutputOptions): Output<GetMcpConfigSecretResult>def get_mcp_config_secret(mcp_config_id: Optional[str] = None,
org_id: Optional[str] = None,
secret_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMcpConfigSecretResult
def get_mcp_config_secret_output(mcp_config_id: pulumi.Input[Optional[str]] = None,
org_id: pulumi.Input[Optional[str]] = None,
secret_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetMcpConfigSecretResult]func LookupMcpConfigSecret(ctx *Context, args *LookupMcpConfigSecretArgs, opts ...InvokeOption) (*LookupMcpConfigSecretResult, error)
func LookupMcpConfigSecretOutput(ctx *Context, args *LookupMcpConfigSecretOutputArgs, opts ...InvokeOption) LookupMcpConfigSecretResultOutput> Note: This function is named LookupMcpConfigSecret in the Go SDK.
public static class GetMcpConfigSecret
{
public static Task<GetMcpConfigSecretResult> InvokeAsync(GetMcpConfigSecretArgs args, InvokeOptions? opts = null)
public static Output<GetMcpConfigSecretResult> Invoke(GetMcpConfigSecretInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetMcpConfigSecretResult> Invoke(GetMcpConfigSecretInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetMcpConfigSecretResult> getMcpConfigSecret(GetMcpConfigSecretArgs args, InvokeOptions options)
public static Output<GetMcpConfigSecretResult> getMcpConfigSecret(GetMcpConfigSecretArgs args, InvokeOptions options)
public static Output<GetMcpConfigSecretResult> getMcpConfigSecret(GetMcpConfigSecretArgs args, InvokeOutputOptions options)
fn::invoke:
function: mongodbatlas:index/getMcpConfigSecret:getMcpConfigSecret
arguments:
# arguments dictionarydata "mongodbatlas_get_mcp_config_secret" "name" {
# arguments
}The following arguments are supported:
- Mcp
Config stringId - Unique identifier of the MCP configuration.
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- Secret
Id string - Unique 24-hexadecimal digit string that identifies the secret.
- Mcp
Config stringId - Unique identifier of the MCP configuration.
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- Secret
Id string - Unique 24-hexadecimal digit string that identifies the secret.
- mcp_
config_ stringid - Unique identifier of the MCP configuration.
- org_
id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- secret_
id string - Unique 24-hexadecimal digit string that identifies the secret.
- mcp
Config StringId - Unique identifier of the MCP configuration.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- secret
Id String - Unique 24-hexadecimal digit string that identifies the secret.
- mcp
Config stringId - Unique identifier of the MCP configuration.
- org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- secret
Id string - Unique 24-hexadecimal digit string that identifies the secret.
- mcp_
config_ strid - Unique identifier of the MCP configuration.
- org_
id str - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- secret_
id str - Unique 24-hexadecimal digit string that identifies the secret.
- mcp
Config StringId - Unique identifier of the MCP configuration.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- secret
Id String - Unique 24-hexadecimal digit string that identifies the secret.
getMcpConfigSecret Result
The following output properties are available:
- Created
At string - The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Expires
At string - The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Last
Used stringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Masked
Secret stringValue - The masked Service Account secret.
- Mcp
Config stringId - Unique identifier of the MCP configuration.
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- Secret
Id string - Unique 24-hexadecimal digit string that identifies the secret.
- Created
At string - The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Expires
At string - The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Last
Used stringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Masked
Secret stringValue - The masked Service Account secret.
- Mcp
Config stringId - Unique identifier of the MCP configuration.
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- Secret
Id string - Unique 24-hexadecimal digit string that identifies the secret.
- created_
at string - The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- expires_
at string - The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- last_
used_ stringat - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked_
secret_ stringvalue - The masked Service Account secret.
- mcp_
config_ stringid - Unique identifier of the MCP configuration.
- org_
id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- secret_
id string - Unique 24-hexadecimal digit string that identifies the secret.
- created
At String - The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- expires
At String - The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- last
Used StringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked
Secret StringValue - The masked Service Account secret.
- mcp
Config StringId - Unique identifier of the MCP configuration.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- secret
Id String - Unique 24-hexadecimal digit string that identifies the secret.
- created
At string - The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- expires
At string - The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- last
Used stringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked
Secret stringValue - The masked Service Account secret.
- mcp
Config stringId - Unique identifier of the MCP configuration.
- org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- secret
Id string - Unique 24-hexadecimal digit string that identifies the secret.
- created_
at str - The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- expires_
at str - The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- last_
used_ strat - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked_
secret_ strvalue - The masked Service Account secret.
- mcp_
config_ strid - Unique identifier of the MCP configuration.
- org_
id str - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- secret_
id str - Unique 24-hexadecimal digit string that identifies the secret.
- created
At String - The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- expires
At String - The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- last
Used StringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked
Secret StringValue - The masked Service Account secret.
- mcp
Config StringId - Unique identifier of the MCP configuration.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- secret
Id String - Unique 24-hexadecimal digit string that identifies the secret.
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.16.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi