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
LookupUserin the Go SDK.
public static class GetUser {
public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Domain
Id string The domain this user belongs to.
- Enabled bool
Whether the user is enabled or disabled. Valid values are
trueandfalse.- Idp
Id string The identity provider ID of the user.
- Name string
The name of the user.
- Password
Expires stringAt Query for expired passwords. See the OpenStack API docs for more information on the query format.
- Protocol
Id string The protocol ID of the user.
- Region string
The region the user is located in.
- Unique
Id string The unique ID of the user.
- Domain
Id string The domain this user belongs to.
- Enabled bool
Whether the user is enabled or disabled. Valid values are
trueandfalse.- Idp
Id string The identity provider ID of the user.
- Name string
The name of the user.
- Password
Expires stringAt Query for expired passwords. See the OpenStack API docs for more information on the query format.
- Protocol
Id string The protocol ID of the user.
- Region string
The region the user is located in.
- Unique
Id string The unique ID of the user.
- domain
Id string The domain this user belongs to.
- enabled boolean
Whether the user is enabled or disabled. Valid values are
trueandfalse.- idp
Id string The identity provider ID of the user.
- name string
The name of the user.
- password
Expires stringAt Query for expired passwords. See the OpenStack API docs for more information on the query format.
- protocol
Id string The protocol ID of the user.
- region string
The region the user is located in.
- unique
Id 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
trueandfalse.- idp_
id str The identity provider ID of the user.
- name str
The name of the user.
- password_
expires_ strat 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:
- Default
Project stringId See Argument Reference above.
- Description string
A description of the user.
- Domain
Id 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.
- Idp
Id string See Argument Reference above.
- Name string
See Argument Reference above.
- Password
Expires stringAt See Argument Reference above.
- Protocol
Id string See Argument Reference above.
- Unique
Id string See Argument Reference above.
- Default
Project stringId See Argument Reference above.
- Description string
A description of the user.
- Domain
Id 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.
- Idp
Id string See Argument Reference above.
- Name string
See Argument Reference above.
- Password
Expires stringAt See Argument Reference above.
- Protocol
Id string See Argument Reference above.
- Unique
Id string See Argument Reference above.
- default
Project stringId See Argument Reference above.
- description string
A description of the user.
- domain
Id 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.
- idp
Id string See Argument Reference above.
- name string
See Argument Reference above.
- password
Expires stringAt See Argument Reference above.
- protocol
Id string See Argument Reference above.
- unique
Id string See Argument Reference above.
- default_
project_ strid 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_ strat 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
openstackTerraform Provider.