1. Registry
  2. Packages
  3. Mongodbatlas Provider
  4. API Docs
  5. getOrgLogIntegration
Viewing docs for MongoDB Atlas v4.17.1
published on Tuesday, Oct 13, 2026 by Pulumi
mongodbatlas logo mongodbatlas logo
Viewing docs for MongoDB Atlas v4.17.1
published on Tuesday, Oct 13, 2026 by Pulumi

    mongodbatlas.OrgLogIntegration describes the configuration of a log integration at the organization level. Currently, OpenTelemetry is the only supported integration type.

    To use this data source, the requesting Service Account or API Key must have the Organization Owner role.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mongodbatlas from "@pulumi/mongodbatlas";
    
    const example = mongodbatlas.getOrgLogIntegration({
        orgId: exampleMongodbatlasOrgLogIntegration.orgId,
        integrationId: exampleMongodbatlasOrgLogIntegration.integrationId,
    });
    export const orgLogIntegrationType = example.then(example => example.type);
    
    import pulumi
    import pulumi_mongodbatlas as mongodbatlas
    
    example = mongodbatlas.get_org_log_integration(org_id=example_mongodbatlas_org_log_integration["orgId"],
        integration_id=example_mongodbatlas_org_log_integration["integrationId"])
    pulumi.export("orgLogIntegrationType", 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.GetOrgLogIntegration(ctx, &mongodbatlas.LookupOrgLogIntegrationArgs{
    			OrgId:         exampleMongodbatlasOrgLogIntegration.OrgId,
    			IntegrationId: exampleMongodbatlasOrgLogIntegration.IntegrationId,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("orgLogIntegrationType", example.Type)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Mongodbatlas = Pulumi.Mongodbatlas;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Mongodbatlas.GetOrgLogIntegration.Invoke(new()
        {
            OrgId = exampleMongodbatlasOrgLogIntegration.OrgId,
            IntegrationId = exampleMongodbatlasOrgLogIntegration.IntegrationId,
        });
    
        return new Dictionary<string, object?>
        {
            ["orgLogIntegrationType"] = example.Apply(getOrgLogIntegrationResult => getOrgLogIntegrationResult.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.GetOrgLogIntegrationArgs;
    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 example = MongodbatlasFunctions.getOrgLogIntegration(GetOrgLogIntegrationArgs.builder()
                .orgId(exampleMongodbatlasOrgLogIntegration.get("orgId"))
                .integrationId(exampleMongodbatlasOrgLogIntegration.get("integrationId"))
                .build());
    
            ctx.export("orgLogIntegrationType", example.type());
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: mongodbatlas:getOrgLogIntegration
          arguments:
            orgId: ${exampleMongodbatlasOrgLogIntegration.orgId}
            integrationId: ${exampleMongodbatlasOrgLogIntegration.integrationId}
    outputs:
      orgLogIntegrationType: ${example.type}
    
    terraform {
      required_providers {
        mongodbatlas = {
          source = "pulumi/mongodbatlas"
        }
      }
    }
    
    data "mongodbatlas_org_log_integration" "example" {
      org_id         = exampleMongodbatlasOrgLogIntegration.orgId
      integration_id = exampleMongodbatlasOrgLogIntegration.integrationId
    }
    
    output "orgLogIntegrationType" {
      value = data.mongodbatlas_org_log_integration.example.type
    }
    

    Using getOrgLogIntegration

    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 getOrgLogIntegration(args: GetOrgLogIntegrationArgs, opts?: InvokeOptions): Promise<GetOrgLogIntegrationResult>
    function getOrgLogIntegrationOutput(args: GetOrgLogIntegrationOutputArgs, opts?: InvokeOutputOptions): Output<GetOrgLogIntegrationResult>
    def get_org_log_integration(integration_id: Optional[str] = None,
                                org_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetOrgLogIntegrationResult
    def get_org_log_integration_output(integration_id: pulumi.Input[Optional[str]] = None,
                                org_id: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOutputOptions] = None) -> Output[GetOrgLogIntegrationResult]
    func LookupOrgLogIntegration(ctx *Context, args *LookupOrgLogIntegrationArgs, opts ...InvokeOption) (*LookupOrgLogIntegrationResult, error)
    func LookupOrgLogIntegrationOutput(ctx *Context, args *LookupOrgLogIntegrationOutputArgs, opts ...InvokeOption) LookupOrgLogIntegrationResultOutput

    > Note: This function is named LookupOrgLogIntegration in the Go SDK.

    public static class GetOrgLogIntegration 
    {
        public static Task<GetOrgLogIntegrationResult> InvokeAsync(GetOrgLogIntegrationArgs args, InvokeOptions? opts = null)
        public static Output<GetOrgLogIntegrationResult> Invoke(GetOrgLogIntegrationInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetOrgLogIntegrationResult> Invoke(GetOrgLogIntegrationInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetOrgLogIntegrationResult> getOrgLogIntegration(GetOrgLogIntegrationArgs args, InvokeOptions options)
    public static Output<GetOrgLogIntegrationResult> getOrgLogIntegration(GetOrgLogIntegrationArgs args, InvokeOptions options)
    public static Output<GetOrgLogIntegrationResult> getOrgLogIntegration(GetOrgLogIntegrationArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: mongodbatlas:index/getOrgLogIntegration:getOrgLogIntegration
      arguments:
        # arguments dictionary
    data "mongodbatlas_get_org_log_integration" "name" {
        # arguments
    }

    The following arguments are supported:

    IntegrationId string
    Unique identifier of the log integration configuration.
    OrgId string
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
    IntegrationId string
    Unique identifier of the log integration configuration.
    OrgId string
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
    integration_id string
    Unique identifier of the log integration configuration.
    org_id string
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
    integrationId String
    Unique identifier of the log integration configuration.
    orgId String
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
    integrationId string
    Unique identifier of the log integration configuration.
    orgId string
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
    integration_id str
    Unique identifier of the log integration configuration.
    org_id str
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
    integrationId String
    Unique identifier of the log integration configuration.
    orgId String
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.

    getOrgLogIntegration Result

    The following output properties are available:

    IntegrationId string
    Unique identifier of the log integration configuration.
    LogTypes List<string>
    Array of log types exported by this integration.
    OrgId string
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
    OtelEndpoint string
    OpenTelemetry collector endpoint URL.
    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.
    IntegrationId string
    Unique identifier of the log integration configuration.
    LogTypes []string
    Array of log types exported by this integration.
    OrgId string
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
    OtelEndpoint string
    OpenTelemetry collector endpoint URL.
    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.
    integration_id string
    Unique identifier of the log integration configuration.
    log_types list(string)
    Array of log types exported by this integration.
    org_id string
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
    otel_endpoint string
    OpenTelemetry collector endpoint URL.
    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.
    integrationId String
    Unique identifier of the log integration configuration.
    logTypes List<String>
    Array of log types exported by this integration.
    orgId String
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
    otelEndpoint String
    OpenTelemetry collector endpoint URL.
    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.
    integrationId string
    Unique identifier of the log integration configuration.
    logTypes string[]
    Array of log types exported by this integration.
    orgId string
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
    otelEndpoint string
    OpenTelemetry collector endpoint URL.
    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.
    integration_id str
    Unique identifier of the log integration configuration.
    log_types Sequence[str]
    Array of log types exported by this integration.
    org_id str
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
    otel_endpoint str
    OpenTelemetry collector endpoint URL.
    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.
    integrationId String
    Unique identifier of the log integration configuration.
    logTypes List<String>
    Array of log types exported by this integration.
    orgId String
    Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
    otelEndpoint String
    OpenTelemetry collector endpoint URL.
    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.

    Package Details

    Repository
    MongoDB Atlas pulumi/pulumi-mongodbatlas
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mongodbatlas Terraform Provider.
    mongodbatlas logo mongodbatlas logo
    Viewing docs for MongoDB Atlas v4.17.1
    published on Tuesday, Oct 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial