1. Packages
  2. Gitlab Provider
  3. API Docs
  4. GroupHook
GitLab v8.5.0 published on Friday, Oct 18, 2024 by Pulumi

gitlab.GroupHook

Explore with Pulumi AI

gitlab logo
GitLab v8.5.0 published on Friday, Oct 18, 2024 by Pulumi

    The gitlab.GroupHook resource allows to manage the lifecycle of a group hook.

    Upstream API: GitLab REST API docs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gitlab from "@pulumi/gitlab";
    
    const example = new gitlab.GroupHook("example", {
        group: "example/hooked",
        url: "https://example.com/hook/example",
        mergeRequestsEvents: true,
    });
    // Setting all attributes
    const allAttributes = new gitlab.GroupHook("all_attributes", {
        group: "1",
        url: "http://example.com",
        token: "supersecret",
        enableSslVerification: false,
        pushEvents: true,
        pushEventsBranchFilter: "devel",
        issuesEvents: false,
        confidentialIssuesEvents: false,
        mergeRequestsEvents: true,
        tagPushEvents: true,
        noteEvents: true,
        confidentialNoteEvents: true,
        jobEvents: true,
        pipelineEvents: true,
        wikiPageEvents: true,
        deploymentEvents: true,
        releasesEvents: true,
        subgroupEvents: true,
    });
    
    import pulumi
    import pulumi_gitlab as gitlab
    
    example = gitlab.GroupHook("example",
        group="example/hooked",
        url="https://example.com/hook/example",
        merge_requests_events=True)
    # Setting all attributes
    all_attributes = gitlab.GroupHook("all_attributes",
        group="1",
        url="http://example.com",
        token="supersecret",
        enable_ssl_verification=False,
        push_events=True,
        push_events_branch_filter="devel",
        issues_events=False,
        confidential_issues_events=False,
        merge_requests_events=True,
        tag_push_events=True,
        note_events=True,
        confidential_note_events=True,
        job_events=True,
        pipeline_events=True,
        wiki_page_events=True,
        deployment_events=True,
        releases_events=True,
        subgroup_events=True)
    
    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 {
    		_, err := gitlab.NewGroupHook(ctx, "example", &gitlab.GroupHookArgs{
    			Group:               pulumi.String("example/hooked"),
    			Url:                 pulumi.String("https://example.com/hook/example"),
    			MergeRequestsEvents: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		// Setting all attributes
    		_, err = gitlab.NewGroupHook(ctx, "all_attributes", &gitlab.GroupHookArgs{
    			Group:                    pulumi.String("1"),
    			Url:                      pulumi.String("http://example.com"),
    			Token:                    pulumi.String("supersecret"),
    			EnableSslVerification:    pulumi.Bool(false),
    			PushEvents:               pulumi.Bool(true),
    			PushEventsBranchFilter:   pulumi.String("devel"),
    			IssuesEvents:             pulumi.Bool(false),
    			ConfidentialIssuesEvents: pulumi.Bool(false),
    			MergeRequestsEvents:      pulumi.Bool(true),
    			TagPushEvents:            pulumi.Bool(true),
    			NoteEvents:               pulumi.Bool(true),
    			ConfidentialNoteEvents:   pulumi.Bool(true),
    			JobEvents:                pulumi.Bool(true),
    			PipelineEvents:           pulumi.Bool(true),
    			WikiPageEvents:           pulumi.Bool(true),
    			DeploymentEvents:         pulumi.Bool(true),
    			ReleasesEvents:           pulumi.Bool(true),
    			SubgroupEvents:           pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using GitLab = Pulumi.GitLab;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new GitLab.GroupHook("example", new()
        {
            Group = "example/hooked",
            Url = "https://example.com/hook/example",
            MergeRequestsEvents = true,
        });
    
        // Setting all attributes
        var allAttributes = new GitLab.GroupHook("all_attributes", new()
        {
            Group = "1",
            Url = "http://example.com",
            Token = "supersecret",
            EnableSslVerification = false,
            PushEvents = true,
            PushEventsBranchFilter = "devel",
            IssuesEvents = false,
            ConfidentialIssuesEvents = false,
            MergeRequestsEvents = true,
            TagPushEvents = true,
            NoteEvents = true,
            ConfidentialNoteEvents = true,
            JobEvents = true,
            PipelineEvents = true,
            WikiPageEvents = true,
            DeploymentEvents = true,
            ReleasesEvents = true,
            SubgroupEvents = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gitlab.GroupHook;
    import com.pulumi.gitlab.GroupHookArgs;
    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 example = new GroupHook("example", GroupHookArgs.builder()
                .group("example/hooked")
                .url("https://example.com/hook/example")
                .mergeRequestsEvents(true)
                .build());
    
            // Setting all attributes
            var allAttributes = new GroupHook("allAttributes", GroupHookArgs.builder()
                .group(1)
                .url("http://example.com")
                .token("supersecret")
                .enableSslVerification(false)
                .pushEvents(true)
                .pushEventsBranchFilter("devel")
                .issuesEvents(false)
                .confidentialIssuesEvents(false)
                .mergeRequestsEvents(true)
                .tagPushEvents(true)
                .noteEvents(true)
                .confidentialNoteEvents(true)
                .jobEvents(true)
                .pipelineEvents(true)
                .wikiPageEvents(true)
                .deploymentEvents(true)
                .releasesEvents(true)
                .subgroupEvents(true)
                .build());
    
        }
    }
    
    resources:
      example:
        type: gitlab:GroupHook
        properties:
          group: example/hooked
          url: https://example.com/hook/example
          mergeRequestsEvents: true
      # Setting all attributes
      allAttributes:
        type: gitlab:GroupHook
        name: all_attributes
        properties:
          group: 1
          url: http://example.com
          token: supersecret
          enableSslVerification: false
          pushEvents: true
          pushEventsBranchFilter: devel
          issuesEvents: false
          confidentialIssuesEvents: false
          mergeRequestsEvents: true
          tagPushEvents: true
          noteEvents: true
          confidentialNoteEvents: true
          jobEvents: true
          pipelineEvents: true
          wikiPageEvents: true
          deploymentEvents: true
          releasesEvents: true
          subgroupEvents: true
    

    Create GroupHook Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GroupHook(name: string, args: GroupHookArgs, opts?: CustomResourceOptions);
    @overload
    def GroupHook(resource_name: str,
                  args: GroupHookArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def GroupHook(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  group: Optional[str] = None,
                  url: Optional[str] = None,
                  merge_requests_events: Optional[bool] = None,
                  push_events: Optional[bool] = None,
                  enable_ssl_verification: Optional[bool] = None,
                  custom_webhook_template: Optional[str] = None,
                  issues_events: Optional[bool] = None,
                  job_events: Optional[bool] = None,
                  confidential_issues_events: Optional[bool] = None,
                  note_events: Optional[bool] = None,
                  pipeline_events: Optional[bool] = None,
                  deployment_events: Optional[bool] = None,
                  push_events_branch_filter: Optional[str] = None,
                  releases_events: Optional[bool] = None,
                  subgroup_events: Optional[bool] = None,
                  tag_push_events: Optional[bool] = None,
                  token: Optional[str] = None,
                  confidential_note_events: Optional[bool] = None,
                  wiki_page_events: Optional[bool] = None)
    func NewGroupHook(ctx *Context, name string, args GroupHookArgs, opts ...ResourceOption) (*GroupHook, error)
    public GroupHook(string name, GroupHookArgs args, CustomResourceOptions? opts = null)
    public GroupHook(String name, GroupHookArgs args)
    public GroupHook(String name, GroupHookArgs args, CustomResourceOptions options)
    
    type: gitlab:GroupHook
    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 GroupHookArgs
    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 GroupHookArgs
    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 GroupHookArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GroupHookArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GroupHookArgs
    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 groupHookResource = new GitLab.GroupHook("groupHookResource", new()
    {
        Group = "string",
        Url = "string",
        MergeRequestsEvents = false,
        PushEvents = false,
        EnableSslVerification = false,
        CustomWebhookTemplate = "string",
        IssuesEvents = false,
        JobEvents = false,
        ConfidentialIssuesEvents = false,
        NoteEvents = false,
        PipelineEvents = false,
        DeploymentEvents = false,
        PushEventsBranchFilter = "string",
        ReleasesEvents = false,
        SubgroupEvents = false,
        TagPushEvents = false,
        Token = "string",
        ConfidentialNoteEvents = false,
        WikiPageEvents = false,
    });
    
    example, err := gitlab.NewGroupHook(ctx, "groupHookResource", &gitlab.GroupHookArgs{
    	Group:                    pulumi.String("string"),
    	Url:                      pulumi.String("string"),
    	MergeRequestsEvents:      pulumi.Bool(false),
    	PushEvents:               pulumi.Bool(false),
    	EnableSslVerification:    pulumi.Bool(false),
    	CustomWebhookTemplate:    pulumi.String("string"),
    	IssuesEvents:             pulumi.Bool(false),
    	JobEvents:                pulumi.Bool(false),
    	ConfidentialIssuesEvents: pulumi.Bool(false),
    	NoteEvents:               pulumi.Bool(false),
    	PipelineEvents:           pulumi.Bool(false),
    	DeploymentEvents:         pulumi.Bool(false),
    	PushEventsBranchFilter:   pulumi.String("string"),
    	ReleasesEvents:           pulumi.Bool(false),
    	SubgroupEvents:           pulumi.Bool(false),
    	TagPushEvents:            pulumi.Bool(false),
    	Token:                    pulumi.String("string"),
    	ConfidentialNoteEvents:   pulumi.Bool(false),
    	WikiPageEvents:           pulumi.Bool(false),
    })
    
    var groupHookResource = new GroupHook("groupHookResource", GroupHookArgs.builder()
        .group("string")
        .url("string")
        .mergeRequestsEvents(false)
        .pushEvents(false)
        .enableSslVerification(false)
        .customWebhookTemplate("string")
        .issuesEvents(false)
        .jobEvents(false)
        .confidentialIssuesEvents(false)
        .noteEvents(false)
        .pipelineEvents(false)
        .deploymentEvents(false)
        .pushEventsBranchFilter("string")
        .releasesEvents(false)
        .subgroupEvents(false)
        .tagPushEvents(false)
        .token("string")
        .confidentialNoteEvents(false)
        .wikiPageEvents(false)
        .build());
    
    group_hook_resource = gitlab.GroupHook("groupHookResource",
        group="string",
        url="string",
        merge_requests_events=False,
        push_events=False,
        enable_ssl_verification=False,
        custom_webhook_template="string",
        issues_events=False,
        job_events=False,
        confidential_issues_events=False,
        note_events=False,
        pipeline_events=False,
        deployment_events=False,
        push_events_branch_filter="string",
        releases_events=False,
        subgroup_events=False,
        tag_push_events=False,
        token="string",
        confidential_note_events=False,
        wiki_page_events=False)
    
    const groupHookResource = new gitlab.GroupHook("groupHookResource", {
        group: "string",
        url: "string",
        mergeRequestsEvents: false,
        pushEvents: false,
        enableSslVerification: false,
        customWebhookTemplate: "string",
        issuesEvents: false,
        jobEvents: false,
        confidentialIssuesEvents: false,
        noteEvents: false,
        pipelineEvents: false,
        deploymentEvents: false,
        pushEventsBranchFilter: "string",
        releasesEvents: false,
        subgroupEvents: false,
        tagPushEvents: false,
        token: "string",
        confidentialNoteEvents: false,
        wikiPageEvents: false,
    });
    
    type: gitlab:GroupHook
    properties:
        confidentialIssuesEvents: false
        confidentialNoteEvents: false
        customWebhookTemplate: string
        deploymentEvents: false
        enableSslVerification: false
        group: string
        issuesEvents: false
        jobEvents: false
        mergeRequestsEvents: false
        noteEvents: false
        pipelineEvents: false
        pushEvents: false
        pushEventsBranchFilter: string
        releasesEvents: false
        subgroupEvents: false
        tagPushEvents: false
        token: string
        url: string
        wikiPageEvents: false
    

    GroupHook 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 GroupHook resource accepts the following input properties:

    Group string
    The full path or id of the group to add the hook to.
    Url string
    The url of the hook to invoke. Forces re-creation to preserve token.
    ConfidentialIssuesEvents bool
    Invoke the hook for confidential issues events.
    ConfidentialNoteEvents bool
    Invoke the hook for confidential note events.
    CustomWebhookTemplate string
    Custom webhook template.
    DeploymentEvents bool
    Invoke the hook for deployment events.
    EnableSslVerification bool
    Enable SSL verification when invoking the hook.
    IssuesEvents bool
    Invoke the hook for issues events.
    JobEvents bool
    Invoke the hook for job events.
    MergeRequestsEvents bool
    Invoke the hook for merge requests events.
    NoteEvents bool
    Invoke the hook for note events.
    PipelineEvents bool
    Invoke the hook for pipeline events.
    PushEvents bool
    Invoke the hook for push events.
    PushEventsBranchFilter string
    Invoke the hook for push events on matching branches only.
    ReleasesEvents bool
    Invoke the hook for release events.
    SubgroupEvents bool
    Invoke the hook for subgroup events.
    TagPushEvents bool
    Invoke the hook for tag push events.
    Token string
    A token to present when invoking the hook. The token is not available for imported resources.
    WikiPageEvents bool
    Invoke the hook for wiki page events.
    Group string
    The full path or id of the group to add the hook to.
    Url string
    The url of the hook to invoke. Forces re-creation to preserve token.
    ConfidentialIssuesEvents bool
    Invoke the hook for confidential issues events.
    ConfidentialNoteEvents bool
    Invoke the hook for confidential note events.
    CustomWebhookTemplate string
    Custom webhook template.
    DeploymentEvents bool
    Invoke the hook for deployment events.
    EnableSslVerification bool
    Enable SSL verification when invoking the hook.
    IssuesEvents bool
    Invoke the hook for issues events.
    JobEvents bool
    Invoke the hook for job events.
    MergeRequestsEvents bool
    Invoke the hook for merge requests events.
    NoteEvents bool
    Invoke the hook for note events.
    PipelineEvents bool
    Invoke the hook for pipeline events.
    PushEvents bool
    Invoke the hook for push events.
    PushEventsBranchFilter string
    Invoke the hook for push events on matching branches only.
    ReleasesEvents bool
    Invoke the hook for release events.
    SubgroupEvents bool
    Invoke the hook for subgroup events.
    TagPushEvents bool
    Invoke the hook for tag push events.
    Token string
    A token to present when invoking the hook. The token is not available for imported resources.
    WikiPageEvents bool
    Invoke the hook for wiki page events.
    group String
    The full path or id of the group to add the hook to.
    url String
    The url of the hook to invoke. Forces re-creation to preserve token.
    confidentialIssuesEvents Boolean
    Invoke the hook for confidential issues events.
    confidentialNoteEvents Boolean
    Invoke the hook for confidential note events.
    customWebhookTemplate String
    Custom webhook template.
    deploymentEvents Boolean
    Invoke the hook for deployment events.
    enableSslVerification Boolean
    Enable SSL verification when invoking the hook.
    issuesEvents Boolean
    Invoke the hook for issues events.
    jobEvents Boolean
    Invoke the hook for job events.
    mergeRequestsEvents Boolean
    Invoke the hook for merge requests events.
    noteEvents Boolean
    Invoke the hook for note events.
    pipelineEvents Boolean
    Invoke the hook for pipeline events.
    pushEvents Boolean
    Invoke the hook for push events.
    pushEventsBranchFilter String
    Invoke the hook for push events on matching branches only.
    releasesEvents Boolean
    Invoke the hook for release events.
    subgroupEvents Boolean
    Invoke the hook for subgroup events.
    tagPushEvents Boolean
    Invoke the hook for tag push events.
    token String
    A token to present when invoking the hook. The token is not available for imported resources.
    wikiPageEvents Boolean
    Invoke the hook for wiki page events.
    group string
    The full path or id of the group to add the hook to.
    url string
    The url of the hook to invoke. Forces re-creation to preserve token.
    confidentialIssuesEvents boolean
    Invoke the hook for confidential issues events.
    confidentialNoteEvents boolean
    Invoke the hook for confidential note events.
    customWebhookTemplate string
    Custom webhook template.
    deploymentEvents boolean
    Invoke the hook for deployment events.
    enableSslVerification boolean
    Enable SSL verification when invoking the hook.
    issuesEvents boolean
    Invoke the hook for issues events.
    jobEvents boolean
    Invoke the hook for job events.
    mergeRequestsEvents boolean
    Invoke the hook for merge requests events.
    noteEvents boolean
    Invoke the hook for note events.
    pipelineEvents boolean
    Invoke the hook for pipeline events.
    pushEvents boolean
    Invoke the hook for push events.
    pushEventsBranchFilter string
    Invoke the hook for push events on matching branches only.
    releasesEvents boolean
    Invoke the hook for release events.
    subgroupEvents boolean
    Invoke the hook for subgroup events.
    tagPushEvents boolean
    Invoke the hook for tag push events.
    token string
    A token to present when invoking the hook. The token is not available for imported resources.
    wikiPageEvents boolean
    Invoke the hook for wiki page events.
    group str
    The full path or id of the group to add the hook to.
    url str
    The url of the hook to invoke. Forces re-creation to preserve token.
    confidential_issues_events bool
    Invoke the hook for confidential issues events.
    confidential_note_events bool
    Invoke the hook for confidential note events.
    custom_webhook_template str
    Custom webhook template.
    deployment_events bool
    Invoke the hook for deployment events.
    enable_ssl_verification bool
    Enable SSL verification when invoking the hook.
    issues_events bool
    Invoke the hook for issues events.
    job_events bool
    Invoke the hook for job events.
    merge_requests_events bool
    Invoke the hook for merge requests events.
    note_events bool
    Invoke the hook for note events.
    pipeline_events bool
    Invoke the hook for pipeline events.
    push_events bool
    Invoke the hook for push events.
    push_events_branch_filter str
    Invoke the hook for push events on matching branches only.
    releases_events bool
    Invoke the hook for release events.
    subgroup_events bool
    Invoke the hook for subgroup events.
    tag_push_events bool
    Invoke the hook for tag push events.
    token str
    A token to present when invoking the hook. The token is not available for imported resources.
    wiki_page_events bool
    Invoke the hook for wiki page events.
    group String
    The full path or id of the group to add the hook to.
    url String
    The url of the hook to invoke. Forces re-creation to preserve token.
    confidentialIssuesEvents Boolean
    Invoke the hook for confidential issues events.
    confidentialNoteEvents Boolean
    Invoke the hook for confidential note events.
    customWebhookTemplate String
    Custom webhook template.
    deploymentEvents Boolean
    Invoke the hook for deployment events.
    enableSslVerification Boolean
    Enable SSL verification when invoking the hook.
    issuesEvents Boolean
    Invoke the hook for issues events.
    jobEvents Boolean
    Invoke the hook for job events.
    mergeRequestsEvents Boolean
    Invoke the hook for merge requests events.
    noteEvents Boolean
    Invoke the hook for note events.
    pipelineEvents Boolean
    Invoke the hook for pipeline events.
    pushEvents Boolean
    Invoke the hook for push events.
    pushEventsBranchFilter String
    Invoke the hook for push events on matching branches only.
    releasesEvents Boolean
    Invoke the hook for release events.
    subgroupEvents Boolean
    Invoke the hook for subgroup events.
    tagPushEvents Boolean
    Invoke the hook for tag push events.
    token String
    A token to present when invoking the hook. The token is not available for imported resources.
    wikiPageEvents Boolean
    Invoke the hook for wiki page events.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GroupHook resource produces the following output properties:

    GroupId int
    The id of the group for the hook.
    HookId int
    The id of the group hook.
    Id string
    The provider-assigned unique ID for this managed resource.
    GroupId int
    The id of the group for the hook.
    HookId int
    The id of the group hook.
    Id string
    The provider-assigned unique ID for this managed resource.
    groupId Integer
    The id of the group for the hook.
    hookId Integer
    The id of the group hook.
    id String
    The provider-assigned unique ID for this managed resource.
    groupId number
    The id of the group for the hook.
    hookId number
    The id of the group hook.
    id string
    The provider-assigned unique ID for this managed resource.
    group_id int
    The id of the group for the hook.
    hook_id int
    The id of the group hook.
    id str
    The provider-assigned unique ID for this managed resource.
    groupId Number
    The id of the group for the hook.
    hookId Number
    The id of the group hook.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GroupHook Resource

    Get an existing GroupHook 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?: GroupHookState, opts?: CustomResourceOptions): GroupHook
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            confidential_issues_events: Optional[bool] = None,
            confidential_note_events: Optional[bool] = None,
            custom_webhook_template: Optional[str] = None,
            deployment_events: Optional[bool] = None,
            enable_ssl_verification: Optional[bool] = None,
            group: Optional[str] = None,
            group_id: Optional[int] = None,
            hook_id: Optional[int] = None,
            issues_events: Optional[bool] = None,
            job_events: Optional[bool] = None,
            merge_requests_events: Optional[bool] = None,
            note_events: Optional[bool] = None,
            pipeline_events: Optional[bool] = None,
            push_events: Optional[bool] = None,
            push_events_branch_filter: Optional[str] = None,
            releases_events: Optional[bool] = None,
            subgroup_events: Optional[bool] = None,
            tag_push_events: Optional[bool] = None,
            token: Optional[str] = None,
            url: Optional[str] = None,
            wiki_page_events: Optional[bool] = None) -> GroupHook
    func GetGroupHook(ctx *Context, name string, id IDInput, state *GroupHookState, opts ...ResourceOption) (*GroupHook, error)
    public static GroupHook Get(string name, Input<string> id, GroupHookState? state, CustomResourceOptions? opts = null)
    public static GroupHook get(String name, Output<String> id, GroupHookState 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:
    ConfidentialIssuesEvents bool
    Invoke the hook for confidential issues events.
    ConfidentialNoteEvents bool
    Invoke the hook for confidential note events.
    CustomWebhookTemplate string
    Custom webhook template.
    DeploymentEvents bool
    Invoke the hook for deployment events.
    EnableSslVerification bool
    Enable SSL verification when invoking the hook.
    Group string
    The full path or id of the group to add the hook to.
    GroupId int
    The id of the group for the hook.
    HookId int
    The id of the group hook.
    IssuesEvents bool
    Invoke the hook for issues events.
    JobEvents bool
    Invoke the hook for job events.
    MergeRequestsEvents bool
    Invoke the hook for merge requests events.
    NoteEvents bool
    Invoke the hook for note events.
    PipelineEvents bool
    Invoke the hook for pipeline events.
    PushEvents bool
    Invoke the hook for push events.
    PushEventsBranchFilter string
    Invoke the hook for push events on matching branches only.
    ReleasesEvents bool
    Invoke the hook for release events.
    SubgroupEvents bool
    Invoke the hook for subgroup events.
    TagPushEvents bool
    Invoke the hook for tag push events.
    Token string
    A token to present when invoking the hook. The token is not available for imported resources.
    Url string
    The url of the hook to invoke. Forces re-creation to preserve token.
    WikiPageEvents bool
    Invoke the hook for wiki page events.
    ConfidentialIssuesEvents bool
    Invoke the hook for confidential issues events.
    ConfidentialNoteEvents bool
    Invoke the hook for confidential note events.
    CustomWebhookTemplate string
    Custom webhook template.
    DeploymentEvents bool
    Invoke the hook for deployment events.
    EnableSslVerification bool
    Enable SSL verification when invoking the hook.
    Group string
    The full path or id of the group to add the hook to.
    GroupId int
    The id of the group for the hook.
    HookId int
    The id of the group hook.
    IssuesEvents bool
    Invoke the hook for issues events.
    JobEvents bool
    Invoke the hook for job events.
    MergeRequestsEvents bool
    Invoke the hook for merge requests events.
    NoteEvents bool
    Invoke the hook for note events.
    PipelineEvents bool
    Invoke the hook for pipeline events.
    PushEvents bool
    Invoke the hook for push events.
    PushEventsBranchFilter string
    Invoke the hook for push events on matching branches only.
    ReleasesEvents bool
    Invoke the hook for release events.
    SubgroupEvents bool
    Invoke the hook for subgroup events.
    TagPushEvents bool
    Invoke the hook for tag push events.
    Token string
    A token to present when invoking the hook. The token is not available for imported resources.
    Url string
    The url of the hook to invoke. Forces re-creation to preserve token.
    WikiPageEvents bool
    Invoke the hook for wiki page events.
    confidentialIssuesEvents Boolean
    Invoke the hook for confidential issues events.
    confidentialNoteEvents Boolean
    Invoke the hook for confidential note events.
    customWebhookTemplate String
    Custom webhook template.
    deploymentEvents Boolean
    Invoke the hook for deployment events.
    enableSslVerification Boolean
    Enable SSL verification when invoking the hook.
    group String
    The full path or id of the group to add the hook to.
    groupId Integer
    The id of the group for the hook.
    hookId Integer
    The id of the group hook.
    issuesEvents Boolean
    Invoke the hook for issues events.
    jobEvents Boolean
    Invoke the hook for job events.
    mergeRequestsEvents Boolean
    Invoke the hook for merge requests events.
    noteEvents Boolean
    Invoke the hook for note events.
    pipelineEvents Boolean
    Invoke the hook for pipeline events.
    pushEvents Boolean
    Invoke the hook for push events.
    pushEventsBranchFilter String
    Invoke the hook for push events on matching branches only.
    releasesEvents Boolean
    Invoke the hook for release events.
    subgroupEvents Boolean
    Invoke the hook for subgroup events.
    tagPushEvents Boolean
    Invoke the hook for tag push events.
    token String
    A token to present when invoking the hook. The token is not available for imported resources.
    url String
    The url of the hook to invoke. Forces re-creation to preserve token.
    wikiPageEvents Boolean
    Invoke the hook for wiki page events.
    confidentialIssuesEvents boolean
    Invoke the hook for confidential issues events.
    confidentialNoteEvents boolean
    Invoke the hook for confidential note events.
    customWebhookTemplate string
    Custom webhook template.
    deploymentEvents boolean
    Invoke the hook for deployment events.
    enableSslVerification boolean
    Enable SSL verification when invoking the hook.
    group string
    The full path or id of the group to add the hook to.
    groupId number
    The id of the group for the hook.
    hookId number
    The id of the group hook.
    issuesEvents boolean
    Invoke the hook for issues events.
    jobEvents boolean
    Invoke the hook for job events.
    mergeRequestsEvents boolean
    Invoke the hook for merge requests events.
    noteEvents boolean
    Invoke the hook for note events.
    pipelineEvents boolean
    Invoke the hook for pipeline events.
    pushEvents boolean
    Invoke the hook for push events.
    pushEventsBranchFilter string
    Invoke the hook for push events on matching branches only.
    releasesEvents boolean
    Invoke the hook for release events.
    subgroupEvents boolean
    Invoke the hook for subgroup events.
    tagPushEvents boolean
    Invoke the hook for tag push events.
    token string
    A token to present when invoking the hook. The token is not available for imported resources.
    url string
    The url of the hook to invoke. Forces re-creation to preserve token.
    wikiPageEvents boolean
    Invoke the hook for wiki page events.
    confidential_issues_events bool
    Invoke the hook for confidential issues events.
    confidential_note_events bool
    Invoke the hook for confidential note events.
    custom_webhook_template str
    Custom webhook template.
    deployment_events bool
    Invoke the hook for deployment events.
    enable_ssl_verification bool
    Enable SSL verification when invoking the hook.
    group str
    The full path or id of the group to add the hook to.
    group_id int
    The id of the group for the hook.
    hook_id int
    The id of the group hook.
    issues_events bool
    Invoke the hook for issues events.
    job_events bool
    Invoke the hook for job events.
    merge_requests_events bool
    Invoke the hook for merge requests events.
    note_events bool
    Invoke the hook for note events.
    pipeline_events bool
    Invoke the hook for pipeline events.
    push_events bool
    Invoke the hook for push events.
    push_events_branch_filter str
    Invoke the hook for push events on matching branches only.
    releases_events bool
    Invoke the hook for release events.
    subgroup_events bool
    Invoke the hook for subgroup events.
    tag_push_events bool
    Invoke the hook for tag push events.
    token str
    A token to present when invoking the hook. The token is not available for imported resources.
    url str
    The url of the hook to invoke. Forces re-creation to preserve token.
    wiki_page_events bool
    Invoke the hook for wiki page events.
    confidentialIssuesEvents Boolean
    Invoke the hook for confidential issues events.
    confidentialNoteEvents Boolean
    Invoke the hook for confidential note events.
    customWebhookTemplate String
    Custom webhook template.
    deploymentEvents Boolean
    Invoke the hook for deployment events.
    enableSslVerification Boolean
    Enable SSL verification when invoking the hook.
    group String
    The full path or id of the group to add the hook to.
    groupId Number
    The id of the group for the hook.
    hookId Number
    The id of the group hook.
    issuesEvents Boolean
    Invoke the hook for issues events.
    jobEvents Boolean
    Invoke the hook for job events.
    mergeRequestsEvents Boolean
    Invoke the hook for merge requests events.
    noteEvents Boolean
    Invoke the hook for note events.
    pipelineEvents Boolean
    Invoke the hook for pipeline events.
    pushEvents Boolean
    Invoke the hook for push events.
    pushEventsBranchFilter String
    Invoke the hook for push events on matching branches only.
    releasesEvents Boolean
    Invoke the hook for release events.
    subgroupEvents Boolean
    Invoke the hook for subgroup events.
    tagPushEvents Boolean
    Invoke the hook for tag push events.
    token String
    A token to present when invoking the hook. The token is not available for imported resources.
    url String
    The url of the hook to invoke. Forces re-creation to preserve token.
    wikiPageEvents Boolean
    Invoke the hook for wiki page events.

    Import

    A GitLab Group Hook can be imported using a key composed of <group-id>:<hook-id>, e.g.

    $ pulumi import gitlab:index/groupHook:GroupHook example "12345:1"
    

    NOTE: the token resource attribute is not available for imported resources as this information cannot be read from the GitLab API.

    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.
    gitlab logo
    GitLab v8.5.0 published on Friday, Oct 18, 2024 by Pulumi