|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "gitlab_group_hook Data Source - terraform-provider-gitlab" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + The gitlab_group_hook data source allows to retrieve details about a hook in a group. |
| 7 | + Upstream API: GitLab REST API docs https://docs.gitlab.com/ee/api/groups.html#get-group-hook |
| 8 | +--- |
| 9 | + |
| 10 | +# gitlab_group_hook (Data Source) |
| 11 | + |
| 12 | +The `gitlab_group_hook` data source allows to retrieve details about a hook in a group. |
| 13 | + |
| 14 | +**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#get-group-hook) |
| 15 | + |
| 16 | +## Example Usage |
| 17 | + |
| 18 | +```terraform |
| 19 | +data "gitlab_group" "example" { |
| 20 | + id = "foo/bar/baz" |
| 21 | +} |
| 22 | +
|
| 23 | +data "gitlab_group_hook" "example" { |
| 24 | + group = data.gitlab_group.example.id |
| 25 | + hook_id = 1 |
| 26 | +} |
| 27 | +``` |
| 28 | + |
| 29 | +<!-- schema generated by tfplugindocs --> |
| 30 | +## Schema |
| 31 | + |
| 32 | +### Required |
| 33 | + |
| 34 | +- `group` (String) The ID or full path of the group. |
| 35 | +- `hook_id` (Number) The id of the group hook. |
| 36 | + |
| 37 | +### Read-Only |
| 38 | + |
| 39 | +- `confidential_issues_events` (Boolean) Invoke the hook for confidential issues events. |
| 40 | +- `confidential_note_events` (Boolean) Invoke the hook for confidential notes events. |
| 41 | +- `deployment_events` (Boolean) Invoke the hook for deployment events. |
| 42 | +- `enable_ssl_verification` (Boolean) Enable ssl verification when invoking the hook. |
| 43 | +- `group_id` (Number) The id of the group for the hook. |
| 44 | +- `id` (String) The ID of this resource. |
| 45 | +- `issues_events` (Boolean) Invoke the hook for issues events. |
| 46 | +- `job_events` (Boolean) Invoke the hook for job events. |
| 47 | +- `merge_requests_events` (Boolean) Invoke the hook for merge requests. |
| 48 | +- `note_events` (Boolean) Invoke the hook for notes events. |
| 49 | +- `pipeline_events` (Boolean) Invoke the hook for pipeline events. |
| 50 | +- `push_events` (Boolean) Invoke the hook for push events. |
| 51 | +- `push_events_branch_filter` (String) Invoke the hook for push events on matching branches only. |
| 52 | +- `releases_events` (Boolean) Invoke the hook for releases events. |
| 53 | +- `subgroup_events` (Boolean) Invoke the hook for subgroup events. |
| 54 | +- `tag_push_events` (Boolean) Invoke the hook for tag push events. |
| 55 | +- `token` (String) A token to present when invoking the hook. The token is not available for imported resources. |
| 56 | +- `url` (String) The url of the hook to invoke. |
| 57 | +- `wiki_page_events` (Boolean) Invoke the hook for wiki page events. |
| 58 | + |
| 59 | + |
0 commit comments