zitadel.OrgIdpGitlabSelfHosted
Explore with Pulumi AI
Resource representing a GitLab Self Hosted IdP on the organization.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zitadel = Pulumiverse.Zitadel;
return await Deployment.RunAsync(() => 
{
    var @default = new Zitadel.OrgIdpGitlabSelfHosted("default", new()
    {
        OrgId = defaultZitadelOrg.Id,
        Name = "GitLab Self Hosted",
        ClientId = "15765e...",
        ClientSecret = "*****abcxyz",
        Scopes = new[]
        {
            "openid",
            "profile",
            "email",
        },
        Issuer = "https://my.issuer",
        IsLinkingAllowed = false,
        IsCreationAllowed = true,
        IsAutoCreation = false,
        IsAutoUpdate = true,
    });
});
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-zitadel/sdk/go/zitadel"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zitadel.NewOrgIdpGitlabSelfHosted(ctx, "default", &zitadel.OrgIdpGitlabSelfHostedArgs{
			OrgId:        pulumi.Any(defaultZitadelOrg.Id),
			Name:         pulumi.String("GitLab Self Hosted"),
			ClientId:     pulumi.String("15765e..."),
			ClientSecret: pulumi.String("*****abcxyz"),
			Scopes: pulumi.StringArray{
				pulumi.String("openid"),
				pulumi.String("profile"),
				pulumi.String("email"),
			},
			Issuer:            pulumi.String("https://my.issuer"),
			IsLinkingAllowed:  pulumi.Bool(false),
			IsCreationAllowed: pulumi.Bool(true),
			IsAutoCreation:    pulumi.Bool(false),
			IsAutoUpdate:      pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zitadel.OrgIdpGitlabSelfHosted;
import com.pulumi.zitadel.OrgIdpGitlabSelfHostedArgs;
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 default_ = new OrgIdpGitlabSelfHosted("default", OrgIdpGitlabSelfHostedArgs.builder()        
            .orgId(defaultZitadelOrg.id())
            .name("GitLab Self Hosted")
            .clientId("15765e...")
            .clientSecret("*****abcxyz")
            .scopes(            
                "openid",
                "profile",
                "email")
            .issuer("https://my.issuer")
            .isLinkingAllowed(false)
            .isCreationAllowed(true)
            .isAutoCreation(false)
            .isAutoUpdate(true)
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as zitadel from "@pulumiverse/zitadel";
const _default = new zitadel.OrgIdpGitlabSelfHosted("default", {
    orgId: defaultZitadelOrg.id,
    name: "GitLab Self Hosted",
    clientId: "15765e...",
    clientSecret: "*****abcxyz",
    scopes: [
        "openid",
        "profile",
        "email",
    ],
    issuer: "https://my.issuer",
    isLinkingAllowed: false,
    isCreationAllowed: true,
    isAutoCreation: false,
    isAutoUpdate: true,
});
import pulumi
import pulumiverse_zitadel as zitadel
default = zitadel.OrgIdpGitlabSelfHosted("default",
    org_id=default_zitadel_org["id"],
    name="GitLab Self Hosted",
    client_id="15765e...",
    client_secret="*****abcxyz",
    scopes=[
        "openid",
        "profile",
        "email",
    ],
    issuer="https://my.issuer",
    is_linking_allowed=False,
    is_creation_allowed=True,
    is_auto_creation=False,
    is_auto_update=True)
resources:
  default:
    type: zitadel:OrgIdpGitlabSelfHosted
    properties:
      orgId: ${defaultZitadelOrg.id}
      name: GitLab Self Hosted
      clientId: 15765e...
      clientSecret: '*****abcxyz'
      scopes:
        - openid
        - profile
        - email
      issuer: https://my.issuer
      isLinkingAllowed: false
      isCreationAllowed: true
      isAutoCreation: false
      isAutoUpdate: true
Create OrgIdpGitlabSelfHosted Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrgIdpGitlabSelfHosted(name: string, args: OrgIdpGitlabSelfHostedArgs, opts?: CustomResourceOptions);@overload
def OrgIdpGitlabSelfHosted(resource_name: str,
                           args: OrgIdpGitlabSelfHostedArgs,
                           opts: Optional[ResourceOptions] = None)
@overload
def OrgIdpGitlabSelfHosted(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           client_id: Optional[str] = None,
                           client_secret: Optional[str] = None,
                           is_auto_creation: Optional[bool] = None,
                           is_auto_update: Optional[bool] = None,
                           is_creation_allowed: Optional[bool] = None,
                           is_linking_allowed: Optional[bool] = None,
                           issuer: Optional[str] = None,
                           name: Optional[str] = None,
                           org_id: Optional[str] = None,
                           scopes: Optional[Sequence[str]] = None)func NewOrgIdpGitlabSelfHosted(ctx *Context, name string, args OrgIdpGitlabSelfHostedArgs, opts ...ResourceOption) (*OrgIdpGitlabSelfHosted, error)public OrgIdpGitlabSelfHosted(string name, OrgIdpGitlabSelfHostedArgs args, CustomResourceOptions? opts = null)
public OrgIdpGitlabSelfHosted(String name, OrgIdpGitlabSelfHostedArgs args)
public OrgIdpGitlabSelfHosted(String name, OrgIdpGitlabSelfHostedArgs args, CustomResourceOptions options)
type: zitadel:OrgIdpGitlabSelfHosted
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 OrgIdpGitlabSelfHostedArgs
- 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 OrgIdpGitlabSelfHostedArgs
- 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 OrgIdpGitlabSelfHostedArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrgIdpGitlabSelfHostedArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrgIdpGitlabSelfHostedArgs
- 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 orgIdpGitlabSelfHostedResource = new Zitadel.OrgIdpGitlabSelfHosted("orgIdpGitlabSelfHostedResource", new()
{
    ClientId = "string",
    ClientSecret = "string",
    IsAutoCreation = false,
    IsAutoUpdate = false,
    IsCreationAllowed = false,
    IsLinkingAllowed = false,
    Issuer = "string",
    Name = "string",
    OrgId = "string",
    Scopes = new[]
    {
        "string",
    },
});
example, err := zitadel.NewOrgIdpGitlabSelfHosted(ctx, "orgIdpGitlabSelfHostedResource", &zitadel.OrgIdpGitlabSelfHostedArgs{
	ClientId:          pulumi.String("string"),
	ClientSecret:      pulumi.String("string"),
	IsAutoCreation:    pulumi.Bool(false),
	IsAutoUpdate:      pulumi.Bool(false),
	IsCreationAllowed: pulumi.Bool(false),
	IsLinkingAllowed:  pulumi.Bool(false),
	Issuer:            pulumi.String("string"),
	Name:              pulumi.String("string"),
	OrgId:             pulumi.String("string"),
	Scopes: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var orgIdpGitlabSelfHostedResource = new OrgIdpGitlabSelfHosted("orgIdpGitlabSelfHostedResource", OrgIdpGitlabSelfHostedArgs.builder()
    .clientId("string")
    .clientSecret("string")
    .isAutoCreation(false)
    .isAutoUpdate(false)
    .isCreationAllowed(false)
    .isLinkingAllowed(false)
    .issuer("string")
    .name("string")
    .orgId("string")
    .scopes("string")
    .build());
org_idp_gitlab_self_hosted_resource = zitadel.OrgIdpGitlabSelfHosted("orgIdpGitlabSelfHostedResource",
    client_id="string",
    client_secret="string",
    is_auto_creation=False,
    is_auto_update=False,
    is_creation_allowed=False,
    is_linking_allowed=False,
    issuer="string",
    name="string",
    org_id="string",
    scopes=["string"])
const orgIdpGitlabSelfHostedResource = new zitadel.OrgIdpGitlabSelfHosted("orgIdpGitlabSelfHostedResource", {
    clientId: "string",
    clientSecret: "string",
    isAutoCreation: false,
    isAutoUpdate: false,
    isCreationAllowed: false,
    isLinkingAllowed: false,
    issuer: "string",
    name: "string",
    orgId: "string",
    scopes: ["string"],
});
type: zitadel:OrgIdpGitlabSelfHosted
properties:
    clientId: string
    clientSecret: string
    isAutoCreation: false
    isAutoUpdate: false
    isCreationAllowed: false
    isLinkingAllowed: false
    issuer: string
    name: string
    orgId: string
    scopes:
        - string
OrgIdpGitlabSelfHosted 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 OrgIdpGitlabSelfHosted resource accepts the following input properties:
- ClientId string
- client id generated by the identity provider
- ClientSecret string
- client secret generated by the identity provider
- IsAuto boolCreation 
- enable if a new account in ZITADEL should be created automatically on login with an external account
- IsAuto boolUpdate 
- enable if a the ZITADEL account fields should be updated automatically on each login
- IsCreation boolAllowed 
- enable if users should be able to create a new account in ZITADEL when using an external account
- IsLinking boolAllowed 
- enable if users should be able to link an existing ZITADEL user with an external account
- Issuer string
- the providers issuer
- Name string
- Name of the IDP
- OrgId string
- ID of the organization
- Scopes List<string>
- the scopes requested by ZITADEL during the request on the identity provider
- ClientId string
- client id generated by the identity provider
- ClientSecret string
- client secret generated by the identity provider
- IsAuto boolCreation 
- enable if a new account in ZITADEL should be created automatically on login with an external account
- IsAuto boolUpdate 
- enable if a the ZITADEL account fields should be updated automatically on each login
- IsCreation boolAllowed 
- enable if users should be able to create a new account in ZITADEL when using an external account
- IsLinking boolAllowed 
- enable if users should be able to link an existing ZITADEL user with an external account
- Issuer string
- the providers issuer
- Name string
- Name of the IDP
- OrgId string
- ID of the organization
- Scopes []string
- the scopes requested by ZITADEL during the request on the identity provider
- clientId String
- client id generated by the identity provider
- clientSecret String
- client secret generated by the identity provider
- isAuto BooleanCreation 
- enable if a new account in ZITADEL should be created automatically on login with an external account
- isAuto BooleanUpdate 
- enable if a the ZITADEL account fields should be updated automatically on each login
- isCreation BooleanAllowed 
- enable if users should be able to create a new account in ZITADEL when using an external account
- isLinking BooleanAllowed 
- enable if users should be able to link an existing ZITADEL user with an external account
- issuer String
- the providers issuer
- name String
- Name of the IDP
- orgId String
- ID of the organization
- scopes List<String>
- the scopes requested by ZITADEL during the request on the identity provider
- clientId string
- client id generated by the identity provider
- clientSecret string
- client secret generated by the identity provider
- isAuto booleanCreation 
- enable if a new account in ZITADEL should be created automatically on login with an external account
- isAuto booleanUpdate 
- enable if a the ZITADEL account fields should be updated automatically on each login
- isCreation booleanAllowed 
- enable if users should be able to create a new account in ZITADEL when using an external account
- isLinking booleanAllowed 
- enable if users should be able to link an existing ZITADEL user with an external account
- issuer string
- the providers issuer
- name string
- Name of the IDP
- orgId string
- ID of the organization
- scopes string[]
- the scopes requested by ZITADEL during the request on the identity provider
- client_id str
- client id generated by the identity provider
- client_secret str
- client secret generated by the identity provider
- is_auto_ boolcreation 
- enable if a new account in ZITADEL should be created automatically on login with an external account
- is_auto_ boolupdate 
- enable if a the ZITADEL account fields should be updated automatically on each login
- is_creation_ boolallowed 
- enable if users should be able to create a new account in ZITADEL when using an external account
- is_linking_ boolallowed 
- enable if users should be able to link an existing ZITADEL user with an external account
- issuer str
- the providers issuer
- name str
- Name of the IDP
- org_id str
- ID of the organization
- scopes Sequence[str]
- the scopes requested by ZITADEL during the request on the identity provider
- clientId String
- client id generated by the identity provider
- clientSecret String
- client secret generated by the identity provider
- isAuto BooleanCreation 
- enable if a new account in ZITADEL should be created automatically on login with an external account
- isAuto BooleanUpdate 
- enable if a the ZITADEL account fields should be updated automatically on each login
- isCreation BooleanAllowed 
- enable if users should be able to create a new account in ZITADEL when using an external account
- isLinking BooleanAllowed 
- enable if users should be able to link an existing ZITADEL user with an external account
- issuer String
- the providers issuer
- name String
- Name of the IDP
- orgId String
- ID of the organization
- scopes List<String>
- the scopes requested by ZITADEL during the request on the identity provider
Outputs
All input properties are implicitly available as output properties. Additionally, the OrgIdpGitlabSelfHosted 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 OrgIdpGitlabSelfHosted Resource
Get an existing OrgIdpGitlabSelfHosted 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?: OrgIdpGitlabSelfHostedState, opts?: CustomResourceOptions): OrgIdpGitlabSelfHosted@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        client_id: Optional[str] = None,
        client_secret: Optional[str] = None,
        is_auto_creation: Optional[bool] = None,
        is_auto_update: Optional[bool] = None,
        is_creation_allowed: Optional[bool] = None,
        is_linking_allowed: Optional[bool] = None,
        issuer: Optional[str] = None,
        name: Optional[str] = None,
        org_id: Optional[str] = None,
        scopes: Optional[Sequence[str]] = None) -> OrgIdpGitlabSelfHostedfunc GetOrgIdpGitlabSelfHosted(ctx *Context, name string, id IDInput, state *OrgIdpGitlabSelfHostedState, opts ...ResourceOption) (*OrgIdpGitlabSelfHosted, error)public static OrgIdpGitlabSelfHosted Get(string name, Input<string> id, OrgIdpGitlabSelfHostedState? state, CustomResourceOptions? opts = null)public static OrgIdpGitlabSelfHosted get(String name, Output<String> id, OrgIdpGitlabSelfHostedState state, CustomResourceOptions options)resources:  _:    type: zitadel:OrgIdpGitlabSelfHosted    get:      id: ${id}- 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.
- ClientId string
- client id generated by the identity provider
- ClientSecret string
- client secret generated by the identity provider
- IsAuto boolCreation 
- enable if a new account in ZITADEL should be created automatically on login with an external account
- IsAuto boolUpdate 
- enable if a the ZITADEL account fields should be updated automatically on each login
- IsCreation boolAllowed 
- enable if users should be able to create a new account in ZITADEL when using an external account
- IsLinking boolAllowed 
- enable if users should be able to link an existing ZITADEL user with an external account
- Issuer string
- the providers issuer
- Name string
- Name of the IDP
- OrgId string
- ID of the organization
- Scopes List<string>
- the scopes requested by ZITADEL during the request on the identity provider
- ClientId string
- client id generated by the identity provider
- ClientSecret string
- client secret generated by the identity provider
- IsAuto boolCreation 
- enable if a new account in ZITADEL should be created automatically on login with an external account
- IsAuto boolUpdate 
- enable if a the ZITADEL account fields should be updated automatically on each login
- IsCreation boolAllowed 
- enable if users should be able to create a new account in ZITADEL when using an external account
- IsLinking boolAllowed 
- enable if users should be able to link an existing ZITADEL user with an external account
- Issuer string
- the providers issuer
- Name string
- Name of the IDP
- OrgId string
- ID of the organization
- Scopes []string
- the scopes requested by ZITADEL during the request on the identity provider
- clientId String
- client id generated by the identity provider
- clientSecret String
- client secret generated by the identity provider
- isAuto BooleanCreation 
- enable if a new account in ZITADEL should be created automatically on login with an external account
- isAuto BooleanUpdate 
- enable if a the ZITADEL account fields should be updated automatically on each login
- isCreation BooleanAllowed 
- enable if users should be able to create a new account in ZITADEL when using an external account
- isLinking BooleanAllowed 
- enable if users should be able to link an existing ZITADEL user with an external account
- issuer String
- the providers issuer
- name String
- Name of the IDP
- orgId String
- ID of the organization
- scopes List<String>
- the scopes requested by ZITADEL during the request on the identity provider
- clientId string
- client id generated by the identity provider
- clientSecret string
- client secret generated by the identity provider
- isAuto booleanCreation 
- enable if a new account in ZITADEL should be created automatically on login with an external account
- isAuto booleanUpdate 
- enable if a the ZITADEL account fields should be updated automatically on each login
- isCreation booleanAllowed 
- enable if users should be able to create a new account in ZITADEL when using an external account
- isLinking booleanAllowed 
- enable if users should be able to link an existing ZITADEL user with an external account
- issuer string
- the providers issuer
- name string
- Name of the IDP
- orgId string
- ID of the organization
- scopes string[]
- the scopes requested by ZITADEL during the request on the identity provider
- client_id str
- client id generated by the identity provider
- client_secret str
- client secret generated by the identity provider
- is_auto_ boolcreation 
- enable if a new account in ZITADEL should be created automatically on login with an external account
- is_auto_ boolupdate 
- enable if a the ZITADEL account fields should be updated automatically on each login
- is_creation_ boolallowed 
- enable if users should be able to create a new account in ZITADEL when using an external account
- is_linking_ boolallowed 
- enable if users should be able to link an existing ZITADEL user with an external account
- issuer str
- the providers issuer
- name str
- Name of the IDP
- org_id str
- ID of the organization
- scopes Sequence[str]
- the scopes requested by ZITADEL during the request on the identity provider
- clientId String
- client id generated by the identity provider
- clientSecret String
- client secret generated by the identity provider
- isAuto BooleanCreation 
- enable if a new account in ZITADEL should be created automatically on login with an external account
- isAuto BooleanUpdate 
- enable if a the ZITADEL account fields should be updated automatically on each login
- isCreation BooleanAllowed 
- enable if users should be able to create a new account in ZITADEL when using an external account
- isLinking BooleanAllowed 
- enable if users should be able to link an existing ZITADEL user with an external account
- issuer String
- the providers issuer
- name String
- Name of the IDP
- orgId String
- ID of the organization
- scopes List<String>
- the scopes requested by ZITADEL during the request on the identity provider
Import
bash The resource can be imported using the ID format <id[:org_id][:client_secret]>, e.g.
 $ pulumi import zitadel:index/orgIdpGitlabSelfHosted:OrgIdpGitlabSelfHosted imported '123456789012345678:123456789012345678:1234567890abcdef'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- zitadel pulumiverse/pulumi-zitadel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the zitadelTerraform Provider.