1. Packages
  2. Nutanix
  3. API Docs
  4. getUserV2
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

nutanix.getUserV2

Explore with Pulumi AI

Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

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>",
});
Copy
import pulumi
import pulumi_nutanix as nutanix

user = nutanix.get_user_v2(ext_id="<user ext Id>")
Copy
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
	})
}
Copy
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>",
    });

});
Copy
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());

    }
}
Copy
variables:
  user:
    fn::invoke:
      function: nutanix:getUserV2
      arguments:
        extId: <user ext Id>
Copy

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>
Copy
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]
Copy
func GetUserV2(ctx *Context, args *GetUserV2Args, opts ...InvokeOption) (*GetUserV2Result, error)
func GetUserV2Output(ctx *Context, args *GetUserV2OutputArgs, opts ...InvokeOption) GetUserV2ResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetUserV2Result> getUserV2(GetUserV2Args args, InvokeOptions options)
public static Output<GetUserV2Result> getUserV2(GetUserV2Args args, InvokeOptions options)
Copy
fn::invoke:
  function: nutanix:index/getUserV2:getUserV2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ExtId This property is required. string
  • A globally unique identifier of an instance that is suitable for external consumption.
ExtId This property is required. string
  • A globally unique identifier of an instance that is suitable for external consumption.
extId This property is required. String
  • A globally unique identifier of an instance that is suitable for external consumption.
extId This property is required. string
  • A globally unique identifier of an instance that is suitable for external consumption.
ext_id This property is required. str
  • A globally unique identifier of an instance that is suitable for external consumption.
extId This property is required. 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.GetUserV2AdditionalAttribute>
  • Any additional attribute for the User.
BucketsAccessKeys List<PiersKarsenbarg.Nutanix.Outputs.GetUserV2BucketsAccessKey>
  • 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.
IsForceResetPassword bool
  • Flag to force the User to reset password.
LastLoginTime string
  • Last successful logged in time for the User.
LastName string
  • Last name for the User.
LastUpdatedTime string
  • Last updated time of the User.
Links List<PiersKarsenbarg.Nutanix.Outputs.GetUserV2Link>
  • 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.
UserType string
  • Enum: $UNKNOWN $REDACTED LOCAL SAML LDAP EXTERNAL Type of the User.
Username string
  • Identifier for the User in the form an email address.
AdditionalAttributes []GetUserV2AdditionalAttribute
  • Any additional attribute for the User.
BucketsAccessKeys []GetUserV2BucketsAccessKey
  • 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.
IsForceResetPassword bool
  • Flag to force the User to reset password.
LastLoginTime string
  • Last successful logged in time for the User.
LastName string
  • Last name for the User.
LastUpdatedTime string
  • Last updated time of the User.
Links []GetUserV2Link
  • 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.
UserType string
  • Enum: $UNKNOWN $REDACTED LOCAL SAML LDAP EXTERNAL Type of the User.
Username string
  • Identifier for the User in the form an email address.
additionalAttributes List<GetUserV2AdditionalAttribute>
  • Any additional attribute for the User.
bucketsAccessKeys List<GetUserV2BucketsAccessKey>
  • 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.
isForceResetPassword Boolean
  • Flag to force the User to reset password.
lastLoginTime String
  • Last successful logged in time for the User.
lastName String
  • Last name for the User.
lastUpdatedTime String
  • Last updated time of the User.
links List<GetUserV2Link>
  • 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.
userType String
  • Enum: $UNKNOWN $REDACTED LOCAL SAML LDAP EXTERNAL Type of the User.
username String
  • Identifier for the User in the form an email address.
additionalAttributes GetUserV2AdditionalAttribute[]
  • Any additional attribute for the User.
bucketsAccessKeys GetUserV2BucketsAccessKey[]
  • 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.
isForceResetPassword boolean
  • Flag to force the User to reset password.
lastLoginTime string
  • Last successful logged in time for the User.
lastName string
  • Last name for the User.
lastUpdatedTime string
  • Last updated time of the User.
links GetUserV2Link[]
  • 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.
userType string
  • Enum: $UNKNOWN $REDACTED LOCAL SAML LDAP EXTERNAL Type of the User.
username string
  • Identifier for the User in the form an email address.
additional_attributes Sequence[GetUserV2AdditionalAttribute]
  • Any additional attribute for the User.
buckets_access_keys Sequence[GetUserV2BucketsAccessKey]
  • 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_reset_password bool
  • Flag to force the User to reset password.
last_login_time str
  • Last successful logged in time for the User.
last_name str
  • Last name for the User.
last_updated_time str
  • Last updated time of the User.
links Sequence[GetUserV2Link]
  • 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.
user_type str
  • Enum: $UNKNOWN $REDACTED LOCAL SAML LDAP EXTERNAL Type of the User.
username str
  • Identifier for the User in the form an email address.
additionalAttributes List<Property Map>
  • Any additional attribute for the User.
bucketsAccessKeys List<Property Map>
  • 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.
isForceResetPassword Boolean
  • Flag to force the User to reset password.
lastLoginTime String
  • Last successful logged in time for the User.
lastName String
  • Last name for the User.
lastUpdatedTime String
  • 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.
userType String
  • Enum: $UNKNOWN $REDACTED LOCAL SAML LDAP EXTERNAL Type of the User.
username String
  • Identifier for the User in the form an email address.

Supporting Types

GetUserV2AdditionalAttribute

Name This property is required. string
  • The URL at which the entity described by the link can be accessed.
Value This property is required. int
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
Name This property is required. string
  • The URL at which the entity described by the link can be accessed.
Value This property is required. int
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
name This property is required. String
  • The URL at which the entity described by the link can be accessed.
value This property is required. Integer
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
name This property is required. string
  • The URL at which the entity described by the link can be accessed.
value This property is required. number
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
name This property is required. str
  • The URL at which the entity described by the link can be accessed.
value This property is required. int
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
name This property is required. String
  • The URL at which the entity described by the link can be accessed.
value This property is required. Number
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.

GetUserV2BucketsAccessKey

AccessKeyName This property is required. string
  • Name of the Bucket Access Key.
CreatedTime This property is required. string
  • Creation time for the Bucket Access Key.
ExtId This property is required. string
  • A globally unique identifier of an instance that is suitable for external consumption.
Links This property is required. List<PiersKarsenbarg.Nutanix.Inputs.GetUserV2BucketsAccessKeyLink>
  • 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.
SecretAccessKey This property is required. string
  • Secret Access Key, it will be returned only during Bucket Access Key creation.
UserId This property is required. string
  • User Identifier who owns the Bucket Access Key.
AccessKeyName This property is required. string
  • Name of the Bucket Access Key.
CreatedTime This property is required. string
  • Creation time for the Bucket Access Key.
ExtId This property is required. string
  • A globally unique identifier of an instance that is suitable for external consumption.
Links This property is required. []GetUserV2BucketsAccessKeyLink
  • 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.
SecretAccessKey This property is required. string
  • Secret Access Key, it will be returned only during Bucket Access Key creation.
UserId This property is required. string
  • User Identifier who owns the Bucket Access Key.
accessKeyName This property is required. String
  • Name of the Bucket Access Key.
createdTime This property is required. String
  • Creation time for the Bucket Access Key.
extId This property is required. String
  • A globally unique identifier of an instance that is suitable for external consumption.
links This property is required. List<GetUserV2BucketsAccessKeyLink>
  • 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.
secretAccessKey This property is required. String
  • Secret Access Key, it will be returned only during Bucket Access Key creation.
userId This property is required. String
  • User Identifier who owns the Bucket Access Key.
accessKeyName This property is required. string
  • Name of the Bucket Access Key.
createdTime This property is required. string
  • Creation time for the Bucket Access Key.
extId This property is required. string
  • A globally unique identifier of an instance that is suitable for external consumption.
links This property is required. GetUserV2BucketsAccessKeyLink[]
  • 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.
secretAccessKey This property is required. string
  • Secret Access Key, it will be returned only during Bucket Access Key creation.
userId This property is required. string
  • User Identifier who owns the Bucket Access Key.
access_key_name This property is required. str
  • Name of the Bucket Access Key.
created_time This property is required. str
  • Creation time for the Bucket Access Key.
ext_id This property is required. str
  • A globally unique identifier of an instance that is suitable for external consumption.
links This property is required. Sequence[GetUserV2BucketsAccessKeyLink]
  • 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_key This property is required. str
  • Secret Access Key, it will be returned only during Bucket Access Key creation.
user_id This property is required. str
  • User Identifier who owns the Bucket Access Key.
accessKeyName This property is required. String
  • Name of the Bucket Access Key.
createdTime This property is required. String
  • Creation time for the Bucket Access Key.
extId This property is required. String
  • A globally unique identifier of an instance that is suitable for external consumption.
links This property is required. 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.
secretAccessKey This property is required. String
  • Secret Access Key, it will be returned only during Bucket Access Key creation.
userId This property is required. String
  • User Identifier who owns the Bucket Access Key.
Href This property is required. string
  • The URL at which the entity described by the link can be accessed.
Rel This property is required. string
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
Href This property is required. string
  • The URL at which the entity described by the link can be accessed.
Rel This property is required. string
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
href This property is required. String
  • The URL at which the entity described by the link can be accessed.
rel This property is required. String
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
href This property is required. string
  • The URL at which the entity described by the link can be accessed.
rel This property is required. string
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
href This property is required. str
  • The URL at which the entity described by the link can be accessed.
rel This property is required. str
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
href This property is required. String
  • The URL at which the entity described by the link can be accessed.
rel This property is required. String
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
Href This property is required. string
  • The URL at which the entity described by the link can be accessed.
Rel This property is required. string
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
Href This property is required. string
  • The URL at which the entity described by the link can be accessed.
Rel This property is required. string
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
href This property is required. String
  • The URL at which the entity described by the link can be accessed.
rel This property is required. String
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
href This property is required. string
  • The URL at which the entity described by the link can be accessed.
rel This property is required. string
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
href This property is required. str
  • The URL at which the entity described by the link can be accessed.
rel This property is required. str
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
href This property is required. String
  • The URL at which the entity described by the link can be accessed.
rel This property is required. String
  • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.

Package Details

Repository
nutanix pierskarsenbarg/pulumi-nutanix
License
Apache-2.0
Notes
This Pulumi package is based on the nutanix Terraform Provider.
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg