Aquasec v0.8.27 published on Monday, Jan 29, 2024 by Pulumiverse
aquasec.getUsersSaas
Explore with Pulumi AI
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
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 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
})
}
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());
}
}
import pulumi
import pulumi_aquasec as aquasec
users = aquasec.get_users()
pulumi.export("firstUserEmail", data["aquasec_users_saas"]["users"]["users"][0]["email"])
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;
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. Get Users Saas User>
- Id string
- The provider-assigned unique ID for this managed resource.
- Users
[]Get
Users Saas User
- id String
- The provider-assigned unique ID for this managed resource.
- users
List<Get
Users Saas User>
- id string
- The provider-assigned unique ID for this managed resource.
- users
Get
Users Saas User[]
- id str
- The provider-assigned unique ID for this managed resource.
- users
Sequence[Get
Users Saas User]
- id String
- The provider-assigned unique ID for this managed resource.
- users List<Property Map>
Supporting Types
GetUsersSaasUser
- Account
Admin bool - Confirmed bool
- Created string
- Csp
Roles List<string> - Dashboard bool
- Email string
- Groups
List<Pulumiverse.
Aquasec. Inputs. Get Users Saas User Group> - Logins
List<Pulumiverse.
Aquasec. Inputs. Get Users Saas User Login> - Multiaccount bool
- Password
Reset bool - Provider string
- Send
Announcements bool - Send
New boolPlugins - Send
New boolRisks - Send
Scan boolResults - User
Id string
- Account
Admin bool - Confirmed bool
- Created string
- Csp
Roles []string - Dashboard bool
- Email string
- Groups
[]Get
Users Saas User Group - Logins
[]Get
Users Saas User Login - Multiaccount bool
- Password
Reset bool - Provider string
- Send
Announcements bool - Send
New boolPlugins - Send
New boolRisks - Send
Scan boolResults - User
Id string
- account
Admin Boolean - confirmed Boolean
- created String
- csp
Roles List<String> - dashboard Boolean
- email String
- groups
List<Get
Users Saas User Group> - logins
List<Get
Users Saas User Login> - multiaccount Boolean
- password
Reset Boolean - provider String
- send
Announcements Boolean - send
New BooleanPlugins - send
New BooleanRisks - send
Scan BooleanResults - user
Id String
- account
Admin boolean - confirmed boolean
- created string
- csp
Roles string[] - dashboard boolean
- email string
- groups
Get
Users Saas User Group[] - logins
Get
Users Saas User Login[] - multiaccount boolean
- password
Reset boolean - provider string
- send
Announcements boolean - send
New booleanPlugins - send
New booleanRisks - send
Scan booleanResults - user
Id string
- account_
admin bool - confirmed bool
- created str
- csp_
roles Sequence[str] - dashboard bool
- email str
- groups
Sequence[Get
Users Saas User Group] - logins
Sequence[Get
Users Saas User Login] - multiaccount bool
- password_
reset bool - provider str
- send_
announcements bool - send_
new_ boolplugins - send_
new_ boolrisks - send_
scan_ boolresults - user_
id str
- account
Admin Boolean - confirmed Boolean
- created String
- csp
Roles List<String> - dashboard Boolean
- email String
- groups List<Property Map>
- logins List<Property Map>
- multiaccount Boolean
- password
Reset Boolean - provider String
- send
Announcements Boolean - send
New BooleanPlugins - send
New BooleanRisks - send
Scan BooleanResults - user
Id String
GetUsersSaasUserGroup
GetUsersSaasUserLogin
- created str
- id int
- ip_
address str - user_
id int
Package Details
- Repository
- aquasec pulumiverse/pulumi-aquasec
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aquasec
Terraform Provider.