@lbrlabs/pulumi-harness
Version:
A Pulumi package for creating and managing Harness resources.
129 lines (128 loc) • 3.27 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Datasource for fetching a Harness Gitops Agents.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = harness.platform.getGitopsAgent({
* accountId: "account_id",
* identifier: "identifier",
* orgId: "org_id",
* projectId: "project_id",
* });
* ```
*/
export declare function getGitopsAgent(args: GetGitopsAgentArgs, opts?: pulumi.InvokeOptions): Promise<GetGitopsAgentResult>;
/**
* A collection of arguments for invoking getGitopsAgent.
*/
export interface GetGitopsAgentArgs {
/**
* Account identifier of the GitOps agent.
*/
accountId: string;
/**
* Identifier of the GitOps agent.
*/
identifier: string;
/**
* Organization identifier of the GitOps agent.
*/
orgId?: string;
/**
* Project identifier of the GitOps agent.
*/
projectId?: string;
}
/**
* A collection of values returned by getGitopsAgent.
*/
export interface GetGitopsAgentResult {
/**
* Account identifier of the GitOps agent.
*/
readonly accountId: string;
/**
* Description of the GitOps agent.
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Identifier of the GitOps agent.
*/
readonly identifier: string;
/**
* Metadata of the agent.
*/
readonly metadatas: outputs.platform.GetGitopsAgentMetadata[];
/**
* Name of the GitOps agent.
*/
readonly name: string;
/**
* Organization identifier of the GitOps agent.
*/
readonly orgId?: string;
/**
* Project identifier of the GitOps agent.
*/
readonly projectId?: string;
/**
* Tags for the GitOps agents. These can be used to search or filter the GitOps agents.
*/
readonly tags: {
[key: string]: string;
};
/**
* Default: "AGENT*TYPE*UNSET"
* Enum: "AGENT*TYPE*UNSET" "CONNECTED*ARGO*PROVIDER" "MANAGED*ARGO*PROVIDER"
*/
readonly type: string;
}
/**
* Datasource for fetching a Harness Gitops Agents.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = harness.platform.getGitopsAgent({
* accountId: "account_id",
* identifier: "identifier",
* orgId: "org_id",
* projectId: "project_id",
* });
* ```
*/
export declare function getGitopsAgentOutput(args: GetGitopsAgentOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGitopsAgentResult>;
/**
* A collection of arguments for invoking getGitopsAgent.
*/
export interface GetGitopsAgentOutputArgs {
/**
* Account identifier of the GitOps agent.
*/
accountId: pulumi.Input<string>;
/**
* Identifier of the GitOps agent.
*/
identifier: pulumi.Input<string>;
/**
* Organization identifier of the GitOps agent.
*/
orgId?: pulumi.Input<string>;
/**
* Project identifier of the GitOps agent.
*/
projectId?: pulumi.Input<string>;
}