|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "gitlab_integration_telegram Resource - terraform-provider-gitlab" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + The gitlab_integration_telegram resource allows to manage the lifecycle of a project integration with Telegram. |
| 7 | + Upstream API: GitLab REST API docs https://docs.gitlab.com/ee/api/integrations.html#telegram |
| 8 | +--- |
| 9 | + |
| 10 | +# gitlab_integration_telegram (Resource) |
| 11 | + |
| 12 | +The `gitlab_integration_telegram` resource allows to manage the lifecycle of a project integration with Telegram. |
| 13 | + |
| 14 | +**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#telegram) |
| 15 | + |
| 16 | +## Example Usage |
| 17 | + |
| 18 | +```terraform |
| 19 | +resource "gitlab_project" "awesome_project" { |
| 20 | + name = "awesome_project" |
| 21 | + description = "My awesome project." |
| 22 | + visibility_level = "public" |
| 23 | +} |
| 24 | +
|
| 25 | +resource "gitlab_integration_telegram" "default" { |
| 26 | + token = "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11" |
| 27 | + room = "-1000000000000000" |
| 28 | +
|
| 29 | + notify_only_broken_pipelines = false |
| 30 | + branches_to_be_notified = "all" |
| 31 | + push_events = false |
| 32 | + issues_events = false |
| 33 | + confidential_issues_events = false |
| 34 | + merge_requests_events = false |
| 35 | + tag_push_events = false |
| 36 | + note_events = false |
| 37 | + confidential_note_events = false |
| 38 | + pipeline_events = false |
| 39 | + wiki_page_events = false |
| 40 | +} |
| 41 | +``` |
| 42 | + |
| 43 | +<!-- schema generated by tfplugindocs --> |
| 44 | +## Schema |
| 45 | + |
| 46 | +### Required |
| 47 | + |
| 48 | +- `confidential_issues_events` (Boolean) Enable notifications for confidential issues events. |
| 49 | +- `confidential_note_events` (Boolean) Enable notifications for confidential note events. |
| 50 | +- `issues_events` (Boolean) Enable notifications for issues events. |
| 51 | +- `merge_requests_events` (Boolean) Enable notifications for merge requests events. |
| 52 | +- `note_events` (Boolean) Enable notifications for note events. |
| 53 | +- `pipeline_events` (Boolean) Enable notifications for pipeline events. |
| 54 | +- `project` (String) The ID or full path of the project to integrate with Telegram. |
| 55 | +- `push_events` (Boolean) Enable notifications for push events. |
| 56 | +- `room` (String) Unique identifier for the target chat or the username of the target channel (in the format `@channelusername`) |
| 57 | +- `tag_push_events` (Boolean) Enable notifications for tag push events. |
| 58 | +- `token` (String, Sensitive) The Telegram bot token. |
| 59 | +- `wiki_page_events` (Boolean) Enable notifications for wiki page events. |
| 60 | + |
| 61 | +### Optional |
| 62 | + |
| 63 | +- `branches_to_be_notified` (String) Branches to send notifications for (introduced in GitLab 16.5). Update of this attribute was not supported before Gitlab 16.11 due to API bug. Valid options are `all`, `default`, `protected`, `default_and_protected`. |
| 64 | +- `notify_only_broken_pipelines` (Boolean) Send notifications for broken pipelines. |
| 65 | + |
| 66 | +### Read-Only |
| 67 | + |
| 68 | +- `id` (String) The ID of this Terraform resource. In the format of `<project>`. |
| 69 | + |
| 70 | +## Import |
| 71 | + |
| 72 | +Import is supported using the following syntax: |
| 73 | + |
| 74 | +```shell |
| 75 | +# You can import a gitlab_integration_telegram state using the project ID, e.g. |
| 76 | +terraform import gitlab_integration_telegram.default 1 |
| 77 | +``` |
0 commit comments