github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/gitlab/r/project_hook.html.markdown (about) 1 --- 2 layout: "gitlab" 3 page_title: "GitLab: gitlab_project_hook" 4 sidebar_current: "docs-gitlab-resource-project-hook" 5 description: |- 6 Creates and manages hooks for GitLab projects 7 --- 8 9 # gitlab\_project\_hook 10 11 This resource allows you to create and manage hooks for your GitLab projects. 12 For further information on hooks, consult the [gitlab 13 documentation](https://docs.gitlab.com/ce/user/project/integrations/webhooks.html). 14 15 16 ## Example Usage 17 18 ```hcl 19 resource "gitlab_project_hook" "example" { 20 project = "example/hooked" 21 url = "https://example.com/hook/example" 22 merge_requests_events = true 23 } 24 ``` 25 26 ## Argument Reference 27 28 The following arguments are supported: 29 30 * `project` - (Required) The name or id of the project to add the hook to. 31 32 * `url` - (Required) The url of the hook to invoke. 33 34 * `token` - (Optional) A token to present when invoking the hook. 35 36 * `enable_ssl_verification` - (Optional) Enable ssl verification when invoking 37 the hook. 38 39 * `push_events` - (Optional) Invoke the hook for push events. 40 41 * `issues_events` - (Optional) Invoke the hook for issues events. 42 43 * `merge_requests_events` - (Optional) Invoke the hook for merge requests. 44 45 * `tag_push_events` - (Optional) Invoke the hook for tag push events. 46 47 * `note_events` - (Optional) Invoke the hook for tag push events. 48 49 * `build_events` - (Optional) Invoke the hook for build events. 50 51 * `pipeline_events` - (Optional) Invoke the hook for pipeline events. 52 53 * `wiki_page_events` - (Optional) Invoke the hook for wiki page events. 54 55 ## Attributes Reference 56 57 The resource exports the following attributes: 58 59 * `id` - The unique id assigned to the hook by the GitLab server.