Viewing docs for Linode v3.12.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for Linode v3.12.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
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.
using System.Collections.Generic;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var foo = Linode.GetUser.Invoke(new()
{
Username = "foo",
});
});
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v3/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := linode.LookupUser(ctx, &linode.LookupUserArgs{
Username: "foo",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.inputs.GetUserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var foo = LinodeFunctions.getUser(GetUserArgs.builder()
.username("foo")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const foo = linode.getUser({
username: "foo",
});
import pulumi
import pulumi_linode as linode
foo = linode.get_user(username="foo")
variables:
foo:
fn::invoke:
Function: linode:getUser
Arguments:
username: foo
Using getUser
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOptions): Output<GetUserResult>def get_user(domain_grants: Optional[Sequence[GetUserDomainGrant]] = None,
firewall_grants: Optional[Sequence[GetUserFirewallGrant]] = None,
image_grants: Optional[Sequence[GetUserImageGrant]] = None,
linode_grants: Optional[Sequence[GetUserLinodeGrant]] = None,
longview_grants: Optional[Sequence[GetUserLongviewGrant]] = None,
nodebalancer_grants: Optional[Sequence[GetUserNodebalancerGrant]] = None,
stackscript_grants: Optional[Sequence[GetUserStackscriptGrant]] = None,
username: Optional[str] = None,
volume_grants: Optional[Sequence[GetUserVolumeGrant]] = None,
opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(domain_grants: Optional[pulumi.Input[Sequence[pulumi.Input[GetUserDomainGrantArgs]]]] = None,
firewall_grants: Optional[pulumi.Input[Sequence[pulumi.Input[GetUserFirewallGrantArgs]]]] = None,
image_grants: Optional[pulumi.Input[Sequence[pulumi.Input[GetUserImageGrantArgs]]]] = None,
linode_grants: Optional[pulumi.Input[Sequence[pulumi.Input[GetUserLinodeGrantArgs]]]] = None,
longview_grants: Optional[pulumi.Input[Sequence[pulumi.Input[GetUserLongviewGrantArgs]]]] = None,
nodebalancer_grants: Optional[pulumi.Input[Sequence[pulumi.Input[GetUserNodebalancerGrantArgs]]]] = None,
stackscript_grants: Optional[pulumi.Input[Sequence[pulumi.Input[GetUserStackscriptGrantArgs]]]] = None,
username: Optional[pulumi.Input[str]] = None,
volume_grants: Optional[pulumi.Input[Sequence[pulumi.Input[GetUserVolumeGrantArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput> Note: This function is named LookupUser in the Go SDK.
public static class GetUser
{
public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
fn::invoke:
function: linode:index/getUser:getUser
arguments:
# arguments dictionaryThe following arguments are supported:
- Username string
- The unique username of this User.
- Domain
Grants List<GetUser Domain Grant> - The grants this User has pertaining to Domains on this Account.
- Firewall
Grants List<GetUser Firewall Grant> - The grants this User has pertaining to Firewalls on this Account.
- Image
Grants List<GetUser Image Grant> - The grants this User has pertaining to Images on this Account.
- Linode
Grants List<GetUser Linode Grant> - The grants this User has pertaining to Linodes on this Account.
- Longview
Grants List<GetUser Longview Grant> - The grants this User has pertaining to Longview Clients on this Account.
- Nodebalancer
Grants List<GetUser Nodebalancer Grant> - The grants this User has pertaining to NodeBalancers on this Account.
- Stackscript
Grants List<GetUser Stackscript Grant> - The grants this User has pertaining to StackScripts on this Account.
- Volume
Grants List<GetUser Volume Grant> - The grants this User has pertaining to Volumes on this Account.
- Username string
- The unique username of this User.
- Domain
Grants []GetUser Domain Grant - The grants this User has pertaining to Domains on this Account.
- Firewall
Grants []GetUser Firewall Grant - The grants this User has pertaining to Firewalls on this Account.
- Image
Grants []GetUser Image Grant - The grants this User has pertaining to Images on this Account.
- Linode
Grants []GetUser Linode Grant - The grants this User has pertaining to Linodes on this Account.
- Longview
Grants []GetUser Longview Grant - The grants this User has pertaining to Longview Clients on this Account.
- Nodebalancer
Grants []GetUser Nodebalancer Grant - The grants this User has pertaining to NodeBalancers on this Account.
- Stackscript
Grants []GetUser Stackscript Grant - The grants this User has pertaining to StackScripts on this Account.
- Volume
Grants []GetUser Volume Grant - The grants this User has pertaining to Volumes on this Account.
- username String
- The unique username of this User.
- domain
Grants List<GetUser Domain Grant> - The grants this User has pertaining to Domains on this Account.
- firewall
Grants List<GetUser Firewall Grant> - The grants this User has pertaining to Firewalls on this Account.
- image
Grants List<GetUser Image Grant> - The grants this User has pertaining to Images on this Account.
- linode
Grants List<GetUser Linode Grant> - The grants this User has pertaining to Linodes on this Account.
- longview
Grants List<GetUser Longview Grant> - The grants this User has pertaining to Longview Clients on this Account.
- nodebalancer
Grants List<GetUser Nodebalancer Grant> - The grants this User has pertaining to NodeBalancers on this Account.
- stackscript
Grants List<GetUser Stackscript Grant> - The grants this User has pertaining to StackScripts on this Account.
- volume
Grants List<GetUser Volume Grant> - The grants this User has pertaining to Volumes on this Account.
- username string
- The unique username of this User.
- domain
Grants GetUser Domain Grant[] - The grants this User has pertaining to Domains on this Account.
- firewall
Grants GetUser Firewall Grant[] - The grants this User has pertaining to Firewalls on this Account.
- image
Grants GetUser Image Grant[] - The grants this User has pertaining to Images on this Account.
- linode
Grants GetUser Linode Grant[] - The grants this User has pertaining to Linodes on this Account.
- longview
Grants GetUser Longview Grant[] - The grants this User has pertaining to Longview Clients on this Account.
- nodebalancer
Grants GetUser Nodebalancer Grant[] - The grants this User has pertaining to NodeBalancers on this Account.
- stackscript
Grants GetUser Stackscript Grant[] - The grants this User has pertaining to StackScripts on this Account.
- volume
Grants GetUser Volume Grant[] - The grants this User has pertaining to Volumes on this Account.
- username str
- The unique username of this User.
- domain_
grants Sequence[GetUser Domain Grant] - The grants this User has pertaining to Domains on this Account.
- firewall_
grants Sequence[GetUser Firewall Grant] - The grants this User has pertaining to Firewalls on this Account.
- image_
grants Sequence[GetUser Image Grant] - The grants this User has pertaining to Images on this Account.
- linode_
grants Sequence[GetUser Linode Grant] - The grants this User has pertaining to Linodes on this Account.
- longview_
grants Sequence[GetUser Longview Grant] - The grants this User has pertaining to Longview Clients on this Account.
- nodebalancer_
grants Sequence[GetUser Nodebalancer Grant] - The grants this User has pertaining to NodeBalancers on this Account.
- stackscript_
grants Sequence[GetUser Stackscript Grant] - The grants this User has pertaining to StackScripts on this Account.
- volume_
grants Sequence[GetUser Volume Grant] - The grants this User has pertaining to Volumes on this Account.
- username String
- The unique username of this User.
- domain
Grants List<Property Map> - The grants this User has pertaining to Domains on this Account.
- firewall
Grants List<Property Map> - The grants this User has pertaining to Firewalls on this Account.
- image
Grants List<Property Map> - The grants this User has pertaining to Images on this Account.
- linode
Grants List<Property Map> - The grants this User has pertaining to Linodes on this Account.
- longview
Grants List<Property Map> - The grants this User has pertaining to Longview Clients on this Account.
- nodebalancer
Grants List<Property Map> - The grants this User has pertaining to NodeBalancers on this Account.
- stackscript
Grants List<Property Map> - The grants this User has pertaining to StackScripts on this Account.
- volume
Grants List<Property Map> - The grants this User has pertaining to Volumes on this Account.
getUser Result
The following output properties are available:
- Domain
Grants List<GetUser Domain Grant> - The grants this User has pertaining to Domains on this Account.
- Email string
- The email address for this User, for account management communications, and may be used for other communications as configured.
- Firewall
Grants List<GetUser Firewall Grant> - The grants this User has pertaining to Firewalls on this Account.
- Global
Grants List<GetUser Global Grant> - The Account-level grants a User has.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Grants List<GetUser Image Grant> - The grants this User has pertaining to Images on this Account.
- Linode
Grants List<GetUser Linode Grant> - The grants this User has pertaining to Linodes on this Account.
- Longview
Grants List<GetUser Longview Grant> - The grants this User has pertaining to Longview Clients on this Account.
- Nodebalancer
Grants List<GetUser Nodebalancer Grant> - The grants this User has pertaining to NodeBalancers on this Account.
- Restricted bool
- If true, this User must be granted access to perform actions or access entities on this Account.
- Ssh
Keys List<string> - 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.
- Stackscript
Grants List<GetUser Stackscript Grant> - The grants this User has pertaining to StackScripts on this Account.
- Username string
- Volume
Grants List<GetUser Volume Grant> - The grants this User has pertaining to Volumes on this Account.
- Domain
Grants []GetUser Domain Grant - The grants this User has pertaining to Domains on this Account.
- Email string
- The email address for this User, for account management communications, and may be used for other communications as configured.
- Firewall
Grants []GetUser Firewall Grant - The grants this User has pertaining to Firewalls on this Account.
- Global
Grants []GetUser Global Grant - The Account-level grants a User has.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Grants []GetUser Image Grant - The grants this User has pertaining to Images on this Account.
- Linode
Grants []GetUser Linode Grant - The grants this User has pertaining to Linodes on this Account.
- Longview
Grants []GetUser Longview Grant - The grants this User has pertaining to Longview Clients on this Account.
- Nodebalancer
Grants []GetUser Nodebalancer Grant - The grants this User has pertaining to NodeBalancers on this Account.
- Restricted bool
- If true, this User must be granted access to perform actions or access entities on this Account.
- Ssh
Keys []string - 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.
- Stackscript
Grants []GetUser Stackscript Grant - The grants this User has pertaining to StackScripts on this Account.
- Username string
- Volume
Grants []GetUser Volume Grant - The grants this User has pertaining to Volumes on this Account.
- domain
Grants List<GetUser Domain Grant> - The grants this User has pertaining to Domains on this Account.
- email String
- The email address for this User, for account management communications, and may be used for other communications as configured.
- firewall
Grants List<GetUser Firewall Grant> - The grants this User has pertaining to Firewalls on this Account.
- global
Grants List<GetUser Global Grant> - The Account-level grants a User has.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Grants List<GetUser Image Grant> - The grants this User has pertaining to Images on this Account.
- linode
Grants List<GetUser Linode Grant> - The grants this User has pertaining to Linodes on this Account.
- longview
Grants List<GetUser Longview Grant> - The grants this User has pertaining to Longview Clients on this Account.
- nodebalancer
Grants List<GetUser Nodebalancer Grant> - The grants this User has pertaining to NodeBalancers on this Account.
- restricted Boolean
- If true, this User must be granted access to perform actions or access entities on this Account.
- ssh
Keys List<String> - 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.
- stackscript
Grants List<GetUser Stackscript Grant> - The grants this User has pertaining to StackScripts on this Account.
- username String
- volume
Grants List<GetUser Volume Grant> - The grants this User has pertaining to Volumes on this Account.
- domain
Grants GetUser Domain Grant[] - The grants this User has pertaining to Domains on this Account.
- email string
- The email address for this User, for account management communications, and may be used for other communications as configured.
- firewall
Grants GetUser Firewall Grant[] - The grants this User has pertaining to Firewalls on this Account.
- global
Grants GetUser Global Grant[] - The Account-level grants a User has.
- id string
- The provider-assigned unique ID for this managed resource.
- image
Grants GetUser Image Grant[] - The grants this User has pertaining to Images on this Account.
- linode
Grants GetUser Linode Grant[] - The grants this User has pertaining to Linodes on this Account.
- longview
Grants GetUser Longview Grant[] - The grants this User has pertaining to Longview Clients on this Account.
- nodebalancer
Grants GetUser Nodebalancer Grant[] - The grants this User has pertaining to NodeBalancers on this Account.
- restricted boolean
- If true, this User must be granted access to perform actions or access entities on this Account.
- ssh
Keys string[] - 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.
- stackscript
Grants GetUser Stackscript Grant[] - The grants this User has pertaining to StackScripts on this Account.
- username string
- volume
Grants GetUser Volume Grant[] - The grants this User has pertaining to Volumes on this Account.
- domain_
grants Sequence[GetUser Domain Grant] - The grants this User has pertaining to Domains on this Account.
- email str
- The email address for this User, for account management communications, and may be used for other communications as configured.
- firewall_
grants Sequence[GetUser Firewall Grant] - The grants this User has pertaining to Firewalls on this Account.
- global_
grants Sequence[GetUser Global Grant] - The Account-level grants a User has.
- id str
- The provider-assigned unique ID for this managed resource.
- image_
grants Sequence[GetUser Image Grant] - The grants this User has pertaining to Images on this Account.
- linode_
grants Sequence[GetUser Linode Grant] - The grants this User has pertaining to Linodes on this Account.
- longview_
grants Sequence[GetUser Longview Grant] - The grants this User has pertaining to Longview Clients on this Account.
- nodebalancer_
grants Sequence[GetUser Nodebalancer Grant] - The grants this User has pertaining to NodeBalancers on this Account.
- restricted bool
- If true, this User must be granted access to perform actions or access entities on this Account.
- ssh_
keys Sequence[str] - 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.
- stackscript_
grants Sequence[GetUser Stackscript Grant] - The grants this User has pertaining to StackScripts on this Account.
- username str
- volume_
grants Sequence[GetUser Volume Grant] - The grants this User has pertaining to Volumes on this Account.
- domain
Grants List<Property Map> - The grants this User has pertaining to Domains on this Account.
- email String
- The email address for this User, for account management communications, and may be used for other communications as configured.
- firewall
Grants List<Property Map> - The grants this User has pertaining to Firewalls on this Account.
- global
Grants List<Property Map> - The Account-level grants a User has.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Grants List<Property Map> - The grants this User has pertaining to Images on this Account.
- linode
Grants List<Property Map> - The grants this User has pertaining to Linodes on this Account.
- longview
Grants List<Property Map> - The grants this User has pertaining to Longview Clients on this Account.
- nodebalancer
Grants List<Property Map> - The grants this User has pertaining to NodeBalancers on this Account.
- restricted Boolean
- If true, this User must be granted access to perform actions or access entities on this Account.
- ssh
Keys List<String> - 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.
- stackscript
Grants List<Property Map> - The grants this User has pertaining to StackScripts on this Account.
- username String
- volume
Grants List<Property Map> - The grants this User has pertaining to Volumes on this Account.
Supporting Types
GetUserDomainGrant
- Id int
- Permissions string
- Id int
- Permissions string
- id Integer
- permissions String
- id number
- permissions string
- id int
- permissions str
- id Number
- permissions String
GetUserFirewallGrant
- Id int
- Permissions string
- Id int
- Permissions string
- id Integer
- permissions String
- id number
- permissions string
- id int
- permissions str
- id Number
- permissions String
GetUserGlobalGrant
- Account
Access string - Add
Databases bool - Add
Domains bool - Add
Firewalls bool - Add
Images bool - Add
Linodes bool - Add
Longview bool - Add
Nodebalancers bool - Add
Stackscripts bool - Add
Volumes bool - Cancel
Account bool - Longview
Subscription bool
- Account
Access string - Add
Databases bool - Add
Domains bool - Add
Firewalls bool - Add
Images bool - Add
Linodes bool - Add
Longview bool - Add
Nodebalancers bool - Add
Stackscripts bool - Add
Volumes bool - Cancel
Account bool - Longview
Subscription bool
- account
Access String - add
Databases Boolean - add
Domains Boolean - add
Firewalls Boolean - add
Images Boolean - add
Linodes Boolean - add
Longview Boolean - add
Nodebalancers Boolean - add
Stackscripts Boolean - add
Volumes Boolean - cancel
Account Boolean - longview
Subscription Boolean
- account
Access string - add
Databases boolean - add
Domains boolean - add
Firewalls boolean - add
Images boolean - add
Linodes boolean - add
Longview boolean - add
Nodebalancers boolean - add
Stackscripts boolean - add
Volumes boolean - cancel
Account boolean - longview
Subscription boolean
- account_
access str - add_
databases bool - add_
domains bool - add_
firewalls bool - add_
images bool - add_
linodes bool - add_
longview bool - add_
nodebalancers bool - add_
stackscripts bool - add_
volumes bool - cancel_
account bool - longview_
subscription bool
- account
Access String - add
Databases Boolean - add
Domains Boolean - add
Firewalls Boolean - add
Images Boolean - add
Linodes Boolean - add
Longview Boolean - add
Nodebalancers Boolean - add
Stackscripts Boolean - add
Volumes Boolean - cancel
Account Boolean - longview
Subscription Boolean
GetUserImageGrant
- Id int
- Permissions string
- Id int
- Permissions string
- id Integer
- permissions String
- id number
- permissions string
- id int
- permissions str
- id Number
- permissions String
GetUserLinodeGrant
- Id int
- Permissions string
- Id int
- Permissions string
- id Integer
- permissions String
- id number
- permissions string
- id int
- permissions str
- id Number
- permissions String
GetUserLongviewGrant
- Id int
- Permissions string
- Id int
- Permissions string
- id Integer
- permissions String
- id number
- permissions string
- id int
- permissions str
- id Number
- permissions String
GetUserNodebalancerGrant
- Id int
- Permissions string
- Id int
- Permissions string
- id Integer
- permissions String
- id number
- permissions string
- id int
- permissions str
- id Number
- permissions String
GetUserStackscriptGrant
- Id int
- Permissions string
- Id int
- Permissions string
- id Integer
- permissions String
- id number
- permissions string
- id int
- permissions str
- id Number
- permissions String
GetUserVolumeGrant
- Id int
- Permissions string
- Id int
- Permissions string
- id Integer
- permissions String
- id number
- permissions string
- id int
- permissions str
- id Number
- permissions String
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.
Viewing docs for Linode v3.12.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
