Viewing docs for sysdig 3.5.0
published on Friday, Mar 6, 2026 by sysdiglabs
published on Friday, Mar 6, 2026 by sysdiglabs
Viewing docs for sysdig 3.5.0
published on Friday, Mar 6, 2026 by sysdiglabs
published on Friday, Mar 6, 2026 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/v3/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(GetCurrentUserArgs.builder()
.build());
}
}
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:
- Customer
External stringId - The Customer External ID as shown in Customer ID, Name, and External ID. Only available for users with the Admin role; empty for non-admin users.
- Customer
Id double - The ID of the customer (account) the user belongs to, as shown in Customer ID, Name, and External ID.
- Customer
Name string - The name of the customer (account) the user belongs to, as shown in Customer ID, Name, and External ID.
- 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
- Customer
External stringId - The Customer External ID as shown in Customer ID, Name, and External ID. Only available for users with the Admin role; empty for non-admin users.
- Customer
Id float64 - The ID of the customer (account) the user belongs to, as shown in Customer ID, Name, and External ID.
- Customer
Name string - The name of the customer (account) the user belongs to, as shown in Customer ID, Name, and External ID.
- 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
- customer
External StringId - The Customer External ID as shown in Customer ID, Name, and External ID. Only available for users with the Admin role; empty for non-admin users.
- customer
Id Double - The ID of the customer (account) the user belongs to, as shown in Customer ID, Name, and External ID.
- customer
Name String - The name of the customer (account) the user belongs to, as shown in Customer ID, Name, and External ID.
- 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
- customer
External stringId - The Customer External ID as shown in Customer ID, Name, and External ID. Only available for users with the Admin role; empty for non-admin users.
- customer
Id number - The ID of the customer (account) the user belongs to, as shown in Customer ID, Name, and External ID.
- customer
Name string - The name of the customer (account) the user belongs to, as shown in Customer ID, Name, and External ID.
- 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
- customer_
external_ strid - The Customer External ID as shown in Customer ID, Name, and External ID. Only available for users with the Admin role; empty for non-admin users.
- customer_
id float - The ID of the customer (account) the user belongs to, as shown in Customer ID, Name, and External ID.
- customer_
name str - The name of the customer (account) the user belongs to, as shown in Customer ID, Name, and External ID.
- 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
- customer
External StringId - The Customer External ID as shown in Customer ID, Name, and External ID. Only available for users with the Admin role; empty for non-admin users.
- customer
Id Number - The ID of the customer (account) the user belongs to, as shown in Customer ID, Name, and External ID.
- customer
Name String - The name of the customer (account) the user belongs to, as shown in Customer ID, Name, and External ID.
- 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.
Viewing docs for sysdig 3.5.0
published on Friday, Mar 6, 2026 by sysdiglabs
published on Friday, Mar 6, 2026 by sysdiglabs
