import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data source for listing workspaces. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const all = harness.platform.getWorkspaces({ * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getWorkspaces(args: GetWorkspacesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getWorkspaces. */ export interface GetWorkspacesArgs { /** * Organization Identifier */ orgId: string; /** * Project Identifier */ projectId: string; /** * Filter results by partial name match when listing workspaces. */ searchTerm?: string; } /** * A collection of values returned by getWorkspaces. */ export interface GetWorkspacesResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * List of workspace identifiers matching the filters. */ readonly identifiers: string[]; /** * Organization Identifier */ readonly orgId: string; /** * Project Identifier */ readonly projectId: string; /** * Filter results by partial name match when listing workspaces. */ readonly searchTerm?: string; /** * List of workspaces matching the filters. */ readonly workspaces: outputs.platform.GetWorkspacesWorkspace[]; } /** * Data source for listing workspaces. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const all = harness.platform.getWorkspaces({ * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getWorkspacesOutput(args: GetWorkspacesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getWorkspaces. */ export interface GetWorkspacesOutputArgs { /** * Organization Identifier */ orgId: pulumi.Input; /** * Project Identifier */ projectId: pulumi.Input; /** * Filter results by partial name match when listing workspaces. */ searchTerm?: pulumi.Input; } //# sourceMappingURL=getWorkspaces.d.ts.map