1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getWorkspaceOutputValue
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

harness.platform.getWorkspaceOutputValue

Explore with Pulumi AI

harness logo
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:platform/getWorkspaceOutputValue:getWorkspaceOutputValue
      arguments:
        # arguments dictionary

    The 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<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 string
    Name associated with the output.
    Sensitive bool
    Indicates if the output is sensitive.
    Value string
    Value of the output.
    Name string
    Name associated with the output.
    Sensitive bool
    Indicates if the output is sensitive.
    Value string
    Value of the output.
    name String
    Name associated with the output.
    sensitive Boolean
    Indicates if the output is sensitive.
    value String
    Value of the output.
    name string
    Name associated with the output.
    sensitive boolean
    Indicates if the output is sensitive.
    value string
    Value of the output.
    name str
    Name associated with the output.
    sensitive bool
    Indicates if the output is sensitive.
    value str
    Value of the output.
    name String
    Name associated with the output.
    sensitive Boolean
    Indicates if the output is sensitive.
    value 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.
    harness logo
    Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi