published on Thursday, Jul 23, 2026 by Pulumi
published on Thursday, Jul 23, 2026 by Pulumi
The gitlab.ProjectErrorTrackingSettings resource manages error tracking settings for a GitLab project.
When you destroy the resource, you can control whether the original settings are restored. Set
keepSettingsOnDestroytotrue(default) to leave error tracking as-is. Set it tofalseto restore the settings to their values before this resource was created. The original values are saved in state when you create the resource.
Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const example = new gitlab.Project("example", {name: "example"});
const exampleProjectErrorTrackingSettings = new gitlab.ProjectErrorTrackingSettings("example", {
project: example.id,
active: true,
integrated: true,
});
import pulumi
import pulumi_gitlab as gitlab
example = gitlab.Project("example", name="example")
example_project_error_tracking_settings = gitlab.ProjectErrorTrackingSettings("example",
project=example.id,
active=True,
integrated=True)
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v10/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := gitlab.NewProject(ctx, "example", &gitlab.ProjectArgs{
Name: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = gitlab.NewProjectErrorTrackingSettings(ctx, "example", &gitlab.ProjectErrorTrackingSettingsArgs{
Project: example.ID(),
Active: pulumi.Bool(true),
Integrated: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var example = new GitLab.Project("example", new()
{
Name = "example",
});
var exampleProjectErrorTrackingSettings = new GitLab.ProjectErrorTrackingSettings("example", new()
{
Project = example.Id,
Active = true,
Integrated = true,
});
});
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.ProjectErrorTrackingSettings;
import com.pulumi.gitlab.ProjectErrorTrackingSettingsArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = new Project("example", ProjectArgs.builder()
.name("example")
.build());
var exampleProjectErrorTrackingSettings = new ProjectErrorTrackingSettings("exampleProjectErrorTrackingSettings", ProjectErrorTrackingSettingsArgs.builder()
.project(example.id())
.active(true)
.integrated(true)
.build());
}
}
resources:
example:
type: gitlab:Project
properties:
name: example
exampleProjectErrorTrackingSettings:
type: gitlab:ProjectErrorTrackingSettings
name: example
properties:
project: ${example.id}
active: true
integrated: true
pulumi {
required_providers {
gitlab = {
source = "pulumi/gitlab"
}
}
}
resource "gitlab_project" "example" {
name = "example"
}
resource "gitlab_projecterrortrackingsettings" "example" {
project = gitlab_project.example.id
active = true
integrated = true
}
Create ProjectErrorTrackingSettings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectErrorTrackingSettings(name: string, args: ProjectErrorTrackingSettingsArgs, opts?: CustomResourceOptions);@overload
def ProjectErrorTrackingSettings(resource_name: str,
args: ProjectErrorTrackingSettingsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectErrorTrackingSettings(resource_name: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
project: Optional[str] = None,
integrated: Optional[bool] = None,
keep_settings_on_destroy: Optional[bool] = None)func NewProjectErrorTrackingSettings(ctx *Context, name string, args ProjectErrorTrackingSettingsArgs, opts ...ResourceOption) (*ProjectErrorTrackingSettings, error)public ProjectErrorTrackingSettings(string name, ProjectErrorTrackingSettingsArgs args, CustomResourceOptions? opts = null)
public ProjectErrorTrackingSettings(String name, ProjectErrorTrackingSettingsArgs args)
public ProjectErrorTrackingSettings(String name, ProjectErrorTrackingSettingsArgs args, CustomResourceOptions options)
type: gitlab:ProjectErrorTrackingSettings
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gitlab_project_error_tracking_settings" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ProjectErrorTrackingSettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProjectErrorTrackingSettingsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProjectErrorTrackingSettingsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectErrorTrackingSettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectErrorTrackingSettingsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var projectErrorTrackingSettingsResource = new GitLab.ProjectErrorTrackingSettings("projectErrorTrackingSettingsResource", new()
{
Active = false,
Project = "string",
Integrated = false,
KeepSettingsOnDestroy = false,
});
example, err := gitlab.NewProjectErrorTrackingSettings(ctx, "projectErrorTrackingSettingsResource", &gitlab.ProjectErrorTrackingSettingsArgs{
Active: pulumi.Bool(false),
Project: pulumi.String("string"),
Integrated: pulumi.Bool(false),
KeepSettingsOnDestroy: pulumi.Bool(false),
})
resource "gitlab_project_error_tracking_settings" "projectErrorTrackingSettingsResource" {
lifecycle {
create_before_destroy = true
}
active = false
project = "string"
integrated = false
keep_settings_on_destroy = false
}
var projectErrorTrackingSettingsResource = new ProjectErrorTrackingSettings("projectErrorTrackingSettingsResource", ProjectErrorTrackingSettingsArgs.builder()
.active(false)
.project("string")
.integrated(false)
.keepSettingsOnDestroy(false)
.build());
project_error_tracking_settings_resource = gitlab.ProjectErrorTrackingSettings("projectErrorTrackingSettingsResource",
active=False,
project="string",
integrated=False,
keep_settings_on_destroy=False)
const projectErrorTrackingSettingsResource = new gitlab.ProjectErrorTrackingSettings("projectErrorTrackingSettingsResource", {
active: false,
project: "string",
integrated: false,
keepSettingsOnDestroy: false,
});
type: gitlab:ProjectErrorTrackingSettings
properties:
active: false
integrated: false
keepSettingsOnDestroy: false
project: string
ProjectErrorTrackingSettings Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ProjectErrorTrackingSettings resource accepts the following input properties:
- Active bool
- Enable or disable error tracking for the project.
- Project string
- The ID or URL-encoded path of the project.
- Integrated bool
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- Keep
Settings boolOn Destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings.
- Active bool
- Enable or disable error tracking for the project.
- Project string
- The ID or URL-encoded path of the project.
- Integrated bool
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- Keep
Settings boolOn Destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings.
- active bool
- Enable or disable error tracking for the project.
- project string
- The ID or URL-encoded path of the project.
- integrated bool
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- keep_
settings_ boolon_ destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings.
- active Boolean
- Enable or disable error tracking for the project.
- project String
- The ID or URL-encoded path of the project.
- integrated Boolean
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- keep
Settings BooleanOn Destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings.
- active boolean
- Enable or disable error tracking for the project.
- project string
- The ID or URL-encoded path of the project.
- integrated boolean
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- keep
Settings booleanOn Destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings.
- active bool
- Enable or disable error tracking for the project.
- project str
- The ID or URL-encoded path of the project.
- integrated bool
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- keep_
settings_ boolon_ destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings.
- active Boolean
- Enable or disable error tracking for the project.
- project String
- The ID or URL-encoded path of the project.
- integrated Boolean
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- keep
Settings BooleanOn Destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectErrorTrackingSettings resource produces the following output properties:
- Api
Url string - The API URL to the Sentry project.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Name string - The Sentry project name.
- Sentry
External stringUrl - The external URL to the Sentry project.
- Api
Url string - The API URL to the Sentry project.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Name string - The Sentry project name.
- Sentry
External stringUrl - The external URL to the Sentry project.
- api_
url string - The API URL to the Sentry project.
- id string
- The provider-assigned unique ID for this managed resource.
- project_
name string - The Sentry project name.
- sentry_
external_ stringurl - The external URL to the Sentry project.
- api
Url String - The API URL to the Sentry project.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Name String - The Sentry project name.
- sentry
External StringUrl - The external URL to the Sentry project.
- api
Url string - The API URL to the Sentry project.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Name string - The Sentry project name.
- sentry
External stringUrl - The external URL to the Sentry project.
- api_
url str - The API URL to the Sentry project.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
name str - The Sentry project name.
- sentry_
external_ strurl - The external URL to the Sentry project.
- api
Url String - The API URL to the Sentry project.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Name String - The Sentry project name.
- sentry
External StringUrl - The external URL to the Sentry project.
Look up Existing ProjectErrorTrackingSettings Resource
Get an existing ProjectErrorTrackingSettings resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ProjectErrorTrackingSettingsState, opts?: CustomResourceOptions): ProjectErrorTrackingSettings@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
api_url: Optional[str] = None,
integrated: Optional[bool] = None,
keep_settings_on_destroy: Optional[bool] = None,
project: Optional[str] = None,
project_name: Optional[str] = None,
sentry_external_url: Optional[str] = None) -> ProjectErrorTrackingSettingsfunc GetProjectErrorTrackingSettings(ctx *Context, name string, id IDInput, state *ProjectErrorTrackingSettingsState, opts ...ResourceOption) (*ProjectErrorTrackingSettings, error)public static ProjectErrorTrackingSettings Get(string name, Input<string> id, ProjectErrorTrackingSettingsState? state, CustomResourceOptions? opts = null)public static ProjectErrorTrackingSettings get(String name, Output<String> id, ProjectErrorTrackingSettingsState state, CustomResourceOptions options)resources: _: type: gitlab:ProjectErrorTrackingSettings get: id: ${id}import {
to = gitlab_project_error_tracking_settings.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Active bool
- Enable or disable error tracking for the project.
- Api
Url string - The API URL to the Sentry project.
- Integrated bool
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- Keep
Settings boolOn Destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings. - Project string
- The ID or URL-encoded path of the project.
- Project
Name string - The Sentry project name.
- Sentry
External stringUrl - The external URL to the Sentry project.
- Active bool
- Enable or disable error tracking for the project.
- Api
Url string - The API URL to the Sentry project.
- Integrated bool
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- Keep
Settings boolOn Destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings. - Project string
- The ID or URL-encoded path of the project.
- Project
Name string - The Sentry project name.
- Sentry
External stringUrl - The external URL to the Sentry project.
- active bool
- Enable or disable error tracking for the project.
- api_
url string - The API URL to the Sentry project.
- integrated bool
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- keep_
settings_ boolon_ destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings. - project string
- The ID or URL-encoded path of the project.
- project_
name string - The Sentry project name.
- sentry_
external_ stringurl - The external URL to the Sentry project.
- active Boolean
- Enable or disable error tracking for the project.
- api
Url String - The API URL to the Sentry project.
- integrated Boolean
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- keep
Settings BooleanOn Destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings. - project String
- The ID or URL-encoded path of the project.
- project
Name String - The Sentry project name.
- sentry
External StringUrl - The external URL to the Sentry project.
- active boolean
- Enable or disable error tracking for the project.
- api
Url string - The API URL to the Sentry project.
- integrated boolean
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- keep
Settings booleanOn Destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings. - project string
- The ID or URL-encoded path of the project.
- project
Name string - The Sentry project name.
- sentry
External stringUrl - The external URL to the Sentry project.
- active bool
- Enable or disable error tracking for the project.
- api_
url str - The API URL to the Sentry project.
- integrated bool
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- keep_
settings_ boolon_ destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings. - project str
- The ID or URL-encoded path of the project.
- project_
name str - The Sentry project name.
- sentry_
external_ strurl - The external URL to the Sentry project.
- active Boolean
- Enable or disable error tracking for the project.
- api
Url String - The API URL to the Sentry project.
- integrated Boolean
- Enable or disable the integrated error tracking backend. Available in GitLab 14.2 and later.
- keep
Settings BooleanOn Destroy - Set to
trueto leave error tracking settings unchanged on destroy. Set tofalseto restore the original settings. - project String
- The ID or URL-encoded path of the project.
- project
Name String - The Sentry project name.
- sentry
External StringUrl - The external URL to the Sentry project.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.
published on Thursday, Jul 23, 2026 by Pulumi