1. Registry
  2. Packages
  3. Strata Cloud Manager Provider
  4. API Docs
  5. getLdapServerProfile
Viewing docs for Strata Cloud Manager v1.2.1
published on Friday, Oct 16, 2026 by Pulumi
scm logo Strata Cloud Manager
Viewing docs for Strata Cloud Manager v1.2.1
published on Friday, Oct 16, 2026 by Pulumi

    LdapServerProfile data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    //
    // Data source to retrieve a single SCM LDAP Server Profile object by its ID.
    //
    // Replace the ID with the UUID of the LDAP Server Profile you want to find.
    const ldapServerProf = scm.getLdapServerProfile({
        id: "a5006a3e-52b3-435e-9e3b-39b50dc72401",
    });
    export const scmLdapServerProfileDetails = {
        id: ldapServerProf.then(ldapServerProf => ldapServerProf.id),
        folder: ldapServerProf.then(ldapServerProf => ldapServerProf.folder),
        name: ldapServerProf.then(ldapServerProf => ldapServerProf.name),
    };
    
    import pulumi
    import pulumi_scm as scm
    
    #
    # Data source to retrieve a single SCM LDAP Server Profile object by its ID.
    #
    # Replace the ID with the UUID of the LDAP Server Profile you want to find.
    ldap_server_prof = scm.get_ldap_server_profile(id="a5006a3e-52b3-435e-9e3b-39b50dc72401")
    pulumi.export("scmLdapServerProfileDetails", {
        "id": ldap_server_prof.id,
        "folder": ldap_server_prof.folder,
        "name": ldap_server_prof.name,
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-scm/sdk/go/scm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Data source to retrieve a single SCM LDAP Server Profile object by its ID.
    		//
    		// Replace the ID with the UUID of the LDAP Server Profile you want to find.
    		ldapServerProf, err := scm.GetLdapServerProfile(ctx, &scm.LookupLdapServerProfileArgs{
    			Id: "a5006a3e-52b3-435e-9e3b-39b50dc72401",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("scmLdapServerProfileDetails", pulumi.StringMap{
    			"id":     ldapServerProf.Id,
    			"folder": ldapServerProf.Folder,
    			"name":   ldapServerProf.Name,
    		})
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        //
        // Data source to retrieve a single SCM LDAP Server Profile object by its ID.
        //
        // Replace the ID with the UUID of the LDAP Server Profile you want to find.
        var ldapServerProf = Scm.GetLdapServerProfile.Invoke(new()
        {
            Id = "a5006a3e-52b3-435e-9e3b-39b50dc72401",
        });
    
        return new Dictionary<string, object?>
        {
            ["scmLdapServerProfileDetails"] = new Dictionary<string, object?>
            {
                ["id"] = ldapServerProf.Apply(getLdapServerProfileResult => getLdapServerProfileResult.Id),
                ["folder"] = ldapServerProf.Apply(getLdapServerProfileResult => getLdapServerProfileResult.Folder),
                ["name"] = ldapServerProf.Apply(getLdapServerProfileResult => getLdapServerProfileResult.Name),
            },
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scm.ScmFunctions;
    import com.pulumi.scm.inputs.GetLdapServerProfileArgs;
    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) {
            //
            // Data source to retrieve a single SCM LDAP Server Profile object by its ID.
            //
            // Replace the ID with the UUID of the LDAP Server Profile you want to find.
            final var ldapServerProf = ScmFunctions.getLdapServerProfile(GetLdapServerProfileArgs.builder()
                .id("a5006a3e-52b3-435e-9e3b-39b50dc72401")
                .build());
    
            ctx.export("scmLdapServerProfileDetails", Map.ofEntries(
                Map.entry("id", ldapServerProf.id()),
                Map.entry("folder", ldapServerProf.folder()),
                Map.entry("name", ldapServerProf.name())
            ));
        }
    }
    
    variables:
      #
      # Data source to retrieve a single SCM LDAP Server Profile object by its ID.
      #
    
      # Replace the ID with the UUID of the LDAP Server Profile you want to find.
      ldapServerProf:
        fn::invoke:
          function: scm:getLdapServerProfile
          arguments:
            id: a5006a3e-52b3-435e-9e3b-39b50dc72401
    outputs:
      # Output the details of the single LDAP Server Profile object found.
      scmLdapServerProfileDetails:
        id: ${ldapServerProf.id}
        folder: ${ldapServerProf.folder}
        name: ${ldapServerProf.name}
    
    terraform {
      required_providers {
        scm = {
          source = "pulumi/scm"
        }
      }
    }
    
    data "scm_ldap_server_profile" "ldapServerProf" {
      id = "a5006a3e-52b3-435e-9e3b-39b50dc72401"
    }
    
    #
    # Data source to retrieve a single SCM LDAP Server Profile object by its ID.
    #
    # Replace the ID with the UUID of the LDAP Server Profile you want to find.
    # Output the details of the single LDAP Server Profile object found.
    output "scmLdapServerProfileDetails" {
      value = {
        "id"     = data.scm_ldap_server_profile.ldapServerProf.id
        "folder" = data.scm_ldap_server_profile.ldapServerProf.folder
        "name"   = data.scm_ldap_server_profile.ldapServerProf.name
      }
    }
    

    Using getLdapServerProfile

    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 getLdapServerProfile(args: GetLdapServerProfileArgs, opts?: InvokeOptions): Promise<GetLdapServerProfileResult>
    function getLdapServerProfileOutput(args: GetLdapServerProfileOutputArgs, opts?: InvokeOutputOptions): Output<GetLdapServerProfileResult>
    def get_ldap_server_profile(device: Optional[str] = None,
                                folder: Optional[str] = None,
                                id: Optional[str] = None,
                                name: Optional[str] = None,
                                snippet: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetLdapServerProfileResult
    def get_ldap_server_profile_output(device: pulumi.Input[Optional[str]] = None,
                                folder: pulumi.Input[Optional[str]] = None,
                                id: pulumi.Input[Optional[str]] = None,
                                name: pulumi.Input[Optional[str]] = None,
                                snippet: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOutputOptions] = None) -> Output[GetLdapServerProfileResult]
    func LookupLdapServerProfile(ctx *Context, args *LookupLdapServerProfileArgs, opts ...InvokeOption) (*LookupLdapServerProfileResult, error)
    func LookupLdapServerProfileOutput(ctx *Context, args *LookupLdapServerProfileOutputArgs, opts ...InvokeOption) LookupLdapServerProfileResultOutput

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

    public static class GetLdapServerProfile 
    {
        public static Task<GetLdapServerProfileResult> InvokeAsync(GetLdapServerProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetLdapServerProfileResult> Invoke(GetLdapServerProfileInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetLdapServerProfileResult> Invoke(GetLdapServerProfileInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetLdapServerProfileResult> getLdapServerProfile(GetLdapServerProfileArgs args, InvokeOptions options)
    public static Output<GetLdapServerProfileResult> getLdapServerProfile(GetLdapServerProfileArgs args, InvokeOptions options)
    public static Output<GetLdapServerProfileResult> getLdapServerProfile(GetLdapServerProfileArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: scm:index/getLdapServerProfile:getLdapServerProfile
      arguments:
        # arguments dictionary
    data "scm_get_ldap_server_profile" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The UUID of the LDAP server profile
    Device string
    The device in which the resource is defined
    Folder string
    The folder in which the resource is defined
    Name string
    The name of the LDAP server profile
    Snippet string
    The snippet in which the resource is defined
    Id string
    The UUID of the LDAP server profile
    Device string
    The device in which the resource is defined
    Folder string
    The folder in which the resource is defined
    Name string
    The name of the LDAP server profile
    Snippet string
    The snippet in which the resource is defined
    id string
    The UUID of the LDAP server profile
    device string
    The device in which the resource is defined
    folder string
    The folder in which the resource is defined
    name string
    The name of the LDAP server profile
    snippet string
    The snippet in which the resource is defined
    id String
    The UUID of the LDAP server profile
    device String
    The device in which the resource is defined
    folder String
    The folder in which the resource is defined
    name String
    The name of the LDAP server profile
    snippet String
    The snippet in which the resource is defined
    id string
    The UUID of the LDAP server profile
    device string
    The device in which the resource is defined
    folder string
    The folder in which the resource is defined
    name string
    The name of the LDAP server profile
    snippet string
    The snippet in which the resource is defined
    id str
    The UUID of the LDAP server profile
    device str
    The device in which the resource is defined
    folder str
    The folder in which the resource is defined
    name str
    The name of the LDAP server profile
    snippet str
    The snippet in which the resource is defined
    id String
    The UUID of the LDAP server profile
    device String
    The device in which the resource is defined
    folder String
    The folder in which the resource is defined
    name String
    The name of the LDAP server profile
    snippet String
    The snippet in which the resource is defined

    getLdapServerProfile Result

    The following output properties are available:

    Base string
    The base DN
    BindDn string
    The bind DN
    BindPassword string
    The bind password
    BindTimelimit string
    The bind timeout (seconds)
    Device string
    The device in which the resource is defined
    EncryptedValues Dictionary<string, string>
    Map of sensitive values returned from the API.
    Folder string
    The folder in which the resource is defined
    Id string
    The UUID of the LDAP server profile
    LdapType string
    The LDAP server time. Possible values are active-directory, e-directory, sun and other.
    Name string
    The name of the LDAP server profile
    RetryInterval int
    The search retry interval (seconds)
    Servers List<GetLdapServerProfileServer>
    The LDAP server configuration
    Snippet string
    The snippet in which the resource is defined
    Ssl bool
    Require SSL/TLS secured connection?
    Tfid string
    The Terraform ID.
    Timelimit int
    The search timeout (seconds)
    VerifyServerCertificate bool
    Verify server certificate for SSL sessions?
    Base string
    The base DN
    BindDn string
    The bind DN
    BindPassword string
    The bind password
    BindTimelimit string
    The bind timeout (seconds)
    Device string
    The device in which the resource is defined
    EncryptedValues map[string]string
    Map of sensitive values returned from the API.
    Folder string
    The folder in which the resource is defined
    Id string
    The UUID of the LDAP server profile
    LdapType string
    The LDAP server time. Possible values are active-directory, e-directory, sun and other.
    Name string
    The name of the LDAP server profile
    RetryInterval int
    The search retry interval (seconds)
    Servers []GetLdapServerProfileServer
    The LDAP server configuration
    Snippet string
    The snippet in which the resource is defined
    Ssl bool
    Require SSL/TLS secured connection?
    Tfid string
    The Terraform ID.
    Timelimit int
    The search timeout (seconds)
    VerifyServerCertificate bool
    Verify server certificate for SSL sessions?
    base string
    The base DN
    bind_dn string
    The bind DN
    bind_password string
    The bind password
    bind_timelimit string
    The bind timeout (seconds)
    device string
    The device in which the resource is defined
    encrypted_values map(string)
    Map of sensitive values returned from the API.
    folder string
    The folder in which the resource is defined
    id string
    The UUID of the LDAP server profile
    ldap_type string
    The LDAP server time. Possible values are active-directory, e-directory, sun and other.
    name string
    The name of the LDAP server profile
    retry_interval number
    The search retry interval (seconds)
    servers list(object)
    The LDAP server configuration
    snippet string
    The snippet in which the resource is defined
    ssl bool
    Require SSL/TLS secured connection?
    tfid string
    The Terraform ID.
    timelimit number
    The search timeout (seconds)
    verify_server_certificate bool
    Verify server certificate for SSL sessions?
    base String
    The base DN
    bindDn String
    The bind DN
    bindPassword String
    The bind password
    bindTimelimit String
    The bind timeout (seconds)
    device String
    The device in which the resource is defined
    encryptedValues Map<String,String>
    Map of sensitive values returned from the API.
    folder String
    The folder in which the resource is defined
    id String
    The UUID of the LDAP server profile
    ldapType String
    The LDAP server time. Possible values are active-directory, e-directory, sun and other.
    name String
    The name of the LDAP server profile
    retryInterval Integer
    The search retry interval (seconds)
    servers List<GetLdapServerProfileServer>
    The LDAP server configuration
    snippet String
    The snippet in which the resource is defined
    ssl Boolean
    Require SSL/TLS secured connection?
    tfid String
    The Terraform ID.
    timelimit Integer
    The search timeout (seconds)
    verifyServerCertificate Boolean
    Verify server certificate for SSL sessions?
    base string
    The base DN
    bindDn string
    The bind DN
    bindPassword string
    The bind password
    bindTimelimit string
    The bind timeout (seconds)
    device string
    The device in which the resource is defined
    encryptedValues {[key: string]: string}
    Map of sensitive values returned from the API.
    folder string
    The folder in which the resource is defined
    id string
    The UUID of the LDAP server profile
    ldapType string
    The LDAP server time. Possible values are active-directory, e-directory, sun and other.
    name string
    The name of the LDAP server profile
    retryInterval number
    The search retry interval (seconds)
    servers GetLdapServerProfileServer[]
    The LDAP server configuration
    snippet string
    The snippet in which the resource is defined
    ssl boolean
    Require SSL/TLS secured connection?
    tfid string
    The Terraform ID.
    timelimit number
    The search timeout (seconds)
    verifyServerCertificate boolean
    Verify server certificate for SSL sessions?
    base str
    The base DN
    bind_dn str
    The bind DN
    bind_password str
    The bind password
    bind_timelimit str
    The bind timeout (seconds)
    device str
    The device in which the resource is defined
    encrypted_values Mapping[str, str]
    Map of sensitive values returned from the API.
    folder str
    The folder in which the resource is defined
    id str
    The UUID of the LDAP server profile
    ldap_type str
    The LDAP server time. Possible values are active-directory, e-directory, sun and other.
    name str
    The name of the LDAP server profile
    retry_interval int
    The search retry interval (seconds)
    servers Sequence[GetLdapServerProfileServer]
    The LDAP server configuration
    snippet str
    The snippet in which the resource is defined
    ssl bool
    Require SSL/TLS secured connection?
    tfid str
    The Terraform ID.
    timelimit int
    The search timeout (seconds)
    verify_server_certificate bool
    Verify server certificate for SSL sessions?
    base String
    The base DN
    bindDn String
    The bind DN
    bindPassword String
    The bind password
    bindTimelimit String
    The bind timeout (seconds)
    device String
    The device in which the resource is defined
    encryptedValues Map<String>
    Map of sensitive values returned from the API.
    folder String
    The folder in which the resource is defined
    id String
    The UUID of the LDAP server profile
    ldapType String
    The LDAP server time. Possible values are active-directory, e-directory, sun and other.
    name String
    The name of the LDAP server profile
    retryInterval Number
    The search retry interval (seconds)
    servers List<Property Map>
    The LDAP server configuration
    snippet String
    The snippet in which the resource is defined
    ssl Boolean
    Require SSL/TLS secured connection?
    tfid String
    The Terraform ID.
    timelimit Number
    The search timeout (seconds)
    verifyServerCertificate Boolean
    Verify server certificate for SSL sessions?

    Supporting Types

    GetLdapServerProfileServer

    Address string
    The LDAP server IP address
    Name string
    The LDAP server name
    Port int
    The LDAP server port
    Address string
    The LDAP server IP address
    Name string
    The LDAP server name
    Port int
    The LDAP server port
    address string
    The LDAP server IP address
    name string
    The LDAP server name
    port number
    The LDAP server port
    address String
    The LDAP server IP address
    name String
    The LDAP server name
    port Integer
    The LDAP server port
    address string
    The LDAP server IP address
    name string
    The LDAP server name
    port number
    The LDAP server port
    address str
    The LDAP server IP address
    name str
    The LDAP server name
    port int
    The LDAP server port
    address String
    The LDAP server IP address
    name String
    The LDAP server name
    port Number
    The LDAP server port

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo Strata Cloud Manager
    Viewing docs for Strata Cloud Manager v1.2.1
    published on Friday, Oct 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial