Harness v0.3.2 published on Monday, Sep 16, 2024 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)
// 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.
- Org
Id string - Organization identifier of the organization the workspace resides in.
- Project
Id string - Project identifier of the project the workspace resides in.
- Identifier string
- Identifier of the Workspace.
- Org
Id string - Organization identifier of the organization the workspace resides in.
- Project
Id string - Project identifier of the project the workspace resides in.
- identifier String
- Identifier of the Workspace.
- org
Id String - Organization identifier of the organization the workspace resides in.
- project
Id String - Project identifier of the project the workspace resides in.
- identifier string
- Identifier of the Workspace.
- org
Id string - Organization identifier of the organization the workspace resides in.
- project
Id 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.
- org
Id String - Organization identifier of the organization the workspace resides in.
- project
Id 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.
- Org
Id string - Organization identifier of the organization the workspace resides in.
- Output
Values List<GetWorkspace Output Value Output Value> - Project
Id 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.
- Org
Id string - Organization identifier of the organization the workspace resides in.
- Output
Values []GetWorkspace Output Value Output Value - Project
Id 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.
- org
Id String - Organization identifier of the organization the workspace resides in.
- output
Values List<GetWorkspace Output Value Output Value> - project
Id 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.
- org
Id string - Organization identifier of the organization the workspace resides in.
- output
Values GetWorkspace Output Value Output Value[] - project
Id 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.
- org
Id String - Organization identifier of the organization the workspace resides in.
- output
Values List<Property Map> - project
Id 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
harness
Terraform Provider.