-
Notifications
You must be signed in to change notification settings - Fork 7
/
getUser.ts
61 lines (57 loc) · 1.9 KB
/
getUser.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
/**
* Provides information about a Linode user
*
* ## Example Usage
*
* The following example shows how one might use this data source to access information about a Linode user.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const foo = pulumi.output(linode.getUser({
* username: "foo",
* }));
* ```
*
* ## 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.
*/
export function getUser(args: GetUserArgs, opts?: pulumi.InvokeOptions): Promise<GetUserResult> {
return pulumi.runtime.invoke("linode:index/getUser:getUser", {
"username": args.username,
}, opts);
}
/**
* A collection of arguments for invoking getUser.
*/
export interface GetUserArgs {
/**
* The unique username of this User.
*/
readonly username: string;
}
/**
* A collection of values returned by getUser.
*/
export interface GetUserResult {
readonly email: string;
readonly restricted: boolean;
readonly sshKeys: string[];
readonly username: string;
/**
* id is the provider-assigned unique ID for this managed resource.
*/
readonly id: string;
}