Class GetUser
Inheritance
System.Object
GetUser
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.OpenStack.Identity
Assembly: Pulumi.OpenStack.dll
Syntax
public static class GetUser
Methods
View SourceInvokeAsync(GetUserArgs, InvokeOptions)
Use this data source to get the ID of an OpenStack user.
{{% examples %}}
Example Usage
{{% example %}}
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",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetUserResult> InvokeAsync(GetUserArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetUserArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetUserResult> |