import * as pulumi from "@pulumi/pulumi"; /** * Data source for retrieving a Harness delegate Token. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // Look up a delegate token at account level by name * const accountLevel = harness.platform.getDelegatetoken({ * name: "account-delegate-token", * accountId: "account_id", * }); * // Look up a delegate token at organization level * const orgLevel = harness.platform.getDelegatetoken({ * name: "org-delegate-token", * accountId: "account_id", * orgId: "org_id", * }); * // Look up a delegate token at project level * const projectLevel = harness.platform.getDelegatetoken({ * name: "project-delegate-token", * accountId: "account_id", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getDelegatetoken(args: GetDelegatetokenArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDelegatetoken. */ export interface GetDelegatetokenArgs { /** * Account Identifier for the Entity */ accountId: string; /** * Name of the delegate token */ name: string; /** * Org Identifier for the Entity */ orgId?: string; /** * Project Identifier for the Entity */ projectId?: string; /** * Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed */ tokenStatus?: string; } /** * A collection of values returned by getDelegatetoken. */ export interface GetDelegatetokenResult { /** * Account Identifier for the Entity */ readonly accountId: string; /** * Time when the delegate token is created. This is an epoch timestamp. */ readonly createdAt: number; /** * created by details */ readonly createdBy: { [key: string]: string; }; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Name of the delegate token */ readonly name: string; /** * Org Identifier for the Entity */ readonly orgId?: string; /** * Project Identifier for the Entity */ readonly projectId?: string; /** * Epoch time in milliseconds after which the token will be marked as revoked. There can be a delay of up to one hour from the epoch value provided and actual revoking of the token. */ readonly revokeAfter: number; /** * Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed */ readonly tokenStatus?: string; /** * Value of the delegate token. Encoded in base64. */ readonly value: string; } /** * Data source for retrieving a Harness delegate Token. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // Look up a delegate token at account level by name * const accountLevel = harness.platform.getDelegatetoken({ * name: "account-delegate-token", * accountId: "account_id", * }); * // Look up a delegate token at organization level * const orgLevel = harness.platform.getDelegatetoken({ * name: "org-delegate-token", * accountId: "account_id", * orgId: "org_id", * }); * // Look up a delegate token at project level * const projectLevel = harness.platform.getDelegatetoken({ * name: "project-delegate-token", * accountId: "account_id", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getDelegatetokenOutput(args: GetDelegatetokenOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDelegatetoken. */ export interface GetDelegatetokenOutputArgs { /** * Account Identifier for the Entity */ accountId: pulumi.Input; /** * Name of the delegate token */ name: pulumi.Input; /** * Org Identifier for the Entity */ orgId?: pulumi.Input; /** * Project Identifier for the Entity */ projectId?: pulumi.Input; /** * Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed */ tokenStatus?: pulumi.Input; } //# sourceMappingURL=getDelegatetoken.d.ts.map