import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a datasource to retrieve a user based on the input parameters. * * ## Example Usage * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const userUser = new nutanix.User("user", {directoryServiceUser: { * userPrincipalName: "test-user@ntnxlab.local", * directoryServiceReference: { * uuid: "", * }, * }}); * //Retrieve by UUID * const user = nutanix.getUserOutput({ * userId: userUser.id, * }); * //Retrieve by Name * const userbyname = nutanix.getUserOutput({ * userName: userUser.name, * }); * ``` * */ export declare function getUser(args?: GetUserArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getUser. */ export interface GetUserArgs { /** * - (Optional) Categories for the Access Control Policy. */ categories?: inputs.GetUserCategory[]; /** * - (Optional) The reference to a user. */ ownerReference?: { [key: string]: string; }; /** * - (Optional) The reference to a project. */ projectReference?: { [key: string]: string; }; userId?: string; userName?: string; } /** * A collection of values returned by getUser. */ export interface GetUserResult { /** * - List of ACP references. See #reference for more details. */ readonly accessControlPolicyReferenceLists: outputs.GetUserAccessControlPolicyReferenceList[]; /** * The version of the API. */ readonly apiVersion: string; /** * - (Optional) Categories for the Access Control Policy. */ readonly categories: outputs.GetUserCategory[]; /** * - (Optional) The directory service user configuration. See below for more information. */ readonly directoryServiceUsers: outputs.GetUserDirectoryServiceUser[]; /** * - The display name of the user (common name) provided by the directory service. */ readonly displayName: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * - (Optional) (Optional) The identity provider user configuration. See below for more information. */ readonly identityProviderUsers: outputs.GetUserIdentityProviderUser[]; /** * - The user kind metadata. */ readonly metadata: { [key: string]: string; }; /** * - (Optional) The reference to a user. */ readonly ownerReference: { [key: string]: string; }; /** * - (Optional) The reference to a project. */ readonly projectReference?: { [key: string]: string; }; /** * - A list of projects the user is part of. See #reference for more details. */ readonly projectReferenceLists: outputs.GetUserProjectReferenceList[]; /** * - The state of the entity. */ readonly state: string; readonly userId?: string; readonly userName?: string; /** * - The name of the user. */ readonly userType: string; } /** * Provides a datasource to retrieve a user based on the input parameters. * * ## Example Usage * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const userUser = new nutanix.User("user", {directoryServiceUser: { * userPrincipalName: "test-user@ntnxlab.local", * directoryServiceReference: { * uuid: "", * }, * }}); * //Retrieve by UUID * const user = nutanix.getUserOutput({ * userId: userUser.id, * }); * //Retrieve by Name * const userbyname = nutanix.getUserOutput({ * userName: userUser.name, * }); * ``` * */ export declare function getUserOutput(args?: GetUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getUser. */ export interface GetUserOutputArgs { /** * - (Optional) Categories for the Access Control Policy. */ categories?: pulumi.Input[] | undefined>; /** * - (Optional) The reference to a user. */ ownerReference?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * - (Optional) The reference to a project. */ projectReference?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; userId?: pulumi.Input; userName?: pulumi.Input; } //# sourceMappingURL=getUser.d.ts.map