The gitlab_project_hook
data source allows to retrieve details about a hook in a project.
Upstream API: GitLab REST API docs
data "gitlab_project" "example" {
id = "foo/bar/baz"
}
data "gitlab_project_hook" "example" {
project = data.gitlab_project.example.id
hook_id = 1
}
hook_id
(Number) The id of the project hook.project
(String) The name or id of the project to add the hook to.confidential_issues_events
(Boolean) Invoke the hook for confidential issues events.confidential_note_events
(Boolean) Invoke the hook for confidential notes events.custom_webhook_template
(String) Set a custom webhook template.deployment_events
(Boolean) Invoke the hook for deployment events.enable_ssl_verification
(Boolean) Enable ssl verification when invoking the hook.id
(String) The ID of this resource.issues_events
(Boolean) Invoke the hook for issues events.job_events
(Boolean) Invoke the hook for job events.merge_requests_events
(Boolean) Invoke the hook for merge requests.note_events
(Boolean) Invoke the hook for notes events.pipeline_events
(Boolean) Invoke the hook for pipeline events.project_id
(Number) The id of the project for the hook.push_events
(Boolean) Invoke the hook for push events.push_events_branch_filter
(String) Invoke the hook for push events on matching branches only.releases_events
(Boolean) Invoke the hook for releases events.tag_push_events
(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.wiki_page_events
(Boolean) Invoke the hook for wiki page events.