1. Packages
  2. Logzio Provider
  3. API Docs
  4. getUser
logzio 1.17.1 published on Monday, Apr 14, 2025 by logzio

logzio.getUser

Explore with Pulumi AI

# User Datasource

Use this data source to access information about existing Logz.io users.

Attribute Reference

  • fullname - First and last name of the user.
  • role - User role. Can be USER_ROLE_READONLY, USER_ROLE_REGULAR or USER_ROLE_ACCOUNT_ADMIN.
  • active - If true, the user is active, if false, the user is suspended.
  • account_id - Logz.io account ID.

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>
Copy
def get_user(id: Optional[float] = None,
             username: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(id: Optional[pulumi.Input[float]] = None,
             username: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]
Copy
func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: logzio:index/getUser:getUser
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id double
ID of the user in the Logz.io platform.
Username string
Username credential.
Id float64
ID of the user in the Logz.io platform.
Username string
Username credential.
id Double
ID of the user in the Logz.io platform.
username String
Username credential.
id number
ID of the user in the Logz.io platform.
username string
Username credential.
id float
ID of the user in the Logz.io platform.
username str
Username credential.
id Number
ID of the user in the Logz.io platform.
username String
Username credential.

getUser Result

The following output properties are available:

AccountId double
Active bool
Fullname string
Role string
Id double
Username string
AccountId float64
Active bool
Fullname string
Role string
Id float64
Username string
accountId Double
active Boolean
fullname String
role String
id Double
username String
accountId number
active boolean
fullname string
role string
id number
username string
account_id float
active bool
fullname str
role str
id float
username str
accountId Number
active Boolean
fullname String
role String
id Number
username String

Package Details

Repository
logzio logzio/terraform-provider-logzio
License
Notes
This Pulumi package is based on the logzio Terraform Provider.