gitlab.GroupLdapLink
Explore with Pulumi AI
The gitlab.GroupLdapLink
resource allows to manage the lifecycle of an LDAP integration with a group.
Upstream API: GitLab REST API docs
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
test:
type: gitlab:GroupLdapLink
properties:
groupId: '12345'
cn: testuser
groupAccess: developer
ldapProvider: ldapmain
Create GroupLdapLink Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GroupLdapLink(name: string, args: GroupLdapLinkArgs, opts?: CustomResourceOptions);
@overload
def GroupLdapLink(resource_name: str,
args: GroupLdapLinkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GroupLdapLink(resource_name: str,
opts: Optional[ResourceOptions] = None,
group: Optional[str] = None,
ldap_provider: Optional[str] = None,
access_level: Optional[str] = None,
cn: Optional[str] = None,
filter: Optional[str] = None,
force: Optional[bool] = None,
group_access: Optional[str] = None)
func NewGroupLdapLink(ctx *Context, name string, args GroupLdapLinkArgs, opts ...ResourceOption) (*GroupLdapLink, error)
public GroupLdapLink(string name, GroupLdapLinkArgs args, CustomResourceOptions? opts = null)
public GroupLdapLink(String name, GroupLdapLinkArgs args)
public GroupLdapLink(String name, GroupLdapLinkArgs args, CustomResourceOptions options)
type: gitlab:GroupLdapLink
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 GroupLdapLinkArgs
- 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 GroupLdapLinkArgs
- 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 GroupLdapLinkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupLdapLinkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GroupLdapLinkArgs
- 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 groupLdapLinkResource = new GitLab.GroupLdapLink("groupLdapLinkResource", new()
{
Group = "string",
LdapProvider = "string",
Cn = "string",
Filter = "string",
Force = false,
GroupAccess = "string",
});
example, err := gitlab.NewGroupLdapLink(ctx, "groupLdapLinkResource", &gitlab.GroupLdapLinkArgs{
Group: pulumi.String("string"),
LdapProvider: pulumi.String("string"),
Cn: pulumi.String("string"),
Filter: pulumi.String("string"),
Force: pulumi.Bool(false),
GroupAccess: pulumi.String("string"),
})
var groupLdapLinkResource = new GroupLdapLink("groupLdapLinkResource", GroupLdapLinkArgs.builder()
.group("string")
.ldapProvider("string")
.cn("string")
.filter("string")
.force(false)
.groupAccess("string")
.build());
group_ldap_link_resource = gitlab.GroupLdapLink("groupLdapLinkResource",
group="string",
ldap_provider="string",
cn="string",
filter="string",
force=False,
group_access="string")
const groupLdapLinkResource = new gitlab.GroupLdapLink("groupLdapLinkResource", {
group: "string",
ldapProvider: "string",
cn: "string",
filter: "string",
force: false,
groupAccess: "string",
});
type: gitlab:GroupLdapLink
properties:
cn: string
filter: string
force: false
group: string
groupAccess: string
ldapProvider: string
GroupLdapLink Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The GroupLdapLink resource accepts the following input properties:
- Group string
- The ID or URL-encoded path of the group
- Ldap
Provider string - The name of the LDAP provider as stored in the GitLab database. Note that this is NOT the value of the
label
attribute as shown in the web UI. In most cases this will beldapmain
but you may use the LDAP check rake task for receiving the LDAP server name:LDAP: ... Server: ldapmain
- Access
Level string - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- Cn string
- The CN of the LDAP group to link with. Required if
filter
is not provided. - Filter string
- The LDAP filter for the group. Required if
cn
is not provided. Requires GitLab Premium or above. - Force bool
- If true, then delete and replace an existing LDAP link if one exists. Will also remove an LDAP link if the parent group is not found.
- Group
Access string - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- Group string
- The ID or URL-encoded path of the group
- Ldap
Provider string - The name of the LDAP provider as stored in the GitLab database. Note that this is NOT the value of the
label
attribute as shown in the web UI. In most cases this will beldapmain
but you may use the LDAP check rake task for receiving the LDAP server name:LDAP: ... Server: ldapmain
- Access
Level string - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- Cn string
- The CN of the LDAP group to link with. Required if
filter
is not provided. - Filter string
- The LDAP filter for the group. Required if
cn
is not provided. Requires GitLab Premium or above. - Force bool
- If true, then delete and replace an existing LDAP link if one exists. Will also remove an LDAP link if the parent group is not found.
- Group
Access string - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- group String
- The ID or URL-encoded path of the group
- ldap
Provider String - The name of the LDAP provider as stored in the GitLab database. Note that this is NOT the value of the
label
attribute as shown in the web UI. In most cases this will beldapmain
but you may use the LDAP check rake task for receiving the LDAP server name:LDAP: ... Server: ldapmain
- access
Level String - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- cn String
- The CN of the LDAP group to link with. Required if
filter
is not provided. - filter String
- The LDAP filter for the group. Required if
cn
is not provided. Requires GitLab Premium or above. - force Boolean
- If true, then delete and replace an existing LDAP link if one exists. Will also remove an LDAP link if the parent group is not found.
- group
Access String - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- group string
- The ID or URL-encoded path of the group
- ldap
Provider string - The name of the LDAP provider as stored in the GitLab database. Note that this is NOT the value of the
label
attribute as shown in the web UI. In most cases this will beldapmain
but you may use the LDAP check rake task for receiving the LDAP server name:LDAP: ... Server: ldapmain
- access
Level string - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- cn string
- The CN of the LDAP group to link with. Required if
filter
is not provided. - filter string
- The LDAP filter for the group. Required if
cn
is not provided. Requires GitLab Premium or above. - force boolean
- If true, then delete and replace an existing LDAP link if one exists. Will also remove an LDAP link if the parent group is not found.
- group
Access string - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- group str
- The ID or URL-encoded path of the group
- ldap_
provider str - The name of the LDAP provider as stored in the GitLab database. Note that this is NOT the value of the
label
attribute as shown in the web UI. In most cases this will beldapmain
but you may use the LDAP check rake task for receiving the LDAP server name:LDAP: ... Server: ldapmain
- access_
level str - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- cn str
- The CN of the LDAP group to link with. Required if
filter
is not provided. - filter str
- The LDAP filter for the group. Required if
cn
is not provided. Requires GitLab Premium or above. - force bool
- If true, then delete and replace an existing LDAP link if one exists. Will also remove an LDAP link if the parent group is not found.
- group_
access str - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- group String
- The ID or URL-encoded path of the group
- ldap
Provider String - The name of the LDAP provider as stored in the GitLab database. Note that this is NOT the value of the
label
attribute as shown in the web UI. In most cases this will beldapmain
but you may use the LDAP check rake task for receiving the LDAP server name:LDAP: ... Server: ldapmain
- access
Level String - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- cn String
- The CN of the LDAP group to link with. Required if
filter
is not provided. - filter String
- The LDAP filter for the group. Required if
cn
is not provided. Requires GitLab Premium or above. - force Boolean
- If true, then delete and replace an existing LDAP link if one exists. Will also remove an LDAP link if the parent group is not found.
- group
Access String - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
Outputs
All input properties are implicitly available as output properties. Additionally, the GroupLdapLink resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing GroupLdapLink Resource
Get an existing GroupLdapLink 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?: GroupLdapLinkState, opts?: CustomResourceOptions): GroupLdapLink
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_level: Optional[str] = None,
cn: Optional[str] = None,
filter: Optional[str] = None,
force: Optional[bool] = None,
group: Optional[str] = None,
group_access: Optional[str] = None,
ldap_provider: Optional[str] = None) -> GroupLdapLink
func GetGroupLdapLink(ctx *Context, name string, id IDInput, state *GroupLdapLinkState, opts ...ResourceOption) (*GroupLdapLink, error)
public static GroupLdapLink Get(string name, Input<string> id, GroupLdapLinkState? state, CustomResourceOptions? opts = null)
public static GroupLdapLink get(String name, Output<String> id, GroupLdapLinkState 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.
- Access
Level string - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- Cn string
- The CN of the LDAP group to link with. Required if
filter
is not provided. - Filter string
- The LDAP filter for the group. Required if
cn
is not provided. Requires GitLab Premium or above. - Force bool
- If true, then delete and replace an existing LDAP link if one exists. Will also remove an LDAP link if the parent group is not found.
- Group string
- The ID or URL-encoded path of the group
- Group
Access string - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- Ldap
Provider string - The name of the LDAP provider as stored in the GitLab database. Note that this is NOT the value of the
label
attribute as shown in the web UI. In most cases this will beldapmain
but you may use the LDAP check rake task for receiving the LDAP server name:LDAP: ... Server: ldapmain
- Access
Level string - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- Cn string
- The CN of the LDAP group to link with. Required if
filter
is not provided. - Filter string
- The LDAP filter for the group. Required if
cn
is not provided. Requires GitLab Premium or above. - Force bool
- If true, then delete and replace an existing LDAP link if one exists. Will also remove an LDAP link if the parent group is not found.
- Group string
- The ID or URL-encoded path of the group
- Group
Access string - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- Ldap
Provider string - The name of the LDAP provider as stored in the GitLab database. Note that this is NOT the value of the
label
attribute as shown in the web UI. In most cases this will beldapmain
but you may use the LDAP check rake task for receiving the LDAP server name:LDAP: ... Server: ldapmain
- access
Level String - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- cn String
- The CN of the LDAP group to link with. Required if
filter
is not provided. - filter String
- The LDAP filter for the group. Required if
cn
is not provided. Requires GitLab Premium or above. - force Boolean
- If true, then delete and replace an existing LDAP link if one exists. Will also remove an LDAP link if the parent group is not found.
- group String
- The ID or URL-encoded path of the group
- group
Access String - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- ldap
Provider String - The name of the LDAP provider as stored in the GitLab database. Note that this is NOT the value of the
label
attribute as shown in the web UI. In most cases this will beldapmain
but you may use the LDAP check rake task for receiving the LDAP server name:LDAP: ... Server: ldapmain
- access
Level string - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- cn string
- The CN of the LDAP group to link with. Required if
filter
is not provided. - filter string
- The LDAP filter for the group. Required if
cn
is not provided. Requires GitLab Premium or above. - force boolean
- If true, then delete and replace an existing LDAP link if one exists. Will also remove an LDAP link if the parent group is not found.
- group string
- The ID or URL-encoded path of the group
- group
Access string - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- ldap
Provider string - The name of the LDAP provider as stored in the GitLab database. Note that this is NOT the value of the
label
attribute as shown in the web UI. In most cases this will beldapmain
but you may use the LDAP check rake task for receiving the LDAP server name:LDAP: ... Server: ldapmain
- access_
level str - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- cn str
- The CN of the LDAP group to link with. Required if
filter
is not provided. - filter str
- The LDAP filter for the group. Required if
cn
is not provided. Requires GitLab Premium or above. - force bool
- If true, then delete and replace an existing LDAP link if one exists. Will also remove an LDAP link if the parent group is not found.
- group str
- The ID or URL-encoded path of the group
- group_
access str - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- ldap_
provider str - The name of the LDAP provider as stored in the GitLab database. Note that this is NOT the value of the
label
attribute as shown in the web UI. In most cases this will beldapmain
but you may use the LDAP check rake task for receiving the LDAP server name:LDAP: ... Server: ldapmain
- access
Level String - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- cn String
- The CN of the LDAP group to link with. Required if
filter
is not provided. - filter String
- The LDAP filter for the group. Required if
cn
is not provided. Requires GitLab Premium or above. - force Boolean
- If true, then delete and replace an existing LDAP link if one exists. Will also remove an LDAP link if the parent group is not found.
- group String
- The ID or URL-encoded path of the group
- group
Access String - Minimum access level for members of the LDAP group. Valid values are:
no one
,minimal
,guest
,reporter
,developer
,maintainer
,owner
- ldap
Provider String - The name of the LDAP provider as stored in the GitLab database. Note that this is NOT the value of the
label
attribute as shown in the web UI. In most cases this will beldapmain
but you may use the LDAP check rake task for receiving the LDAP server name:LDAP: ... Server: ldapmain
Import
GitLab group ldap links can be imported using an id made up of group_id:ldap_provider:cn:filter
. CN and Filter are mutually exclusive, so one will be missing.
If using the CN for the group link, the ID will end with a blank filter (":"). e.g.,
$ pulumi import gitlab:index/groupLdapLink:GroupLdapLink test "12345:ldapmain:testcn:"
If using the Filter for the group link, the ID will have two “::” in the middle due to having a blank CN. e.g.,
$ pulumi import gitlab:index/groupLdapLink:GroupLdapLink test "12345:ldapmain::testfilter"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlab
Terraform Provider.