Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs
harness.platform.getGitopsCluster
Explore with Pulumi AI
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:
- Account
Id string - Account identifier of the GitOps cluster.
- Agent
Id string - Agent identifier of the GitOps cluster.
- Identifier string
- Identifier of the GitOps cluster.
- Org
Id string - Organization identifier of the cluster.
- Project
Id string - Project identifier of the GitOps cluster.
- Queries
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Get Gitops Cluster Query> - Query for the GitOps cluster resources.
- Account
Id string - Account identifier of the GitOps cluster.
- Agent
Id string - Agent identifier of the GitOps cluster.
- Identifier string
- Identifier of the GitOps cluster.
- Org
Id string - Organization identifier of the cluster.
- Project
Id string - Project identifier of the GitOps cluster.
- Queries
[]Get
Gitops Cluster Query - Query for the GitOps cluster resources.
- account
Id String - Account identifier of the GitOps cluster.
- agent
Id String - Agent identifier of the GitOps cluster.
- identifier String
- Identifier of the GitOps cluster.
- org
Id String - Organization identifier of the cluster.
- project
Id String - Project identifier of the GitOps cluster.
- queries
List<Get
Gitops Cluster Query> - Query for the GitOps cluster resources.
- account
Id string - Account identifier of the GitOps cluster.
- agent
Id string - Agent identifier of the GitOps cluster.
- identifier string
- Identifier of the GitOps cluster.
- org
Id string - Organization identifier of the cluster.
- project
Id string - Project identifier of the GitOps cluster.
- queries
Get
Gitops Cluster Query[] - 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[Get
Gitops Cluster Query] - Query for the GitOps cluster resources.
- account
Id String - Account identifier of the GitOps cluster.
- agent
Id String - Agent identifier of the GitOps cluster.
- identifier String
- Identifier of the GitOps cluster.
- org
Id String - Organization identifier of the cluster.
- project
Id 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:
- Account
Id string - Account identifier of the GitOps cluster.
- Agent
Id 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.
Pulumi Package. Harness. Platform. Outputs. Get Gitops Cluster Request> - Cluster create or update request.
- Org
Id string - Organization identifier of the cluster.
- Project
Id string - Project identifier of the GitOps cluster.
- Queries
List<Lbrlabs.
Pulumi Package. Harness. Platform. Outputs. Get Gitops Cluster Query> - Query for the GitOps cluster resources.
- Account
Id string - Account identifier of the GitOps cluster.
- Agent
Id 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
[]Get
Gitops Cluster Request - Cluster create or update request.
- Org
Id string - Organization identifier of the cluster.
- Project
Id string - Project identifier of the GitOps cluster.
- Queries
[]Get
Gitops Cluster Query - Query for the GitOps cluster resources.
- account
Id String - Account identifier of the GitOps cluster.
- agent
Id 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<Get
Gitops Cluster Request> - Cluster create or update request.
- org
Id String - Organization identifier of the cluster.
- project
Id String - Project identifier of the GitOps cluster.
- queries
List<Get
Gitops Cluster Query> - Query for the GitOps cluster resources.
- account
Id string - Account identifier of the GitOps cluster.
- agent
Id 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
Get
Gitops Cluster Request[] - Cluster create or update request.
- org
Id string - Organization identifier of the cluster.
- project
Id string - Project identifier of the GitOps cluster.
- queries
Get
Gitops Cluster Query[] - 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[Get
Gitops Cluster Request] - Cluster create or update request.
- org_
id str - Organization identifier of the cluster.
- project_
id str - Project identifier of the GitOps cluster.
- queries
Sequence[Get
Gitops Cluster Query] - Query for the GitOps cluster resources.
- account
Id String - Account identifier of the GitOps cluster.
- agent
Id 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.
- org
Id String - Organization identifier of the cluster.
- project
Id String - Project identifier of the GitOps cluster.
- queries List<Property Map>
- Query for the GitOps cluster resources.
Supporting Types
GetGitopsClusterQuery
- Ids
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Get Gitops Cluster Query Id> - Cluster server URL or the cluster name.
- Name string
- Name of the GitOps cluster.
- Server string
- Server of the GitOps cluster.
- Ids
[]Get
Gitops Cluster Query Id - Cluster server URL or the cluster name.
- Name string
- Name of the GitOps cluster.
- Server string
- Server of the GitOps cluster.
- ids
List<Get
Gitops Cluster Query Id> - Cluster server URL or the cluster name.
- name String
- Name of the GitOps cluster.
- server String
- Server of the GitOps cluster.
- ids
Get
Gitops Cluster Query Id[] - Cluster server URL or the cluster name.
- name string
- Name of the GitOps cluster.
- server string
- Server of the GitOps cluster.
- ids
Sequence[Get
Gitops Cluster Query Id] - 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
GetGitopsClusterRequest
- List<string>
- Clusters
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Get Gitops Cluster Request Cluster> - Ids
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Get Gitops Cluster Request Id> - The ID of this resource.
- Update
Masks List<Lbrlabs.Pulumi Package. Harness. Platform. Inputs. Get Gitops Cluster Request Update Mask> - Updated
Fields List<string> - Upsert bool
- []string
- Clusters
[]Get
Gitops Cluster Request Cluster - Ids
[]Get
Gitops Cluster Request Id - The ID of this resource.
- Update
Masks []GetGitops Cluster Request Update Mask - Updated
Fields []string - Upsert bool
- List<String>
- clusters
List<Get
Gitops Cluster Request Cluster> - ids
List<Get
Gitops Cluster Request Id> - The ID of this resource.
- update
Masks List<GetGitops Cluster Request Update Mask> - updated
Fields List<String> - upsert Boolean
- string[]
- clusters
Get
Gitops Cluster Request Cluster[] - ids
Get
Gitops Cluster Request Id[] - The ID of this resource.
- update
Masks GetGitops Cluster Request Update Mask[] - updated
Fields string[] - upsert boolean
- Sequence[str]
- clusters
Sequence[Get
Gitops Cluster Request Cluster] - ids
Sequence[Get
Gitops Cluster Request Id] - The ID of this resource.
- update_
masks Sequence[GetGitops Cluster Request Update Mask] - updated_
fields Sequence[str] - upsert bool
- List<String>
- clusters List<Property Map>
- ids List<Property Map>
- The ID of this resource.
- update
Masks List<Property Map> - updated
Fields List<String> - upsert Boolean
GetGitopsClusterRequestCluster
- Infos
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Get Gitops Cluster Request Cluster Info> - Annotations Dictionary<string, string>
- Cluster
Resources bool - Configs
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Get Gitops Cluster Request Cluster Config> - Labels Dictionary<string, string>
- Name string
- Namespaces List<string>
- Project string
- Refresh
Requested List<Lbrlabs.Ats Pulumi Package. Harness. Platform. Inputs. Get Gitops Cluster Request Cluster Refresh Requested At> - Server string
- string
- Infos
[]Get
Gitops Cluster Request Cluster Info - Annotations map[string]string
- Cluster
Resources bool - Configs
[]Get
Gitops Cluster Request Cluster Config - Labels map[string]string
- Name string
- Namespaces []string
- Project string
- Refresh
Requested []GetAts Gitops Cluster Request Cluster Refresh Requested At - Server string
- string
- infos
List<Get
Gitops Cluster Request Cluster Info> - annotations Map<String,String>
- cluster
Resources Boolean - configs
List<Get
Gitops Cluster Request Cluster Config> - labels Map<String,String>
- name String
- namespaces List<String>
- project String
- refresh
Requested List<GetAts Gitops Cluster Request Cluster Refresh Requested At> - server String
- String
- infos
Get
Gitops Cluster Request Cluster Info[] - annotations {[key: string]: string}
- cluster
Resources boolean - configs
Get
Gitops Cluster Request Cluster Config[] - labels {[key: string]: string}
- name string
- namespaces string[]
- project string
- refresh
Requested GetAts Gitops Cluster Request Cluster Refresh Requested At[] - server string
- string
- infos
Sequence[Get
Gitops Cluster Request Cluster Info] - annotations Mapping[str, str]
- cluster_
resources bool - configs
Sequence[Get
Gitops Cluster Request Cluster Config] - labels Mapping[str, str]
- name str
- namespaces Sequence[str]
- project str
- refresh_
requested_ Sequence[Getats Gitops Cluster Request Cluster Refresh Requested At] - server str
- str
- infos List<Property Map>
- annotations Map<String>
- cluster
Resources Boolean - configs List<Property Map>
- labels Map<String>
- name String
- namespaces List<String>
- project String
- refresh
Requested List<Property Map>Ats - server String
- String
GetGitopsClusterRequestClusterConfig
- Aws
Auth List<Lbrlabs.Configs Pulumi Package. Harness. Platform. Inputs. Get Gitops Cluster Request Cluster Config Aws Auth Config> - Bearer
Token string - Cluster
Connection stringType - Exec
Provider List<Lbrlabs.Configs Pulumi Package. Harness. Platform. Inputs. Get Gitops Cluster Request Cluster Config Exec Provider Config> - Password string
- Tls
Client List<Lbrlabs.Configs Pulumi Package. Harness. Platform. Inputs. Get Gitops Cluster Request Cluster Config Tls Client Config> - Username string
- aws
Auth List<GetConfigs Gitops Cluster Request Cluster Config Aws Auth Config> - bearer
Token String - cluster
Connection StringType - exec
Provider List<GetConfigs Gitops Cluster Request Cluster Config Exec Provider Config> - password String
- tls
Client List<GetConfigs Gitops Cluster Request Cluster Config Tls Client Config> - username String
- aws_
auth_ Sequence[Getconfigs Gitops Cluster Request Cluster Config Aws Auth Config] - bearer_
token str - cluster_
connection_ strtype - exec_
provider_ Sequence[Getconfigs Gitops Cluster Request Cluster Config Exec Provider Config] - password str
- tls_
client_ Sequence[Getconfigs Gitops Cluster Request Cluster Config Tls Client Config] - username str
GetGitopsClusterRequestClusterConfigAwsAuthConfig
- Cluster
Name string - Role
ARN string
- Cluster
Name string - Role
ARN string
- cluster
Name String - role
ARN String
- cluster
Name string - role
ARN string
- cluster_
name str - role_
arn str
- cluster
Name String - role
ARN String
GetGitopsClusterRequestClusterConfigExecProviderConfig
- Api
Version string - Args List<string>
- Command string
- Env Dictionary<string, string>
- Install
Hint string
- Api
Version string - Args []string
- Command string
- Env map[string]string
- Install
Hint string
- api
Version String - args List<String>
- command String
- env Map<String,String>
- install
Hint String
- api
Version string - args string[]
- command string
- env {[key: string]: string}
- install
Hint string
- api_
version str - args Sequence[str]
- command str
- env Mapping[str, str]
- install_
hint str
- api
Version String - args List<String>
- command String
- env Map<String>
- install
Hint String
GetGitopsClusterRequestClusterConfigTlsClientConfig
- Ca
Data string - Cert
Data string - Insecure bool
- Key
Data string - Server
Name string
- Ca
Data string - Cert
Data string - Insecure bool
- Key
Data string - Server
Name string
- ca
Data String - cert
Data String - insecure Boolean
- key
Data String - server
Name String
- ca
Data string - cert
Data string - insecure boolean
- key
Data string - server
Name string
- ca_
data str - cert_
data str - insecure bool
- key_
data str - server_
name str
- ca
Data String - cert
Data String - insecure Boolean
- key
Data String - server
Name String
GetGitopsClusterRequestClusterInfo
- cache
Infos List<Property Map> - connection
States List<Property Map> - server
Version String - api
Versions List<String> - applications
Count String
GetGitopsClusterRequestClusterInfoCacheInfo
- Apis
Count string - Last
Cache stringSync Time - Resources
Count string
- Apis
Count string - Last
Cache stringSync Time - Resources
Count string
- apis
Count String - last
Cache StringSync Time - resources
Count String
- apis
Count string - last
Cache stringSync Time - resources
Count string
- apis_
count str - last_
cache_ strsync_ time - resources_
count str
- apis
Count String - last
Cache StringSync Time - resources
Count String
GetGitopsClusterRequestClusterInfoConnectionState
- message String
- status String
- attempted
Ats List<Property Map>
GetGitopsClusterRequestClusterInfoConnectionStateAttemptedAt
GetGitopsClusterRequestClusterRefreshRequestedAt
GetGitopsClusterRequestId
GetGitopsClusterRequestUpdateMask
- Paths
List<Immutable
Array<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.