1. Packages
  2. Aquasec
  3. API Docs
  4. getUsersSaas
Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse

aquasec.getUsersSaas

Explore with Pulumi AI

aquasec logo
Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse

    The data source aquasec.getUsersSaas provides a method to query all saas users within the Aqua users management. The fields returned from this query are detailed in the Schema section below.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aquasec from "@pulumi/aquasec";
    
    const users = aquasec.getUsers({});
    export const firstUserEmail = data.aquasec_users_saas.users.users[0].email;
    
    import pulumi
    import pulumi_aquasec as aquasec
    
    users = aquasec.get_users()
    pulumi.export("firstUserEmail", data["aquasec_users_saas"]["users"]["users"][0]["email"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-aquasec/sdk/go/aquasec"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aquasec.GetUsers(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("firstUserEmail", data.Aquasec_users_saas.Users.Users[0].Email)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aquasec = Pulumi.Aquasec;
    
    return await Deployment.RunAsync(() => 
    {
        var users = Aquasec.GetUsers.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["firstUserEmail"] = data.Aquasec_users_saas.Users.Users[0].Email,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aquasec.AquasecFunctions;
    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 users = AquasecFunctions.getUsers();
    
            ctx.export("firstUserEmail", data.aquasec_users_saas().users().users()[0].email());
        }
    }
    
    variables:
      users:
        fn::invoke:
          Function: aquasec:getUsers
          Arguments: {}
    outputs:
      firstUserEmail: ${data.aquasec_users_saas.users.users[0].email}
    

    Using getUsersSaas

    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 getUsersSaas(opts?: InvokeOptions): Promise<GetUsersSaasResult>
    function getUsersSaasOutput(opts?: InvokeOptions): Output<GetUsersSaasResult>
    def get_users_saas(opts: Optional[InvokeOptions] = None) -> GetUsersSaasResult
    def get_users_saas_output(opts: Optional[InvokeOptions] = None) -> Output[GetUsersSaasResult]
    func GetUsersSaas(ctx *Context, opts ...InvokeOption) (*GetUsersSaasResult, error)
    func GetUsersSaasOutput(ctx *Context, opts ...InvokeOption) GetUsersSaasResultOutput

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

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

    getUsersSaas Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Users List<Pulumiverse.Aquasec.Outputs.GetUsersSaasUser>
    Id string
    The provider-assigned unique ID for this managed resource.
    Users []GetUsersSaasUser
    id String
    The provider-assigned unique ID for this managed resource.
    users List<GetUsersSaasUser>
    id string
    The provider-assigned unique ID for this managed resource.
    users GetUsersSaasUser[]
    id str
    The provider-assigned unique ID for this managed resource.
    users Sequence[GetUsersSaasUser]
    id String
    The provider-assigned unique ID for this managed resource.
    users List<Property Map>

    Supporting Types

    GetUsersSaasUser

    GetUsersSaasUserGroup

    Created string
    Id int
    Name string
    Created string
    Id int
    Name string
    created String
    id Integer
    name String
    created string
    id number
    name string
    created str
    id int
    name str
    created String
    id Number
    name String

    GetUsersSaasUserLogin

    Created string
    Id int
    IpAddress string
    UserId int
    Created string
    Id int
    IpAddress string
    UserId int
    created String
    id Integer
    ipAddress String
    userId Integer
    created string
    id number
    ipAddress string
    userId number
    created String
    id Number
    ipAddress String
    userId Number

    Package Details

    Repository
    aquasec pulumiverse/pulumi-aquasec
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aquasec Terraform Provider.
    aquasec logo
    Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse