1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getIdentityUsers
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getIdentityUsers

Explore with Pulumi AI

Use this data source to query the IAM user list within FlexibleEngine.

You must have IAM read privileges to use this data source.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const all = flexibleengine.getIdentityUsers({});
const one = flexibleengine.getIdentityUsers({
    name: "user_name",
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

all = flexibleengine.get_identity_users()
one = flexibleengine.get_identity_users(name="user_name")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := flexibleengine.GetIdentityUsers(ctx, &flexibleengine.GetIdentityUsersArgs{}, nil)
		if err != nil {
			return err
		}
		_, err = flexibleengine.GetIdentityUsers(ctx, &flexibleengine.GetIdentityUsersArgs{
			Name: pulumi.StringRef("user_name"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var all = Flexibleengine.GetIdentityUsers.Invoke();

    var one = Flexibleengine.GetIdentityUsers.Invoke(new()
    {
        Name = "user_name",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetIdentityUsersArgs;
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 all = FlexibleengineFunctions.getIdentityUsers();

        final var one = FlexibleengineFunctions.getIdentityUsers(GetIdentityUsersArgs.builder()
            .name("user_name")
            .build());

    }
}
Copy
variables:
  all:
    fn::invoke:
      function: flexibleengine:getIdentityUsers
      arguments: {}
  one:
    fn::invoke:
      function: flexibleengine:getIdentityUsers
      arguments:
        name: user_name
Copy

Using getIdentityUsers

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 getIdentityUsers(args: GetIdentityUsersArgs, opts?: InvokeOptions): Promise<GetIdentityUsersResult>
function getIdentityUsersOutput(args: GetIdentityUsersOutputArgs, opts?: InvokeOptions): Output<GetIdentityUsersResult>
Copy
def get_identity_users(enabled: Optional[bool] = None,
                       id: Optional[str] = None,
                       name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetIdentityUsersResult
def get_identity_users_output(enabled: Optional[pulumi.Input[bool]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetIdentityUsersResult]
Copy
func GetIdentityUsers(ctx *Context, args *GetIdentityUsersArgs, opts ...InvokeOption) (*GetIdentityUsersResult, error)
func GetIdentityUsersOutput(ctx *Context, args *GetIdentityUsersOutputArgs, opts ...InvokeOption) GetIdentityUsersResultOutput
Copy

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

public static class GetIdentityUsers 
{
    public static Task<GetIdentityUsersResult> InvokeAsync(GetIdentityUsersArgs args, InvokeOptions? opts = null)
    public static Output<GetIdentityUsersResult> Invoke(GetIdentityUsersInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIdentityUsersResult> getIdentityUsers(GetIdentityUsersArgs args, InvokeOptions options)
public static Output<GetIdentityUsersResult> getIdentityUsers(GetIdentityUsersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: flexibleengine:index/getIdentityUsers:getIdentityUsers
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Enabled bool
Specifies the status of the IAM user, the default value is true.
Id string
Indicates the ID of the User.
Name string
Specifies the IAM user name.
Enabled bool
Specifies the status of the IAM user, the default value is true.
Id string
Indicates the ID of the User.
Name string
Specifies the IAM user name.
enabled Boolean
Specifies the status of the IAM user, the default value is true.
id String
Indicates the ID of the User.
name String
Specifies the IAM user name.
enabled boolean
Specifies the status of the IAM user, the default value is true.
id string
Indicates the ID of the User.
name string
Specifies the IAM user name.
enabled bool
Specifies the status of the IAM user, the default value is true.
id str
Indicates the ID of the User.
name str
Specifies the IAM user name.
enabled Boolean
Specifies the status of the IAM user, the default value is true.
id String
Indicates the ID of the User.
name String
Specifies the IAM user name.

getIdentityUsers Result

The following output properties are available:

Id string
Indicates the ID of the User.
Users List<GetIdentityUsersUser>
The details of the queried IAM users. The structure is documented below.
Enabled bool
Indicates the whether the IAM user is enabled.
Name string
Indicates the IAM user name.
Id string
Indicates the ID of the User.
Users []GetIdentityUsersUser
The details of the queried IAM users. The structure is documented below.
Enabled bool
Indicates the whether the IAM user is enabled.
Name string
Indicates the IAM user name.
id String
Indicates the ID of the User.
users List<GetIdentityUsersUser>
The details of the queried IAM users. The structure is documented below.
enabled Boolean
Indicates the whether the IAM user is enabled.
name String
Indicates the IAM user name.
id string
Indicates the ID of the User.
users GetIdentityUsersUser[]
The details of the queried IAM users. The structure is documented below.
enabled boolean
Indicates the whether the IAM user is enabled.
name string
Indicates the IAM user name.
id str
Indicates the ID of the User.
users Sequence[GetIdentityUsersUser]
The details of the queried IAM users. The structure is documented below.
enabled bool
Indicates the whether the IAM user is enabled.
name str
Indicates the IAM user name.
id String
Indicates the ID of the User.
users List<Property Map>
The details of the queried IAM users. The structure is documented below.
enabled Boolean
Indicates the whether the IAM user is enabled.
name String
Indicates the IAM user name.

Supporting Types

GetIdentityUsersUser

Description This property is required. string
Indicates the description of the IAM user.
Enabled This property is required. bool
Specifies the status of the IAM user, the default value is true.
Groups This property is required. List<string>
Indicates the user groups to which an IAM user belongs.
Id This property is required. string
Indicates the ID of the User.
Name This property is required. string
Specifies the IAM user name.
PasswordExpiresAt This property is required. string
Indicates the time when the password will expire. Null indicates that the password has unlimited validity.
PasswordStatus This property is required. bool
Indicates the password status. True means that the password needs to be changed, and false means that the password is normal.
Description This property is required. string
Indicates the description of the IAM user.
Enabled This property is required. bool
Specifies the status of the IAM user, the default value is true.
Groups This property is required. []string
Indicates the user groups to which an IAM user belongs.
Id This property is required. string
Indicates the ID of the User.
Name This property is required. string
Specifies the IAM user name.
PasswordExpiresAt This property is required. string
Indicates the time when the password will expire. Null indicates that the password has unlimited validity.
PasswordStatus This property is required. bool
Indicates the password status. True means that the password needs to be changed, and false means that the password is normal.
description This property is required. String
Indicates the description of the IAM user.
enabled This property is required. Boolean
Specifies the status of the IAM user, the default value is true.
groups This property is required. List<String>
Indicates the user groups to which an IAM user belongs.
id This property is required. String
Indicates the ID of the User.
name This property is required. String
Specifies the IAM user name.
passwordExpiresAt This property is required. String
Indicates the time when the password will expire. Null indicates that the password has unlimited validity.
passwordStatus This property is required. Boolean
Indicates the password status. True means that the password needs to be changed, and false means that the password is normal.
description This property is required. string
Indicates the description of the IAM user.
enabled This property is required. boolean
Specifies the status of the IAM user, the default value is true.
groups This property is required. string[]
Indicates the user groups to which an IAM user belongs.
id This property is required. string
Indicates the ID of the User.
name This property is required. string
Specifies the IAM user name.
passwordExpiresAt This property is required. string
Indicates the time when the password will expire. Null indicates that the password has unlimited validity.
passwordStatus This property is required. boolean
Indicates the password status. True means that the password needs to be changed, and false means that the password is normal.
description This property is required. str
Indicates the description of the IAM user.
enabled This property is required. bool
Specifies the status of the IAM user, the default value is true.
groups This property is required. Sequence[str]
Indicates the user groups to which an IAM user belongs.
id This property is required. str
Indicates the ID of the User.
name This property is required. str
Specifies the IAM user name.
password_expires_at This property is required. str
Indicates the time when the password will expire. Null indicates that the password has unlimited validity.
password_status This property is required. bool
Indicates the password status. True means that the password needs to be changed, and false means that the password is normal.
description This property is required. String
Indicates the description of the IAM user.
enabled This property is required. Boolean
Specifies the status of the IAM user, the default value is true.
groups This property is required. List<String>
Indicates the user groups to which an IAM user belongs.
id This property is required. String
Indicates the ID of the User.
name This property is required. String
Specifies the IAM user name.
passwordExpiresAt This property is required. String
Indicates the time when the password will expire. Null indicates that the password has unlimited validity.
passwordStatus This property is required. Boolean
Indicates the password status. True means that the password needs to be changed, and false means that the password is normal.

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.