1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getLdapServerProfile
Viewing docs for Strata Cloud Manager v1.0.5
published on Saturday, Mar 21, 2026 by Pulumi
scm logo
Viewing docs for Strata Cloud Manager v1.0.5
published on Saturday, Mar 21, 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.LookupLdapServerProfile(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"] = 
            {
                { "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.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) {
            //
            // 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}
    

    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?: InvokeOptions): 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: Optional[pulumi.Input[str]] = None,
                                folder: Optional[pulumi.Input[str]] = None,
                                id: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                snippet: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = 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 CompletableFuture<GetLdapServerProfileResult> getLdapServerProfile(GetLdapServerProfileArgs args, InvokeOptions options)
    public static Output<GetLdapServerProfileResult> getLdapServerProfile(GetLdapServerProfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getLdapServerProfile:getLdapServerProfile
      arguments:
        # arguments dictionary

    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
    Name string
    Snippet string
    Id string
    The UUID of the LDAP server profile
    Device string
    The device in which the resource is defined
    Folder string
    Name string
    Snippet string
    id String
    The UUID of the LDAP server profile
    device String
    The device in which the resource is defined
    folder String
    name String
    snippet String
    id string
    The UUID of the LDAP server profile
    device string
    The device in which the resource is defined
    folder string
    name string
    snippet string
    id str
    The UUID of the LDAP server profile
    device str
    The device in which the resource is defined
    folder str
    name str
    snippet str
    id String
    The UUID of the LDAP server profile
    device String
    The device in which the resource is defined
    folder String
    name String
    snippet String

    getLdapServerProfile Result

    The following output properties are available:

    Base string
    BindDn string
    BindPassword string
    BindTimelimit string
    Device string
    The device in which the resource is defined
    EncryptedValues Dictionary<string, string>
    Folder string
    Id string
    The UUID of the LDAP server profile
    LdapType string
    Name string
    RetryInterval int
    Servers List<GetLdapServerProfileServer>
    Snippet string
    Ssl bool
    Tfid string
    Timelimit int
    VerifyServerCertificate bool
    Base string
    BindDn string
    BindPassword string
    BindTimelimit string
    Device string
    The device in which the resource is defined
    EncryptedValues map[string]string
    Folder string
    Id string
    The UUID of the LDAP server profile
    LdapType string
    Name string
    RetryInterval int
    Servers []GetLdapServerProfileServer
    Snippet string
    Ssl bool
    Tfid string
    Timelimit int
    VerifyServerCertificate bool
    base String
    bindDn String
    bindPassword String
    bindTimelimit String
    device String
    The device in which the resource is defined
    encryptedValues Map<String,String>
    folder String
    id String
    The UUID of the LDAP server profile
    ldapType String
    name String
    retryInterval Integer
    servers List<GetLdapServerProfileServer>
    snippet String
    ssl Boolean
    tfid String
    timelimit Integer
    verifyServerCertificate Boolean
    base string
    bindDn string
    bindPassword string
    bindTimelimit string
    device string
    The device in which the resource is defined
    encryptedValues {[key: string]: string}
    folder string
    id string
    The UUID of the LDAP server profile
    ldapType string
    name string
    retryInterval number
    servers GetLdapServerProfileServer[]
    snippet string
    ssl boolean
    tfid string
    timelimit number
    verifyServerCertificate boolean
    base str
    bind_dn str
    bind_password str
    bind_timelimit str
    device str
    The device in which the resource is defined
    encrypted_values Mapping[str, str]
    folder str
    id str
    The UUID of the LDAP server profile
    ldap_type str
    name str
    retry_interval int
    servers Sequence[GetLdapServerProfileServer]
    snippet str
    ssl bool
    tfid str
    timelimit int
    verify_server_certificate bool
    base String
    bindDn String
    bindPassword String
    bindTimelimit String
    device String
    The device in which the resource is defined
    encryptedValues Map<String>
    folder String
    id String
    The UUID of the LDAP server profile
    ldapType String
    name String
    retryInterval Number
    servers List<Property Map>
    snippet String
    ssl Boolean
    tfid String
    timelimit Number
    verifyServerCertificate Boolean

    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 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
    Viewing docs for Strata Cloud Manager v1.0.5
    published on Saturday, Mar 21, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.