1. Packages
  2. GitLab
  3. API Docs
  4. GroupLdapLink
GitLab v6.10.0 published on Monday, Mar 25, 2024 by Pulumi

gitlab.GroupLdapLink

Explore with Pulumi AI

gitlab logo
GitLab v6.10.0 published on Monday, Mar 25, 2024 by Pulumi

    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!```
    </pulumi-choosable>
    </div>
    <div>
    <pulumi-choosable type="language" values="python">
    

    Coming soon!```

    Coming soon!```
    </pulumi-choosable>
    </div>
    <div>
    <pulumi-choosable type="language" values="csharp">
    

    Coming soon!```

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gitlab.GroupLdapLink;
    import com.pulumi.gitlab.GroupLdapLinkArgs;
    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 test = new GroupLdapLink("test", GroupLdapLinkArgs.builder()        
                .cn("testuser")
                .groupAccess("developer")
                .groupId("12345")
                .ldapProvider("ldapmain")
                .build());
    
        }
    }
    
    resources:
      test:
        type: gitlab:GroupLdapLink
        properties:
          cn: testuser
          groupAccess: developer
          groupId: '12345'
          ldapProvider: ldapmain
    

    Create GroupLdapLink Resource

    new GroupLdapLink(name: string, args: GroupLdapLinkArgs, opts?: CustomResourceOptions);
    @overload
    def GroupLdapLink(resource_name: 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)
    @overload
    def GroupLdapLink(resource_name: str,
                      args: GroupLdapLinkArgs,
                      opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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
    LdapProvider 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 be ldapmain but you may use the LDAP check rake task for receiving the LDAP server name: LDAP: ... Server: ldapmain
    AccessLevel string
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master

    Deprecated:Use group_access instead of the access_level attribute.

    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.
    GroupAccess string
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master
    Group string
    The ID or URL-encoded path of the group
    LdapProvider 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 be ldapmain but you may use the LDAP check rake task for receiving the LDAP server name: LDAP: ... Server: ldapmain
    AccessLevel string
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master

    Deprecated:Use group_access instead of the access_level attribute.

    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.
    GroupAccess string
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master
    group String
    The ID or URL-encoded path of the group
    ldapProvider 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 be ldapmain but you may use the LDAP check rake task for receiving the LDAP server name: LDAP: ... Server: ldapmain
    accessLevel String
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master

    Deprecated:Use group_access instead of the access_level attribute.

    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.
    groupAccess String
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master
    group string
    The ID or URL-encoded path of the group
    ldapProvider 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 be ldapmain but you may use the LDAP check rake task for receiving the LDAP server name: LDAP: ... Server: ldapmain
    accessLevel string
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master

    Deprecated:Use group_access instead of the access_level attribute.

    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.
    groupAccess string
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master
    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 be ldapmain 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, master

    Deprecated:Use group_access instead of the access_level attribute.

    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, master
    group String
    The ID or URL-encoded path of the group
    ldapProvider 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 be ldapmain but you may use the LDAP check rake task for receiving the LDAP server name: LDAP: ... Server: ldapmain
    accessLevel String
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master

    Deprecated:Use group_access instead of the access_level attribute.

    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.
    groupAccess String
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master

    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.
    The following state arguments are supported:
    AccessLevel string
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master

    Deprecated:Use group_access instead of the access_level attribute.

    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
    GroupAccess string
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master
    LdapProvider 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 be ldapmain but you may use the LDAP check rake task for receiving the LDAP server name: LDAP: ... Server: ldapmain
    AccessLevel string
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master

    Deprecated:Use group_access instead of the access_level attribute.

    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
    GroupAccess string
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master
    LdapProvider 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 be ldapmain but you may use the LDAP check rake task for receiving the LDAP server name: LDAP: ... Server: ldapmain
    accessLevel String
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master

    Deprecated:Use group_access instead of the access_level attribute.

    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
    groupAccess String
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master
    ldapProvider 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 be ldapmain but you may use the LDAP check rake task for receiving the LDAP server name: LDAP: ... Server: ldapmain
    accessLevel string
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master

    Deprecated:Use group_access instead of the access_level attribute.

    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
    groupAccess string
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master
    ldapProvider 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 be ldapmain 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, master

    Deprecated:Use group_access instead of the access_level attribute.

    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, master
    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 be ldapmain but you may use the LDAP check rake task for receiving the LDAP server name: LDAP: ... Server: ldapmain
    accessLevel String
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master

    Deprecated:Use group_access instead of the access_level attribute.

    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
    groupAccess String
    Minimum access level for members of the LDAP group. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner, master
    ldapProvider 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 be ldapmain 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"
    

    Package Details

    Repository
    GitLab pulumi/pulumi-gitlab
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the gitlab Terraform Provider.
    gitlab logo
    GitLab v6.10.0 published on Monday, Mar 25, 2024 by Pulumi