Integration Microsoft Teams Args
The gitlab.IntegrationMicrosoftTeams
resource allows to manage the lifecycle of a project integration with Microsoft Teams. Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const awesomeProject = new gitlab.Project("awesome_project", {
name: "awesome_project",
description: "My awesome project.",
visibilityLevel: "public",
});
const teams = new gitlab.IntegrationMicrosoftTeams("teams", {
project: awesomeProject.id,
webhook: "https://testurl.com/?token=XYZ",
pushEvents: true,
});
import pulumi
import pulumi_gitlab as gitlab
awesome_project = gitlab.Project("awesome_project",
name="awesome_project",
description="My awesome project.",
visibility_level="public")
teams = gitlab.IntegrationMicrosoftTeams("teams",
project=awesome_project.id,
webhook="https://testurl.com/?token=XYZ",
push_events=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var awesomeProject = new GitLab.Project("awesome_project", new()
{
Name = "awesome_project",
Description = "My awesome project.",
VisibilityLevel = "public",
});
var teams = new GitLab.IntegrationMicrosoftTeams("teams", new()
{
Project = awesomeProject.Id,
Webhook = "https://testurl.com/?token=XYZ",
PushEvents = true,
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v7/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
awesomeProject, err := gitlab.NewProject(ctx, "awesome_project", &gitlab.ProjectArgs{
Name: pulumi.String("awesome_project"),
Description: pulumi.String("My awesome project."),
VisibilityLevel: pulumi.String("public"),
})
if err != nil {
return err
}
_, err = gitlab.NewIntegrationMicrosoftTeams(ctx, "teams", &gitlab.IntegrationMicrosoftTeamsArgs{
Project: awesomeProject.ID(),
Webhook: pulumi.String("https://testurl.com/?token=XYZ"),
PushEvents: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.IntegrationMicrosoftTeams;
import com.pulumi.gitlab.IntegrationMicrosoftTeamsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var awesomeProject = new Project("awesomeProject", ProjectArgs.builder()
.name("awesome_project")
.description("My awesome project.")
.visibilityLevel("public")
.build());
var teams = new IntegrationMicrosoftTeams("teams", IntegrationMicrosoftTeamsArgs.builder()
.project(awesomeProject.id())
.webhook("https://testurl.com/?token=XYZ")
.pushEvents(true)
.build());
}
}
resources:
awesomeProject:
type: gitlab:Project
name: awesome_project
properties:
name: awesome_project
description: My awesome project.
visibilityLevel: public
teams:
type: gitlab:IntegrationMicrosoftTeams
properties:
project: ${awesomeProject.id}
webhook: https://testurl.com/?token=XYZ
pushEvents: true
Import
You can import a gitlab_integration_microsoft_teams state using the project ID, e.g.
$ pulumi import gitlab:index/integrationMicrosoftTeams:IntegrationMicrosoftTeams teams 1
Constructors
Properties
Branches to send notifications for. Valid options are “all”, “default”, “protected”, and “defaultandprotected”. The default value is “default”
Enable notifications for confidential issue events
Enable notifications for confidential note events
Enable notifications for issue events
Enable notifications for merge request events
Enable notifications for note events
Send notifications for broken pipelines
Enable notifications for pipeline events
Enable notifications for push events
Enable notifications for tag push events
Enable notifications for wiki page events