UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

159 lines (158 loc) 4 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get the ID of an OpenStack user. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const user1 = openstack.identity.getUser({ * name: "user_1", * }); * ``` */ export declare function getUser(args?: GetUserArgs, opts?: pulumi.InvokeOptions): Promise<GetUserResult>; /** * A collection of arguments for invoking getUser. */ export interface GetUserArgs { /** * The domain this user belongs to. */ domainId?: string; /** * Whether the user is enabled or disabled. Valid * values are `true` and `false`. */ enabled?: boolean; /** * The identity provider ID of the user. */ idpId?: string; /** * The name of the user. */ name?: string; /** * Query for expired passwords. See the [OpenStack API docs](https://developer.openstack.org/api-ref/identity/v3/#list-users) for more information on the query format. */ passwordExpiresAt?: string; /** * The protocol ID of the user. */ protocolId?: string; /** * The region in which to obtain the V3 Keystone client. * If omitted, the `region` argument of the provider is used. */ region?: string; /** * The unique ID of the user. */ uniqueId?: string; } /** * A collection of values returned by getUser. */ export interface GetUserResult { /** * See Argument Reference above. */ readonly defaultProjectId: string; /** * A description of the user. */ readonly description: string; /** * See Argument Reference above. */ readonly domainId: string; /** * See Argument Reference above. */ readonly enabled: boolean; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * See Argument Reference above. */ readonly idpId?: string; /** * See Argument Reference above. */ readonly name?: string; /** * See Argument Reference above. */ readonly passwordExpiresAt?: string; /** * See Argument Reference above. */ readonly protocolId?: string; /** * See Argument Reference above. */ readonly region: string; /** * See Argument Reference above. */ readonly uniqueId?: string; } /** * Use this data source to get the ID of an OpenStack user. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const user1 = openstack.identity.getUser({ * name: "user_1", * }); * ``` */ export declare function getUserOutput(args?: GetUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetUserResult>; /** * A collection of arguments for invoking getUser. */ export interface GetUserOutputArgs { /** * The domain this user belongs to. */ domainId?: pulumi.Input<string>; /** * Whether the user is enabled or disabled. Valid * values are `true` and `false`. */ enabled?: pulumi.Input<boolean>; /** * The identity provider ID of the user. */ idpId?: pulumi.Input<string>; /** * The name of the user. */ name?: pulumi.Input<string>; /** * Query for expired passwords. See the [OpenStack API docs](https://developer.openstack.org/api-ref/identity/v3/#list-users) for more information on the query format. */ passwordExpiresAt?: pulumi.Input<string>; /** * The protocol ID of the user. */ protocolId?: pulumi.Input<string>; /** * The region in which to obtain the V3 Keystone client. * If omitted, the `region` argument of the provider is used. */ region?: pulumi.Input<string>; /** * The unique ID of the user. */ uniqueId?: pulumi.Input<string>; }