1. Packages
  2. Packages
  3. Gitlab Provider
  4. API Docs
  5. ProjectErrorTrackingClientKey
Viewing docs for GitLab v10.1.1
published on Thursday, Jul 23, 2026 by Pulumi
gitlab logo
Viewing docs for GitLab v10.1.1
published on Thursday, Jul 23, 2026 by Pulumi

    The gitlab.ProjectErrorTrackingClientKey resource manages error tracking client keys for a GitLab project.

    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,
    });
    const exampleProjectErrorTrackingClientKey = new gitlab.ProjectErrorTrackingClientKey("example", {project: exampleProjectErrorTrackingSettings.project});
    
    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)
    example_project_error_tracking_client_key = gitlab.ProjectErrorTrackingClientKey("example", project=example_project_error_tracking_settings.project)
    
    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
    		}
    		exampleProjectErrorTrackingSettings, err := gitlab.NewProjectErrorTrackingSettings(ctx, "example", &gitlab.ProjectErrorTrackingSettingsArgs{
    			Project:    example.ID(),
    			Active:     pulumi.Bool(true),
    			Integrated: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gitlab.NewProjectErrorTrackingClientKey(ctx, "example", &gitlab.ProjectErrorTrackingClientKeyArgs{
    			Project: exampleProjectErrorTrackingSettings.Project,
    		})
    		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,
        });
    
        var exampleProjectErrorTrackingClientKey = new GitLab.ProjectErrorTrackingClientKey("example", new()
        {
            Project = exampleProjectErrorTrackingSettings.Project,
        });
    
    });
    
    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 com.pulumi.gitlab.ProjectErrorTrackingClientKey;
    import com.pulumi.gitlab.ProjectErrorTrackingClientKeyArgs;
    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());
    
            var exampleProjectErrorTrackingClientKey = new ProjectErrorTrackingClientKey("exampleProjectErrorTrackingClientKey", ProjectErrorTrackingClientKeyArgs.builder()
                .project(exampleProjectErrorTrackingSettings.project())
                .build());
    
        }
    }
    
    resources:
      example:
        type: gitlab:Project
        properties:
          name: example
      exampleProjectErrorTrackingSettings:
        type: gitlab:ProjectErrorTrackingSettings
        name: example
        properties:
          project: ${example.id}
          active: true
          integrated: true
      exampleProjectErrorTrackingClientKey:
        type: gitlab:ProjectErrorTrackingClientKey
        name: example
        properties:
          project: ${exampleProjectErrorTrackingSettings.project}
    
    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
    }
    resource "gitlab_projecterrortrackingclientkey" "example" {
      project = gitlab_projecterrortrackingsettings.example.project
    }
    

    Create ProjectErrorTrackingClientKey Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ProjectErrorTrackingClientKey(name: string, args: ProjectErrorTrackingClientKeyArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectErrorTrackingClientKey(resource_name: str,
                                      args: ProjectErrorTrackingClientKeyArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectErrorTrackingClientKey(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      project: Optional[str] = None)
    func NewProjectErrorTrackingClientKey(ctx *Context, name string, args ProjectErrorTrackingClientKeyArgs, opts ...ResourceOption) (*ProjectErrorTrackingClientKey, error)
    public ProjectErrorTrackingClientKey(string name, ProjectErrorTrackingClientKeyArgs args, CustomResourceOptions? opts = null)
    public ProjectErrorTrackingClientKey(String name, ProjectErrorTrackingClientKeyArgs args)
    public ProjectErrorTrackingClientKey(String name, ProjectErrorTrackingClientKeyArgs args, CustomResourceOptions options)
    
    type: gitlab:ProjectErrorTrackingClientKey
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gitlab_project_error_tracking_client_key" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ProjectErrorTrackingClientKeyArgs
    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 ProjectErrorTrackingClientKeyArgs
    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 ProjectErrorTrackingClientKeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectErrorTrackingClientKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectErrorTrackingClientKeyArgs
    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 projectErrorTrackingClientKeyResource = new GitLab.ProjectErrorTrackingClientKey("projectErrorTrackingClientKeyResource", new()
    {
        Project = "string",
    });
    
    example, err := gitlab.NewProjectErrorTrackingClientKey(ctx, "projectErrorTrackingClientKeyResource", &gitlab.ProjectErrorTrackingClientKeyArgs{
    	Project: pulumi.String("string"),
    })
    
    resource "gitlab_project_error_tracking_client_key" "projectErrorTrackingClientKeyResource" {
      lifecycle {
        create_before_destroy = true
      }
      project = "string"
    }
    
    var projectErrorTrackingClientKeyResource = new ProjectErrorTrackingClientKey("projectErrorTrackingClientKeyResource", ProjectErrorTrackingClientKeyArgs.builder()
        .project("string")
        .build());
    
    project_error_tracking_client_key_resource = gitlab.ProjectErrorTrackingClientKey("projectErrorTrackingClientKeyResource", project="string")
    
    const projectErrorTrackingClientKeyResource = new gitlab.ProjectErrorTrackingClientKey("projectErrorTrackingClientKeyResource", {project: "string"});
    
    type: gitlab:ProjectErrorTrackingClientKey
    properties:
        project: string
    

    ProjectErrorTrackingClientKey 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 ProjectErrorTrackingClientKey resource accepts the following input properties:

    Project string
    The ID or URL-encoded path of the project.
    Project string
    The ID or URL-encoded path of the project.
    project string
    The ID or URL-encoded path of the project.
    project String
    The ID or URL-encoded path of the project.
    project string
    The ID or URL-encoded path of the project.
    project str
    The ID or URL-encoded path of the project.
    project String
    The ID or URL-encoded path of the project.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ProjectErrorTrackingClientKey resource produces the following output properties:

    Active bool
    Whether the client key is active.
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyId int
    The ID of the client key.
    PublicKey string
    The public key for the client.
    SentryDsn string
    The Sentry DSN for the client key.
    Active bool
    Whether the client key is active.
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyId int
    The ID of the client key.
    PublicKey string
    The public key for the client.
    SentryDsn string
    The Sentry DSN for the client key.
    active bool
    Whether the client key is active.
    id string
    The provider-assigned unique ID for this managed resource.
    key_id number
    The ID of the client key.
    public_key string
    The public key for the client.
    sentry_dsn string
    The Sentry DSN for the client key.
    active Boolean
    Whether the client key is active.
    id String
    The provider-assigned unique ID for this managed resource.
    keyId Integer
    The ID of the client key.
    publicKey String
    The public key for the client.
    sentryDsn String
    The Sentry DSN for the client key.
    active boolean
    Whether the client key is active.
    id string
    The provider-assigned unique ID for this managed resource.
    keyId number
    The ID of the client key.
    publicKey string
    The public key for the client.
    sentryDsn string
    The Sentry DSN for the client key.
    active bool
    Whether the client key is active.
    id str
    The provider-assigned unique ID for this managed resource.
    key_id int
    The ID of the client key.
    public_key str
    The public key for the client.
    sentry_dsn str
    The Sentry DSN for the client key.
    active Boolean
    Whether the client key is active.
    id String
    The provider-assigned unique ID for this managed resource.
    keyId Number
    The ID of the client key.
    publicKey String
    The public key for the client.
    sentryDsn String
    The Sentry DSN for the client key.

    Look up Existing ProjectErrorTrackingClientKey Resource

    Get an existing ProjectErrorTrackingClientKey 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?: ProjectErrorTrackingClientKeyState, opts?: CustomResourceOptions): ProjectErrorTrackingClientKey
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active: Optional[bool] = None,
            key_id: Optional[int] = None,
            project: Optional[str] = None,
            public_key: Optional[str] = None,
            sentry_dsn: Optional[str] = None) -> ProjectErrorTrackingClientKey
    func GetProjectErrorTrackingClientKey(ctx *Context, name string, id IDInput, state *ProjectErrorTrackingClientKeyState, opts ...ResourceOption) (*ProjectErrorTrackingClientKey, error)
    public static ProjectErrorTrackingClientKey Get(string name, Input<string> id, ProjectErrorTrackingClientKeyState? state, CustomResourceOptions? opts = null)
    public static ProjectErrorTrackingClientKey get(String name, Output<String> id, ProjectErrorTrackingClientKeyState state, CustomResourceOptions options)
    resources:  _:    type: gitlab:ProjectErrorTrackingClientKey    get:      id: ${id}
    import {
      to = gitlab_project_error_tracking_client_key.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.
    The following state arguments are supported:
    Active bool
    Whether the client key is active.
    KeyId int
    The ID of the client key.
    Project string
    The ID or URL-encoded path of the project.
    PublicKey string
    The public key for the client.
    SentryDsn string
    The Sentry DSN for the client key.
    Active bool
    Whether the client key is active.
    KeyId int
    The ID of the client key.
    Project string
    The ID or URL-encoded path of the project.
    PublicKey string
    The public key for the client.
    SentryDsn string
    The Sentry DSN for the client key.
    active bool
    Whether the client key is active.
    key_id number
    The ID of the client key.
    project string
    The ID or URL-encoded path of the project.
    public_key string
    The public key for the client.
    sentry_dsn string
    The Sentry DSN for the client key.
    active Boolean
    Whether the client key is active.
    keyId Integer
    The ID of the client key.
    project String
    The ID or URL-encoded path of the project.
    publicKey String
    The public key for the client.
    sentryDsn String
    The Sentry DSN for the client key.
    active boolean
    Whether the client key is active.
    keyId number
    The ID of the client key.
    project string
    The ID or URL-encoded path of the project.
    publicKey string
    The public key for the client.
    sentryDsn string
    The Sentry DSN for the client key.
    active bool
    Whether the client key is active.
    key_id int
    The ID of the client key.
    project str
    The ID or URL-encoded path of the project.
    public_key str
    The public key for the client.
    sentry_dsn str
    The Sentry DSN for the client key.
    active Boolean
    Whether the client key is active.
    keyId Number
    The ID of the client key.
    project String
    The ID or URL-encoded path of the project.
    publicKey String
    The public key for the client.
    sentryDsn String
    The Sentry DSN for the client key.

    Package Details

    Repository
    GitLab pulumi/pulumi-gitlab
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the gitlab Terraform Provider.
    gitlab logo
    Viewing docs for GitLab v10.1.1
    published on Thursday, Jul 23, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial