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.getProjectMcpConfigSecrets returns all ingress secrets for a Project Remote MCP Configuration. Secret values are never returned. Only masked metadata is available.
Example Usage
S
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const _this = mongodbatlas.getProjectMcpConfigSecrets({
projectId: projectId,
mcpConfigId: thisMongodbatlasProjectMcpConfig.mcpConfigId,
});
export const mcpConfigSecretsResults = _this.then(_this => _this.results);
import pulumi
import pulumi_mongodbatlas as mongodbatlas
this = mongodbatlas.get_project_mcp_config_secrets(project_id=project_id,
mcp_config_id=this_mongodbatlas_project_mcp_config["mcpConfigId"])
pulumi.export("mcpConfigSecretsResults", this.results)
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.GetProjectMcpConfigSecrets(ctx, &mongodbatlas.LookupProjectMcpConfigSecretsArgs{
ProjectId: projectId,
McpConfigId: thisMongodbatlasProjectMcpConfig.McpConfigId,
}, nil)
if err != nil {
return err
}
ctx.Export("mcpConfigSecretsResults", this.Results)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var @this = Mongodbatlas.GetProjectMcpConfigSecrets.Invoke(new()
{
ProjectId = projectId,
McpConfigId = thisMongodbatlasProjectMcpConfig.McpConfigId,
});
return new Dictionary<string, object?>
{
["mcpConfigSecretsResults"] = @this.Apply(@this => @this.Apply(getProjectMcpConfigSecretsResult => getProjectMcpConfigSecretsResult.Results)),
};
});
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.GetProjectMcpConfigSecretsArgs;
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.getProjectMcpConfigSecrets(GetProjectMcpConfigSecretsArgs.builder()
.projectId(projectId)
.mcpConfigId(thisMongodbatlasProjectMcpConfig.mcpConfigId())
.build());
ctx.export("mcpConfigSecretsResults", this_.results());
}
}
variables:
this:
fn::invoke:
function: mongodbatlas:getProjectMcpConfigSecrets
arguments:
projectId: ${projectId}
mcpConfigId: ${thisMongodbatlasProjectMcpConfig.mcpConfigId}
outputs:
mcpConfigSecretsResults: ${this.results}
pulumi {
required_providers {
mongodbatlas = {
source = "pulumi/mongodbatlas"
}
}
}
data "mongodbatlas_getprojectmcpconfigsecrets" "this" {
project_id = projectId
mcp_config_id = thisMongodbatlasProjectMcpConfig.mcpConfigId
}
output "mcpConfigSecretsResults" {
value = data.mongodbatlas_getprojectmcpconfigsecrets.this.results
}
Using getProjectMcpConfigSecrets
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 getProjectMcpConfigSecrets(args: GetProjectMcpConfigSecretsArgs, opts?: InvokeOptions): Promise<GetProjectMcpConfigSecretsResult>
function getProjectMcpConfigSecretsOutput(args: GetProjectMcpConfigSecretsOutputArgs, opts?: InvokeOutputOptions): Output<GetProjectMcpConfigSecretsResult>def get_project_mcp_config_secrets(mcp_config_id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectMcpConfigSecretsResult
def get_project_mcp_config_secrets_output(mcp_config_id: pulumi.Input[Optional[str]] = None,
project_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetProjectMcpConfigSecretsResult]func LookupProjectMcpConfigSecrets(ctx *Context, args *LookupProjectMcpConfigSecretsArgs, opts ...InvokeOption) (*LookupProjectMcpConfigSecretsResult, error)
func LookupProjectMcpConfigSecretsOutput(ctx *Context, args *LookupProjectMcpConfigSecretsOutputArgs, opts ...InvokeOption) LookupProjectMcpConfigSecretsResultOutput> Note: This function is named LookupProjectMcpConfigSecrets in the Go SDK.
public static class GetProjectMcpConfigSecrets
{
public static Task<GetProjectMcpConfigSecretsResult> InvokeAsync(GetProjectMcpConfigSecretsArgs args, InvokeOptions? opts = null)
public static Output<GetProjectMcpConfigSecretsResult> Invoke(GetProjectMcpConfigSecretsInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetProjectMcpConfigSecretsResult> Invoke(GetProjectMcpConfigSecretsInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetProjectMcpConfigSecretsResult> getProjectMcpConfigSecrets(GetProjectMcpConfigSecretsArgs args, InvokeOptions options)
public static Output<GetProjectMcpConfigSecretsResult> getProjectMcpConfigSecrets(GetProjectMcpConfigSecretsArgs args, InvokeOptions options)
public static Output<GetProjectMcpConfigSecretsResult> getProjectMcpConfigSecrets(GetProjectMcpConfigSecretsArgs args, InvokeOutputOptions options)
fn::invoke:
function: mongodbatlas:index/getProjectMcpConfigSecrets:getProjectMcpConfigSecrets
arguments:
# arguments dictionarydata "mongodbatlas_get_project_mcp_config_secrets" "name" {
# arguments
}The following arguments are supported:
- Mcp
Config stringId - Unique identifier of the MCP configuration.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- Mcp
Config stringId - Unique identifier of the MCP configuration.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- mcp_
config_ stringid - Unique identifier of the MCP configuration.
- project_
id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- mcp
Config StringId - Unique identifier of the MCP configuration.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- mcp
Config stringId - Unique identifier of the MCP configuration.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- mcp_
config_ strid - Unique identifier of the MCP configuration.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- mcp
Config StringId - Unique identifier of the MCP configuration.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
getProjectMcpConfigSecrets Result
The following output properties are available:
- Mcp
Config stringId - Unique identifier of the MCP configuration.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Results
List<Get
Project Mcp Config Secrets Result> - List of returned documents that MongoDB Cloud provides when completing this request.
- Mcp
Config stringId - Unique identifier of the MCP configuration.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Results
[]Get
Project Mcp Config Secrets Result - List of returned documents that MongoDB Cloud provides when completing this request.
- mcp_
config_ stringid - Unique identifier of the MCP configuration.
- project_
id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - results list(object)
- List of returned documents that MongoDB Cloud provides when completing this request.
- mcp
Config StringId - Unique identifier of the MCP configuration.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - results
List<Get
Project Mcp Config Secrets Result> - List of returned documents that MongoDB Cloud provides when completing this request.
- mcp
Config stringId - Unique identifier of the MCP configuration.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - results
Get
Project Mcp Config Secrets Result[] - List of returned documents that MongoDB Cloud provides when completing this request.
- mcp_
config_ strid - Unique identifier of the MCP configuration.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - results
Sequence[Get
Project Mcp Config Secrets Result] - List of returned documents that MongoDB Cloud provides when completing this request.
- mcp
Config StringId - Unique identifier of the MCP configuration.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - results List<Property Map>
- List of returned documents that MongoDB Cloud provides when completing this request.
Supporting Types
GetProjectMcpConfigSecretsResult
- 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.
- Id string
- Unique 24-hexadecimal digit string that identifies the secret.
- 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.
- 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.
- Id string
- Unique 24-hexadecimal digit string that identifies the secret.
- 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.
- 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.
- id string
- Unique 24-hexadecimal digit string that identifies the secret.
- 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.
- 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.
- id String
- Unique 24-hexadecimal digit string that identifies the secret.
- 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.
- 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.
- id string
- Unique 24-hexadecimal digit string that identifies the secret.
- 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.
- 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.
- id str
- Unique 24-hexadecimal digit string that identifies the secret.
- 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.
- 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.
- id String
- Unique 24-hexadecimal digit string that identifies the secret.
- 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.
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