outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getUser
Explore with Pulumi AI
Provides information about a user.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const user01 = outscale.getUser({
    filters: [{
        name: "user_ids",
        values: ["XXXXXXXXXXXXXXXX"],
    }],
});
import pulumi
import pulumi_outscale as outscale
user01 = outscale.get_user(filters=[{
    "name": "user_ids",
    "values": ["XXXXXXXXXXXXXXXX"],
}])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.LookupUser(ctx, &outscale.LookupUserArgs{
			Filters: []outscale.GetUserFilter{
				{
					Name: "user_ids",
					Values: []string{
						"XXXXXXXXXXXXXXXX",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var user01 = Outscale.GetUser.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetUserFilterInputArgs
            {
                Name = "user_ids",
                Values = new[]
                {
                    "XXXXXXXXXXXXXXXX",
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.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) {
        final var user01 = OutscaleFunctions.getUser(GetUserArgs.builder()
            .filters(GetUserFilterArgs.builder()
                .name("user_ids")
                .values("XXXXXXXXXXXXXXXX")
                .build())
            .build());
    }
}
variables:
  user01:
    fn::invoke:
      function: outscale:getUser
      arguments:
        filters:
          - name: user_ids
            values:
              - XXXXXXXXXXXXXXXX
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(filters: Optional[Sequence[GetUserFilter]] = None,
             id: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetUserFilterArgs]]]] = None,
             id: 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)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getUser:getUser
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetUser Filter> 
- Id string
- Filters
[]GetUser Filter 
- Id string
- filters
List<GetUser Filter> 
- id String
- filters
GetUser Filter[] 
- id string
- filters List<Property Map>
- id String
getUser Result
The following output properties are available:
- CreationDate string
- The date and time (UTC) of creation of the EIM user.
- Id string
- LastModification stringDate 
- The date and time (UTC) of the last modification of the EIM user.
- Path string
- The path to the EIM user.
- UserEmail string
- The email address of the EIM user.
- UserId string
- The ID of the EIM user.
- UserName string
- The name of the EIM user.
- Filters
List<GetUser Filter> 
- CreationDate string
- The date and time (UTC) of creation of the EIM user.
- Id string
- LastModification stringDate 
- The date and time (UTC) of the last modification of the EIM user.
- Path string
- The path to the EIM user.
- UserEmail string
- The email address of the EIM user.
- UserId string
- The ID of the EIM user.
- UserName string
- The name of the EIM user.
- Filters
[]GetUser Filter 
- creationDate String
- The date and time (UTC) of creation of the EIM user.
- id String
- lastModification StringDate 
- The date and time (UTC) of the last modification of the EIM user.
- path String
- The path to the EIM user.
- userEmail String
- The email address of the EIM user.
- userId String
- The ID of the EIM user.
- userName String
- The name of the EIM user.
- filters
List<GetUser Filter> 
- creationDate string
- The date and time (UTC) of creation of the EIM user.
- id string
- lastModification stringDate 
- The date and time (UTC) of the last modification of the EIM user.
- path string
- The path to the EIM user.
- userEmail string
- The email address of the EIM user.
- userId string
- The ID of the EIM user.
- userName string
- The name of the EIM user.
- filters
GetUser Filter[] 
- creation_date str
- The date and time (UTC) of creation of the EIM user.
- id str
- last_modification_ strdate 
- The date and time (UTC) of the last modification of the EIM user.
- path str
- The path to the EIM user.
- user_email str
- The email address of the EIM user.
- user_id str
- The ID of the EIM user.
- user_name str
- The name of the EIM user.
- filters
Sequence[GetUser Filter] 
- creationDate String
- The date and time (UTC) of creation of the EIM user.
- id String
- lastModification StringDate 
- The date and time (UTC) of the last modification of the EIM user.
- path String
- The path to the EIM user.
- userEmail String
- The email address of the EIM user.
- userId String
- The ID of the EIM user.
- userName String
- The name of the EIM user.
- filters List<Property Map>
Supporting Types
GetUserFilter  
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.