UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

130 lines (129 loc) 3.44 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data source for fetching a Harness GitOps Cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getGitopsCluster({ * identifier: "identifier", * accountId: "account_id", * projectId: "project_id", * orgId: "org_id", * agentId: "agent_id", * }); * ``` */ export declare function getGitopsCluster(args: GetGitopsClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetGitopsClusterResult>; /** * A collection of arguments for invoking getGitopsCluster. */ export interface GetGitopsClusterArgs { /** * Account identifier of the GitOps cluster. * * @deprecated This field is deprecated and will be removed in a future release. */ accountId?: string; /** * Agent identifier of the GitOps cluster. */ agentId: string; /** * Identifier of the GitOps cluster. */ identifier: string; /** * Organization identifier of the cluster. */ orgId?: string; /** * Project identifier of the GitOps cluster. */ projectId?: string; } /** * A collection of values returned by getGitopsCluster. */ export interface GetGitopsClusterResult { /** * Account identifier of the GitOps cluster. * * @deprecated This field is deprecated and will be removed in a future release. */ readonly accountId: string; /** * Agent identifier of the GitOps cluster. */ readonly agentId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Identifier of the GitOps cluster. */ readonly identifier: string; /** * Organization identifier of the cluster. */ readonly orgId?: string; /** * Project identifier of the GitOps cluster. */ readonly projectId?: string; /** * Cluster create or update request. */ readonly requests: outputs.platform.GetGitopsClusterRequest[]; } /** * Data source for fetching a Harness GitOps Cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getGitopsCluster({ * identifier: "identifier", * accountId: "account_id", * projectId: "project_id", * orgId: "org_id", * agentId: "agent_id", * }); * ``` */ export declare function getGitopsClusterOutput(args: GetGitopsClusterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGitopsClusterResult>; /** * A collection of arguments for invoking getGitopsCluster. */ export interface GetGitopsClusterOutputArgs { /** * Account identifier of the GitOps cluster. * * @deprecated This field is deprecated and will be removed in a future release. */ accountId?: pulumi.Input<string>; /** * Agent identifier of the GitOps cluster. */ agentId: pulumi.Input<string>; /** * Identifier of the GitOps cluster. */ identifier: pulumi.Input<string>; /** * Organization identifier of the cluster. */ orgId?: pulumi.Input<string>; /** * Project identifier of the GitOps cluster. */ projectId?: pulumi.Input<string>; }