GetUser
Use this data source to retrieve information about a Rancher v2 user
Example Usage
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Rancher2.GetUser.InvokeAsync(new Rancher2.GetUserArgs
{
Username = "foo",
}));
}
}
Coming soon!
import pulumi
import pulumi_rancher2 as rancher2
foo = rancher2.get_user(username="foo")import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
const foo = pulumi.output(rancher2.getUser({
username: "foo",
}, { async: true }));Using GetUser
function getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>function get_user(is_external=None, name=None, username=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:
GetUser Result
The following output properties are available:
- Annotations Dictionary<string, object>
(Computed) Annotations of the resource (map)
- Enabled bool
(Computed) The user is enabled (bool)
- Id string
The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, object>
(Computed) Labels of the resource (map)
- Name string
(Computed) The user common name (string)
- Principal
Ids List<string> (Computed) The user principal IDs (list)
- Username string
- Is
External bool
- Annotations map[string]interface{}
(Computed) Annotations of the resource (map)
- Enabled bool
(Computed) The user is enabled (bool)
- Id string
The provider-assigned unique ID for this managed resource.
- Labels map[string]interface{}
(Computed) Labels of the resource (map)
- Name string
(Computed) The user common name (string)
- Principal
Ids []string (Computed) The user principal IDs (list)
- Username string
- Is
External bool
- annotations {[key: string]: any}
(Computed) Annotations of the resource (map)
- enabled boolean
(Computed) The user is enabled (bool)
- id string
The provider-assigned unique ID for this managed resource.
- labels {[key: string]: any}
(Computed) Labels of the resource (map)
- name string
(Computed) The user common name (string)
- principal
Ids string[] (Computed) The user principal IDs (list)
- username string
- is
External boolean
- annotations Dict[str, Any]
(Computed) Annotations of the resource (map)
- enabled bool
(Computed) The user is enabled (bool)
- id str
The provider-assigned unique ID for this managed resource.
- labels Dict[str, Any]
(Computed) Labels of the resource (map)
- name str
(Computed) The user common name (string)
- principal_
ids List[str] (Computed) The user principal IDs (list)
- username str
- is_
external bool
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.