published on Saturday, Jul 18, 2026 by Pulumi
published on Saturday, Jul 18, 2026 by Pulumi
Resource for managing workspace template associations in IaCM.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = new harness.platform.IacmWorkspaceTemplate("example", {
orgId: test.id,
projectId: testHarnessPlatformProject.id,
workspaceId: exampleHarnessPlatformWorkspace.identifier,
templateId: "my_template",
version: "v1.0.0",
});
import pulumi
import pulumi_harness as harness
example = harness.platform.IacmWorkspaceTemplate("example",
org_id=test["id"],
project_id=test_harness_platform_project["id"],
workspace_id=example_harness_platform_workspace["identifier"],
template_id="my_template",
version="v1.0.0")
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.NewIacmWorkspaceTemplate(ctx, "example", &platform.IacmWorkspaceTemplateArgs{
OrgId: pulumi.Any(test.Id),
ProjectId: pulumi.Any(testHarnessPlatformProject.Id),
WorkspaceId: pulumi.Any(exampleHarnessPlatformWorkspace.Identifier),
TemplateId: pulumi.String("my_template"),
Version: pulumi.String("v1.0.0"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var example = new Harness.Platform.IacmWorkspaceTemplate("example", new()
{
OrgId = test.Id,
ProjectId = testHarnessPlatformProject.Id,
WorkspaceId = exampleHarnessPlatformWorkspace.Identifier,
TemplateId = "my_template",
Version = "v1.0.0",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.IacmWorkspaceTemplate;
import com.pulumi.harness.platform.IacmWorkspaceTemplateArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new IacmWorkspaceTemplate("example", IacmWorkspaceTemplateArgs.builder()
.orgId(test.id())
.projectId(testHarnessPlatformProject.id())
.workspaceId(exampleHarnessPlatformWorkspace.identifier())
.templateId("my_template")
.version("v1.0.0")
.build());
}
}
resources:
example:
type: harness:platform:IacmWorkspaceTemplate
properties:
orgId: ${test.id}
projectId: ${testHarnessPlatformProject.id}
workspaceId: ${exampleHarnessPlatformWorkspace.identifier}
templateId: my_template
version: v1.0.0
pulumi {
required_providers {
harness = {
source = "pulumi/harness"
}
}
}
resource "harness_platform_iacmworkspacetemplate" "example" {
org_id = test.id
project_id = testHarnessPlatformProject.id
workspace_id = exampleHarnessPlatformWorkspace.identifier
template_id = "my_template"
version = "v1.0.0"
}
Create IacmWorkspaceTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IacmWorkspaceTemplate(name: string, args: IacmWorkspaceTemplateArgs, opts?: CustomResourceOptions);@overload
def IacmWorkspaceTemplate(resource_name: str,
args: IacmWorkspaceTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IacmWorkspaceTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
template_id: Optional[str] = None,
version: Optional[str] = None,
workspace_id: Optional[str] = None)func NewIacmWorkspaceTemplate(ctx *Context, name string, args IacmWorkspaceTemplateArgs, opts ...ResourceOption) (*IacmWorkspaceTemplate, error)public IacmWorkspaceTemplate(string name, IacmWorkspaceTemplateArgs args, CustomResourceOptions? opts = null)
public IacmWorkspaceTemplate(String name, IacmWorkspaceTemplateArgs args)
public IacmWorkspaceTemplate(String name, IacmWorkspaceTemplateArgs args, CustomResourceOptions options)
type: harness:platform:IacmWorkspaceTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "harness_platform_iacm_workspace_template" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args IacmWorkspaceTemplateArgs
- 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 IacmWorkspaceTemplateArgs
- 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 IacmWorkspaceTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IacmWorkspaceTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IacmWorkspaceTemplateArgs
- 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 iacmWorkspaceTemplateResource = new Harness.Platform.IacmWorkspaceTemplate("iacmWorkspaceTemplateResource", new()
{
OrgId = "string",
ProjectId = "string",
TemplateId = "string",
Version = "string",
WorkspaceId = "string",
});
example, err := platform.NewIacmWorkspaceTemplate(ctx, "iacmWorkspaceTemplateResource", &platform.IacmWorkspaceTemplateArgs{
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TemplateId: pulumi.String("string"),
Version: pulumi.String("string"),
WorkspaceId: pulumi.String("string"),
})
resource "harness_platform_iacm_workspace_template" "iacmWorkspaceTemplateResource" {
lifecycle {
create_before_destroy = true
}
org_id = "string"
project_id = "string"
template_id = "string"
version = "string"
workspace_id = "string"
}
var iacmWorkspaceTemplateResource = new IacmWorkspaceTemplate("iacmWorkspaceTemplateResource", IacmWorkspaceTemplateArgs.builder()
.orgId("string")
.projectId("string")
.templateId("string")
.version("string")
.workspaceId("string")
.build());
iacm_workspace_template_resource = harness.platform.IacmWorkspaceTemplate("iacmWorkspaceTemplateResource",
org_id="string",
project_id="string",
template_id="string",
version="string",
workspace_id="string")
const iacmWorkspaceTemplateResource = new harness.platform.IacmWorkspaceTemplate("iacmWorkspaceTemplateResource", {
orgId: "string",
projectId: "string",
templateId: "string",
version: "string",
workspaceId: "string",
});
type: harness:platform:IacmWorkspaceTemplate
properties:
orgId: string
projectId: string
templateId: string
version: string
workspaceId: string
IacmWorkspaceTemplate 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 IacmWorkspaceTemplate resource accepts the following input properties:
- Org
Id string - Organization identifier.
- Project
Id string - Project identifier.
- Template
Id string - Template identifier to associate with the workspace.
- Version string
- Template version.
- Workspace
Id string - Workspace identifier to associate the template with.
- Org
Id string - Organization identifier.
- Project
Id string - Project identifier.
- Template
Id string - Template identifier to associate with the workspace.
- Version string
- Template version.
- Workspace
Id string - Workspace identifier to associate the template with.
- org_
id string - Organization identifier.
- project_
id string - Project identifier.
- template_
id string - Template identifier to associate with the workspace.
- version string
- Template version.
- workspace_
id string - Workspace identifier to associate the template with.
- org
Id String - Organization identifier.
- project
Id String - Project identifier.
- template
Id String - Template identifier to associate with the workspace.
- version String
- Template version.
- workspace
Id String - Workspace identifier to associate the template with.
- org
Id string - Organization identifier.
- project
Id string - Project identifier.
- template
Id string - Template identifier to associate with the workspace.
- version string
- Template version.
- workspace
Id string - Workspace identifier to associate the template with.
- org_
id str - Organization identifier.
- project_
id str - Project identifier.
- template_
id str - Template identifier to associate with the workspace.
- version str
- Template version.
- workspace_
id str - Workspace identifier to associate the template with.
- org
Id String - Organization identifier.
- project
Id String - Project identifier.
- template
Id String - Template identifier to associate with the workspace.
- version String
- Template version.
- workspace
Id String - Workspace identifier to associate the template with.
Outputs
All input properties are implicitly available as output properties. Additionally, the IacmWorkspaceTemplate resource produces the following output properties:
- created_
at number - Timestamp when the association was created.
- id string
- The provider-assigned unique ID for this managed resource.
- updated_
at number - Timestamp when the association was last updated.
- created_
at int - Timestamp when the association was created.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at int - Timestamp when the association was last updated.
Look up Existing IacmWorkspaceTemplate Resource
Get an existing IacmWorkspaceTemplate 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?: IacmWorkspaceTemplateState, opts?: CustomResourceOptions): IacmWorkspaceTemplate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[int] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
template_id: Optional[str] = None,
updated_at: Optional[int] = None,
version: Optional[str] = None,
workspace_id: Optional[str] = None) -> IacmWorkspaceTemplatefunc GetIacmWorkspaceTemplate(ctx *Context, name string, id IDInput, state *IacmWorkspaceTemplateState, opts ...ResourceOption) (*IacmWorkspaceTemplate, error)public static IacmWorkspaceTemplate Get(string name, Input<string> id, IacmWorkspaceTemplateState? state, CustomResourceOptions? opts = null)public static IacmWorkspaceTemplate get(String name, Output<String> id, IacmWorkspaceTemplateState state, CustomResourceOptions options)resources: _: type: harness:platform:IacmWorkspaceTemplate get: id: ${id}import {
to = harness_platform_iacm_workspace_template.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.
- Created
At int - Timestamp when the association was created.
- Org
Id string - Organization identifier.
- Project
Id string - Project identifier.
- Template
Id string - Template identifier to associate with the workspace.
- Updated
At int - Timestamp when the association was last updated.
- Version string
- Template version.
- Workspace
Id string - Workspace identifier to associate the template with.
- Created
At int - Timestamp when the association was created.
- Org
Id string - Organization identifier.
- Project
Id string - Project identifier.
- Template
Id string - Template identifier to associate with the workspace.
- Updated
At int - Timestamp when the association was last updated.
- Version string
- Template version.
- Workspace
Id string - Workspace identifier to associate the template with.
- created_
at number - Timestamp when the association was created.
- org_
id string - Organization identifier.
- project_
id string - Project identifier.
- template_
id string - Template identifier to associate with the workspace.
- updated_
at number - Timestamp when the association was last updated.
- version string
- Template version.
- workspace_
id string - Workspace identifier to associate the template with.
- created
At Integer - Timestamp when the association was created.
- org
Id String - Organization identifier.
- project
Id String - Project identifier.
- template
Id String - Template identifier to associate with the workspace.
- updated
At Integer - Timestamp when the association was last updated.
- version String
- Template version.
- workspace
Id String - Workspace identifier to associate the template with.
- created
At number - Timestamp when the association was created.
- org
Id string - Organization identifier.
- project
Id string - Project identifier.
- template
Id string - Template identifier to associate with the workspace.
- updated
At number - Timestamp when the association was last updated.
- version string
- Template version.
- workspace
Id string - Workspace identifier to associate the template with.
- created_
at int - Timestamp when the association was created.
- org_
id str - Organization identifier.
- project_
id str - Project identifier.
- template_
id str - Template identifier to associate with the workspace.
- updated_
at int - Timestamp when the association was last updated.
- version str
- Template version.
- workspace_
id str - Workspace identifier to associate the template with.
- created
At Number - Timestamp when the association was created.
- org
Id String - Organization identifier.
- project
Id String - Project identifier.
- template
Id String - Template identifier to associate with the workspace.
- updated
At Number - Timestamp when the association was last updated.
- version String
- Template version.
- workspace
Id String - Workspace identifier to associate the template with.
Import
The pulumi import command can be used, for example:
$ pulumi import harness:platform/iacmWorkspaceTemplate:IacmWorkspaceTemplate example <org_id>/<project_id>/<template_id>/<workspace_id>
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
harnessTerraform Provider.
published on Saturday, Jul 18, 2026 by Pulumi