import * as pulumi from "@pulumi/pulumi"; /** * Data source for retrieving a Harness ApiKey Token. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const test = harness.platform.getToken({ * identifier: "test_token", * parentId: "apikey_parent_id", * accountId: "account_id", * orgId: "org_id", * projectId: "project_id", * apikeyId: "apikey_id", * apikeyType: "USER", * }); * ``` */ export declare function getToken(args: GetTokenArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getToken. */ export interface GetTokenArgs { /** * Account Identifier for the Entity */ accountId: string; /** * Identifier of the API Key */ apikeyId: string; /** * Type of the API Key */ apikeyType: string; /** * Email Id of the user who created the Token */ email?: string; /** * Encoded password of the Token */ encodedPassword?: string; /** * Unique identifier of the resource. */ identifier: string; /** * Name of the resource. */ name?: string; /** * Unique identifier of the organization. */ orgId?: string; /** * Parent Entity Identifier of the API Key */ parentId: string; /** * Unique identifier of the project. */ projectId?: string; /** * Scheduled expiry time in milliseconds */ scheduledExpireTime?: number; /** * Name of the user who created the Token */ username?: string; /** * Boolean value to indicate if Token is valid or not. */ valid?: boolean; /** * This is the time from which the Token is valid. The time is in milliseconds */ validFrom?: number; /** * This is the time till which the Token is valid. The time is in milliseconds */ validTo?: number; } /** * A collection of values returned by getToken. */ export interface GetTokenResult { /** * Account Identifier for the Entity */ readonly accountId: string; /** * Identifier of the API Key */ readonly apikeyId: string; /** * Type of the API Key */ readonly apikeyType: string; /** * Description of the resource. */ readonly description: string; /** * Email Id of the user who created the Token */ readonly email?: string; /** * Encoded password of the Token */ readonly encodedPassword?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Unique identifier of the resource. */ readonly identifier: string; /** * Name of the resource. */ readonly name?: string; /** * Unique identifier of the organization. */ readonly orgId?: string; /** * Parent Entity Identifier of the API Key */ readonly parentId: string; /** * Unique identifier of the project. */ readonly projectId?: string; /** * Scheduled expiry time in milliseconds */ readonly scheduledExpireTime?: number; /** * Tags to associate with the resource. */ readonly tags: string[]; /** * Name of the user who created the Token */ readonly username?: string; /** * Boolean value to indicate if Token is valid or not. */ readonly valid?: boolean; /** * This is the time from which the Token is valid. The time is in milliseconds */ readonly validFrom?: number; /** * This is the time till which the Token is valid. The time is in milliseconds */ readonly validTo?: number; } /** * Data source for retrieving a Harness ApiKey Token. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const test = harness.platform.getToken({ * identifier: "test_token", * parentId: "apikey_parent_id", * accountId: "account_id", * orgId: "org_id", * projectId: "project_id", * apikeyId: "apikey_id", * apikeyType: "USER", * }); * ``` */ export declare function getTokenOutput(args: GetTokenOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getToken. */ export interface GetTokenOutputArgs { /** * Account Identifier for the Entity */ accountId: pulumi.Input; /** * Identifier of the API Key */ apikeyId: pulumi.Input; /** * Type of the API Key */ apikeyType: pulumi.Input; /** * Email Id of the user who created the Token */ email?: pulumi.Input; /** * Encoded password of the Token */ encodedPassword?: pulumi.Input; /** * Unique identifier of the resource. */ identifier: pulumi.Input; /** * Name of the resource. */ name?: pulumi.Input; /** * Unique identifier of the organization. */ orgId?: pulumi.Input; /** * Parent Entity Identifier of the API Key */ parentId: pulumi.Input; /** * Unique identifier of the project. */ projectId?: pulumi.Input; /** * Scheduled expiry time in milliseconds */ scheduledExpireTime?: pulumi.Input; /** * Name of the user who created the Token */ username?: pulumi.Input; /** * Boolean value to indicate if Token is valid or not. */ valid?: pulumi.Input; /** * This is the time from which the Token is valid. The time is in milliseconds */ validFrom?: pulumi.Input; /** * This is the time till which the Token is valid. The time is in milliseconds */ validTo?: pulumi.Input; } //# sourceMappingURL=getToken.d.ts.map