gitlab_project_hook (Resource)

The gitlab_project_hook resource allows to manage the lifecycle of a project hook.

Upstream API: GitLab REST API docs

Example Usage

resource "gitlab_project_hook" "example" {
  project               = "example/hooked"
  url                   = "https://example.com/hook/example"
  merge_requests_events = true
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# A GitLab Project Hook can be imported using a key composed of `<project-id>:<hook-id>`, e.g.
terraform import gitlab_project_hook.example "12345:1"

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