The gitlab_service_microsoft_teams
resource allows to manage the lifecycle of a project integration with Microsoft Teams.
Upstream API: GitLab REST API docs
resource "gitlab_project" "awesome_project" {
name = "awesome_project"
description = "My awesome project."
visibility_level = "public"
}
resource "gitlab_service_microsoft_teams" "teams" {
project = gitlab_project.awesome_project.id
webhook = "https://testurl.com/?token=XYZ"
push_events = true
}
project
(String) ID of the project you want to activate integration on.webhook
(String) The Microsoft Teams webhook (Example, https://outlook.office.com/webhook/...). This value cannot be imported.branches_to_be_notified
(String) Branches to send notifications for. Valid options are “all”, “default”, “protected”, and “default_and_protected”. The default value is “default”confidential_issues_events
(Boolean) Enable notifications for confidential issue eventsconfidential_note_events
(Boolean) Enable notifications for confidential note eventsissues_events
(Boolean) Enable notifications for issue eventsmerge_requests_events
(Boolean) Enable notifications for merge request eventsnote_events
(Boolean) Enable notifications for note eventsnotify_only_broken_pipelines
(Boolean) Send notifications for broken pipelinespipeline_events
(Boolean) Enable notifications for pipeline eventspush_events
(Boolean) Enable notifications for push eventstag_push_events
(Boolean) Enable notifications for tag push eventswiki_page_events
(Boolean) Enable notifications for wiki page eventsactive
(Boolean) Whether the integration is active.created_at
(String) Create time.id
(String) The ID of this resource.updated_at
(String) Update time.Import is supported using the following syntax:
# You can import a gitlab_service_microsoft_teams state using the project ID, e.g.
terraform import gitlab_service_microsoft_teams.teams 1