import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data source for retrieving a list of Harness delegates. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // Get all delegates in an account * const all = harness.platform.getDelegateList({ * accountId: "your_account_id", * filterType: "Delegate", * fetchAll: true, * }); * // Get only connected delegates with specific tags * const connectedWithTags = harness.platform.getDelegateList({ * accountId: "your_account_id", * orgId: "your_org_id", * projectId: "your_project_id", * filterType: "Delegate", * status: "CONNECTED", * delegateTags: [ * "production", * "kubernetes", * ], * }); * // Get delegates by name pattern and group * const specificGroup = harness.platform.getDelegateList({ * accountId: "your_account_id", * filterType: "Delegate", * delegateName: "prod-delegate", * delegateGroupIdentifier: "production-group", * versionStatus: "ACTIVE", * }); * ``` */ export declare function getDelegateList(args: GetDelegateListArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDelegateList. */ export interface GetDelegateListArgs { /** * Account identifier. */ accountId: string; /** * Filter delegates by auto upgrade setting. */ autoUpgrade?: string; /** * Filter delegates by group identifier. */ delegateGroupIdentifier?: string; /** * Filter delegate instances. Valid values: AVAILABLE, EXPIRED. */ delegateInstanceFilter?: string; /** * Filter delegates by name. */ delegateName?: string; /** * Filter delegates by tags. */ delegateTags?: string[]; /** * Whether to fetch all delegates. Defaults to `false`. */ fetchAll?: boolean; /** * Filter type for delegates. */ filterType: string; /** * Organization identifier. */ orgId?: string; /** * Project identifier. */ projectId?: string; /** * Filter delegates by status. Valid values: CONNECTED, DISCONNECTED, ENABLED, DISABLED, WAITING*FOR*APPROVAL, DELETED. */ status?: string; /** * Filter delegates by version status. Valid values: ACTIVE, EXPIRED, EXPIRING, UNSUPPORTED. */ versionStatus?: string; } /** * A collection of values returned by getDelegateList. */ export interface GetDelegateListResult { /** * Account identifier. */ readonly accountId: string; /** * Filter delegates by auto upgrade setting. */ readonly autoUpgrade?: string; /** * Filter delegates by group identifier. */ readonly delegateGroupIdentifier?: string; /** * Filter delegate instances. Valid values: AVAILABLE, EXPIRED. */ readonly delegateInstanceFilter?: string; /** * Filter delegates by name. */ readonly delegateName?: string; /** * Filter delegates by tags. */ readonly delegateTags?: string[]; /** * List of delegates. */ readonly delegates: outputs.platform.GetDelegateListDelegate[]; /** * Whether to fetch all delegates. Defaults to `false`. */ readonly fetchAll?: boolean; /** * Filter type for delegates. */ readonly filterType: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Organization identifier. */ readonly orgId?: string; /** * Project identifier. */ readonly projectId?: string; /** * Filter delegates by status. Valid values: CONNECTED, DISCONNECTED, ENABLED, DISABLED, WAITING*FOR*APPROVAL, DELETED. */ readonly status?: string; /** * Filter delegates by version status. Valid values: ACTIVE, EXPIRED, EXPIRING, UNSUPPORTED. */ readonly versionStatus?: string; } /** * Data source for retrieving a list of Harness delegates. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // Get all delegates in an account * const all = harness.platform.getDelegateList({ * accountId: "your_account_id", * filterType: "Delegate", * fetchAll: true, * }); * // Get only connected delegates with specific tags * const connectedWithTags = harness.platform.getDelegateList({ * accountId: "your_account_id", * orgId: "your_org_id", * projectId: "your_project_id", * filterType: "Delegate", * status: "CONNECTED", * delegateTags: [ * "production", * "kubernetes", * ], * }); * // Get delegates by name pattern and group * const specificGroup = harness.platform.getDelegateList({ * accountId: "your_account_id", * filterType: "Delegate", * delegateName: "prod-delegate", * delegateGroupIdentifier: "production-group", * versionStatus: "ACTIVE", * }); * ``` */ export declare function getDelegateListOutput(args: GetDelegateListOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDelegateList. */ export interface GetDelegateListOutputArgs { /** * Account identifier. */ accountId: pulumi.Input; /** * Filter delegates by auto upgrade setting. */ autoUpgrade?: pulumi.Input; /** * Filter delegates by group identifier. */ delegateGroupIdentifier?: pulumi.Input; /** * Filter delegate instances. Valid values: AVAILABLE, EXPIRED. */ delegateInstanceFilter?: pulumi.Input; /** * Filter delegates by name. */ delegateName?: pulumi.Input; /** * Filter delegates by tags. */ delegateTags?: pulumi.Input[] | undefined>; /** * Whether to fetch all delegates. Defaults to `false`. */ fetchAll?: pulumi.Input; /** * Filter type for delegates. */ filterType: pulumi.Input; /** * Organization identifier. */ orgId?: pulumi.Input; /** * Project identifier. */ projectId?: pulumi.Input; /** * Filter delegates by status. Valid values: CONNECTED, DISCONNECTED, ENABLED, DISABLED, WAITING*FOR*APPROVAL, DELETED. */ status?: pulumi.Input; /** * Filter delegates by version status. Valid values: ACTIVE, EXPIRED, EXPIRING, UNSUPPORTED. */ versionStatus?: pulumi.Input; } //# sourceMappingURL=getDelegateList.d.ts.map