1. Registry
  2. Packages
  3. Harness Provider
  4. API Docs
  5. platform
  6. Setting
Viewing docs for Harness v0.17.6
published on Saturday, Oct 31, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.17.6
published on Saturday, Oct 31, 2026 by Pulumi

    Resource for managing a Harness default setting (Account/Organization/Project Settings) at account, organization or project scope. Destroying this resource restores the setting to the value inherited from the parent scope (or the Harness default).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    // Account level setting
    const account = new harness.platform.Setting("account", {
        identifier: "enforce_git_experience",
        value: "true",
        allowOverrides: true,
    });
    // Organization level setting that projects cannot override
    const org = new harness.platform.Setting("org", {
        identifier: "git_experience_repo_allowlist",
        orgId: "org_id",
        value: "my-org/allowed-repo",
        allowOverrides: false,
    });
    // Project level settings, configured when the project is created
    const example = new harness.platform.Project("example", {
        identifier: "example",
        name: "example",
        orgId: "org_id",
    });
    const defaultSettings = {
        defaultConnectorForGitExperience: "account.gitlab_connector",
        defaultRepoForGitExperience: "my-org/my-repo",
    };
    const project: harness.platform.Setting[] = [];
    for (const range of Object.entries(defaultSettings).sort().map(([k, v]) => ({key: k, value: v}))) {
        project.push(new harness.platform.Setting(`project-${range.key}`, {
            identifier: range.key,
            orgId: example.orgId,
            projectId: example.id,
            value: range.value,
        }));
    }
    
    import pulumi
    from typing import Any
    import pulumi_harness as harness
    
    # Account level setting
    account = harness.platform.Setting("account",
        identifier="enforce_git_experience",
        value="true",
        allow_overrides=True)
    # Organization level setting that projects cannot override
    org = harness.platform.Setting("org",
        identifier="git_experience_repo_allowlist",
        org_id="org_id",
        value="my-org/allowed-repo",
        allow_overrides=False)
    # Project level settings, configured when the project is created
    example = harness.platform.Project("example",
        identifier="example",
        name="example",
        org_id="org_id")
    default_settings = {
        "defaultConnectorForGitExperience": "account.gitlab_connector",
        "defaultRepoForGitExperience": "my-org/my-repo",
    }
    project: list[harness.platform.Setting] = []
    for project_range in [{"key": k, "value": v} for [k, v] in enumerate(default_settings)]:
        project.append(harness.platform.Setting(f"project-{project_range['key']}",
            identifier=project_range["key"],
            org_id=example.org_id,
            project_id=example.id,
            value=project_range["value"]))
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Account level setting
    		_, err := platform.NewSetting(ctx, "account", &platform.SettingArgs{
    			Identifier:     pulumi.String("enforce_git_experience"),
    			Value:          pulumi.String("true"),
    			AllowOverrides: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		// Organization level setting that projects cannot override
    		_, err = platform.NewSetting(ctx, "org", &platform.SettingArgs{
    			Identifier:     pulumi.String("git_experience_repo_allowlist"),
    			OrgId:          pulumi.String("org_id"),
    			Value:          pulumi.String("my-org/allowed-repo"),
    			AllowOverrides: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		// Project level settings, configured when the project is created
    		example, err := platform.NewProject(ctx, "example", &platform.ProjectArgs{
    			Identifier: pulumi.String("example"),
    			Name:       pulumi.String("example"),
    			OrgId:      pulumi.String("org_id"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSettings := map[string]string{
    			"defaultConnectorForGitExperience": "account.gitlab_connector",
    			"defaultRepoForGitExperience":      "my-org/my-repo",
    		}
    		var project []*platform.Setting
    		for key0, val0 := range defaultSettings {
    			__res, err := platform.NewSetting(ctx, fmt.Sprintf("project-%v", key0), &platform.SettingArgs{
    				Identifier: pulumi.String(key0),
    				OrgId:      example.OrgId,
    				ProjectId:  example.ID(),
    				Value:      pulumi.String(val0),
    			})
    			if err != nil {
    				return err
    			}
    			project = append(project, __res)
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        // Account level setting
        var account = new Harness.Platform.Setting("account", new()
        {
            Identifier = "enforce_git_experience",
            Value = "true",
            AllowOverrides = true,
        });
    
        // Organization level setting that projects cannot override
        var org = new Harness.Platform.Setting("org", new()
        {
            Identifier = "git_experience_repo_allowlist",
            OrgId = "org_id",
            Value = "my-org/allowed-repo",
            AllowOverrides = false,
        });
    
        // Project level settings, configured when the project is created
        var example = new Harness.Platform.Project("example", new()
        {
            Identifier = "example",
            Name = "example",
            OrgId = "org_id",
        });
    
        var defaultSettings = new Dictionary<string, string>
        {
            ["defaultConnectorForGitExperience"] = "account.gitlab_connector",
            ["defaultRepoForGitExperience"] = "my-org/my-repo",
        };
    
        var project = new List<Harness.Platform.Setting>();
        foreach (var range in defaultSettings.Select(pair => new { pair.Key, pair.Value }))
        {
            project.Add(new Harness.Platform.Setting($"project-{range.Key}", new()
            {
                Identifier = range.Key,
                OrgId = example.OrgId,
                ProjectId = example.Id,
                Value = range.Value,
            }));
        }
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.Setting;
    import com.pulumi.harness.platform.SettingArgs;
    import com.pulumi.harness.platform.Project;
    import com.pulumi.harness.platform.ProjectArgs;
    import com.pulumi.codegen.internal.KeyedValue;
    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) {
            // Account level setting
            var account = new Setting("account", SettingArgs.builder()
                .identifier("enforce_git_experience")
                .value("true")
                .allowOverrides(true)
                .build());
    
            // Organization level setting that projects cannot override
            var org = new Setting("org", SettingArgs.builder()
                .identifier("git_experience_repo_allowlist")
                .orgId("org_id")
                .value("my-org/allowed-repo")
                .allowOverrides(false)
                .build());
    
            // Project level settings, configured when the project is created
            var example = new Project("example", ProjectArgs.builder()
                .identifier("example")
                .name("example")
                .orgId("org_id")
                .build());
    
            final var defaultSettings = Map.ofEntries(
                Map.entry("defaultConnectorForGitExperience", "account.gitlab_connector"),
                Map.entry("defaultRepoForGitExperience", "my-org/my-repo")
            );
    
            for (var range : KeyedValue.of(defaultSettings)) {
                new Setting("project-" + range.key(), SettingArgs.builder()
                    .identifier(range.key())
                    .orgId(example.orgId())
                    .projectId(example.id())
                    .value(range.value())
                    .build());
            }
    
        }
    }
    
    resources:
      # Account level setting
      account:
        type: harness:platform:Setting
        properties:
          identifier: enforce_git_experience
          value: 'true'
          allowOverrides: true
      # Organization level setting that projects cannot override
      org:
        type: harness:platform:Setting
        properties:
          identifier: git_experience_repo_allowlist
          orgId: org_id
          value: my-org/allowed-repo
          allowOverrides: false
      # Project level settings, configured when the project is created
      example:
        type: harness:platform:Project
        properties:
          identifier: example
          name: example
          orgId: org_id
      project:
        type: harness:platform:Setting
        properties:
          identifier: ${range.key}
          orgId: ${example.orgId}
          projectId: ${example.id}
          value: ${range.value}
        options: {}
    variables:
      defaultSettings:
        defaultConnectorForGitExperience: account.gitlab_connector
        defaultRepoForGitExperience: my-org/my-repo
    
    terraform {
      required_providers {
        harness = {
          source = "pulumi/harness"
        }
      }
    }
    
    # Account level setting
    resource "harness_platform_setting" "account" {
      lifecycle {
        create_before_destroy = true
      }
      identifier      = "enforce_git_experience"
      value           = "true"
      allow_overrides = true
    }
    # Organization level setting that projects cannot override
    resource "harness_platform_setting" "org" {
      lifecycle {
        create_before_destroy = true
      }
      identifier      = "git_experience_repo_allowlist"
      org_id          = "org_id"
      value           = "my-org/allowed-repo"
      allow_overrides = false
    }
    # Project level settings, configured when the project is created
    resource "harness_platform_project" "example" {
      lifecycle {
        create_before_destroy = true
      }
      identifier = "example"
      name       = "example"
      org_id     = "org_id"
    }
    resource "harness_platform_setting" "project" {
      for_each = local.defaultSettings
      pulumi {
        name ="project-${each.key}"
      }
      lifecycle {
        create_before_destroy = true
      }
      identifier = each.key
      org_id     = harness_platform_project.example.org_id
      project_id = harness_platform_project.example.id
      value      = each.value
    }
    locals {
      defaultSettings = {
        "defaultConnectorForGitExperience" = "account.gitlab_connector"
        "defaultRepoForGitExperience"      = "my-org/my-repo"
      }
    }
    

    Create Setting Resource

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

    Constructor syntax

    new Setting(name: string, args: SettingArgs, opts?: CustomResourceOptions);
    @overload
    def Setting(resource_name: str,
                args: SettingArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Setting(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                identifier: Optional[str] = None,
                value: Optional[str] = None,
                allow_overrides: Optional[bool] = None,
                org_id: Optional[str] = None,
                project_id: Optional[str] = None)
    func NewSetting(ctx *Context, name string, args SettingArgs, opts ...ResourceOption) (*Setting, error)
    public Setting(string name, SettingArgs args, CustomResourceOptions? opts = null)
    public Setting(String name, SettingArgs args)
    public Setting(String name, SettingArgs args, CustomResourceOptions options)
    
    type: harness:platform:Setting
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "harness_platform_setting" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SettingArgs
    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 SettingArgs
    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 SettingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SettingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SettingArgs
    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 settingResource = new Harness.Platform.Setting("settingResource", new()
    {
        Identifier = "string",
        Value = "string",
        AllowOverrides = false,
        OrgId = "string",
        ProjectId = "string",
    });
    
    example, err := platform.NewSetting(ctx, "settingResource", &platform.SettingArgs{
    	Identifier:     pulumi.String("string"),
    	Value:          pulumi.String("string"),
    	AllowOverrides: pulumi.Bool(false),
    	OrgId:          pulumi.String("string"),
    	ProjectId:      pulumi.String("string"),
    })
    
    resource "harness_platform_setting" "settingResource" {
      lifecycle {
        create_before_destroy = true
      }
      identifier      = "string"
      value           = "string"
      allow_overrides = false
      org_id          = "string"
      project_id      = "string"
    }
    
    var settingResource = new Setting("settingResource", SettingArgs.builder()
        .identifier("string")
        .value("string")
        .allowOverrides(false)
        .orgId("string")
        .projectId("string")
        .build());
    
    setting_resource = harness.platform.Setting("settingResource",
        identifier="string",
        value="string",
        allow_overrides=False,
        org_id="string",
        project_id="string")
    
    const settingResource = new harness.platform.Setting("settingResource", {
        identifier: "string",
        value: "string",
        allowOverrides: false,
        orgId: "string",
        projectId: "string",
    });
    
    type: harness:platform:Setting
    properties:
        allowOverrides: false
        identifier: string
        orgId: string
        projectId: string
        value: string
    

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

    Identifier string
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    Value string
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    AllowOverrides bool
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    OrgId string
    Unique identifier of the organization. Omit to manage the setting at account scope.
    ProjectId string
    Unique identifier of the project. Omit to manage the setting at account or organization scope.
    Identifier string
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    Value string
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    AllowOverrides bool
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    OrgId string
    Unique identifier of the organization. Omit to manage the setting at account scope.
    ProjectId string
    Unique identifier of the project. Omit to manage the setting at account or organization scope.
    identifier string
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    value string
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    allow_overrides bool
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    org_id string
    Unique identifier of the organization. Omit to manage the setting at account scope.
    project_id string
    Unique identifier of the project. Omit to manage the setting at account or organization scope.
    identifier String
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    value String
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    allowOverrides Boolean
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    orgId String
    Unique identifier of the organization. Omit to manage the setting at account scope.
    projectId String
    Unique identifier of the project. Omit to manage the setting at account or organization scope.
    identifier string
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    value string
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    allowOverrides boolean
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    orgId string
    Unique identifier of the organization. Omit to manage the setting at account scope.
    projectId string
    Unique identifier of the project. Omit to manage the setting at account or organization scope.
    identifier str
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    value str
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    allow_overrides bool
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    org_id str
    Unique identifier of the organization. Omit to manage the setting at account scope.
    project_id str
    Unique identifier of the project. Omit to manage the setting at account or organization scope.
    identifier String
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    value String
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    allowOverrides Boolean
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    orgId String
    Unique identifier of the organization. Omit to manage the setting at account scope.
    projectId String
    Unique identifier of the project. Omit to manage the setting at account or organization scope.

    Outputs

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

    AllowedValues List<string>
    Allowed values of the setting, if restricted.
    Category string
    Category of the setting, e.g. GIT_EXPERIENCE.
    GroupIdentifier string
    Group identifier of the setting.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedAt int
    Last modification timestamp of the setting.
    Name string
    Display name of the setting.
    ValueType string
    Type of the setting value: String, Boolean or Number.
    AllowedValues []string
    Allowed values of the setting, if restricted.
    Category string
    Category of the setting, e.g. GIT_EXPERIENCE.
    GroupIdentifier string
    Group identifier of the setting.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedAt int
    Last modification timestamp of the setting.
    Name string
    Display name of the setting.
    ValueType string
    Type of the setting value: String, Boolean or Number.
    allowed_values list(string)
    Allowed values of the setting, if restricted.
    category string
    Category of the setting, e.g. GIT_EXPERIENCE.
    group_identifier string
    Group identifier of the setting.
    id string
    The provider-assigned unique ID for this managed resource.
    last_modified_at number
    Last modification timestamp of the setting.
    name string
    Display name of the setting.
    value_type string
    Type of the setting value: String, Boolean or Number.
    allowedValues List<String>
    Allowed values of the setting, if restricted.
    category String
    Category of the setting, e.g. GIT_EXPERIENCE.
    groupIdentifier String
    Group identifier of the setting.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedAt Integer
    Last modification timestamp of the setting.
    name String
    Display name of the setting.
    valueType String
    Type of the setting value: String, Boolean or Number.
    allowedValues string[]
    Allowed values of the setting, if restricted.
    category string
    Category of the setting, e.g. GIT_EXPERIENCE.
    groupIdentifier string
    Group identifier of the setting.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifiedAt number
    Last modification timestamp of the setting.
    name string
    Display name of the setting.
    valueType string
    Type of the setting value: String, Boolean or Number.
    allowed_values Sequence[str]
    Allowed values of the setting, if restricted.
    category str
    Category of the setting, e.g. GIT_EXPERIENCE.
    group_identifier str
    Group identifier of the setting.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified_at int
    Last modification timestamp of the setting.
    name str
    Display name of the setting.
    value_type str
    Type of the setting value: String, Boolean or Number.
    allowedValues List<String>
    Allowed values of the setting, if restricted.
    category String
    Category of the setting, e.g. GIT_EXPERIENCE.
    groupIdentifier String
    Group identifier of the setting.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedAt Number
    Last modification timestamp of the setting.
    name String
    Display name of the setting.
    valueType String
    Type of the setting value: String, Boolean or Number.

    Look up Existing Setting Resource

    Get an existing Setting 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?: SettingState, opts?: CustomResourceOptions): Setting
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allow_overrides: Optional[bool] = None,
            allowed_values: Optional[Sequence[str]] = None,
            category: Optional[str] = None,
            group_identifier: Optional[str] = None,
            identifier: Optional[str] = None,
            last_modified_at: Optional[int] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            value: Optional[str] = None,
            value_type: Optional[str] = None) -> Setting
    func GetSetting(ctx *Context, name string, id IDInput, state *SettingState, opts ...ResourceOption) (*Setting, error)
    public static Setting Get(string name, Input<string> id, SettingState? state, CustomResourceOptions? opts = null)
    public static Setting get(String name, Output<String> id, SettingState state, CustomResourceOptions options)
    resources:  _:    type: harness:platform:Setting    get:      id: ${id}
    import {
      to = harness_platform_setting.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:
    AllowOverrides bool
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    AllowedValues List<string>
    Allowed values of the setting, if restricted.
    Category string
    Category of the setting, e.g. GIT_EXPERIENCE.
    GroupIdentifier string
    Group identifier of the setting.
    Identifier string
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    LastModifiedAt int
    Last modification timestamp of the setting.
    Name string
    Display name of the setting.
    OrgId string
    Unique identifier of the organization. Omit to manage the setting at account scope.
    ProjectId string
    Unique identifier of the project. Omit to manage the setting at account or organization scope.
    Value string
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    ValueType string
    Type of the setting value: String, Boolean or Number.
    AllowOverrides bool
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    AllowedValues []string
    Allowed values of the setting, if restricted.
    Category string
    Category of the setting, e.g. GIT_EXPERIENCE.
    GroupIdentifier string
    Group identifier of the setting.
    Identifier string
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    LastModifiedAt int
    Last modification timestamp of the setting.
    Name string
    Display name of the setting.
    OrgId string
    Unique identifier of the organization. Omit to manage the setting at account scope.
    ProjectId string
    Unique identifier of the project. Omit to manage the setting at account or organization scope.
    Value string
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    ValueType string
    Type of the setting value: String, Boolean or Number.
    allow_overrides bool
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    allowed_values list(string)
    Allowed values of the setting, if restricted.
    category string
    Category of the setting, e.g. GIT_EXPERIENCE.
    group_identifier string
    Group identifier of the setting.
    identifier string
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    last_modified_at number
    Last modification timestamp of the setting.
    name string
    Display name of the setting.
    org_id string
    Unique identifier of the organization. Omit to manage the setting at account scope.
    project_id string
    Unique identifier of the project. Omit to manage the setting at account or organization scope.
    value string
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    value_type string
    Type of the setting value: String, Boolean or Number.
    allowOverrides Boolean
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    allowedValues List<String>
    Allowed values of the setting, if restricted.
    category String
    Category of the setting, e.g. GIT_EXPERIENCE.
    groupIdentifier String
    Group identifier of the setting.
    identifier String
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    lastModifiedAt Integer
    Last modification timestamp of the setting.
    name String
    Display name of the setting.
    orgId String
    Unique identifier of the organization. Omit to manage the setting at account scope.
    projectId String
    Unique identifier of the project. Omit to manage the setting at account or organization scope.
    value String
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    valueType String
    Type of the setting value: String, Boolean or Number.
    allowOverrides boolean
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    allowedValues string[]
    Allowed values of the setting, if restricted.
    category string
    Category of the setting, e.g. GIT_EXPERIENCE.
    groupIdentifier string
    Group identifier of the setting.
    identifier string
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    lastModifiedAt number
    Last modification timestamp of the setting.
    name string
    Display name of the setting.
    orgId string
    Unique identifier of the organization. Omit to manage the setting at account scope.
    projectId string
    Unique identifier of the project. Omit to manage the setting at account or organization scope.
    value string
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    valueType string
    Type of the setting value: String, Boolean or Number.
    allow_overrides bool
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    allowed_values Sequence[str]
    Allowed values of the setting, if restricted.
    category str
    Category of the setting, e.g. GIT_EXPERIENCE.
    group_identifier str
    Group identifier of the setting.
    identifier str
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    last_modified_at int
    Last modification timestamp of the setting.
    name str
    Display name of the setting.
    org_id str
    Unique identifier of the organization. Omit to manage the setting at account scope.
    project_id str
    Unique identifier of the project. Omit to manage the setting at account or organization scope.
    value str
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    value_type str
    Type of the setting value: String, Boolean or Number.
    allowOverrides Boolean
    Whether child scopes can override this setting. Setting this to false removes existing overrides in child scopes.
    allowedValues List<String>
    Allowed values of the setting, if restricted.
    category String
    Category of the setting, e.g. GIT_EXPERIENCE.
    groupIdentifier String
    Group identifier of the setting.
    identifier String
    Identifier of the setting, e.g. defaultRepoForGitExperience.
    lastModifiedAt Number
    Last modification timestamp of the setting.
    name String
    Display name of the setting.
    orgId String
    Unique identifier of the organization. Omit to manage the setting at account scope.
    projectId String
    Unique identifier of the project. Omit to manage the setting at account or organization scope.
    value String
    Value of the setting. Boolean and number settings are passed as strings, e.g. "true" or "30".
    valueType String
    Type of the setting value: String, Boolean or Number.

    Import

    The pulumi import command can be used, for example:

    Import account level setting

    $ pulumi import harness:platform/setting:Setting example <setting_identifier>
    

    Import org level setting

    $ pulumi import harness:platform/setting:Setting example <org_id>/<setting_identifier>
    

    Import project level setting

    $ pulumi import harness:platform/setting:Setting example <org_id>/<project_id>/<setting_identifier>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.17.6
    published on Saturday, Oct 31, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial