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:
- ExtId string
- A globally unique identifier of an instance that is suitable for external consumption.
 
- ExtId string
- A globally unique identifier of an instance that is suitable for external consumption.
 
- extId String
- A globally unique identifier of an instance that is suitable for external consumption.
 
- extId 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.
 
- extId String
- A globally unique identifier of an instance that is suitable for external consumption.
 
getUserV2 Result
The following output properties are available:
- AdditionalAttributes List<PiersKarsenbarg. Nutanix. Outputs. Get User V2Additional Attribute> 
- Any additional attribute for the User.
 
- BucketsAccess List<PiersKeys Karsenbarg. Nutanix. Outputs. Get User V2Buckets Access Key> 
- Bucket Access Keys for the User.
 
- CreatedBy string
- User or Service who created the User.
 
- CreatedTime string
- Creation time for the Bucket Access Key.
 
- DisplayName string
- Display name for the User.
 
- EmailId string
- Email Id for the User.
 
- ExtId string
- A globally unique identifier of an instance that is suitable for external consumption.
 
- FirstName string
- First name for the User.
 
- Id string
- The provider-assigned unique ID for this managed resource.
- IdpId string
- Identifier of the IDP for the User.
 
- IsForce boolReset Password 
- Flag to force the User to reset password.
 
- LastLogin stringTime 
- Last successful logged in time for the User.
 
- LastName string
- Last name for the User.
 
- LastUpdated stringTime 
- Last updated time of the User.
 
- Links
List<PiersKarsenbarg. 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.
 
- MiddleInitial 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. 
- UserType string
- Enum: $UNKNOWN$REDACTEDLOCALSAMLLDAPEXTERNALType of the User.
 
- Enum: 
- Username string
- Identifier for the User in the form an email address.
 
- AdditionalAttributes []GetUser V2Additional Attribute 
- Any additional attribute for the User.
 
- BucketsAccess []GetKeys User V2Buckets Access Key 
- Bucket Access Keys for the User.
 
- CreatedBy string
- User or Service who created the User.
 
- CreatedTime string
- Creation time for the Bucket Access Key.
 
- DisplayName string
- Display name for the User.
 
- EmailId string
- Email Id for the User.
 
- ExtId string
- A globally unique identifier of an instance that is suitable for external consumption.
 
- FirstName string
- First name for the User.
 
- Id string
- The provider-assigned unique ID for this managed resource.
- IdpId string
- Identifier of the IDP for the User.
 
- IsForce boolReset Password 
- Flag to force the User to reset password.
 
- LastLogin stringTime 
- Last successful logged in time for the User.
 
- LastName string
- Last name for the User.
 
- LastUpdated stringTime 
- Last updated time of the User.
 
- Links
[]GetUser 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.
 
- MiddleInitial 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. 
- UserType string
- Enum: $UNKNOWN$REDACTEDLOCALSAMLLDAPEXTERNALType of the User.
 
- Enum: 
- Username string
- Identifier for the User in the form an email address.
 
- additionalAttributes List<GetUser V2Additional Attribute> 
- Any additional attribute for the User.
 
- bucketsAccess List<GetKeys User V2Buckets Access Key> 
- Bucket Access Keys for the User.
 
- createdBy String
- User or Service who created the User.
 
- createdTime String
- Creation time for the Bucket Access Key.
 
- displayName String
- Display name for the User.
 
- emailId String
- Email Id for the User.
 
- extId String
- A globally unique identifier of an instance that is suitable for external consumption.
 
- firstName String
- First name for the User.
 
- id String
- The provider-assigned unique ID for this managed resource.
- idpId String
- Identifier of the IDP for the User.
 
- isForce BooleanReset Password 
- Flag to force the User to reset password.
 
- lastLogin StringTime 
- Last successful logged in time for the User.
 
- lastName String
- Last name for the User.
 
- lastUpdated StringTime 
- Last updated time of the User.
 
- links
List<GetUser 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.
 
- middleInitial 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. 
- userType String
- Enum: $UNKNOWN$REDACTEDLOCALSAMLLDAPEXTERNALType of the User.
 
- Enum: 
- username String
- Identifier for the User in the form an email address.
 
- additionalAttributes GetUser V2Additional Attribute[] 
- Any additional attribute for the User.
 
- bucketsAccess GetKeys User V2Buckets Access Key[] 
- Bucket Access Keys for the User.
 
- createdBy string
- User or Service who created the User.
 
- createdTime string
- Creation time for the Bucket Access Key.
 
- displayName string
- Display name for the User.
 
- emailId string
- Email Id for the User.
 
- extId string
- A globally unique identifier of an instance that is suitable for external consumption.
 
- firstName string
- First name for the User.
 
- id string
- The provider-assigned unique ID for this managed resource.
- idpId string
- Identifier of the IDP for the User.
 
- isForce booleanReset Password 
- Flag to force the User to reset password.
 
- lastLogin stringTime 
- Last successful logged in time for the User.
 
- lastName string
- Last name for the User.
 
- lastUpdated stringTime 
- Last updated time of the User.
 
- links
GetUser 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.
 
- middleInitial 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. 
- userType 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[GetUser 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.
 
- additionalAttributes List<Property Map>
- Any additional attribute for the User.
 
- bucketsAccess List<Property Map>Keys 
- Bucket Access Keys for the User.
 
- createdBy String
- User or Service who created the User.
 
- createdTime String
- Creation time for the Bucket Access Key.
 
- displayName String
- Display name for the User.
 
- emailId String
- Email Id for the User.
 
- extId String
- A globally unique identifier of an instance that is suitable for external consumption.
 
- firstName String
- First name for the User.
 
- id String
- The provider-assigned unique ID for this managed resource.
- idpId String
- Identifier of the IDP for the User.
 
- isForce BooleanReset Password 
- Flag to force the User to reset password.
 
- lastLogin StringTime 
- Last successful logged in time for the User.
 
- lastName String
- Last name for the User.
 
- lastUpdated 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.
 
- middleInitial 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. 
- userType String
- Enum: $UNKNOWN$REDACTEDLOCALSAMLLDAPEXTERNALType of the User.
 
- Enum: 
- username String
- Identifier for the User in the form an email address.
 
Supporting Types
GetUserV2AdditionalAttribute   
GetUserV2BucketsAccessKey    
- AccessKey stringName 
- Name of the Bucket Access Key.
 
- CreatedTime string
- Creation time for the Bucket Access Key.
 
- ExtId string
- A globally unique identifier of an instance that is suitable for external consumption.
 
- Links
List<PiersKarsenbarg. 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.
 
- SecretAccess stringKey 
- Secret Access Key, it will be returned only during Bucket Access Key creation.
 
- UserId string
- User Identifier who owns the Bucket Access Key.
 
- AccessKey stringName 
- Name of the Bucket Access Key.
 
- CreatedTime string
- Creation time for the Bucket Access Key.
 
- ExtId string
- A globally unique identifier of an instance that is suitable for external consumption.
 
- Links
[]GetUser 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.
 
- SecretAccess stringKey 
- Secret Access Key, it will be returned only during Bucket Access Key creation.
 
- UserId string
- User Identifier who owns the Bucket Access Key.
 
- accessKey StringName 
- Name of the Bucket Access Key.
 
- createdTime String
- Creation time for the Bucket Access Key.
 
- extId String
- A globally unique identifier of an instance that is suitable for external consumption.
 
- links
List<GetUser 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.
 
- secretAccess StringKey 
- Secret Access Key, it will be returned only during Bucket Access Key creation.
 
- userId String
- User Identifier who owns the Bucket Access Key.
 
- accessKey stringName 
- Name of the Bucket Access Key.
 
- createdTime string
- Creation time for the Bucket Access Key.
 
- extId string
- A globally unique identifier of an instance that is suitable for external consumption.
 
- links
GetUser 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.
 
- secretAccess stringKey 
- Secret Access Key, it will be returned only during Bucket Access Key creation.
 
- userId 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[GetUser 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.
 
- accessKey StringName 
- Name of the Bucket Access Key.
 
- createdTime String
- Creation time for the Bucket Access Key.
 
- extId 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.
 
- secretAccess StringKey 
- Secret Access Key, it will be returned only during Bucket Access Key creation.
 
- userId 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.
