import * as pulumi from "@pulumi/pulumi"; /** * Data source for retrieving the latest supported Harness delegate version. * * By default, customers will often want to pull the most recent version of the delegate image to store within their own container registry or would like to build a new custom delegate based on the same. This data source exposes that version information at account, org, or project scope via Terraform, eliminating the need for a custom script or manual lookup. * * ## Example Usage * * ### Account level — implicit account from provider * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const account = harness.platform.getDelegateDefaultVersion({}); * export const delegateVersion = account.then(account => account.version); * export const delegateMinimalVersion = account.then(account => account.minimalVersion); * ``` * * ### Org level — implicit account from provider * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const orgImplicit = harness.platform.getDelegateDefaultVersion({ * orgId: "your_org_id", * }); * export const delegateVersionOrgImplicit = orgImplicit.then(orgImplicit => orgImplicit.version); * ``` * * ### Project level — implicit account from provider * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const project = harness.platform.getDelegateDefaultVersion({ * orgId: "your_org_id", * projectId: "your_project_id", * }); * export const delegateVersionProject = project.then(project => project.version); * ``` */ export declare function getDelegateDefaultVersion(args?: GetDelegateDefaultVersionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDelegateDefaultVersion. */ export interface GetDelegateDefaultVersionArgs { /** * Organization identifier. */ orgId?: string; /** * Project identifier. */ projectId?: string; } /** * A collection of values returned by getDelegateDefaultVersion. */ export interface GetDelegateDefaultVersionResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Latest supported minimal delegate version. */ readonly minimalVersion: string; /** * Organization identifier. */ readonly orgId?: string; /** * Project identifier. */ readonly projectId?: string; /** * Latest supported delegate version. */ readonly version: string; } /** * Data source for retrieving the latest supported Harness delegate version. * * By default, customers will often want to pull the most recent version of the delegate image to store within their own container registry or would like to build a new custom delegate based on the same. This data source exposes that version information at account, org, or project scope via Terraform, eliminating the need for a custom script or manual lookup. * * ## Example Usage * * ### Account level — implicit account from provider * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const account = harness.platform.getDelegateDefaultVersion({}); * export const delegateVersion = account.then(account => account.version); * export const delegateMinimalVersion = account.then(account => account.minimalVersion); * ``` * * ### Org level — implicit account from provider * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const orgImplicit = harness.platform.getDelegateDefaultVersion({ * orgId: "your_org_id", * }); * export const delegateVersionOrgImplicit = orgImplicit.then(orgImplicit => orgImplicit.version); * ``` * * ### Project level — implicit account from provider * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const project = harness.platform.getDelegateDefaultVersion({ * orgId: "your_org_id", * projectId: "your_project_id", * }); * export const delegateVersionProject = project.then(project => project.version); * ``` */ export declare function getDelegateDefaultVersionOutput(args?: GetDelegateDefaultVersionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDelegateDefaultVersion. */ export interface GetDelegateDefaultVersionOutputArgs { /** * Organization identifier. */ orgId?: pulumi.Input; /** * Project identifier. */ projectId?: pulumi.Input; } //# sourceMappingURL=getDelegateDefaultVersion.d.ts.map