Group Saml Link
The gitlab.GroupSamlLink resource allows to manage the lifecycle of an SAML integration with a group. Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
// Basic example
const test = new gitlab.GroupSamlLink("test", {
group: "12345",
accessLevel: "developer",
samlGroupName: "samlgroupname1",
});
// Example using a Custom Role (Ultimate only)
// When using the custom role, the `access_level` must match the
// base role used to create the custom role.
const testCustomRole = new gitlab.GroupSamlLink("test_custom_role", {
group: "12345",
accessLevel: "developer",
samlGroupName: "samlgroupname1",
memberRoleId: 123,
});Content copied to clipboard
import pulumi
import pulumi_gitlab as gitlab
# Basic example
test = gitlab.GroupSamlLink("test",
group="12345",
access_level="developer",
saml_group_name="samlgroupname1")
# Example using a Custom Role (Ultimate only)
# When using the custom role, the `access_level` must match the
# base role used to create the custom role.
test_custom_role = gitlab.GroupSamlLink("test_custom_role",
group="12345",
access_level="developer",
saml_group_name="samlgroupname1",
member_role_id=123)Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
// Basic example
var test = new GitLab.GroupSamlLink("test", new()
{
Group = "12345",
AccessLevel = "developer",
SamlGroupName = "samlgroupname1",
});
// Example using a Custom Role (Ultimate only)
// When using the custom role, the `access_level` must match the
// base role used to create the custom role.
var testCustomRole = new GitLab.GroupSamlLink("test_custom_role", new()
{
Group = "12345",
AccessLevel = "developer",
SamlGroupName = "samlgroupname1",
MemberRoleId = 123,
});
});Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Basic example
_, err := gitlab.NewGroupSamlLink(ctx, "test", &gitlab.GroupSamlLinkArgs{
Group: pulumi.String("12345"),
AccessLevel: pulumi.String("developer"),
SamlGroupName: pulumi.String("samlgroupname1"),
})
if err != nil {
return err
}
// Example using a Custom Role (Ultimate only)
// When using the custom role, the `access_level` must match the
// base role used to create the custom role.
_, err = gitlab.NewGroupSamlLink(ctx, "test_custom_role", &gitlab.GroupSamlLinkArgs{
Group: pulumi.String("12345"),
AccessLevel: pulumi.String("developer"),
SamlGroupName: pulumi.String("samlgroupname1"),
MemberRoleId: pulumi.Int(123),
})
if err != nil {
return err
}
return nil
})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.GroupSamlLink;
import com.pulumi.gitlab.GroupSamlLinkArgs;
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) {
// Basic example
var test = new GroupSamlLink("test", GroupSamlLinkArgs.builder()
.group("12345")
.accessLevel("developer")
.samlGroupName("samlgroupname1")
.build());
// Example using a Custom Role (Ultimate only)
// When using the custom role, the `access_level` must match the
// base role used to create the custom role.
var testCustomRole = new GroupSamlLink("testCustomRole", GroupSamlLinkArgs.builder()
.group("12345")
.accessLevel("developer")
.samlGroupName("samlgroupname1")
.memberRoleId(123)
.build());
}
}Content copied to clipboard
resources:
# Basic example
test:
type: gitlab:GroupSamlLink
properties:
group: '12345'
accessLevel: developer
samlGroupName: samlgroupname1
# Example using a Custom Role (Ultimate only)
# When using the custom role, the `access_level` must match the
# base role used to create the custom role.
testCustomRole:
type: gitlab:GroupSamlLink
name: test_custom_role
properties:
group: '12345'
accessLevel: developer
samlGroupName: samlgroupname1
memberRoleId: 123Content copied to clipboard
Import
GitLab group saml links can be imported using an id made up of group_id:saml_group_name, e.g.
$ pulumi import gitlab:index/groupSamlLink:GroupSamlLink test "12345:samlgroupname1"Content copied to clipboard
Properties
Link copied to clipboard
Access level for members of the SAML group. Valid values are: guest, reporter, developer, maintainer, owner.
Link copied to clipboard
The ID of a custom member role. Only available for Ultimate instances. When using a custom role, the access_level must match the base role used to create the custom role.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The name of the SAML group.