Harness v0.7.2 published on Tuesday, Apr 15, 2025 by Pulumi
harness.platform.getWorkspaceOutputValue
Explore with Pulumi AI
Data source for retrieving workspace outputs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const test = harness.platform.getWorkspaceOutputValue({
    identifier: "identifier",
    orgId: "org_id",
    projectId: "project_id",
});
import pulumi
import pulumi_harness as harness
test = harness.platform.get_workspace_output_value(identifier="identifier",
    org_id="org_id",
    project_id="project_id")
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.GetWorkspaceOutputValue(ctx, &platform.GetWorkspaceOutputValueArgs{
			Identifier: "identifier",
			OrgId:      "org_id",
			ProjectId:  "project_id",
		}, 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(() => 
{
    var test = Harness.Platform.GetWorkspaceOutputValue.Invoke(new()
    {
        Identifier = "identifier",
        OrgId = "org_id",
        ProjectId = "project_id",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetWorkspaceOutputValueArgs;
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) {
        final var test = PlatformFunctions.getWorkspaceOutputValue(GetWorkspaceOutputValueArgs.builder()
            .identifier("identifier")
            .orgId("org_id")
            .projectId("project_id")
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: harness:platform:getWorkspaceOutputValue
      arguments:
        identifier: identifier
        orgId: org_id
        projectId: project_id
Using getWorkspaceOutputValue
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 getWorkspaceOutputValue(args: GetWorkspaceOutputValueArgs, opts?: InvokeOptions): Promise<GetWorkspaceOutputValueResult>
function getWorkspaceOutputValueOutput(args: GetWorkspaceOutputValueOutputArgs, opts?: InvokeOptions): Output<GetWorkspaceOutputValueResult>def get_workspace_output_value(identifier: Optional[str] = None,
                               org_id: Optional[str] = None,
                               project_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetWorkspaceOutputValueResult
def get_workspace_output_value_output(identifier: Optional[pulumi.Input[str]] = None,
                               org_id: Optional[pulumi.Input[str]] = None,
                               project_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetWorkspaceOutputValueResult]func GetWorkspaceOutputValue(ctx *Context, args *GetWorkspaceOutputValueArgs, opts ...InvokeOption) (*GetWorkspaceOutputValueResult, error)
func GetWorkspaceOutputValueOutput(ctx *Context, args *GetWorkspaceOutputValueOutputArgs, opts ...InvokeOption) GetWorkspaceOutputValueResultOutput> Note: This function is named GetWorkspaceOutputValue in the Go SDK.
public static class GetWorkspaceOutputValue 
{
    public static Task<GetWorkspaceOutputValueResult> InvokeAsync(GetWorkspaceOutputValueArgs args, InvokeOptions? opts = null)
    public static Output<GetWorkspaceOutputValueResult> Invoke(GetWorkspaceOutputValueInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWorkspaceOutputValueResult> getWorkspaceOutputValue(GetWorkspaceOutputValueArgs args, InvokeOptions options)
public static Output<GetWorkspaceOutputValueResult> getWorkspaceOutputValue(GetWorkspaceOutputValueArgs args, InvokeOptions options)
fn::invoke:
  function: harness:platform/getWorkspaceOutputValue:getWorkspaceOutputValue
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Identifier string
- Identifier of the Workspace.
- OrgId string
- Organization identifier of the organization the workspace resides in.
- ProjectId string
- Project identifier of the project the workspace resides in.
- Identifier string
- Identifier of the Workspace.
- OrgId string
- Organization identifier of the organization the workspace resides in.
- ProjectId string
- Project identifier of the project the workspace resides in.
- identifier String
- Identifier of the Workspace.
- orgId String
- Organization identifier of the organization the workspace resides in.
- projectId String
- Project identifier of the project the workspace resides in.
- identifier string
- Identifier of the Workspace.
- orgId string
- Organization identifier of the organization the workspace resides in.
- projectId string
- Project identifier of the project the workspace resides in.
- identifier str
- Identifier of the Workspace.
- org_id str
- Organization identifier of the organization the workspace resides in.
- project_id str
- Project identifier of the project the workspace resides in.
- identifier String
- Identifier of the Workspace.
- orgId String
- Organization identifier of the organization the workspace resides in.
- projectId String
- Project identifier of the project the workspace resides in.
getWorkspaceOutputValue Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Identifier of the Workspace.
- OrgId string
- Organization identifier of the organization the workspace resides in.
- OutputValues List<GetWorkspace Output Value Output Value> 
- ProjectId string
- Project identifier of the project the workspace resides in.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Identifier of the Workspace.
- OrgId string
- Organization identifier of the organization the workspace resides in.
- OutputValues []GetWorkspace Output Value Output Value 
- ProjectId string
- Project identifier of the project the workspace resides in.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Identifier of the Workspace.
- orgId String
- Organization identifier of the organization the workspace resides in.
- outputValues List<GetWorkspace Output Value Output Value> 
- projectId String
- Project identifier of the project the workspace resides in.
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Identifier of the Workspace.
- orgId string
- Organization identifier of the organization the workspace resides in.
- outputValues GetWorkspace Output Value Output Value[] 
- projectId string
- Project identifier of the project the workspace resides in.
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- Identifier of the Workspace.
- org_id str
- Organization identifier of the organization the workspace resides in.
- output_values Sequence[GetWorkspace Output Value Output Value] 
- project_id str
- Project identifier of the project the workspace resides in.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Identifier of the Workspace.
- orgId String
- Organization identifier of the organization the workspace resides in.
- outputValues List<Property Map>
- projectId String
- Project identifier of the project the workspace resides in.
Supporting Types
GetWorkspaceOutputValueOutputValue     
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the harnessTerraform Provider.
