1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. Workspace
Harness v0.7.0 published on Friday, Mar 28, 2025 by Pulumi

harness.platform.Workspace

Explore with Pulumi AI

Resource for managing Workspaces

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";

const example = new harness.platform.Workspace("example", {
    name: "example",
    identifier: "example",
    orgId: testHarnessPlatformOrganization.id,
    projectId: testHarnessPlatformProject.id,
    provisionerType: "terraform",
    provisionerVersion: "1.5.6",
    repository: "https://github.com/org/repo",
    repositoryBranch: "main",
    repositoryPath: "tf/aws/basic",
    costEstimationEnabled: true,
    providerConnector: test.id,
    repositoryConnector: test.id,
    terraformVariables: [
        {
            key: "key1",
            value: "val1",
            valueType: "string",
        },
        {
            key: "key2",
            value: "val2",
            valueType: "string",
        },
    ],
    environmentVariables: [
        {
            key: "key1",
            value: "val1",
            valueType: "string",
        },
        {
            key: "key2",
            value: "val2",
            valueType: "string",
        },
    ],
    terraformVariableFiles: [
        {
            repository: "https://github.com/org/repo",
            repositoryBranch: "main",
            repositoryPath: "tf/gcp/basic",
            repositoryConnector: test.id,
        },
        {
            repository: "https://github.com/org/repo",
            repositoryCommit: "v1.0.0",
            repositoryPath: "tf/aws/basic",
            repositoryConnector: test.id,
        },
        {
            repository: "https://github.com/org/repo",
            repositorySha: "349d90bb9c90f4a3482981c259080de31609e6f6",
            repositoryPath: "tf/aws/basic",
            repositoryConnector: test.id,
        },
    ],
    variableSets: [testHarnessPlatformInfraVariableSet.id],
});
Copy
import pulumi
import pulumi_harness as harness

example = harness.platform.Workspace("example",
    name="example",
    identifier="example",
    org_id=test_harness_platform_organization["id"],
    project_id=test_harness_platform_project["id"],
    provisioner_type="terraform",
    provisioner_version="1.5.6",
    repository="https://github.com/org/repo",
    repository_branch="main",
    repository_path="tf/aws/basic",
    cost_estimation_enabled=True,
    provider_connector=test["id"],
    repository_connector=test["id"],
    terraform_variables=[
        {
            "key": "key1",
            "value": "val1",
            "value_type": "string",
        },
        {
            "key": "key2",
            "value": "val2",
            "value_type": "string",
        },
    ],
    environment_variables=[
        {
            "key": "key1",
            "value": "val1",
            "value_type": "string",
        },
        {
            "key": "key2",
            "value": "val2",
            "value_type": "string",
        },
    ],
    terraform_variable_files=[
        {
            "repository": "https://github.com/org/repo",
            "repository_branch": "main",
            "repository_path": "tf/gcp/basic",
            "repository_connector": test["id"],
        },
        {
            "repository": "https://github.com/org/repo",
            "repository_commit": "v1.0.0",
            "repository_path": "tf/aws/basic",
            "repository_connector": test["id"],
        },
        {
            "repository": "https://github.com/org/repo",
            "repository_sha": "349d90bb9c90f4a3482981c259080de31609e6f6",
            "repository_path": "tf/aws/basic",
            "repository_connector": test["id"],
        },
    ],
    variable_sets=[test_harness_platform_infra_variable_set["id"]])
Copy
package main

import (
	"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 {
		_, err := platform.NewWorkspace(ctx, "example", &platform.WorkspaceArgs{
			Name:                  pulumi.String("example"),
			Identifier:            pulumi.String("example"),
			OrgId:                 pulumi.Any(testHarnessPlatformOrganization.Id),
			ProjectId:             pulumi.Any(testHarnessPlatformProject.Id),
			ProvisionerType:       pulumi.String("terraform"),
			ProvisionerVersion:    pulumi.String("1.5.6"),
			Repository:            pulumi.String("https://github.com/org/repo"),
			RepositoryBranch:      pulumi.String("main"),
			RepositoryPath:        pulumi.String("tf/aws/basic"),
			CostEstimationEnabled: pulumi.Bool(true),
			ProviderConnector:     pulumi.Any(test.Id),
			RepositoryConnector:   pulumi.Any(test.Id),
			TerraformVariables: platform.WorkspaceTerraformVariableArray{
				&platform.WorkspaceTerraformVariableArgs{
					Key:       pulumi.String("key1"),
					Value:     pulumi.String("val1"),
					ValueType: pulumi.String("string"),
				},
				&platform.WorkspaceTerraformVariableArgs{
					Key:       pulumi.String("key2"),
					Value:     pulumi.String("val2"),
					ValueType: pulumi.String("string"),
				},
			},
			EnvironmentVariables: platform.WorkspaceEnvironmentVariableArray{
				&platform.WorkspaceEnvironmentVariableArgs{
					Key:       pulumi.String("key1"),
					Value:     pulumi.String("val1"),
					ValueType: pulumi.String("string"),
				},
				&platform.WorkspaceEnvironmentVariableArgs{
					Key:       pulumi.String("key2"),
					Value:     pulumi.String("val2"),
					ValueType: pulumi.String("string"),
				},
			},
			TerraformVariableFiles: platform.WorkspaceTerraformVariableFileArray{
				&platform.WorkspaceTerraformVariableFileArgs{
					Repository:          pulumi.String("https://github.com/org/repo"),
					RepositoryBranch:    pulumi.String("main"),
					RepositoryPath:      pulumi.String("tf/gcp/basic"),
					RepositoryConnector: pulumi.Any(test.Id),
				},
				&platform.WorkspaceTerraformVariableFileArgs{
					Repository:          pulumi.String("https://github.com/org/repo"),
					RepositoryCommit:    pulumi.String("v1.0.0"),
					RepositoryPath:      pulumi.String("tf/aws/basic"),
					RepositoryConnector: pulumi.Any(test.Id),
				},
				&platform.WorkspaceTerraformVariableFileArgs{
					Repository:          pulumi.String("https://github.com/org/repo"),
					RepositorySha:       pulumi.String("349d90bb9c90f4a3482981c259080de31609e6f6"),
					RepositoryPath:      pulumi.String("tf/aws/basic"),
					RepositoryConnector: pulumi.Any(test.Id),
				},
			},
			VariableSets: pulumi.StringArray{
				testHarnessPlatformInfraVariableSet.Id,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;

return await Deployment.RunAsync(() => 
{
    var example = new Harness.Platform.Workspace("example", new()
    {
        Name = "example",
        Identifier = "example",
        OrgId = testHarnessPlatformOrganization.Id,
        ProjectId = testHarnessPlatformProject.Id,
        ProvisionerType = "terraform",
        ProvisionerVersion = "1.5.6",
        Repository = "https://github.com/org/repo",
        RepositoryBranch = "main",
        RepositoryPath = "tf/aws/basic",
        CostEstimationEnabled = true,
        ProviderConnector = test.Id,
        RepositoryConnector = test.Id,
        TerraformVariables = new[]
        {
            new Harness.Platform.Inputs.WorkspaceTerraformVariableArgs
            {
                Key = "key1",
                Value = "val1",
                ValueType = "string",
            },
            new Harness.Platform.Inputs.WorkspaceTerraformVariableArgs
            {
                Key = "key2",
                Value = "val2",
                ValueType = "string",
            },
        },
        EnvironmentVariables = new[]
        {
            new Harness.Platform.Inputs.WorkspaceEnvironmentVariableArgs
            {
                Key = "key1",
                Value = "val1",
                ValueType = "string",
            },
            new Harness.Platform.Inputs.WorkspaceEnvironmentVariableArgs
            {
                Key = "key2",
                Value = "val2",
                ValueType = "string",
            },
        },
        TerraformVariableFiles = new[]
        {
            new Harness.Platform.Inputs.WorkspaceTerraformVariableFileArgs
            {
                Repository = "https://github.com/org/repo",
                RepositoryBranch = "main",
                RepositoryPath = "tf/gcp/basic",
                RepositoryConnector = test.Id,
            },
            new Harness.Platform.Inputs.WorkspaceTerraformVariableFileArgs
            {
                Repository = "https://github.com/org/repo",
                RepositoryCommit = "v1.0.0",
                RepositoryPath = "tf/aws/basic",
                RepositoryConnector = test.Id,
            },
            new Harness.Platform.Inputs.WorkspaceTerraformVariableFileArgs
            {
                Repository = "https://github.com/org/repo",
                RepositorySha = "349d90bb9c90f4a3482981c259080de31609e6f6",
                RepositoryPath = "tf/aws/basic",
                RepositoryConnector = test.Id,
            },
        },
        VariableSets = new[]
        {
            testHarnessPlatformInfraVariableSet.Id,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.Workspace;
import com.pulumi.harness.platform.WorkspaceArgs;
import com.pulumi.harness.platform.inputs.WorkspaceTerraformVariableArgs;
import com.pulumi.harness.platform.inputs.WorkspaceEnvironmentVariableArgs;
import com.pulumi.harness.platform.inputs.WorkspaceTerraformVariableFileArgs;
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 example = new Workspace("example", WorkspaceArgs.builder()
            .name("example")
            .identifier("example")
            .orgId(testHarnessPlatformOrganization.id())
            .projectId(testHarnessPlatformProject.id())
            .provisionerType("terraform")
            .provisionerVersion("1.5.6")
            .repository("https://github.com/org/repo")
            .repositoryBranch("main")
            .repositoryPath("tf/aws/basic")
            .costEstimationEnabled(true)
            .providerConnector(test.id())
            .repositoryConnector(test.id())
            .terraformVariables(            
                WorkspaceTerraformVariableArgs.builder()
                    .key("key1")
                    .value("val1")
                    .valueType("string")
                    .build(),
                WorkspaceTerraformVariableArgs.builder()
                    .key("key2")
                    .value("val2")
                    .valueType("string")
                    .build())
            .environmentVariables(            
                WorkspaceEnvironmentVariableArgs.builder()
                    .key("key1")
                    .value("val1")
                    .valueType("string")
                    .build(),
                WorkspaceEnvironmentVariableArgs.builder()
                    .key("key2")
                    .value("val2")
                    .valueType("string")
                    .build())
            .terraformVariableFiles(            
                WorkspaceTerraformVariableFileArgs.builder()
                    .repository("https://github.com/org/repo")
                    .repositoryBranch("main")
                    .repositoryPath("tf/gcp/basic")
                    .repositoryConnector(test.id())
                    .build(),
                WorkspaceTerraformVariableFileArgs.builder()
                    .repository("https://github.com/org/repo")
                    .repositoryCommit("v1.0.0")
                    .repositoryPath("tf/aws/basic")
                    .repositoryConnector(test.id())
                    .build(),
                WorkspaceTerraformVariableFileArgs.builder()
                    .repository("https://github.com/org/repo")
                    .repositorySha("349d90bb9c90f4a3482981c259080de31609e6f6")
                    .repositoryPath("tf/aws/basic")
                    .repositoryConnector(test.id())
                    .build())
            .variableSets(testHarnessPlatformInfraVariableSet.id())
            .build());

    }
}
Copy
resources:
  example:
    type: harness:platform:Workspace
    properties:
      name: example
      identifier: example
      orgId: ${testHarnessPlatformOrganization.id}
      projectId: ${testHarnessPlatformProject.id}
      provisionerType: terraform
      provisionerVersion: 1.5.6
      repository: https://github.com/org/repo
      repositoryBranch: main
      repositoryPath: tf/aws/basic
      costEstimationEnabled: true
      providerConnector: ${test.id}
      repositoryConnector: ${test.id}
      terraformVariables:
        - key: key1
          value: val1
          valueType: string
        - key: key2
          value: val2
          valueType: string
      environmentVariables:
        - key: key1
          value: val1
          valueType: string
        - key: key2
          value: val2
          valueType: string
      terraformVariableFiles:
        - repository: https://github.com/org/repo
          repositoryBranch: main
          repositoryPath: tf/gcp/basic
          repositoryConnector: ${test.id}
        - repository: https://github.com/org/repo
          repositoryCommit: v1.0.0
          repositoryPath: tf/aws/basic
          repositoryConnector: ${test.id}
        - repository: https://github.com/org/repo
          repositorySha: 349d90bb9c90f4a3482981c259080de31609e6f6
          repositoryPath: tf/aws/basic
          repositoryConnector: ${test.id}
      variableSets:
        - ${testHarnessPlatformInfraVariableSet.id}
Copy

Create Workspace Resource

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

Constructor syntax

new Workspace(name: string, args: WorkspaceArgs, opts?: CustomResourceOptions);
@overload
def Workspace(resource_name: str,
              args: WorkspaceArgs,
              opts: Optional[ResourceOptions] = None)

@overload
def Workspace(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              repository_path: Optional[str] = None,
              identifier: Optional[str] = None,
              provisioner_version: Optional[str] = None,
              cost_estimation_enabled: Optional[bool] = None,
              repository: Optional[str] = None,
              repository_connector: Optional[str] = None,
              org_id: Optional[str] = None,
              project_id: Optional[str] = None,
              provider_connector: Optional[str] = None,
              provisioner_type: Optional[str] = None,
              description: Optional[str] = None,
              default_pipelines: Optional[Mapping[str, str]] = None,
              environment_variables: Optional[Sequence[WorkspaceEnvironmentVariableArgs]] = None,
              repository_commit: Optional[str] = None,
              name: Optional[str] = None,
              repository_branch: Optional[str] = None,
              repository_sha: Optional[str] = None,
              tags: Optional[Sequence[str]] = None,
              terraform_variable_files: Optional[Sequence[WorkspaceTerraformVariableFileArgs]] = None,
              terraform_variables: Optional[Sequence[WorkspaceTerraformVariableArgs]] = None,
              variable_sets: Optional[Sequence[str]] = None)
func NewWorkspace(ctx *Context, name string, args WorkspaceArgs, opts ...ResourceOption) (*Workspace, error)
public Workspace(string name, WorkspaceArgs args, CustomResourceOptions? opts = null)
public Workspace(String name, WorkspaceArgs args)
public Workspace(String name, WorkspaceArgs args, CustomResourceOptions options)
type: harness:platform:Workspace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WorkspaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WorkspaceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WorkspaceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WorkspaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WorkspaceArgs
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 workspaceResource = new Harness.Platform.Workspace("workspaceResource", new()
{
    RepositoryPath = "string",
    Identifier = "string",
    ProvisionerVersion = "string",
    CostEstimationEnabled = false,
    Repository = "string",
    RepositoryConnector = "string",
    OrgId = "string",
    ProjectId = "string",
    ProviderConnector = "string",
    ProvisionerType = "string",
    Description = "string",
    DefaultPipelines = 
    {
        { "string", "string" },
    },
    EnvironmentVariables = new[]
    {
        new Harness.Platform.Inputs.WorkspaceEnvironmentVariableArgs
        {
            Key = "string",
            Value = "string",
            ValueType = "string",
        },
    },
    RepositoryCommit = "string",
    Name = "string",
    RepositoryBranch = "string",
    RepositorySha = "string",
    Tags = new[]
    {
        "string",
    },
    TerraformVariableFiles = new[]
    {
        new Harness.Platform.Inputs.WorkspaceTerraformVariableFileArgs
        {
            Repository = "string",
            RepositoryConnector = "string",
            RepositoryBranch = "string",
            RepositoryCommit = "string",
            RepositoryPath = "string",
            RepositorySha = "string",
        },
    },
    TerraformVariables = new[]
    {
        new Harness.Platform.Inputs.WorkspaceTerraformVariableArgs
        {
            Key = "string",
            Value = "string",
            ValueType = "string",
        },
    },
    VariableSets = new[]
    {
        "string",
    },
});
Copy
example, err := platform.NewWorkspace(ctx, "workspaceResource", &platform.WorkspaceArgs{
	RepositoryPath:        pulumi.String("string"),
	Identifier:            pulumi.String("string"),
	ProvisionerVersion:    pulumi.String("string"),
	CostEstimationEnabled: pulumi.Bool(false),
	Repository:            pulumi.String("string"),
	RepositoryConnector:   pulumi.String("string"),
	OrgId:                 pulumi.String("string"),
	ProjectId:             pulumi.String("string"),
	ProviderConnector:     pulumi.String("string"),
	ProvisionerType:       pulumi.String("string"),
	Description:           pulumi.String("string"),
	DefaultPipelines: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	EnvironmentVariables: platform.WorkspaceEnvironmentVariableArray{
		&platform.WorkspaceEnvironmentVariableArgs{
			Key:       pulumi.String("string"),
			Value:     pulumi.String("string"),
			ValueType: pulumi.String("string"),
		},
	},
	RepositoryCommit: pulumi.String("string"),
	Name:             pulumi.String("string"),
	RepositoryBranch: pulumi.String("string"),
	RepositorySha:    pulumi.String("string"),
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
	TerraformVariableFiles: platform.WorkspaceTerraformVariableFileArray{
		&platform.WorkspaceTerraformVariableFileArgs{
			Repository:          pulumi.String("string"),
			RepositoryConnector: pulumi.String("string"),
			RepositoryBranch:    pulumi.String("string"),
			RepositoryCommit:    pulumi.String("string"),
			RepositoryPath:      pulumi.String("string"),
			RepositorySha:       pulumi.String("string"),
		},
	},
	TerraformVariables: platform.WorkspaceTerraformVariableArray{
		&platform.WorkspaceTerraformVariableArgs{
			Key:       pulumi.String("string"),
			Value:     pulumi.String("string"),
			ValueType: pulumi.String("string"),
		},
	},
	VariableSets: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var workspaceResource = new Workspace("workspaceResource", WorkspaceArgs.builder()
    .repositoryPath("string")
    .identifier("string")
    .provisionerVersion("string")
    .costEstimationEnabled(false)
    .repository("string")
    .repositoryConnector("string")
    .orgId("string")
    .projectId("string")
    .providerConnector("string")
    .provisionerType("string")
    .description("string")
    .defaultPipelines(Map.of("string", "string"))
    .environmentVariables(WorkspaceEnvironmentVariableArgs.builder()
        .key("string")
        .value("string")
        .valueType("string")
        .build())
    .repositoryCommit("string")
    .name("string")
    .repositoryBranch("string")
    .repositorySha("string")
    .tags("string")
    .terraformVariableFiles(WorkspaceTerraformVariableFileArgs.builder()
        .repository("string")
        .repositoryConnector("string")
        .repositoryBranch("string")
        .repositoryCommit("string")
        .repositoryPath("string")
        .repositorySha("string")
        .build())
    .terraformVariables(WorkspaceTerraformVariableArgs.builder()
        .key("string")
        .value("string")
        .valueType("string")
        .build())
    .variableSets("string")
    .build());
Copy
workspace_resource = harness.platform.Workspace("workspaceResource",
    repository_path="string",
    identifier="string",
    provisioner_version="string",
    cost_estimation_enabled=False,
    repository="string",
    repository_connector="string",
    org_id="string",
    project_id="string",
    provider_connector="string",
    provisioner_type="string",
    description="string",
    default_pipelines={
        "string": "string",
    },
    environment_variables=[{
        "key": "string",
        "value": "string",
        "value_type": "string",
    }],
    repository_commit="string",
    name="string",
    repository_branch="string",
    repository_sha="string",
    tags=["string"],
    terraform_variable_files=[{
        "repository": "string",
        "repository_connector": "string",
        "repository_branch": "string",
        "repository_commit": "string",
        "repository_path": "string",
        "repository_sha": "string",
    }],
    terraform_variables=[{
        "key": "string",
        "value": "string",
        "value_type": "string",
    }],
    variable_sets=["string"])
Copy
const workspaceResource = new harness.platform.Workspace("workspaceResource", {
    repositoryPath: "string",
    identifier: "string",
    provisionerVersion: "string",
    costEstimationEnabled: false,
    repository: "string",
    repositoryConnector: "string",
    orgId: "string",
    projectId: "string",
    providerConnector: "string",
    provisionerType: "string",
    description: "string",
    defaultPipelines: {
        string: "string",
    },
    environmentVariables: [{
        key: "string",
        value: "string",
        valueType: "string",
    }],
    repositoryCommit: "string",
    name: "string",
    repositoryBranch: "string",
    repositorySha: "string",
    tags: ["string"],
    terraformVariableFiles: [{
        repository: "string",
        repositoryConnector: "string",
        repositoryBranch: "string",
        repositoryCommit: "string",
        repositoryPath: "string",
        repositorySha: "string",
    }],
    terraformVariables: [{
        key: "string",
        value: "string",
        valueType: "string",
    }],
    variableSets: ["string"],
});
Copy
type: harness:platform:Workspace
properties:
    costEstimationEnabled: false
    defaultPipelines:
        string: string
    description: string
    environmentVariables:
        - key: string
          value: string
          valueType: string
    identifier: string
    name: string
    orgId: string
    projectId: string
    providerConnector: string
    provisionerType: string
    provisionerVersion: string
    repository: string
    repositoryBranch: string
    repositoryCommit: string
    repositoryConnector: string
    repositoryPath: string
    repositorySha: string
    tags:
        - string
    terraformVariableFiles:
        - repository: string
          repositoryBranch: string
          repositoryCommit: string
          repositoryConnector: string
          repositoryPath: string
          repositorySha: string
    terraformVariables:
        - key: string
          value: string
          valueType: string
    variableSets:
        - string
Copy

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

CostEstimationEnabled This property is required. bool
Cost estimation enabled determines if cost estimation operations are performed.
Identifier
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the resource.
OrgId
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the organization.
ProjectId
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the project.
ProviderConnector This property is required. string
Provider connector is the reference to the connector for the infrastructure provider
ProvisionerType This property is required. string
ProvisionerVersion This property is required. string
Repository This property is required. string
Repository is the name of the repository to fetch the code from.
RepositoryConnector This property is required. string
Repository connector is the reference to the connector used to fetch the code.
RepositoryPath This property is required. string
Repository path is the path in which the code resides.
DefaultPipelines Dictionary<string, string>
Default pipelines associated with this workspace
Description string
Description of the resource.
EnvironmentVariables List<WorkspaceEnvironmentVariable>
Environment variables configured on the workspace
Name string
Name of the resource.
RepositoryBranch string
Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
RepositoryCommit string
Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
RepositorySha string
Repository commit is sha to fetch the code from. This cannot be set if repository branch or commit is set.
Tags List<string>
Tags to associate with the resource.
TerraformVariableFiles List<WorkspaceTerraformVariableFile>
TerraformVariables List<WorkspaceTerraformVariable>
VariableSets List<string>
Variable set identifiers. Currently support only one variable set.
CostEstimationEnabled This property is required. bool
Cost estimation enabled determines if cost estimation operations are performed.
Identifier
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the resource.
OrgId
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the organization.
ProjectId
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the project.
ProviderConnector This property is required. string
Provider connector is the reference to the connector for the infrastructure provider
ProvisionerType This property is required. string
ProvisionerVersion This property is required. string
Repository This property is required. string
Repository is the name of the repository to fetch the code from.
RepositoryConnector This property is required. string
Repository connector is the reference to the connector used to fetch the code.
RepositoryPath This property is required. string
Repository path is the path in which the code resides.
DefaultPipelines map[string]string
Default pipelines associated with this workspace
Description string
Description of the resource.
EnvironmentVariables []WorkspaceEnvironmentVariableArgs
Environment variables configured on the workspace
Name string
Name of the resource.
RepositoryBranch string
Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
RepositoryCommit string
Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
RepositorySha string
Repository commit is sha to fetch the code from. This cannot be set if repository branch or commit is set.
Tags []string
Tags to associate with the resource.
TerraformVariableFiles []WorkspaceTerraformVariableFileArgs
TerraformVariables []WorkspaceTerraformVariableArgs
VariableSets []string
Variable set identifiers. Currently support only one variable set.
costEstimationEnabled This property is required. Boolean
Cost estimation enabled determines if cost estimation operations are performed.
identifier
This property is required.
Changes to this property will trigger replacement.
String
Unique identifier of the resource.
orgId
This property is required.
Changes to this property will trigger replacement.
String
Unique identifier of the organization.
projectId
This property is required.
Changes to this property will trigger replacement.
String
Unique identifier of the project.
providerConnector This property is required. String
Provider connector is the reference to the connector for the infrastructure provider
provisionerType This property is required. String
provisionerVersion This property is required. String
repository This property is required. String
Repository is the name of the repository to fetch the code from.
repositoryConnector This property is required. String
Repository connector is the reference to the connector used to fetch the code.
repositoryPath This property is required. String
Repository path is the path in which the code resides.
defaultPipelines Map<String,String>
Default pipelines associated with this workspace
description String
Description of the resource.
environmentVariables List<WorkspaceEnvironmentVariable>
Environment variables configured on the workspace
name String
Name of the resource.
repositoryBranch String
Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
repositoryCommit String
Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
repositorySha String
Repository commit is sha to fetch the code from. This cannot be set if repository branch or commit is set.
tags List<String>
Tags to associate with the resource.
terraformVariableFiles List<WorkspaceTerraformVariableFile>
terraformVariables List<WorkspaceTerraformVariable>
variableSets List<String>
Variable set identifiers. Currently support only one variable set.
costEstimationEnabled This property is required. boolean
Cost estimation enabled determines if cost estimation operations are performed.
identifier
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the resource.
orgId
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the organization.
projectId
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the project.
providerConnector This property is required. string
Provider connector is the reference to the connector for the infrastructure provider
provisionerType This property is required. string
provisionerVersion This property is required. string
repository This property is required. string
Repository is the name of the repository to fetch the code from.
repositoryConnector This property is required. string
Repository connector is the reference to the connector used to fetch the code.
repositoryPath This property is required. string
Repository path is the path in which the code resides.
defaultPipelines {[key: string]: string}
Default pipelines associated with this workspace
description string
Description of the resource.
environmentVariables WorkspaceEnvironmentVariable[]
Environment variables configured on the workspace
name string
Name of the resource.
repositoryBranch string
Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
repositoryCommit string
Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
repositorySha string
Repository commit is sha to fetch the code from. This cannot be set if repository branch or commit is set.
tags string[]
Tags to associate with the resource.
terraformVariableFiles WorkspaceTerraformVariableFile[]
terraformVariables WorkspaceTerraformVariable[]
variableSets string[]
Variable set identifiers. Currently support only one variable set.
cost_estimation_enabled This property is required. bool
Cost estimation enabled determines if cost estimation operations are performed.
identifier
This property is required.
Changes to this property will trigger replacement.
str
Unique identifier of the resource.
org_id
This property is required.
Changes to this property will trigger replacement.
str
Unique identifier of the organization.
project_id
This property is required.
Changes to this property will trigger replacement.
str
Unique identifier of the project.
provider_connector This property is required. str
Provider connector is the reference to the connector for the infrastructure provider
provisioner_type This property is required. str
provisioner_version This property is required. str
repository This property is required. str
Repository is the name of the repository to fetch the code from.
repository_connector This property is required. str
Repository connector is the reference to the connector used to fetch the code.
repository_path This property is required. str
Repository path is the path in which the code resides.
default_pipelines Mapping[str, str]
Default pipelines associated with this workspace
description str
Description of the resource.
environment_variables Sequence[WorkspaceEnvironmentVariableArgs]
Environment variables configured on the workspace
name str
Name of the resource.
repository_branch str
Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
repository_commit str
Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
repository_sha str
Repository commit is sha to fetch the code from. This cannot be set if repository branch or commit is set.
tags Sequence[str]
Tags to associate with the resource.
terraform_variable_files Sequence[WorkspaceTerraformVariableFileArgs]
terraform_variables Sequence[WorkspaceTerraformVariableArgs]
variable_sets Sequence[str]
Variable set identifiers. Currently support only one variable set.
costEstimationEnabled This property is required. Boolean
Cost estimation enabled determines if cost estimation operations are performed.
identifier
This property is required.
Changes to this property will trigger replacement.
String
Unique identifier of the resource.
orgId
This property is required.
Changes to this property will trigger replacement.
String
Unique identifier of the organization.
projectId
This property is required.
Changes to this property will trigger replacement.
String
Unique identifier of the project.
providerConnector This property is required. String
Provider connector is the reference to the connector for the infrastructure provider
provisionerType This property is required. String
provisionerVersion This property is required. String
repository This property is required. String
Repository is the name of the repository to fetch the code from.
repositoryConnector This property is required. String
Repository connector is the reference to the connector used to fetch the code.
repositoryPath This property is required. String
Repository path is the path in which the code resides.
defaultPipelines Map<String>
Default pipelines associated with this workspace
description String
Description of the resource.
environmentVariables List<Property Map>
Environment variables configured on the workspace
name String
Name of the resource.
repositoryBranch String
Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
repositoryCommit String
Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
repositorySha String
Repository commit is sha to fetch the code from. This cannot be set if repository branch or commit is set.
tags List<String>
Tags to associate with the resource.
terraformVariableFiles List<Property Map>
terraformVariables List<Property Map>
variableSets List<String>
Variable set identifiers. Currently support only one variable set.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Workspace Resource

Get an existing Workspace 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?: WorkspaceState, opts?: CustomResourceOptions): Workspace
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cost_estimation_enabled: Optional[bool] = None,
        default_pipelines: Optional[Mapping[str, str]] = None,
        description: Optional[str] = None,
        environment_variables: Optional[Sequence[WorkspaceEnvironmentVariableArgs]] = None,
        identifier: Optional[str] = None,
        name: Optional[str] = None,
        org_id: Optional[str] = None,
        project_id: Optional[str] = None,
        provider_connector: Optional[str] = None,
        provisioner_type: Optional[str] = None,
        provisioner_version: Optional[str] = None,
        repository: Optional[str] = None,
        repository_branch: Optional[str] = None,
        repository_commit: Optional[str] = None,
        repository_connector: Optional[str] = None,
        repository_path: Optional[str] = None,
        repository_sha: Optional[str] = None,
        tags: Optional[Sequence[str]] = None,
        terraform_variable_files: Optional[Sequence[WorkspaceTerraformVariableFileArgs]] = None,
        terraform_variables: Optional[Sequence[WorkspaceTerraformVariableArgs]] = None,
        variable_sets: Optional[Sequence[str]] = None) -> Workspace
func GetWorkspace(ctx *Context, name string, id IDInput, state *WorkspaceState, opts ...ResourceOption) (*Workspace, error)
public static Workspace Get(string name, Input<string> id, WorkspaceState? state, CustomResourceOptions? opts = null)
public static Workspace get(String name, Output<String> id, WorkspaceState state, CustomResourceOptions options)
resources:  _:    type: harness:platform:Workspace    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CostEstimationEnabled bool
Cost estimation enabled determines if cost estimation operations are performed.
DefaultPipelines Dictionary<string, string>
Default pipelines associated with this workspace
Description string
Description of the resource.
EnvironmentVariables List<WorkspaceEnvironmentVariable>
Environment variables configured on the workspace
Identifier Changes to this property will trigger replacement. string
Unique identifier of the resource.
Name string
Name of the resource.
OrgId Changes to this property will trigger replacement. string
Unique identifier of the organization.
ProjectId Changes to this property will trigger replacement. string
Unique identifier of the project.
ProviderConnector string
Provider connector is the reference to the connector for the infrastructure provider
ProvisionerType string
ProvisionerVersion string
Repository string
Repository is the name of the repository to fetch the code from.
RepositoryBranch string
Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
RepositoryCommit string
Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
RepositoryConnector string
Repository connector is the reference to the connector used to fetch the code.
RepositoryPath string
Repository path is the path in which the code resides.
RepositorySha string
Repository commit is sha to fetch the code from. This cannot be set if repository branch or commit is set.
Tags List<string>
Tags to associate with the resource.
TerraformVariableFiles List<WorkspaceTerraformVariableFile>
TerraformVariables List<WorkspaceTerraformVariable>
VariableSets List<string>
Variable set identifiers. Currently support only one variable set.
CostEstimationEnabled bool
Cost estimation enabled determines if cost estimation operations are performed.
DefaultPipelines map[string]string
Default pipelines associated with this workspace
Description string
Description of the resource.
EnvironmentVariables []WorkspaceEnvironmentVariableArgs
Environment variables configured on the workspace
Identifier Changes to this property will trigger replacement. string
Unique identifier of the resource.
Name string
Name of the resource.
OrgId Changes to this property will trigger replacement. string
Unique identifier of the organization.
ProjectId Changes to this property will trigger replacement. string
Unique identifier of the project.
ProviderConnector string
Provider connector is the reference to the connector for the infrastructure provider
ProvisionerType string
ProvisionerVersion string
Repository string
Repository is the name of the repository to fetch the code from.
RepositoryBranch string
Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
RepositoryCommit string
Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
RepositoryConnector string
Repository connector is the reference to the connector used to fetch the code.
RepositoryPath string
Repository path is the path in which the code resides.
RepositorySha string
Repository commit is sha to fetch the code from. This cannot be set if repository branch or commit is set.
Tags []string
Tags to associate with the resource.
TerraformVariableFiles []WorkspaceTerraformVariableFileArgs
TerraformVariables []WorkspaceTerraformVariableArgs
VariableSets []string
Variable set identifiers. Currently support only one variable set.
costEstimationEnabled Boolean
Cost estimation enabled determines if cost estimation operations are performed.
defaultPipelines Map<String,String>
Default pipelines associated with this workspace
description String
Description of the resource.
environmentVariables List<WorkspaceEnvironmentVariable>
Environment variables configured on the workspace
identifier Changes to this property will trigger replacement. String
Unique identifier of the resource.
name String
Name of the resource.
orgId Changes to this property will trigger replacement. String
Unique identifier of the organization.
projectId Changes to this property will trigger replacement. String
Unique identifier of the project.
providerConnector String
Provider connector is the reference to the connector for the infrastructure provider
provisionerType String
provisionerVersion String
repository String
Repository is the name of the repository to fetch the code from.
repositoryBranch String
Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
repositoryCommit String
Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
repositoryConnector String
Repository connector is the reference to the connector used to fetch the code.
repositoryPath String
Repository path is the path in which the code resides.
repositorySha String
Repository commit is sha to fetch the code from. This cannot be set if repository branch or commit is set.
tags List<String>
Tags to associate with the resource.
terraformVariableFiles List<WorkspaceTerraformVariableFile>
terraformVariables List<WorkspaceTerraformVariable>
variableSets List<String>
Variable set identifiers. Currently support only one variable set.
costEstimationEnabled boolean
Cost estimation enabled determines if cost estimation operations are performed.
defaultPipelines {[key: string]: string}
Default pipelines associated with this workspace
description string
Description of the resource.
environmentVariables WorkspaceEnvironmentVariable[]
Environment variables configured on the workspace
identifier Changes to this property will trigger replacement. string
Unique identifier of the resource.
name string
Name of the resource.
orgId Changes to this property will trigger replacement. string
Unique identifier of the organization.
projectId Changes to this property will trigger replacement. string
Unique identifier of the project.
providerConnector string
Provider connector is the reference to the connector for the infrastructure provider
provisionerType string
provisionerVersion string
repository string
Repository is the name of the repository to fetch the code from.
repositoryBranch string
Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
repositoryCommit string
Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
repositoryConnector string
Repository connector is the reference to the connector used to fetch the code.
repositoryPath string
Repository path is the path in which the code resides.
repositorySha string
Repository commit is sha to fetch the code from. This cannot be set if repository branch or commit is set.
tags string[]
Tags to associate with the resource.
terraformVariableFiles WorkspaceTerraformVariableFile[]
terraformVariables WorkspaceTerraformVariable[]
variableSets string[]
Variable set identifiers. Currently support only one variable set.
cost_estimation_enabled bool
Cost estimation enabled determines if cost estimation operations are performed.
default_pipelines Mapping[str, str]
Default pipelines associated with this workspace
description str
Description of the resource.
environment_variables Sequence[WorkspaceEnvironmentVariableArgs]
Environment variables configured on the workspace
identifier Changes to this property will trigger replacement. str
Unique identifier of the resource.
name str
Name of the resource.
org_id Changes to this property will trigger replacement. str
Unique identifier of the organization.
project_id Changes to this property will trigger replacement. str
Unique identifier of the project.
provider_connector str
Provider connector is the reference to the connector for the infrastructure provider
provisioner_type str
provisioner_version str
repository str
Repository is the name of the repository to fetch the code from.
repository_branch str
Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
repository_commit str
Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
repository_connector str
Repository connector is the reference to the connector used to fetch the code.
repository_path str
Repository path is the path in which the code resides.
repository_sha str
Repository commit is sha to fetch the code from. This cannot be set if repository branch or commit is set.
tags Sequence[str]
Tags to associate with the resource.
terraform_variable_files Sequence[WorkspaceTerraformVariableFileArgs]
terraform_variables Sequence[WorkspaceTerraformVariableArgs]
variable_sets Sequence[str]
Variable set identifiers. Currently support only one variable set.
costEstimationEnabled Boolean
Cost estimation enabled determines if cost estimation operations are performed.
defaultPipelines Map<String>
Default pipelines associated with this workspace
description String
Description of the resource.
environmentVariables List<Property Map>
Environment variables configured on the workspace
identifier Changes to this property will trigger replacement. String
Unique identifier of the resource.
name String
Name of the resource.
orgId Changes to this property will trigger replacement. String
Unique identifier of the organization.
projectId Changes to this property will trigger replacement. String
Unique identifier of the project.
providerConnector String
Provider connector is the reference to the connector for the infrastructure provider
provisionerType String
provisionerVersion String
repository String
Repository is the name of the repository to fetch the code from.
repositoryBranch String
Repository branch is the name of the branch to fetch the code from. This cannot be set if repository commit or sha is set.
repositoryCommit String
Repository commit is tag to fetch the code from. This cannot be set if repository branch or sha is set.
repositoryConnector String
Repository connector is the reference to the connector used to fetch the code.
repositoryPath String
Repository path is the path in which the code resides.
repositorySha String
Repository commit is sha to fetch the code from. This cannot be set if repository branch or commit is set.
tags List<String>
Tags to associate with the resource.
terraformVariableFiles List<Property Map>
terraformVariables List<Property Map>
variableSets List<String>
Variable set identifiers. Currently support only one variable set.

Supporting Types

WorkspaceEnvironmentVariable
, WorkspaceEnvironmentVariableArgs

Key This property is required. string
Key is the identifier for the variable. Must be unique within the workspace.
Value This property is required. string
Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
ValueType This property is required. string
Value type indicates the value type of the variable. Currently we support string and secret.
Key This property is required. string
Key is the identifier for the variable. Must be unique within the workspace.
Value This property is required. string
Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
ValueType This property is required. string
Value type indicates the value type of the variable. Currently we support string and secret.
key This property is required. String
Key is the identifier for the variable. Must be unique within the workspace.
value This property is required. String
Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
valueType This property is required. String
Value type indicates the value type of the variable. Currently we support string and secret.
key This property is required. string
Key is the identifier for the variable. Must be unique within the workspace.
value This property is required. string
Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
valueType This property is required. string
Value type indicates the value type of the variable. Currently we support string and secret.
key This property is required. str
Key is the identifier for the variable. Must be unique within the workspace.
value This property is required. str
Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
value_type This property is required. str
Value type indicates the value type of the variable. Currently we support string and secret.
key This property is required. String
Key is the identifier for the variable. Must be unique within the workspace.
value This property is required. String
Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
valueType This property is required. String
Value type indicates the value type of the variable. Currently we support string and secret.

WorkspaceTerraformVariable
, WorkspaceTerraformVariableArgs

Key This property is required. string
Key is the identifier for the variable. Must be unique within the workspace.
Value This property is required. string
Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
ValueType This property is required. string
Value type indicates the value type of the variable. Currently we support string and secret.
Key This property is required. string
Key is the identifier for the variable. Must be unique within the workspace.
Value This property is required. string
Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
ValueType This property is required. string
Value type indicates the value type of the variable. Currently we support string and secret.
key This property is required. String
Key is the identifier for the variable. Must be unique within the workspace.
value This property is required. String
Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
valueType This property is required. String
Value type indicates the value type of the variable. Currently we support string and secret.
key This property is required. string
Key is the identifier for the variable. Must be unique within the workspace.
value This property is required. string
Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
valueType This property is required. string
Value type indicates the value type of the variable. Currently we support string and secret.
key This property is required. str
Key is the identifier for the variable. Must be unique within the workspace.
value This property is required. str
Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
value_type This property is required. str
Value type indicates the value type of the variable. Currently we support string and secret.
key This property is required. String
Key is the identifier for the variable. Must be unique within the workspace.
value This property is required. String
Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
valueType This property is required. String
Value type indicates the value type of the variable. Currently we support string and secret.

WorkspaceTerraformVariableFile
, WorkspaceTerraformVariableFileArgs

Repository This property is required. string
Repository is the name of the repository to fetch the code from.
RepositoryConnector This property is required. string
Repository connector is the reference to the connector used to fetch the variables.
RepositoryBranch string
Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
RepositoryCommit string
Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
RepositoryPath string
Repository path is the path in which the variables reside.
RepositorySha string
Repository commit is sha to fetch the variables from. This cannot be set if repository branch or commit is set.
Repository This property is required. string
Repository is the name of the repository to fetch the code from.
RepositoryConnector This property is required. string
Repository connector is the reference to the connector used to fetch the variables.
RepositoryBranch string
Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
RepositoryCommit string
Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
RepositoryPath string
Repository path is the path in which the variables reside.
RepositorySha string
Repository commit is sha to fetch the variables from. This cannot be set if repository branch or commit is set.
repository This property is required. String
Repository is the name of the repository to fetch the code from.
repositoryConnector This property is required. String
Repository connector is the reference to the connector used to fetch the variables.
repositoryBranch String
Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
repositoryCommit String
Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
repositoryPath String
Repository path is the path in which the variables reside.
repositorySha String
Repository commit is sha to fetch the variables from. This cannot be set if repository branch or commit is set.
repository This property is required. string
Repository is the name of the repository to fetch the code from.
repositoryConnector This property is required. string
Repository connector is the reference to the connector used to fetch the variables.
repositoryBranch string
Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
repositoryCommit string
Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
repositoryPath string
Repository path is the path in which the variables reside.
repositorySha string
Repository commit is sha to fetch the variables from. This cannot be set if repository branch or commit is set.
repository This property is required. str
Repository is the name of the repository to fetch the code from.
repository_connector This property is required. str
Repository connector is the reference to the connector used to fetch the variables.
repository_branch str
Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
repository_commit str
Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
repository_path str
Repository path is the path in which the variables reside.
repository_sha str
Repository commit is sha to fetch the variables from. This cannot be set if repository branch or commit is set.
repository This property is required. String
Repository is the name of the repository to fetch the code from.
repositoryConnector This property is required. String
Repository connector is the reference to the connector used to fetch the variables.
repositoryBranch String
Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
repositoryCommit String
Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
repositoryPath String
Repository path is the path in which the variables reside.
repositorySha String
Repository commit is sha to fetch the variables from. This cannot be set if repository branch or commit is set.

Import

$ pulumi import harness:platform/workspace:Workspace example <org_id>/<project_id>/<slo_id>
Copy

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.