1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. getEnvironmentClustersMapping
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.getEnvironmentClustersMapping

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    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:

    EnvId string
    environment identifier of the cluster.
    Identifier string
    identifier of the cluster.
    OrgId string
    org_id of the cluster.
    ProjectId string
    project_id of the cluster.
    EnvId string
    environment identifier of the cluster.
    Identifier string
    identifier of the cluster.
    OrgId string
    org_id of the cluster.
    ProjectId string
    project_id of the cluster.
    envId String
    environment identifier of the cluster.
    identifier String
    identifier of the cluster.
    orgId String
    org_id of the cluster.
    projectId String
    project_id of the cluster.
    envId string
    environment identifier of the cluster.
    identifier string
    identifier of the cluster.
    orgId string
    org_id of the cluster.
    projectId 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.
    envId String
    environment identifier of the cluster.
    identifier String
    identifier of the cluster.
    orgId String
    org_id of the cluster.
    projectId String
    project_id of the cluster.

    getEnvironmentClustersMapping Result

    The following output properties are available:

    EnvId string
    environment identifier of the cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    identifier of the cluster.
    Scope string
    scope at which the cluster exists in harness gitops
    OrgId string
    org_id of the cluster.
    ProjectId string
    project_id of the cluster.
    EnvId string
    environment identifier of the cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    identifier of the cluster.
    Scope string
    scope at which the cluster exists in harness gitops
    OrgId string
    org_id of the cluster.
    ProjectId string
    project_id of the cluster.
    envId String
    environment identifier of the cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    identifier of the cluster.
    scope String
    scope at which the cluster exists in harness gitops
    orgId String
    org_id of the cluster.
    projectId String
    project_id of the cluster.
    envId string
    environment identifier of the cluster.
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    identifier of the cluster.
    scope string
    scope at which the cluster exists in harness gitops
    orgId string
    org_id of the cluster.
    projectId string
    project_id of the cluster.
    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.
    envId String
    environment identifier of the cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    identifier of the cluster.
    scope String
    scope at which the cluster exists in harness gitops
    orgId String
    org_id of the cluster.
    projectId String
    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.
    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs