Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
mongodbatlas.LogIntegration describes the configuration of a log integration at the project level. Supported integration types include AWS S3, Google Cloud Storage, Azure Blob Storage, Datadog, Splunk, and OpenTelemetry.
To use this data source, the requesting Service Account or API Key must have the Organization Owner or Project Owner role.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const example = mongodbatlas.getLogIntegration({
projectId: exampleMongodbatlasLogIntegration.projectId,
integrationId: exampleMongodbatlasLogIntegration.integrationId,
});
export const logIntegrationType = example.then(example => example.type);
import pulumi
import pulumi_mongodbatlas as mongodbatlas
example = mongodbatlas.get_log_integration(project_id=example_mongodbatlas_log_integration["projectId"],
integration_id=example_mongodbatlas_log_integration["integrationId"])
pulumi.export("logIntegrationType", example.type)
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 {
example, err := mongodbatlas.LookupLogIntegration(ctx, &mongodbatlas.LookupLogIntegrationArgs{
ProjectId: exampleMongodbatlasLogIntegration.ProjectId,
IntegrationId: exampleMongodbatlasLogIntegration.IntegrationId,
}, nil)
if err != nil {
return err
}
ctx.Export("logIntegrationType", example.Type)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var example = Mongodbatlas.GetLogIntegration.Invoke(new()
{
ProjectId = exampleMongodbatlasLogIntegration.ProjectId,
IntegrationId = exampleMongodbatlasLogIntegration.IntegrationId,
});
return new Dictionary<string, object?>
{
["logIntegrationType"] = example.Apply(getLogIntegrationResult => getLogIntegrationResult.Type),
};
});
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.GetLogIntegrationArgs;
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 = MongodbatlasFunctions.getLogIntegration(GetLogIntegrationArgs.builder()
.projectId(exampleMongodbatlasLogIntegration.projectId())
.integrationId(exampleMongodbatlasLogIntegration.integrationId())
.build());
ctx.export("logIntegrationType", example.type());
}
}
variables:
example:
fn::invoke:
function: mongodbatlas:getLogIntegration
arguments:
projectId: ${exampleMongodbatlasLogIntegration.projectId}
integrationId: ${exampleMongodbatlasLogIntegration.integrationId}
outputs:
logIntegrationType: ${example.type}
Further Examples
- Log Integration Examples
Using getLogIntegration
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 getLogIntegration(args: GetLogIntegrationArgs, opts?: InvokeOptions): Promise<GetLogIntegrationResult>
function getLogIntegrationOutput(args: GetLogIntegrationOutputArgs, opts?: InvokeOptions): Output<GetLogIntegrationResult>def get_log_integration(integration_id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogIntegrationResult
def get_log_integration_output(integration_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLogIntegrationResult]func LookupLogIntegration(ctx *Context, args *LookupLogIntegrationArgs, opts ...InvokeOption) (*LookupLogIntegrationResult, error)
func LookupLogIntegrationOutput(ctx *Context, args *LookupLogIntegrationOutputArgs, opts ...InvokeOption) LookupLogIntegrationResultOutput> Note: This function is named LookupLogIntegration in the Go SDK.
public static class GetLogIntegration
{
public static Task<GetLogIntegrationResult> InvokeAsync(GetLogIntegrationArgs args, InvokeOptions? opts = null)
public static Output<GetLogIntegrationResult> Invoke(GetLogIntegrationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLogIntegrationResult> getLogIntegration(GetLogIntegrationArgs args, InvokeOptions options)
public static Output<GetLogIntegrationResult> getLogIntegration(GetLogIntegrationArgs args, InvokeOptions options)
fn::invoke:
function: mongodbatlas:index/getLogIntegration:getLogIntegration
arguments:
# arguments dictionaryThe following arguments are supported:
- Integration
Id string - Unique identifier of the log integration configuration.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Integration
Id string - Unique identifier of the log integration configuration.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- integration
Id String - Unique identifier of the log integration configuration.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- integration
Id string - Unique identifier of the log integration configuration.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- integration_
id str - Unique identifier of the log integration configuration.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- integration
Id String - Unique identifier of the log integration configuration.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
getLogIntegration Result
The following output properties are available:
- Api
Key string - Bucket
Name string - Hec
Token string - Hec
Url string - Iam
Role stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Integration
Id string - Unique identifier of the log integration configuration.
- Kms
Key string - Log
Types List<string> - Array of log types exported by this integration.
- Otel
Endpoint string - Otel
Supplied List<GetHeaders Log Integration Otel Supplied Header> - Prefix
Path string - Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Region string
- Role
Id string - Storage
Account stringName - Storage
Container stringName - Type string
- Human-readable label that identifies the service to which you want to integrate with Atlas. The value must match the log integration type. This value cannot be modified after the integration is created.
- Api
Key string - Bucket
Name string - Hec
Token string - Hec
Url string - Iam
Role stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Integration
Id string - Unique identifier of the log integration configuration.
- Kms
Key string - Log
Types []string - Array of log types exported by this integration.
- Otel
Endpoint string - Otel
Supplied []GetHeaders Log Integration Otel Supplied Header - Prefix
Path string - Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Region string
- Role
Id string - Storage
Account stringName - Storage
Container stringName - Type string
- Human-readable label that identifies the service to which you want to integrate with Atlas. The value must match the log integration type. This value cannot be modified after the integration is created.
- api
Key String - bucket
Name String - hec
Token String - hec
Url String - iam
Role StringId - id String
- The provider-assigned unique ID for this managed resource.
- integration
Id String - Unique identifier of the log integration configuration.
- kms
Key String - log
Types List<String> - Array of log types exported by this integration.
- otel
Endpoint String - otel
Supplied List<GetHeaders Log Integration Otel Supplied Header> - prefix
Path String - project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- region String
- role
Id String - storage
Account StringName - storage
Container StringName - type String
- Human-readable label that identifies the service to which you want to integrate with Atlas. The value must match the log integration type. This value cannot be modified after the integration is created.
- api
Key string - bucket
Name string - hec
Token string - hec
Url string - iam
Role stringId - id string
- The provider-assigned unique ID for this managed resource.
- integration
Id string - Unique identifier of the log integration configuration.
- kms
Key string - log
Types string[] - Array of log types exported by this integration.
- otel
Endpoint string - otel
Supplied GetHeaders Log Integration Otel Supplied Header[] - prefix
Path string - project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- region string
- role
Id string - storage
Account stringName - storage
Container stringName - type string
- Human-readable label that identifies the service to which you want to integrate with Atlas. The value must match the log integration type. This value cannot be modified after the integration is created.
- api_
key str - bucket_
name str - hec_
token str - hec_
url str - iam_
role_ strid - id str
- The provider-assigned unique ID for this managed resource.
- integration_
id str - Unique identifier of the log integration configuration.
- kms_
key str - log_
types Sequence[str] - Array of log types exported by this integration.
- otel_
endpoint str - otel_
supplied_ Sequence[Getheaders Log Integration Otel Supplied Header] - prefix_
path str - project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- region str
- role_
id str - storage_
account_ strname - storage_
container_ strname - type str
- Human-readable label that identifies the service to which you want to integrate with Atlas. The value must match the log integration type. This value cannot be modified after the integration is created.
- api
Key String - bucket
Name String - hec
Token String - hec
Url String - iam
Role StringId - id String
- The provider-assigned unique ID for this managed resource.
- integration
Id String - Unique identifier of the log integration configuration.
- kms
Key String - log
Types List<String> - Array of log types exported by this integration.
- otel
Endpoint String - otel
Supplied List<Property Map>Headers - prefix
Path String - project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- region String
- role
Id String - storage
Account StringName - storage
Container StringName - type String
- Human-readable label that identifies the service to which you want to integrate with Atlas. The value must match the log integration type. This value cannot be modified after the integration is created.
Supporting Types
GetLogIntegrationOtelSuppliedHeader
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.5.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
