1. Packages
  2. Packages
  3. Harness Provider
  4. API Docs
  5. platform
  6. IacmWorkspaceTemplate
Viewing docs for Harness v0.15.0
published on Saturday, Jul 11, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.15.0
published on Saturday, Jul 11, 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_iacmworkspacetemplate" "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_iacmworkspacetemplate" "iacmWorkspaceTemplateResource" {
      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:

    OrgId string
    Organization identifier.
    ProjectId string
    Project identifier.
    TemplateId string
    Template identifier to associate with the workspace.
    Version string
    Template version.
    WorkspaceId string
    Workspace identifier to associate the template with.
    OrgId string
    Organization identifier.
    ProjectId string
    Project identifier.
    TemplateId string
    Template identifier to associate with the workspace.
    Version string
    Template version.
    WorkspaceId 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.
    orgId String
    Organization identifier.
    projectId String
    Project identifier.
    templateId String
    Template identifier to associate with the workspace.
    version String
    Template version.
    workspaceId String
    Workspace identifier to associate the template with.
    orgId string
    Organization identifier.
    projectId string
    Project identifier.
    templateId string
    Template identifier to associate with the workspace.
    version string
    Template version.
    workspaceId 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.
    orgId String
    Organization identifier.
    projectId String
    Project identifier.
    templateId String
    Template identifier to associate with the workspace.
    version String
    Template version.
    workspaceId 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:

    CreatedAt int
    Timestamp when the association was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt int
    Timestamp when the association was last updated.
    CreatedAt int
    Timestamp when the association was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt int
    Timestamp when the association was last updated.
    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.
    createdAt Integer
    Timestamp when the association was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt Integer
    Timestamp when the association was last updated.
    createdAt number
    Timestamp when the association was created.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt 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.
    createdAt Number
    Timestamp when the association was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt Number
    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) -> IacmWorkspaceTemplate
    func 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_iacmworkspacetemplate.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:
    CreatedAt int
    Timestamp when the association was created.
    OrgId string
    Organization identifier.
    ProjectId string
    Project identifier.
    TemplateId string
    Template identifier to associate with the workspace.
    UpdatedAt int
    Timestamp when the association was last updated.
    Version string
    Template version.
    WorkspaceId string
    Workspace identifier to associate the template with.
    CreatedAt int
    Timestamp when the association was created.
    OrgId string
    Organization identifier.
    ProjectId string
    Project identifier.
    TemplateId string
    Template identifier to associate with the workspace.
    UpdatedAt int
    Timestamp when the association was last updated.
    Version string
    Template version.
    WorkspaceId 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.
    createdAt Integer
    Timestamp when the association was created.
    orgId String
    Organization identifier.
    projectId String
    Project identifier.
    templateId String
    Template identifier to associate with the workspace.
    updatedAt Integer
    Timestamp when the association was last updated.
    version String
    Template version.
    workspaceId String
    Workspace identifier to associate the template with.
    createdAt number
    Timestamp when the association was created.
    orgId string
    Organization identifier.
    projectId string
    Project identifier.
    templateId string
    Template identifier to associate with the workspace.
    updatedAt number
    Timestamp when the association was last updated.
    version string
    Template version.
    workspaceId 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.
    createdAt Number
    Timestamp when the association was created.
    orgId String
    Organization identifier.
    projectId String
    Project identifier.
    templateId String
    Template identifier to associate with the workspace.
    updatedAt Number
    Timestamp when the association was last updated.
    version String
    Template version.
    workspaceId 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 harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.15.0
    published on Saturday, Jul 11, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial