GetUser
Provides information about a Linode user
Attributes
The Linode User resource exports the following attributes:
ssh_keys- A list of SSH Key labels added by this User. These are the keys that will be deployed if this User is included in the authorized_users field of a create Linode, rebuild Linode, or create Disk request.email- The email address for this User, for account management communications, and may be used for other communications as configured.restricted- If true, this User must be granted access to perform actions or access entities on this Account.
Example Usage
using Pulumi;
using Linode = Pulumi.Linode;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Linode.GetUser.InvokeAsync(new Linode.GetUserArgs
{
Username = "foo",
}));
}
}
Coming soon!
import pulumi
import pulumi_linode as linode
foo = linode.get_user(username="foo")import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const foo = pulumi.output(linode.getUser({
username: "foo",
}, { async: true }));Using GetUser
function getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>function get_user(username=None, opts=None)func GetUser(ctx *Context, args *GetUserArgs, opts ...InvokeOption) (*GetUserResult, error)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:
- Email string
- Id string
The provider-assigned unique ID for this managed resource.
- Restricted bool
- Ssh
Keys List<string> - Username string
Package Details
- Repository
- https://github.com/pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.