1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getWorkspaceOutputValue
Harness v0.6.0 published on Tuesday, Mar 25, 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",
});
Copy
import pulumi
import pulumi_harness as harness

test = harness.platform.get_workspace_output_value(identifier="identifier",
    org_id="org_id",
    project_id="project_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.GetWorkspaceOutputValue(ctx, &platform.GetWorkspaceOutputValueArgs{
			Identifier: "identifier",
			OrgId:      "org_id",
			ProjectId:  "project_id",
		}, nil)
		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 test = Harness.Platform.GetWorkspaceOutputValue.Invoke(new()
    {
        Identifier = "identifier",
        OrgId = "org_id",
        ProjectId = "project_id",
    });

});
Copy
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());

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: harness:platform:getWorkspaceOutputValue
      arguments:
        identifier: identifier
        orgId: org_id
        projectId: project_id
Copy

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>
Copy
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]
Copy
func GetWorkspaceOutputValue(ctx *Context, args *GetWorkspaceOutputValueArgs, opts ...InvokeOption) (*GetWorkspaceOutputValueResult, error)
func GetWorkspaceOutputValueOutput(ctx *Context, args *GetWorkspaceOutputValueOutputArgs, opts ...InvokeOption) GetWorkspaceOutputValueResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetWorkspaceOutputValueResult> getWorkspaceOutputValue(GetWorkspaceOutputValueArgs args, InvokeOptions options)
public static Output<GetWorkspaceOutputValueResult> getWorkspaceOutputValue(GetWorkspaceOutputValueArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:platform/getWorkspaceOutputValue:getWorkspaceOutputValue
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Identifier This property is required. string
Identifier of the Workspace.
OrgId This property is required. string
Organization identifier of the organization the workspace resides in.
ProjectId This property is required. string
Project identifier of the project the workspace resides in.
Identifier This property is required. string
Identifier of the Workspace.
OrgId This property is required. string
Organization identifier of the organization the workspace resides in.
ProjectId This property is required. string
Project identifier of the project the workspace resides in.
identifier This property is required. String
Identifier of the Workspace.
orgId This property is required. String
Organization identifier of the organization the workspace resides in.
projectId This property is required. String
Project identifier of the project the workspace resides in.
identifier This property is required. string
Identifier of the Workspace.
orgId This property is required. string
Organization identifier of the organization the workspace resides in.
projectId This property is required. string
Project identifier of the project the workspace resides in.
identifier This property is required. str
Identifier of the Workspace.
org_id This property is required. str
Organization identifier of the organization the workspace resides in.
project_id This property is required. str
Project identifier of the project the workspace resides in.
identifier This property is required. String
Identifier of the Workspace.
orgId This property is required. String
Organization identifier of the organization the workspace resides in.
projectId This property is required. 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<GetWorkspaceOutputValueOutputValue>
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 []GetWorkspaceOutputValueOutputValue
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<GetWorkspaceOutputValueOutputValue>
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 GetWorkspaceOutputValueOutputValue[]
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[GetWorkspaceOutputValueOutputValue]
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

Name This property is required. string
Name associated with the output.
Sensitive This property is required. bool
Indicates if the output is sensitive.
Value This property is required. string
Value of the output.
Name This property is required. string
Name associated with the output.
Sensitive This property is required. bool
Indicates if the output is sensitive.
Value This property is required. string
Value of the output.
name This property is required. String
Name associated with the output.
sensitive This property is required. Boolean
Indicates if the output is sensitive.
value This property is required. String
Value of the output.
name This property is required. string
Name associated with the output.
sensitive This property is required. boolean
Indicates if the output is sensitive.
value This property is required. string
Value of the output.
name This property is required. str
Name associated with the output.
sensitive This property is required. bool
Indicates if the output is sensitive.
value This property is required. str
Value of the output.
name This property is required. String
Name associated with the output.
sensitive This property is required. Boolean
Indicates if the output is sensitive.
value This property is required. String
Value of the output.

Package Details

Repository
harness pulumi/pulumi-harness
License
Apache-2.0
Notes
This Pulumi package is based on the harness Terraform Provider.