sysdig 1.53.0 published on Thursday, Apr 17, 2025 by sysdiglabs
sysdig.getCurrentUser
Explore with Pulumi AI
sysdig 1.53.0 published on Thursday, Apr 17, 2025 by sysdiglabs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const me = sysdig.getCurrentUser({});
import pulumi
import pulumi_sysdig as sysdig
me = sysdig.get_current_user()
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sysdig.GetCurrentUser(ctx, &sysdig.GetCurrentUserArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sysdig = Pulumi.Sysdig;
return await Deployment.RunAsync(() => 
{
    var me = Sysdig.GetCurrentUser.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.SysdigFunctions;
import com.pulumi.sysdig.inputs.GetCurrentUserArgs;
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 me = SysdigFunctions.getCurrentUser();
    }
}
variables:
  me:
    fn::invoke:
      function: sysdig:getCurrentUser
      arguments: {}
Using getCurrentUser
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 getCurrentUser(args: GetCurrentUserArgs, opts?: InvokeOptions): Promise<GetCurrentUserResult>
function getCurrentUserOutput(args: GetCurrentUserOutputArgs, opts?: InvokeOptions): Output<GetCurrentUserResult>def get_current_user(id: Optional[str] = None,
                     timeouts: Optional[GetCurrentUserTimeouts] = None,
                     opts: Optional[InvokeOptions] = None) -> GetCurrentUserResult
def get_current_user_output(id: Optional[pulumi.Input[str]] = None,
                     timeouts: Optional[pulumi.Input[GetCurrentUserTimeoutsArgs]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetCurrentUserResult]func GetCurrentUser(ctx *Context, args *GetCurrentUserArgs, opts ...InvokeOption) (*GetCurrentUserResult, error)
func GetCurrentUserOutput(ctx *Context, args *GetCurrentUserOutputArgs, opts ...InvokeOption) GetCurrentUserResultOutput> Note: This function is named GetCurrentUser in the Go SDK.
public static class GetCurrentUser 
{
    public static Task<GetCurrentUserResult> InvokeAsync(GetCurrentUserArgs args, InvokeOptions? opts = null)
    public static Output<GetCurrentUserResult> Invoke(GetCurrentUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCurrentUserResult> getCurrentUser(GetCurrentUserArgs args, InvokeOptions options)
public static Output<GetCurrentUserResult> getCurrentUser(GetCurrentUserArgs args, InvokeOptions options)
fn::invoke:
  function: sysdig:index/getCurrentUser:getCurrentUser
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
 - The current user's ID.
 - Timeouts
Get
Current User Timeouts  
- Id string
 - The current user's ID.
 - Timeouts
Get
Current User Timeouts  
- id String
 - The current user's ID.
 - timeouts
Get
Current User Timeouts  
- id string
 - The current user's ID.
 - timeouts
Get
Current User Timeouts  
- id str
 - The current user's ID.
 - timeouts
Get
Current User Timeouts  
- id String
 - The current user's ID.
 - timeouts Property Map
 
getCurrentUser Result
The following output properties are available:
- Email string
 - The user email.
 - Id string
 - The current user's ID.
 - Last
Name string - The user's last name.
 - Name string
 - The user's first name.
 - System
Role string - The user's system role.
 - Timeouts
Get
Current User Timeouts  
- Email string
 - The user email.
 - Id string
 - The current user's ID.
 - Last
Name string - The user's last name.
 - Name string
 - The user's first name.
 - System
Role string - The user's system role.
 - Timeouts
Get
Current User Timeouts  
- email String
 - The user email.
 - id String
 - The current user's ID.
 - last
Name String - The user's last name.
 - name String
 - The user's first name.
 - system
Role String - The user's system role.
 - timeouts
Get
Current User Timeouts  
- email string
 - The user email.
 - id string
 - The current user's ID.
 - last
Name string - The user's last name.
 - name string
 - The user's first name.
 - system
Role string - The user's system role.
 - timeouts
Get
Current User Timeouts  
- email str
 - The user email.
 - id str
 - The current user's ID.
 - last_
name str - The user's last name.
 - name str
 - The user's first name.
 - system_
role str - The user's system role.
 - timeouts
Get
Current User Timeouts  
- email String
 - The user email.
 - id String
 - The current user's ID.
 - last
Name String - The user's last name.
 - name String
 - The user's first name.
 - system
Role String - The user's system role.
 - timeouts Property Map
 
Supporting Types
GetCurrentUserTimeouts   
- Read string
 
- Read string
 
- read String
 
- read string
 
- read str
 
- read String
 
Package Details
- Repository
 - sysdig sysdiglabs/terraform-provider-sysdig
 - License
 - Notes
 - This Pulumi package is based on the 
sysdigTerraform Provider. 
sysdig 1.53.0 published on Thursday, Apr 17, 2025 by sysdiglabs