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

wavefront.getUsers

Explore with Pulumi AI

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

    Use this data source to get all users in Wavefront.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as wavefront from "@pulumi/wavefront";
    
    // Get all users
    const users = wavefront.getUsers({});
    
    import pulumi
    import pulumi_wavefront as wavefront
    
    # Get all users
    users = wavefront.get_users()
    
    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 all users
    		_, err := wavefront.GetUsers(ctx, nil, 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 all users
        var users = Wavefront.GetUsers.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.wavefront.WavefrontFunctions;
    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 all users
            final var users = WavefrontFunctions.getUsers();
    
        }
    }
    
    variables:
      # Get all users
      users:
        fn::invoke:
          Function: wavefront:getUsers
          Arguments: {}
    

    Using getUsers

    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 getUsers(opts?: InvokeOptions): Promise<GetUsersResult>
    function getUsersOutput(opts?: InvokeOptions): Output<GetUsersResult>
    def get_users(opts: Optional[InvokeOptions] = None) -> GetUsersResult
    def get_users_output(opts: Optional[InvokeOptions] = None) -> Output[GetUsersResult]
    func GetUsers(ctx *Context, opts ...InvokeOption) (*GetUsersResult, error)
    func GetUsersOutput(ctx *Context, opts ...InvokeOption) GetUsersResultOutput

    > Note: This function is named GetUsers in the Go SDK.

    public static class GetUsers 
    {
        public static Task<GetUsersResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetUsersResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUsersResult> getUsers(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: wavefront:index/getUsers:getUsers
      arguments:
        # arguments dictionary

    getUsers Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Users List<GetUsersUser>
    List of all users in Wavefront.
    Id string
    The provider-assigned unique ID for this managed resource.
    Users []GetUsersUser
    List of all users in Wavefront.
    id String
    The provider-assigned unique ID for this managed resource.
    users List<GetUsersUser>
    List of all users in Wavefront.
    id string
    The provider-assigned unique ID for this managed resource.
    users GetUsersUser[]
    List of all users in Wavefront.
    id str
    The provider-assigned unique ID for this managed resource.
    users Sequence[GetUsersUser]
    List of all users in Wavefront.
    id String
    The provider-assigned unique ID for this managed resource.
    users List<Property Map>
    List of all users in Wavefront.

    Supporting Types

    GetUsersUser

    Customer string
    The customer the user is associated with.
    Email string
    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
    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
    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
    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
    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
    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