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

harness.platform.getGitopsCluster

Explore with Pulumi AI

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

    Data source for fetching a Harness GitOps Cluster.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Harness.Platform.GetGitopsCluster.Invoke(new()
        {
            AccountId = "account_id",
            AgentId = "agent_id",
            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.GetGitopsCluster(ctx, &platform.GetGitopsClusterArgs{
    			AccountId:  "account_id",
    			AgentId:    "agent_id",
    			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.GetGitopsClusterArgs;
    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.getGitopsCluster(GetGitopsClusterArgs.builder()
                .accountId("account_id")
                .agentId("agent_id")
                .identifier("identifier")
                .orgId("org_id")
                .projectId("project_id")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.get_gitops_cluster(account_id="account_id",
        agent_id="agent_id",
        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.getGitopsCluster({
        accountId: "account_id",
        agentId: "agent_id",
        identifier: "identifier",
        orgId: "org_id",
        projectId: "project_id",
    });
    
    variables:
      example:
        fn::invoke:
          Function: harness:platform:getGitopsCluster
          Arguments:
            accountId: account_id
            agentId: agent_id
            identifier: identifier
            orgId: org_id
            projectId: project_id
    

    Using getGitopsCluster

    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 getGitopsCluster(args: GetGitopsClusterArgs, opts?: InvokeOptions): Promise<GetGitopsClusterResult>
    function getGitopsClusterOutput(args: GetGitopsClusterOutputArgs, opts?: InvokeOptions): Output<GetGitopsClusterResult>
    def get_gitops_cluster(account_id: Optional[str] = None,
                           agent_id: Optional[str] = None,
                           identifier: Optional[str] = None,
                           org_id: Optional[str] = None,
                           project_id: Optional[str] = None,
                           queries: Optional[Sequence[GetGitopsClusterQuery]] = None,
                           opts: Optional[InvokeOptions] = None) -> GetGitopsClusterResult
    def get_gitops_cluster_output(account_id: Optional[pulumi.Input[str]] = None,
                           agent_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,
                           queries: Optional[pulumi.Input[Sequence[pulumi.Input[GetGitopsClusterQueryArgs]]]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetGitopsClusterResult]
    func GetGitopsCluster(ctx *Context, args *GetGitopsClusterArgs, opts ...InvokeOption) (*GetGitopsClusterResult, error)
    func GetGitopsClusterOutput(ctx *Context, args *GetGitopsClusterOutputArgs, opts ...InvokeOption) GetGitopsClusterResultOutput

    > Note: This function is named GetGitopsCluster in the Go SDK.

    public static class GetGitopsCluster 
    {
        public static Task<GetGitopsClusterResult> InvokeAsync(GetGitopsClusterArgs args, InvokeOptions? opts = null)
        public static Output<GetGitopsClusterResult> Invoke(GetGitopsClusterInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGitopsClusterResult> getGitopsCluster(GetGitopsClusterArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:platform/getGitopsCluster:getGitopsCluster
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account identifier of the GitOps cluster.
    AgentId string
    Agent identifier of the GitOps cluster.
    Identifier string
    Identifier of the GitOps cluster.
    OrgId string
    Organization identifier of the cluster.
    ProjectId string
    Project identifier of the GitOps cluster.
    Queries List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.GetGitopsClusterQuery>
    Query for the GitOps cluster resources.
    AccountId string
    Account identifier of the GitOps cluster.
    AgentId string
    Agent identifier of the GitOps cluster.
    Identifier string
    Identifier of the GitOps cluster.
    OrgId string
    Organization identifier of the cluster.
    ProjectId string
    Project identifier of the GitOps cluster.
    Queries []GetGitopsClusterQuery
    Query for the GitOps cluster resources.
    accountId String
    Account identifier of the GitOps cluster.
    agentId String
    Agent identifier of the GitOps cluster.
    identifier String
    Identifier of the GitOps cluster.
    orgId String
    Organization identifier of the cluster.
    projectId String
    Project identifier of the GitOps cluster.
    queries List<GetGitopsClusterQuery>
    Query for the GitOps cluster resources.
    accountId string
    Account identifier of the GitOps cluster.
    agentId string
    Agent identifier of the GitOps cluster.
    identifier string
    Identifier of the GitOps cluster.
    orgId string
    Organization identifier of the cluster.
    projectId string
    Project identifier of the GitOps cluster.
    queries GetGitopsClusterQuery[]
    Query for the GitOps cluster resources.
    account_id str
    Account identifier of the GitOps cluster.
    agent_id str
    Agent identifier of the GitOps cluster.
    identifier str
    Identifier of the GitOps cluster.
    org_id str
    Organization identifier of the cluster.
    project_id str
    Project identifier of the GitOps cluster.
    queries Sequence[GetGitopsClusterQuery]
    Query for the GitOps cluster resources.
    accountId String
    Account identifier of the GitOps cluster.
    agentId String
    Agent identifier of the GitOps cluster.
    identifier String
    Identifier of the GitOps cluster.
    orgId String
    Organization identifier of the cluster.
    projectId String
    Project identifier of the GitOps cluster.
    queries List<Property Map>
    Query for the GitOps cluster resources.

    getGitopsCluster Result

    The following output properties are available:

    AccountId string
    Account identifier of the GitOps cluster.
    AgentId string
    Agent identifier of the GitOps cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier of the GitOps cluster.
    Requests List<Lbrlabs.PulumiPackage.Harness.Platform.Outputs.GetGitopsClusterRequest>
    Cluster create or update request.
    OrgId string
    Organization identifier of the cluster.
    ProjectId string
    Project identifier of the GitOps cluster.
    Queries List<Lbrlabs.PulumiPackage.Harness.Platform.Outputs.GetGitopsClusterQuery>
    Query for the GitOps cluster resources.
    AccountId string
    Account identifier of the GitOps cluster.
    AgentId string
    Agent identifier of the GitOps cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier of the GitOps cluster.
    Requests []GetGitopsClusterRequest
    Cluster create or update request.
    OrgId string
    Organization identifier of the cluster.
    ProjectId string
    Project identifier of the GitOps cluster.
    Queries []GetGitopsClusterQuery
    Query for the GitOps cluster resources.
    accountId String
    Account identifier of the GitOps cluster.
    agentId String
    Agent identifier of the GitOps cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier of the GitOps cluster.
    requests List<GetGitopsClusterRequest>
    Cluster create or update request.
    orgId String
    Organization identifier of the cluster.
    projectId String
    Project identifier of the GitOps cluster.
    queries List<GetGitopsClusterQuery>
    Query for the GitOps cluster resources.
    accountId string
    Account identifier of the GitOps cluster.
    agentId string
    Agent identifier of the GitOps cluster.
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    Identifier of the GitOps cluster.
    requests GetGitopsClusterRequest[]
    Cluster create or update request.
    orgId string
    Organization identifier of the cluster.
    projectId string
    Project identifier of the GitOps cluster.
    queries GetGitopsClusterQuery[]
    Query for the GitOps cluster resources.
    account_id str
    Account identifier of the GitOps cluster.
    agent_id str
    Agent identifier of the GitOps cluster.
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    Identifier of the GitOps cluster.
    requests Sequence[GetGitopsClusterRequest]
    Cluster create or update request.
    org_id str
    Organization identifier of the cluster.
    project_id str
    Project identifier of the GitOps cluster.
    queries Sequence[GetGitopsClusterQuery]
    Query for the GitOps cluster resources.
    accountId String
    Account identifier of the GitOps cluster.
    agentId String
    Agent identifier of the GitOps cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier of the GitOps cluster.
    requests List<Property Map>
    Cluster create or update request.
    orgId String
    Organization identifier of the cluster.
    projectId String
    Project identifier of the GitOps cluster.
    queries List<Property Map>
    Query for the GitOps cluster resources.

    Supporting Types

    GetGitopsClusterQuery

    Ids List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.GetGitopsClusterQueryId>
    Cluster server URL or the cluster name.
    Name string
    Name of the GitOps cluster.
    Server string
    Server of the GitOps cluster.
    Ids []GetGitopsClusterQueryId
    Cluster server URL or the cluster name.
    Name string
    Name of the GitOps cluster.
    Server string
    Server of the GitOps cluster.
    ids List<GetGitopsClusterQueryId>
    Cluster server URL or the cluster name.
    name String
    Name of the GitOps cluster.
    server String
    Server of the GitOps cluster.
    ids GetGitopsClusterQueryId[]
    Cluster server URL or the cluster name.
    name string
    Name of the GitOps cluster.
    server string
    Server of the GitOps cluster.
    ids Sequence[GetGitopsClusterQueryId]
    Cluster server URL or the cluster name.
    name str
    Name of the GitOps cluster.
    server str
    Server of the GitOps cluster.
    ids List<Property Map>
    Cluster server URL or the cluster name.
    name String
    Name of the GitOps cluster.
    server String
    Server of the GitOps cluster.

    GetGitopsClusterQueryId

    Type string
    Value string
    Type string
    Value string
    type String
    value String
    type string
    value string
    type str
    value str
    type String
    value String

    GetGitopsClusterRequest

    GetGitopsClusterRequestCluster

    GetGitopsClusterRequestClusterConfig

    GetGitopsClusterRequestClusterConfigAwsAuthConfig

    ClusterName string
    RoleARN string
    ClusterName string
    RoleARN string
    clusterName String
    roleARN String
    clusterName string
    roleARN string
    clusterName String
    roleARN String

    GetGitopsClusterRequestClusterConfigExecProviderConfig

    ApiVersion string
    Args List<string>
    Command string
    Env Dictionary<string, string>
    InstallHint string
    ApiVersion string
    Args []string
    Command string
    Env map[string]string
    InstallHint string
    apiVersion String
    args List<String>
    command String
    env Map<String,String>
    installHint String
    apiVersion string
    args string[]
    command string
    env {[key: string]: string}
    installHint string
    api_version str
    args Sequence[str]
    command str
    env Mapping[str, str]
    install_hint str
    apiVersion String
    args List<String>
    command String
    env Map<String>
    installHint String

    GetGitopsClusterRequestClusterConfigTlsClientConfig

    CaData string
    CertData string
    Insecure bool
    KeyData string
    ServerName string
    CaData string
    CertData string
    Insecure bool
    KeyData string
    ServerName string
    caData String
    certData String
    insecure Boolean
    keyData String
    serverName String
    caData string
    certData string
    insecure boolean
    keyData string
    serverName string
    caData String
    certData String
    insecure Boolean
    keyData String
    serverName String

    GetGitopsClusterRequestClusterInfo

    GetGitopsClusterRequestClusterInfoCacheInfo

    GetGitopsClusterRequestClusterInfoConnectionState

    GetGitopsClusterRequestClusterInfoConnectionStateAttemptedAt

    Nanos int
    Seconds string
    Nanos int
    Seconds string
    nanos Integer
    seconds String
    nanos number
    seconds string
    nanos int
    seconds str
    nanos Number
    seconds String

    GetGitopsClusterRequestClusterRefreshRequestedAt

    Nanos int
    Seconds string
    Nanos int
    Seconds string
    nanos Integer
    seconds String
    nanos number
    seconds string
    nanos int
    seconds str
    nanos Number
    seconds String

    GetGitopsClusterRequestId

    Type string
    Value string
    Type string
    Value string
    type String
    value String
    type string
    value string
    type str
    value str
    type String
    value String

    GetGitopsClusterRequestUpdateMask

    Paths List<ImmutableArray<object>>
    Paths [][]interface{}
    paths List<List<Object>>
    paths any[][]
    paths Sequence[Sequence[Any]]
    paths List<List<Any>>

    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