1. Packages
  2. Packages
  3. Harness Provider
  4. API Docs
  5. fme
  6. Workspace
Viewing docs for Harness v0.13.1
published on Thursday, May 28, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.13.1
published on Thursday, May 28, 2026 by Pulumi

    Look up a Harness FME (Split) workspace by exact workspace name, or by Harness organization and project identifiers. Specify either name or both orgId and projectId (not both).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    // By Harness organization and project identifiers (matches harness_platform_* conventions).
    const byProject = harness.fme.Workspace({
        orgId: "organization_id",
        projectId: "project_id",
    });
    // By exact Split workspace name.
    const byName = harness.fme.Workspace({
        name: "my-workspace-name",
    });
    
    import pulumi
    import pulumi_harness as harness
    
    # By Harness organization and project identifiers (matches harness_platform_* conventions).
    by_project = harness.fme.workspace(org_id="organization_id",
        project_id="project_id")
    # By exact Split workspace name.
    by_name = harness.fme.workspace(name="my-workspace-name")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/fme"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// By Harness organization and project identifiers (matches harness_platform_* conventions).
    		_, err := fme.Workspace(ctx, &fme.WorkspaceArgs{
    			OrgId:     pulumi.StringRef("organization_id"),
    			ProjectId: pulumi.StringRef("project_id"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// By exact Split workspace name.
    		_, err = fme.Workspace(ctx, &fme.WorkspaceArgs{
    			Name: pulumi.StringRef("my-workspace-name"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        // By Harness organization and project identifiers (matches harness_platform_* conventions).
        var byProject = Harness.Fme.Workspace.Invoke(new()
        {
            OrgId = "organization_id",
            ProjectId = "project_id",
        });
    
        // By exact Split workspace name.
        var byName = Harness.Fme.Workspace.Invoke(new()
        {
            Name = "my-workspace-name",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.fme.FmeFunctions;
    import com.pulumi.harness.fme.inputs.WorkspaceArgs;
    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) {
            // By Harness organization and project identifiers (matches harness_platform_* conventions).
            final var byProject = FmeFunctions.Workspace(WorkspaceArgs.builder()
                .orgId("organization_id")
                .projectId("project_id")
                .build());
    
            // By exact Split workspace name.
            final var byName = FmeFunctions.Workspace(WorkspaceArgs.builder()
                .name("my-workspace-name")
                .build());
    
        }
    }
    
    variables:
      # By Harness organization and project identifiers (matches harness_platform_* conventions).
      byProject:
        fn::invoke:
          function: harness:fme:Workspace
          arguments:
            orgId: organization_id
            projectId: project_id
      # By exact Split workspace name.
      byName:
        fn::invoke:
          function: harness:fme:Workspace
          arguments:
            name: my-workspace-name
    
    pulumi {
      required_providers {
        harness = {
          source = "pulumi/harness"
        }
      }
    }
    
    data "harness_fme_workspace" "byProject" {
      org_id     = "organization_id"
      project_id = "project_id"
    }
    data "harness_fme_workspace" "byName" {
      name = "my-workspace-name"
    }
    
    # By Harness organization and project identifiers (matches harness_platform_* conventions).
    # By exact Split workspace name.
    

    Using Workspace

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function workspace(args: WorkspaceArgs, opts?: InvokeOptions): Promise<WorkspaceResult>
    function workspaceOutput(args: WorkspaceOutputArgs, opts?: InvokeOptions): Output<WorkspaceResult>
    def workspace(name: Optional[str] = None,
                  org_id: Optional[str] = None,
                  project_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> WorkspaceResult
    def workspace_output(name: pulumi.Input[Optional[str]] = None,
                  org_id: pulumi.Input[Optional[str]] = None,
                  project_id: pulumi.Input[Optional[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[WorkspaceResult]
    func Workspace(ctx *Context, args *WorkspaceArgs, opts ...InvokeOption) (*WorkspaceResult, error)
    func WorkspaceOutput(ctx *Context, args *WorkspaceOutputArgs, opts ...InvokeOption) WorkspaceResultOutput
    public static class Workspace 
    {
        public static Task<WorkspaceResult> InvokeAsync(WorkspaceArgs args, InvokeOptions? opts = null)
        public static Output<WorkspaceResult> Invoke(WorkspaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<WorkspaceResult> workspace(WorkspaceArgs args, InvokeOptions options)
    public static Output<WorkspaceResult> workspace(WorkspaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: harness:fme:Workspace
      arguments:
        # arguments dictionary
    data "harness_fme_workspace" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    OrgId string
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    ProjectId string
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.
    Name string
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    OrgId string
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    ProjectId string
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.
    name string
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    org_id string
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    project_id string
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.
    name String
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    orgId String
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    projectId String
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.
    name string
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    orgId string
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    projectId string
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.
    name str
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    org_id str
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    project_id str
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.
    name String
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    orgId String
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    projectId String
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.

    Workspace Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    OrgId string
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    ProjectId string
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.
    RequiresTitleAndComments bool
    Whether the workspace requires title and comments (Split API).
    Type string
    Workspace type from the Split API.
    WorkspaceId string
    The FME (Split) workspace ID (same as id).
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    OrgId string
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    ProjectId string
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.
    RequiresTitleAndComments bool
    Whether the workspace requires title and comments (Split API).
    Type string
    Workspace type from the Split API.
    WorkspaceId string
    The FME (Split) workspace ID (same as id).
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    org_id string
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    project_id string
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.
    requires_title_and_comments bool
    Whether the workspace requires title and comments (Split API).
    type string
    Workspace type from the Split API.
    workspace_id string
    The FME (Split) workspace ID (same as id).
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    orgId String
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    projectId String
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.
    requiresTitleAndComments Boolean
    Whether the workspace requires title and comments (Split API).
    type String
    Workspace type from the Split API.
    workspaceId String
    The FME (Split) workspace ID (same as id).
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    orgId string
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    projectId string
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.
    requiresTitleAndComments boolean
    Whether the workspace requires title and comments (Split API).
    type string
    Workspace type from the Split API.
    workspaceId string
    The FME (Split) workspace ID (same as id).
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    org_id str
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    project_id str
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.
    requires_title_and_comments bool
    Whether the workspace requires title and comments (Split API).
    type str
    Workspace type from the Split API.
    workspace_id str
    The FME (Split) workspace ID (same as id).
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Exact Split workspace name. Conflicts with orgId and projectId. Also populated from the API after read.
    orgId String
    Harness organization identifier. Must be set together with projectId when not using name. Also populated from the API after read.
    projectId String
    Harness project identifier. Must be set together with orgId when not using name. Also populated from the API after read.
    requiresTitleAndComments Boolean
    Whether the workspace requires title and comments (Split API).
    type String
    Workspace type from the Split API.
    workspaceId String
    The FME (Split) workspace ID (same as id).

    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.13.1
    published on Thursday, May 28, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial