gitlab_system_hook (Resource)

The gitlab_system_hook resource allows to manage the lifecycle of a system hook.

Upstream API: GitLab REST API docs

Example Usage

resource "gitlab_system_hook" "example" {
  url                      = "https://example.com/hook-%d"
  token                    = "secret-token"
  push_events              = true
  tag_push_events          = true
  merge_requests_events    = true
  repository_update_events = true
  enable_ssl_verification  = true
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# You can import a system hook using the hook id `{hook-id}`, e.g.
terraform import gitlab_system_hook.example 42
# NOTE: the `token` attribute won't be available for imported resources.