Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg
nutanix.getUserV2
Explore with Pulumi AI
Provides a datasource to View a User.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const user = nutanix.getUserV2({
    extId: "<user ext Id>",
});
import pulumi
import pulumi_nutanix as nutanix
user = nutanix.get_user_v2(ext_id="<user ext Id>")
package main
import (
	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nutanix.GetUserV2(ctx, &nutanix.GetUserV2Args{
			ExtId: "<user ext Id>",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() => 
{
    var user = Nutanix.GetUserV2.Invoke(new()
    {
        ExtId = "<user ext Id>",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.inputs.GetUserV2Args;
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 user = NutanixFunctions.getUserV2(GetUserV2Args.builder()
            .extId("<user ext Id>")
            .build());
    }
}
variables:
  user:
    fn::invoke:
      function: nutanix:getUserV2
      arguments:
        extId: <user ext Id>
Argument Reference
The following arguments are supported:
ext_id: -(Required) External Identifier of the User.
Using getUserV2
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 getUserV2(args: GetUserV2Args, opts?: InvokeOptions): Promise<GetUserV2Result>
function getUserV2Output(args: GetUserV2OutputArgs, opts?: InvokeOptions): Output<GetUserV2Result>def get_user_v2(ext_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetUserV2Result
def get_user_v2_output(ext_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetUserV2Result]func GetUserV2(ctx *Context, args *GetUserV2Args, opts ...InvokeOption) (*GetUserV2Result, error)
func GetUserV2Output(ctx *Context, args *GetUserV2OutputArgs, opts ...InvokeOption) GetUserV2ResultOutput> Note: This function is named GetUserV2 in the Go SDK.
public static class GetUserV2 
{
    public static Task<GetUserV2Result> InvokeAsync(GetUserV2Args args, InvokeOptions? opts = null)
    public static Output<GetUserV2Result> Invoke(GetUserV2InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUserV2Result> getUserV2(GetUserV2Args args, InvokeOptions options)
public static Output<GetUserV2Result> getUserV2(GetUserV2Args args, InvokeOptions options)
fn::invoke:
  function: nutanix:index/getUserV2:getUserV2
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
 
- Ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
 
- ext
Id String - A globally unique identifier of an instance that is suitable for external consumption.
 
- ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
 
- ext_
id str - A globally unique identifier of an instance that is suitable for external consumption.
 
- ext
Id String - A globally unique identifier of an instance that is suitable for external consumption.
 
getUserV2 Result
The following output properties are available:
- Additional
Attributes List<PiersKarsenbarg. Nutanix. Outputs. Get User V2Additional Attribute>  - Any additional attribute for the User.
 
- Buckets
Access List<PiersKeys Karsenbarg. Nutanix. Outputs. Get User V2Buckets Access Key>  - Bucket Access Keys for the User.
 
- Created
By string - User or Service who created the User.
 
- Created
Time string - Creation time for the Bucket Access Key.
 
- Display
Name string - Display name for the User.
 
- Email
Id string - Email Id for the User.
 
- Ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
 
- First
Name string - First name for the User.
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Idp
Id string - Identifier of the IDP for the User.
 
- Is
Force boolReset Password  - Flag to force the User to reset password.
 
- Last
Login stringTime  - Last successful logged in time for the User.
 
- Last
Name string - Last name for the User.
 
- Last
Updated stringTime  - Last updated time of the User.
 
- Links
List<Piers
Karsenbarg. Nutanix. Outputs. Get User V2Link>  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 
- Locale string
 - Default locale for the User.
 
- Middle
Initial string - Middle name for the User.
 
- Password string
 - Region string
 - Default Region for the User.
 
- Status string
 - Status of the User. 
ACTIVE: Denotes that the local User is active.INACTIVE: Denotes that the local User is inactive and needs to be reactivated. 
- Status of the User. 
 - User
Type string - Enum: 
$UNKNOWN$REDACTEDLOCALSAMLLDAPEXTERNALType of the User. 
- Enum: 
 - Username string
 - Identifier for the User in the form an email address.
 
- Additional
Attributes []GetUser V2Additional Attribute  - Any additional attribute for the User.
 
- Buckets
Access []GetKeys User V2Buckets Access Key  - Bucket Access Keys for the User.
 
- Created
By string - User or Service who created the User.
 
- Created
Time string - Creation time for the Bucket Access Key.
 
- Display
Name string - Display name for the User.
 
- Email
Id string - Email Id for the User.
 
- Ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
 
- First
Name string - First name for the User.
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Idp
Id string - Identifier of the IDP for the User.
 
- Is
Force boolReset Password  - Flag to force the User to reset password.
 
- Last
Login stringTime  - Last successful logged in time for the User.
 
- Last
Name string - Last name for the User.
 
- Last
Updated stringTime  - Last updated time of the User.
 
- Links
[]Get
User V2Link  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 
- Locale string
 - Default locale for the User.
 
- Middle
Initial string - Middle name for the User.
 
- Password string
 - Region string
 - Default Region for the User.
 
- Status string
 - Status of the User. 
ACTIVE: Denotes that the local User is active.INACTIVE: Denotes that the local User is inactive and needs to be reactivated. 
- Status of the User. 
 - User
Type string - Enum: 
$UNKNOWN$REDACTEDLOCALSAMLLDAPEXTERNALType of the User. 
- Enum: 
 - Username string
 - Identifier for the User in the form an email address.
 
- additional
Attributes List<GetUser V2Additional Attribute>  - Any additional attribute for the User.
 
- buckets
Access List<GetKeys User V2Buckets Access Key>  - Bucket Access Keys for the User.
 
- created
By String - User or Service who created the User.
 
- created
Time String - Creation time for the Bucket Access Key.
 
- display
Name String - Display name for the User.
 
- email
Id String - Email Id for the User.
 
- ext
Id String - A globally unique identifier of an instance that is suitable for external consumption.
 
- first
Name String - First name for the User.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - idp
Id String - Identifier of the IDP for the User.
 
- is
Force BooleanReset Password  - Flag to force the User to reset password.
 
- last
Login StringTime  - Last successful logged in time for the User.
 
- last
Name String - Last name for the User.
 
- last
Updated StringTime  - Last updated time of the User.
 
- links
List<Get
User V2Link>  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 
- locale String
 - Default locale for the User.
 
- middle
Initial String - Middle name for the User.
 
- password String
 - region String
 - Default Region for the User.
 
- status String
 - Status of the User. 
ACTIVE: Denotes that the local User is active.INACTIVE: Denotes that the local User is inactive and needs to be reactivated. 
- Status of the User. 
 - user
Type String - Enum: 
$UNKNOWN$REDACTEDLOCALSAMLLDAPEXTERNALType of the User. 
- Enum: 
 - username String
 - Identifier for the User in the form an email address.
 
- additional
Attributes GetUser V2Additional Attribute[]  - Any additional attribute for the User.
 
- buckets
Access GetKeys User V2Buckets Access Key[]  - Bucket Access Keys for the User.
 
- created
By string - User or Service who created the User.
 
- created
Time string - Creation time for the Bucket Access Key.
 
- display
Name string - Display name for the User.
 
- email
Id string - Email Id for the User.
 
- ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
 
- first
Name string - First name for the User.
 
- id string
 - The provider-assigned unique ID for this managed resource.
 - idp
Id string - Identifier of the IDP for the User.
 
- is
Force booleanReset Password  - Flag to force the User to reset password.
 
- last
Login stringTime  - Last successful logged in time for the User.
 
- last
Name string - Last name for the User.
 
- last
Updated stringTime  - Last updated time of the User.
 
- links
Get
User V2Link[]  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 
- locale string
 - Default locale for the User.
 
- middle
Initial string - Middle name for the User.
 
- password string
 - region string
 - Default Region for the User.
 
- status string
 - Status of the User. 
ACTIVE: Denotes that the local User is active.INACTIVE: Denotes that the local User is inactive and needs to be reactivated. 
- Status of the User. 
 - user
Type string - Enum: 
$UNKNOWN$REDACTEDLOCALSAMLLDAPEXTERNALType of the User. 
- Enum: 
 - username string
 - Identifier for the User in the form an email address.
 
- additional_
attributes Sequence[GetUser V2Additional Attribute]  - Any additional attribute for the User.
 
- buckets_
access_ Sequence[Getkeys User V2Buckets Access Key]  - Bucket Access Keys for the User.
 
- created_
by str - User or Service who created the User.
 
- created_
time str - Creation time for the Bucket Access Key.
 
- display_
name str - Display name for the User.
 
- email_
id str - Email Id for the User.
 
- ext_
id str - A globally unique identifier of an instance that is suitable for external consumption.
 
- first_
name str - First name for the User.
 
- id str
 - The provider-assigned unique ID for this managed resource.
 - idp_
id str - Identifier of the IDP for the User.
 
- is_
force_ boolreset_ password  - Flag to force the User to reset password.
 
- last_
login_ strtime  - Last successful logged in time for the User.
 
- last_
name str - Last name for the User.
 
- last_
updated_ strtime  - Last updated time of the User.
 
- links
Sequence[Get
User V2Link]  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 
- locale str
 - Default locale for the User.
 
- middle_
initial str - Middle name for the User.
 
- password str
 - region str
 - Default Region for the User.
 
- status str
 - Status of the User. 
ACTIVE: Denotes that the local User is active.INACTIVE: Denotes that the local User is inactive and needs to be reactivated. 
- Status of the User. 
 - user_
type str - Enum: 
$UNKNOWN$REDACTEDLOCALSAMLLDAPEXTERNALType of the User. 
- Enum: 
 - username str
 - Identifier for the User in the form an email address.
 
- additional
Attributes List<Property Map> - Any additional attribute for the User.
 
- buckets
Access List<Property Map>Keys  - Bucket Access Keys for the User.
 
- created
By String - User or Service who created the User.
 
- created
Time String - Creation time for the Bucket Access Key.
 
- display
Name String - Display name for the User.
 
- email
Id String - Email Id for the User.
 
- ext
Id String - A globally unique identifier of an instance that is suitable for external consumption.
 
- first
Name String - First name for the User.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - idp
Id String - Identifier of the IDP for the User.
 
- is
Force BooleanReset Password  - Flag to force the User to reset password.
 
- last
Login StringTime  - Last successful logged in time for the User.
 
- last
Name String - Last name for the User.
 
- last
Updated StringTime  - Last updated time of the User.
 
- links List<Property Map>
 - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 
- locale String
 - Default locale for the User.
 
- middle
Initial String - Middle name for the User.
 
- password String
 - region String
 - Default Region for the User.
 
- status String
 - Status of the User. 
ACTIVE: Denotes that the local User is active.INACTIVE: Denotes that the local User is inactive and needs to be reactivated. 
- Status of the User. 
 - user
Type String - Enum: 
$UNKNOWN$REDACTEDLOCALSAMLLDAPEXTERNALType of the User. 
- Enum: 
 - username String
 - Identifier for the User in the form an email address.
 
Supporting Types
GetUserV2AdditionalAttribute   
GetUserV2BucketsAccessKey    
- Access
Key stringName  - Name of the Bucket Access Key.
 
- Created
Time string - Creation time for the Bucket Access Key.
 
- Ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
 
- Links
List<Piers
Karsenbarg. Nutanix. Inputs. Get User V2Buckets Access Key Link>  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 
- Secret
Access stringKey  - Secret Access Key, it will be returned only during Bucket Access Key creation.
 
- User
Id string - User Identifier who owns the Bucket Access Key.
 
- Access
Key stringName  - Name of the Bucket Access Key.
 
- Created
Time string - Creation time for the Bucket Access Key.
 
- Ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
 
- Links
[]Get
User V2Buckets Access Key Link  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 
- Secret
Access stringKey  - Secret Access Key, it will be returned only during Bucket Access Key creation.
 
- User
Id string - User Identifier who owns the Bucket Access Key.
 
- access
Key StringName  - Name of the Bucket Access Key.
 
- created
Time String - Creation time for the Bucket Access Key.
 
- ext
Id String - A globally unique identifier of an instance that is suitable for external consumption.
 
- links
List<Get
User V2Buckets Access Key Link>  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 
- secret
Access StringKey  - Secret Access Key, it will be returned only during Bucket Access Key creation.
 
- user
Id String - User Identifier who owns the Bucket Access Key.
 
- access
Key stringName  - Name of the Bucket Access Key.
 
- created
Time string - Creation time for the Bucket Access Key.
 
- ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
 
- links
Get
User V2Buckets Access Key Link[]  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 
- secret
Access stringKey  - Secret Access Key, it will be returned only during Bucket Access Key creation.
 
- user
Id string - User Identifier who owns the Bucket Access Key.
 
- access_
key_ strname  - Name of the Bucket Access Key.
 
- created_
time str - Creation time for the Bucket Access Key.
 
- ext_
id str - A globally unique identifier of an instance that is suitable for external consumption.
 
- links
Sequence[Get
User V2Buckets Access Key Link]  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 
- secret_
access_ strkey  - Secret Access Key, it will be returned only during Bucket Access Key creation.
 
- user_
id str - User Identifier who owns the Bucket Access Key.
 
- access
Key StringName  - Name of the Bucket Access Key.
 
- created
Time String - Creation time for the Bucket Access Key.
 
- ext
Id String - A globally unique identifier of an instance that is suitable for external consumption.
 
- links List<Property Map>
 - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 
- secret
Access StringKey  - Secret Access Key, it will be returned only during Bucket Access Key creation.
 
- user
Id String - User Identifier who owns the Bucket Access Key.
 
GetUserV2BucketsAccessKeyLink     
GetUserV2Link  
Package Details
- Repository
 - nutanix pierskarsenbarg/pulumi-nutanix
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
nutanixTerraform Provider.