GroupLdapLink

This resource allows you to add an LDAP link to an existing GitLab group.

Example Usage

using Pulumi;
using GitLab = Pulumi.GitLab;

class MyStack : Stack
{
    public MyStack()
    {
        var test = new GitLab.GroupLdapLink("test", new GitLab.GroupLdapLinkArgs
        {
            AccessLevel = "developer",
            Cn = "testuser",
            GroupId = "12345",
            LdapProvider = "ldapmain",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-gitlab/sdk/v4/go/gitlab"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gitlab.NewGroupLdapLink(ctx, "test", &gitlab.GroupLdapLinkArgs{
			AccessLevel:  pulumi.String("developer"),
			Cn:           pulumi.String("testuser"),
			GroupId:      pulumi.String("12345"),
			LdapProvider: pulumi.String("ldapmain"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_gitlab as gitlab

test = gitlab.GroupLdapLink("test",
    access_level="developer",
    cn="testuser",
    group_id="12345",
    ldap_provider="ldapmain")
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";

const test = new gitlab.GroupLdapLink("test", {
    accessLevel: "developer",
    cn: "testuser",
    groupId: "12345",
    ldapProvider: "ldapmain",
});

Create a 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,
                  force: Optional[bool] = None,
                  group_id: 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)
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.

GroupLdapLink Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The GroupLdapLink resource accepts the following input properties:

AccessLevel string
Acceptable values are: guest, reporter, developer, maintainer, owner.
Cn string
The CN of the LDAP group to link with.
GroupId string
The id of the GitLab group.
LdapProvider string
The name of the LDAP provider as stored in the GitLab database.
Force bool
AccessLevel string
Acceptable values are: guest, reporter, developer, maintainer, owner.
Cn string
The CN of the LDAP group to link with.
GroupId string
The id of the GitLab group.
LdapProvider string
The name of the LDAP provider as stored in the GitLab database.
Force bool
accessLevel string
Acceptable values are: guest, reporter, developer, maintainer, owner.
cn string
The CN of the LDAP group to link with.
groupId string
The id of the GitLab group.
ldapProvider string
The name of the LDAP provider as stored in the GitLab database.
force boolean
access_level str
Acceptable values are: guest, reporter, developer, maintainer, owner.
cn str
The CN of the LDAP group to link with.
group_id str
The id of the GitLab group.
ldap_provider str
The name of the LDAP provider as stored in the GitLab database.
force bool

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 str
The provider-assigned unique ID for this managed resource.

Look up an 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,
        force: Optional[bool] = None,
        group_id: 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)
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.

The following state arguments are supported:

AccessLevel string
Acceptable values are: guest, reporter, developer, maintainer, owner.
Cn string
The CN of the LDAP group to link with.
Force bool
GroupId string
The id of the GitLab group.
LdapProvider string
The name of the LDAP provider as stored in the GitLab database.
AccessLevel string
Acceptable values are: guest, reporter, developer, maintainer, owner.
Cn string
The CN of the LDAP group to link with.
Force bool
GroupId string
The id of the GitLab group.
LdapProvider string
The name of the LDAP provider as stored in the GitLab database.
accessLevel string
Acceptable values are: guest, reporter, developer, maintainer, owner.
cn string
The CN of the LDAP group to link with.
force boolean
groupId string
The id of the GitLab group.
ldapProvider string
The name of the LDAP provider as stored in the GitLab database.
access_level str
Acceptable values are: guest, reporter, developer, maintainer, owner.
cn str
The CN of the LDAP group to link with.
force bool
group_id str
The id of the GitLab group.
ldap_provider str
The name of the LDAP provider as stored in the GitLab database.

Import

GitLab group ldap links can be imported using an id made up of ldap_provider:cn, e.g.

 $ pulumi import gitlab:index/groupLdapLink:GroupLdapLink test "ldapmain:testuser"

Package Details

Repository
https://github.com/pulumi/pulumi-gitlab
License
Apache-2.0
Notes
This Pulumi package is based on the gitlab Terraform Provider.