1. Packages
  2. Wavefront
  3. API Docs
  4. getUser
Wavefront v3.1.4 published on Friday, Sep 20, 2024 by Pulumi

wavefront.getUser

Explore with Pulumi AI

wavefront logo
Wavefront v3.1.4 published on Friday, Sep 20, 2024 by Pulumi

    Use this data source to get information for a given user by email from Wavefront.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as wavefront from "@pulumi/wavefront";
    
    // Get the info for user "example.user@example.com"
    const example = wavefront.getUser({
        email: "example.user@example.com",
    });
    
    import pulumi
    import pulumi_wavefront as wavefront
    
    # Get the info for user "example.user@example.com"
    example = wavefront.get_user(email="example.user@example.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-wavefront/sdk/v3/go/wavefront"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Get the info for user "example.user@example.com"
    		_, err := wavefront.LookupUser(ctx, &wavefront.LookupUserArgs{
    			Email: "example.user@example.com",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Wavefront = Pulumi.Wavefront;
    
    return await Deployment.RunAsync(() => 
    {
        // Get the info for user "example.user@example.com"
        var example = Wavefront.GetUser.Invoke(new()
        {
            Email = "example.user@example.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.wavefront.WavefrontFunctions;
    import com.pulumi.wavefront.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) {
            // Get the info for user "example.user@example.com"
            final var example = WavefrontFunctions.getUser(GetUserArgs.builder()
                .email("example.user@example.com")
                .build());
    
        }
    }
    
    variables:
      # Get the info for user "example.user@example.com"
      example:
        fn::invoke:
          Function: wavefront:getUser
          Arguments:
            email: example.user@example.com
    

    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(email: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetUserResult
    def get_user_output(email: Optional[pulumi.Input[str]] = 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: wavefront:index/getUser:getUser
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Email string
    The email associated with the user data to be fetched.
    Email string
    The email associated with the user data to be fetched.
    email String
    The email associated with the user data to be fetched.
    email string
    The email associated with the user data to be fetched.
    email str
    The email associated with the user data to be fetched.
    email String
    The email associated with the user data to be fetched.

    getUser Result

    The following output properties are available:

    Customer string
    The customer the user is associated with.
    Email string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastSuccessfulLogin int
    When the user last logged in to Wavefront.
    Permissions List<string>
    List of permissions granted to a user.
    UserGroupIds List<string>
    List of User Group Ids the user is a member of.
    Customer string
    The customer the user is associated with.
    Email string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastSuccessfulLogin int
    When the user last logged in to Wavefront.
    Permissions []string
    List of permissions granted to a user.
    UserGroupIds []string
    List of User Group Ids the user is a member of.
    customer String
    The customer the user is associated with.
    email String
    id String
    The provider-assigned unique ID for this managed resource.
    lastSuccessfulLogin Integer
    When the user last logged in to Wavefront.
    permissions List<String>
    List of permissions granted to a user.
    userGroupIds List<String>
    List of User Group Ids the user is a member of.
    customer string
    The customer the user is associated with.
    email string
    id string
    The provider-assigned unique ID for this managed resource.
    lastSuccessfulLogin number
    When the user last logged in to Wavefront.
    permissions string[]
    List of permissions granted to a user.
    userGroupIds string[]
    List of User Group Ids the user is a member of.
    customer str
    The customer the user is associated with.
    email str
    id str
    The provider-assigned unique ID for this managed resource.
    last_successful_login int
    When the user last logged in to Wavefront.
    permissions Sequence[str]
    List of permissions granted to a user.
    user_group_ids Sequence[str]
    List of User Group Ids the user is a member of.
    customer String
    The customer the user is associated with.
    email String
    id String
    The provider-assigned unique ID for this managed resource.
    lastSuccessfulLogin Number
    When the user last logged in to Wavefront.
    permissions List<String>
    List of permissions granted to a user.
    userGroupIds List<String>
    List of User Group Ids the user is a member of.

    Package Details

    Repository
    Wavefront pulumi/pulumi-wavefront
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the wavefront Terraform Provider.
    wavefront logo
    Wavefront v3.1.4 published on Friday, Sep 20, 2024 by Pulumi