GetUser

Use this data source to get the ID of an OpenStack user.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var user1 = Output.Create(OpenStack.Identity.GetUser.InvokeAsync(new OpenStack.Identity.GetUserArgs
        {
            Name = "user_1",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

user1 = openstack.identity.get_user(name="user_1")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const user1 = pulumi.output(openstack.identity.getUser({
    name: "user_1",
}, { async: true }));

Using GetUser

function getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
function  get_user(domain_id=None, enabled=None, idp_id=None, name=None, password_expires_at=None, protocol_id=None, region=None, unique_id=None, opts=None)
func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)

Note: This function is named LookupUser in the Go SDK.

public static class GetUser {
    public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

DomainId string

The domain this user belongs to.

Enabled bool

Whether the user is enabled or disabled. Valid values are true and false.

IdpId string

The identity provider ID of the user.

Name string

The name of the user.

PasswordExpiresAt string

Query for expired passwords. See the OpenStack API docs for more information on the query format.

ProtocolId string

The protocol ID of the user.

Region string

The region the user is located in.

UniqueId string

The unique ID of the user.

DomainId string

The domain this user belongs to.

Enabled bool

Whether the user is enabled or disabled. Valid values are true and false.

IdpId string

The identity provider ID of the user.

Name string

The name of the user.

PasswordExpiresAt string

Query for expired passwords. See the OpenStack API docs for more information on the query format.

ProtocolId string

The protocol ID of the user.

Region string

The region the user is located in.

UniqueId string

The unique ID of the user.

domainId string

The domain this user belongs to.

enabled boolean

Whether the user is enabled or disabled. Valid values are true and false.

idpId string

The identity provider ID of the user.

name string

The name of the user.

passwordExpiresAt string

Query for expired passwords. See the OpenStack API docs for more information on the query format.

protocolId string

The protocol ID of the user.

region string

The region the user is located in.

uniqueId string

The unique ID of the user.

domain_id str

The domain this user belongs to.

enabled bool

Whether the user is enabled or disabled. Valid values are true and false.

idp_id str

The identity provider ID of the user.

name str

The name of the user.

password_expires_at str

Query for expired passwords. See the OpenStack API docs for more information on the query format.

protocol_id str

The protocol ID of the user.

region str

The region the user is located in.

unique_id str

The unique ID of the user.

GetUser Result

The following output properties are available:

DefaultProjectId string

See Argument Reference above.

Description string

A description of the user.

DomainId string

See Argument Reference above.

Id string

The provider-assigned unique ID for this managed resource.

Region string

The region the user is located in.

Enabled bool

See Argument Reference above.

IdpId string

See Argument Reference above.

Name string

See Argument Reference above.

PasswordExpiresAt string

See Argument Reference above.

ProtocolId string

See Argument Reference above.

UniqueId string

See Argument Reference above.

DefaultProjectId string

See Argument Reference above.

Description string

A description of the user.

DomainId string

See Argument Reference above.

Id string

The provider-assigned unique ID for this managed resource.

Region string

The region the user is located in.

Enabled bool

See Argument Reference above.

IdpId string

See Argument Reference above.

Name string

See Argument Reference above.

PasswordExpiresAt string

See Argument Reference above.

ProtocolId string

See Argument Reference above.

UniqueId string

See Argument Reference above.

defaultProjectId string

See Argument Reference above.

description string

A description of the user.

domainId string

See Argument Reference above.

id string

The provider-assigned unique ID for this managed resource.

region string

The region the user is located in.

enabled boolean

See Argument Reference above.

idpId string

See Argument Reference above.

name string

See Argument Reference above.

passwordExpiresAt string

See Argument Reference above.

protocolId string

See Argument Reference above.

uniqueId string

See Argument Reference above.

default_project_id str

See Argument Reference above.

description str

A description of the user.

domain_id str

See Argument Reference above.

id str

The provider-assigned unique ID for this managed resource.

region str

The region the user is located in.

enabled bool

See Argument Reference above.

idp_id str

See Argument Reference above.

name str

See Argument Reference above.

password_expires_at str

See Argument Reference above.

protocol_id str

See Argument Reference above.

unique_id str

See Argument Reference above.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.