Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs
harness.platform.getEnvironmentClustersMapping
Explore with Pulumi AI
Data source for retrieving a Harness Cluster.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var example = Harness.Platform.GetEnvironmentClustersMapping.Invoke(new()
{
Identifier = "identifier",
OrgId = "org_id",
ProjectId = "project_id",
});
});
package main
import (
"github.com/lbrlabs/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.LookupEnvironmentClustersMapping(ctx, &platform.LookupEnvironmentClustersMappingArgs{
Identifier: "identifier",
OrgId: pulumi.StringRef("org_id"),
ProjectId: pulumi.StringRef("project_id"),
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetEnvironmentClustersMappingArgs;
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 example = PlatformFunctions.getEnvironmentClustersMapping(GetEnvironmentClustersMappingArgs.builder()
.identifier("identifier")
.orgId("org_id")
.projectId("project_id")
.build());
}
}
import pulumi
import pulumi_harness as harness
example = harness.platform.get_environment_clusters_mapping(identifier="identifier",
org_id="org_id",
project_id="project_id")
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = harness.platform.getEnvironmentClustersMapping({
identifier: "identifier",
orgId: "org_id",
projectId: "project_id",
});
variables:
example:
fn::invoke:
Function: harness:platform:getEnvironmentClustersMapping
Arguments:
identifier: identifier
orgId: org_id
projectId: project_id
Using getEnvironmentClustersMapping
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 getEnvironmentClustersMapping(args: GetEnvironmentClustersMappingArgs, opts?: InvokeOptions): Promise<GetEnvironmentClustersMappingResult>
function getEnvironmentClustersMappingOutput(args: GetEnvironmentClustersMappingOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentClustersMappingResult>
def get_environment_clusters_mapping(env_id: Optional[str] = None,
identifier: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEnvironmentClustersMappingResult
def get_environment_clusters_mapping_output(env_id: Optional[pulumi.Input[str]] = None,
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[GetEnvironmentClustersMappingResult]
func LookupEnvironmentClustersMapping(ctx *Context, args *LookupEnvironmentClustersMappingArgs, opts ...InvokeOption) (*LookupEnvironmentClustersMappingResult, error)
func LookupEnvironmentClustersMappingOutput(ctx *Context, args *LookupEnvironmentClustersMappingOutputArgs, opts ...InvokeOption) LookupEnvironmentClustersMappingResultOutput
> Note: This function is named LookupEnvironmentClustersMapping
in the Go SDK.
public static class GetEnvironmentClustersMapping
{
public static Task<GetEnvironmentClustersMappingResult> InvokeAsync(GetEnvironmentClustersMappingArgs args, InvokeOptions? opts = null)
public static Output<GetEnvironmentClustersMappingResult> Invoke(GetEnvironmentClustersMappingInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEnvironmentClustersMappingResult> getEnvironmentClustersMapping(GetEnvironmentClustersMappingArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: harness:platform/getEnvironmentClustersMapping:getEnvironmentClustersMapping
arguments:
# arguments dictionary
The following arguments are supported:
- Env
Id string - environment identifier of the cluster.
- Identifier string
- identifier of the cluster.
- Org
Id string - org_id of the cluster.
- Project
Id string - project_id of the cluster.
- Env
Id string - environment identifier of the cluster.
- Identifier string
- identifier of the cluster.
- Org
Id string - org_id of the cluster.
- Project
Id string - project_id of the cluster.
- env
Id String - environment identifier of the cluster.
- identifier String
- identifier of the cluster.
- org
Id String - org_id of the cluster.
- project
Id String - project_id of the cluster.
- env
Id string - environment identifier of the cluster.
- identifier string
- identifier of the cluster.
- org
Id string - org_id of the cluster.
- project
Id string - project_id of the cluster.
- env_
id str - environment identifier of the cluster.
- identifier str
- identifier of the cluster.
- org_
id str - org_id of the cluster.
- project_
id str - project_id of the cluster.
- env
Id String - environment identifier of the cluster.
- identifier String
- identifier of the cluster.
- org
Id String - org_id of the cluster.
- project
Id String - project_id of the cluster.
getEnvironmentClustersMapping Result
The following output properties are available:
- env_
id str - environment identifier of the cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- identifier of the cluster.
- scope str
- scope at which the cluster exists in harness gitops
- org_
id str - org_id of the cluster.
- project_
id str - project_id of the cluster.
Package Details
- Repository
- harness lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.