scm.LdapServerProfile
Explore with Pulumi AI
Retrieves a config item.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const example = new scm.LdapServerProfile("example", {});
import pulumi
import pulumi_scm as scm
example = scm.LdapServerProfile("example")
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 {
_, err := scm.NewLdapServerProfile(ctx, "example", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
var example = new Scm.LdapServerProfile("example");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.LdapServerProfile;
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) {
var example = new LdapServerProfile("example");
}
}
resources:
example:
type: scm:LdapServerProfile
Create LdapServerProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LdapServerProfile(name: string, args: LdapServerProfileArgs, opts?: CustomResourceOptions);
@overload
def LdapServerProfile(resource_name: str,
args: LdapServerProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LdapServerProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
servers: Optional[Sequence[LdapServerProfileServerArgs]] = None,
ldap_type: Optional[str] = None,
bind_password: Optional[str] = None,
bind_timelimit: Optional[str] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
base: Optional[str] = None,
retry_interval: Optional[int] = None,
bind_dn: Optional[str] = None,
snippet: Optional[str] = None,
ssl: Optional[bool] = None,
timelimit: Optional[int] = None,
verify_server_certificate: Optional[bool] = None)
func NewLdapServerProfile(ctx *Context, name string, args LdapServerProfileArgs, opts ...ResourceOption) (*LdapServerProfile, error)
public LdapServerProfile(string name, LdapServerProfileArgs args, CustomResourceOptions? opts = null)
public LdapServerProfile(String name, LdapServerProfileArgs args)
public LdapServerProfile(String name, LdapServerProfileArgs args, CustomResourceOptions options)
type: scm:LdapServerProfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LdapServerProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LdapServerProfileArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LdapServerProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LdapServerProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LdapServerProfileArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ldapServerProfileResource = new Scm.LdapServerProfile("ldapServerProfileResource", new()
{
Servers = new[]
{
new Scm.Inputs.LdapServerProfileServerArgs
{
Address = "string",
Name = "string",
Port = 0,
},
},
LdapType = "string",
BindPassword = "string",
BindTimelimit = "string",
Device = "string",
Folder = "string",
Base = "string",
RetryInterval = 0,
BindDn = "string",
Snippet = "string",
Ssl = false,
Timelimit = 0,
VerifyServerCertificate = false,
});
example, err := scm.NewLdapServerProfile(ctx, "ldapServerProfileResource", &scm.LdapServerProfileArgs{
Servers: scm.LdapServerProfileServerArray{
&scm.LdapServerProfileServerArgs{
Address: pulumi.String("string"),
Name: pulumi.String("string"),
Port: pulumi.Int(0),
},
},
LdapType: pulumi.String("string"),
BindPassword: pulumi.String("string"),
BindTimelimit: pulumi.String("string"),
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
Base: pulumi.String("string"),
RetryInterval: pulumi.Int(0),
BindDn: pulumi.String("string"),
Snippet: pulumi.String("string"),
Ssl: pulumi.Bool(false),
Timelimit: pulumi.Int(0),
VerifyServerCertificate: pulumi.Bool(false),
})
var ldapServerProfileResource = new LdapServerProfile("ldapServerProfileResource", LdapServerProfileArgs.builder()
.servers(LdapServerProfileServerArgs.builder()
.address("string")
.name("string")
.port(0)
.build())
.ldapType("string")
.bindPassword("string")
.bindTimelimit("string")
.device("string")
.folder("string")
.base("string")
.retryInterval(0)
.bindDn("string")
.snippet("string")
.ssl(false)
.timelimit(0)
.verifyServerCertificate(false)
.build());
ldap_server_profile_resource = scm.LdapServerProfile("ldapServerProfileResource",
servers=[{
"address": "string",
"name": "string",
"port": 0,
}],
ldap_type="string",
bind_password="string",
bind_timelimit="string",
device="string",
folder="string",
base="string",
retry_interval=0,
bind_dn="string",
snippet="string",
ssl=False,
timelimit=0,
verify_server_certificate=False)
const ldapServerProfileResource = new scm.LdapServerProfile("ldapServerProfileResource", {
servers: [{
address: "string",
name: "string",
port: 0,
}],
ldapType: "string",
bindPassword: "string",
bindTimelimit: "string",
device: "string",
folder: "string",
base: "string",
retryInterval: 0,
bindDn: "string",
snippet: "string",
ssl: false,
timelimit: 0,
verifyServerCertificate: false,
});
type: scm:LdapServerProfile
properties:
base: string
bindDn: string
bindPassword: string
bindTimelimit: string
device: string
folder: string
ldapType: string
retryInterval: 0
servers:
- address: string
name: string
port: 0
snippet: string
ssl: false
timelimit: 0
verifyServerCertificate: false
LdapServerProfile Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LdapServerProfile resource accepts the following input properties:
- Servers
List<Ldap
Server Profile Server> - The Servers param.
- Base string
- The Base param. String length must not exceed 255 characters.
- Bind
Dn string - The BindDn param. String length must not exceed 255 characters.
- Bind
Password string - The BindPassword param. String length must not exceed 121 characters.
- Bind
Timelimit string - The BindTimelimit param.
- Device string
- The Device param.
- Folder string
- The Folder param.
- Ldap
Type string - The LdapType param. String must be one of these:
"active-directory"
,"e-directory"
,"sun"
,"other"
. - Retry
Interval int - The RetryInterval param.
- Snippet string
- The Snippet param.
- Ssl bool
- The Ssl param.
- Timelimit int
- The Timelimit param.
- Verify
Server boolCertificate - The VerifyServerCertificate param.
- Servers
[]Ldap
Server Profile Server Args - The Servers param.
- Base string
- The Base param. String length must not exceed 255 characters.
- Bind
Dn string - The BindDn param. String length must not exceed 255 characters.
- Bind
Password string - The BindPassword param. String length must not exceed 121 characters.
- Bind
Timelimit string - The BindTimelimit param.
- Device string
- The Device param.
- Folder string
- The Folder param.
- Ldap
Type string - The LdapType param. String must be one of these:
"active-directory"
,"e-directory"
,"sun"
,"other"
. - Retry
Interval int - The RetryInterval param.
- Snippet string
- The Snippet param.
- Ssl bool
- The Ssl param.
- Timelimit int
- The Timelimit param.
- Verify
Server boolCertificate - The VerifyServerCertificate param.
- servers
List<Ldap
Server Profile Server> - The Servers param.
- base String
- The Base param. String length must not exceed 255 characters.
- bind
Dn String - The BindDn param. String length must not exceed 255 characters.
- bind
Password String - The BindPassword param. String length must not exceed 121 characters.
- bind
Timelimit String - The BindTimelimit param.
- device String
- The Device param.
- folder String
- The Folder param.
- ldap
Type String - The LdapType param. String must be one of these:
"active-directory"
,"e-directory"
,"sun"
,"other"
. - retry
Interval Integer - The RetryInterval param.
- snippet String
- The Snippet param.
- ssl Boolean
- The Ssl param.
- timelimit Integer
- The Timelimit param.
- verify
Server BooleanCertificate - The VerifyServerCertificate param.
- servers
Ldap
Server Profile Server[] - The Servers param.
- base string
- The Base param. String length must not exceed 255 characters.
- bind
Dn string - The BindDn param. String length must not exceed 255 characters.
- bind
Password string - The BindPassword param. String length must not exceed 121 characters.
- bind
Timelimit string - The BindTimelimit param.
- device string
- The Device param.
- folder string
- The Folder param.
- ldap
Type string - The LdapType param. String must be one of these:
"active-directory"
,"e-directory"
,"sun"
,"other"
. - retry
Interval number - The RetryInterval param.
- snippet string
- The Snippet param.
- ssl boolean
- The Ssl param.
- timelimit number
- The Timelimit param.
- verify
Server booleanCertificate - The VerifyServerCertificate param.
- servers
Sequence[Ldap
Server Profile Server Args] - The Servers param.
- base str
- The Base param. String length must not exceed 255 characters.
- bind_
dn str - The BindDn param. String length must not exceed 255 characters.
- bind_
password str - The BindPassword param. String length must not exceed 121 characters.
- bind_
timelimit str - The BindTimelimit param.
- device str
- The Device param.
- folder str
- The Folder param.
- ldap_
type str - The LdapType param. String must be one of these:
"active-directory"
,"e-directory"
,"sun"
,"other"
. - retry_
interval int - The RetryInterval param.
- snippet str
- The Snippet param.
- ssl bool
- The Ssl param.
- timelimit int
- The Timelimit param.
- verify_
server_ boolcertificate - The VerifyServerCertificate param.
- servers List<Property Map>
- The Servers param.
- base String
- The Base param. String length must not exceed 255 characters.
- bind
Dn String - The BindDn param. String length must not exceed 255 characters.
- bind
Password String - The BindPassword param. String length must not exceed 121 characters.
- bind
Timelimit String - The BindTimelimit param.
- device String
- The Device param.
- folder String
- The Folder param.
- ldap
Type String - The LdapType param. String must be one of these:
"active-directory"
,"e-directory"
,"sun"
,"other"
. - retry
Interval Number - The RetryInterval param.
- snippet String
- The Snippet param.
- ssl Boolean
- The Ssl param.
- timelimit Number
- The Timelimit param.
- verify
Server BooleanCertificate - The VerifyServerCertificate param.
Outputs
All input properties are implicitly available as output properties. Additionally, the LdapServerProfile resource produces the following output properties:
Look up Existing LdapServerProfile Resource
Get an existing LdapServerProfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LdapServerProfileState, opts?: CustomResourceOptions): LdapServerProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
base: Optional[str] = None,
bind_dn: Optional[str] = None,
bind_password: Optional[str] = None,
bind_timelimit: Optional[str] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
ldap_type: Optional[str] = None,
retry_interval: Optional[int] = None,
servers: Optional[Sequence[LdapServerProfileServerArgs]] = None,
snippet: Optional[str] = None,
ssl: Optional[bool] = None,
tfid: Optional[str] = None,
timelimit: Optional[int] = None,
verify_server_certificate: Optional[bool] = None) -> LdapServerProfile
func GetLdapServerProfile(ctx *Context, name string, id IDInput, state *LdapServerProfileState, opts ...ResourceOption) (*LdapServerProfile, error)
public static LdapServerProfile Get(string name, Input<string> id, LdapServerProfileState? state, CustomResourceOptions? opts = null)
public static LdapServerProfile get(String name, Output<String> id, LdapServerProfileState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Base string
- The Base param. String length must not exceed 255 characters.
- Bind
Dn string - The BindDn param. String length must not exceed 255 characters.
- Bind
Password string - The BindPassword param. String length must not exceed 121 characters.
- Bind
Timelimit string - The BindTimelimit param.
- Device string
- The Device param.
- Folder string
- The Folder param.
- Ldap
Type string - The LdapType param. String must be one of these:
"active-directory"
,"e-directory"
,"sun"
,"other"
. - Retry
Interval int - The RetryInterval param.
- Servers
List<Ldap
Server Profile Server> - The Servers param.
- Snippet string
- The Snippet param.
- Ssl bool
- The Ssl param.
- Tfid string
- Timelimit int
- The Timelimit param.
- Verify
Server boolCertificate - The VerifyServerCertificate param.
- Base string
- The Base param. String length must not exceed 255 characters.
- Bind
Dn string - The BindDn param. String length must not exceed 255 characters.
- Bind
Password string - The BindPassword param. String length must not exceed 121 characters.
- Bind
Timelimit string - The BindTimelimit param.
- Device string
- The Device param.
- Folder string
- The Folder param.
- Ldap
Type string - The LdapType param. String must be one of these:
"active-directory"
,"e-directory"
,"sun"
,"other"
. - Retry
Interval int - The RetryInterval param.
- Servers
[]Ldap
Server Profile Server Args - The Servers param.
- Snippet string
- The Snippet param.
- Ssl bool
- The Ssl param.
- Tfid string
- Timelimit int
- The Timelimit param.
- Verify
Server boolCertificate - The VerifyServerCertificate param.
- base String
- The Base param. String length must not exceed 255 characters.
- bind
Dn String - The BindDn param. String length must not exceed 255 characters.
- bind
Password String - The BindPassword param. String length must not exceed 121 characters.
- bind
Timelimit String - The BindTimelimit param.
- device String
- The Device param.
- folder String
- The Folder param.
- ldap
Type String - The LdapType param. String must be one of these:
"active-directory"
,"e-directory"
,"sun"
,"other"
. - retry
Interval Integer - The RetryInterval param.
- servers
List<Ldap
Server Profile Server> - The Servers param.
- snippet String
- The Snippet param.
- ssl Boolean
- The Ssl param.
- tfid String
- timelimit Integer
- The Timelimit param.
- verify
Server BooleanCertificate - The VerifyServerCertificate param.
- base string
- The Base param. String length must not exceed 255 characters.
- bind
Dn string - The BindDn param. String length must not exceed 255 characters.
- bind
Password string - The BindPassword param. String length must not exceed 121 characters.
- bind
Timelimit string - The BindTimelimit param.
- device string
- The Device param.
- folder string
- The Folder param.
- ldap
Type string - The LdapType param. String must be one of these:
"active-directory"
,"e-directory"
,"sun"
,"other"
. - retry
Interval number - The RetryInterval param.
- servers
Ldap
Server Profile Server[] - The Servers param.
- snippet string
- The Snippet param.
- ssl boolean
- The Ssl param.
- tfid string
- timelimit number
- The Timelimit param.
- verify
Server booleanCertificate - The VerifyServerCertificate param.
- base str
- The Base param. String length must not exceed 255 characters.
- bind_
dn str - The BindDn param. String length must not exceed 255 characters.
- bind_
password str - The BindPassword param. String length must not exceed 121 characters.
- bind_
timelimit str - The BindTimelimit param.
- device str
- The Device param.
- folder str
- The Folder param.
- ldap_
type str - The LdapType param. String must be one of these:
"active-directory"
,"e-directory"
,"sun"
,"other"
. - retry_
interval int - The RetryInterval param.
- servers
Sequence[Ldap
Server Profile Server Args] - The Servers param.
- snippet str
- The Snippet param.
- ssl bool
- The Ssl param.
- tfid str
- timelimit int
- The Timelimit param.
- verify_
server_ boolcertificate - The VerifyServerCertificate param.
- base String
- The Base param. String length must not exceed 255 characters.
- bind
Dn String - The BindDn param. String length must not exceed 255 characters.
- bind
Password String - The BindPassword param. String length must not exceed 121 characters.
- bind
Timelimit String - The BindTimelimit param.
- device String
- The Device param.
- folder String
- The Folder param.
- ldap
Type String - The LdapType param. String must be one of these:
"active-directory"
,"e-directory"
,"sun"
,"other"
. - retry
Interval Number - The RetryInterval param.
- servers List<Property Map>
- The Servers param.
- snippet String
- The Snippet param.
- ssl Boolean
- The Ssl param.
- tfid String
- timelimit Number
- The Timelimit param.
- verify
Server BooleanCertificate - The VerifyServerCertificate param.
Supporting Types
LdapServerProfileServer, LdapServerProfileServerArgs
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scm
Terraform Provider.