Viewing docs for Nutanix v0.11.0
published on Monday, Nov 24, 2025 by Piers Karsenbarg
published on Monday, Nov 24, 2025 by Piers Karsenbarg
Viewing docs for Nutanix v0.11.0
published on Monday, Nov 24, 2025 by Piers Karsenbarg
published on Monday, Nov 24, 2025 by Piers Karsenbarg
Provides a datasource to retrieve all the users.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
const user = new nutanix.User("user", {directoryServiceUser: {
userPrincipalName: "test-user@ntnxlab.local",
directoryServiceReference: {
uuid: "<directory-service-uuid>",
},
}});
const users = nutanix.getUser({});
import pulumi
import pulumi_nutanix as nutanix
user = nutanix.User("user", directory_service_user={
"user_principal_name": "test-user@ntnxlab.local",
"directory_service_reference": {
"uuid": "<directory-service-uuid>",
},
})
users = nutanix.get_user()
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.NewUser(ctx, "user", &nutanix.UserArgs{
DirectoryServiceUser: &nutanix.UserDirectoryServiceUserArgs{
UserPrincipalName: pulumi.String("test-user@ntnxlab.local"),
DirectoryServiceReference: &nutanix.UserDirectoryServiceUserDirectoryServiceReferenceArgs{
Uuid: pulumi.String("<directory-service-uuid>"),
},
},
})
if err != nil {
return err
}
_, err = nutanix.LookupUser(ctx, &nutanix.LookupUserArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() =>
{
var user = new Nutanix.User("user", new()
{
DirectoryServiceUser = new Nutanix.Inputs.UserDirectoryServiceUserArgs
{
UserPrincipalName = "test-user@ntnxlab.local",
DirectoryServiceReference = new Nutanix.Inputs.UserDirectoryServiceUserDirectoryServiceReferenceArgs
{
Uuid = "<directory-service-uuid>",
},
},
});
var users = Nutanix.GetUser.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.User;
import com.pulumi.nutanix.UserArgs;
import com.pulumi.nutanix.inputs.UserDirectoryServiceUserArgs;
import com.pulumi.nutanix.inputs.UserDirectoryServiceUserDirectoryServiceReferenceArgs;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.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) {
var user = new User("user", UserArgs.builder()
.directoryServiceUser(UserDirectoryServiceUserArgs.builder()
.userPrincipalName("test-user@ntnxlab.local")
.directoryServiceReference(UserDirectoryServiceUserDirectoryServiceReferenceArgs.builder()
.uuid("<directory-service-uuid>")
.build())
.build())
.build());
final var users = NutanixFunctions.getUser(GetUserArgs.builder()
.build());
}
}
resources:
user:
type: nutanix:User
properties:
directoryServiceUser:
userPrincipalName: test-user@ntnxlab.local
directoryServiceReference:
uuid: <directory-service-uuid>
variables:
users:
fn::invoke:
function: nutanix:getUser
arguments: {}
Using getUsers
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 getUsers(args: GetUsersArgs, opts?: InvokeOptions): Promise<GetUsersResult>
function getUsersOutput(args: GetUsersOutputArgs, opts?: InvokeOptions): Output<GetUsersResult>def get_users(metadatas: Optional[Sequence[GetUsersMetadata]] = None,
opts: Optional[InvokeOptions] = None) -> GetUsersResult
def get_users_output(metadatas: Optional[pulumi.Input[Sequence[pulumi.Input[GetUsersMetadataArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUsersResult]func GetUsers(ctx *Context, args *GetUsersArgs, opts ...InvokeOption) (*GetUsersResult, error)
func GetUsersOutput(ctx *Context, args *GetUsersOutputArgs, opts ...InvokeOption) GetUsersResultOutput> Note: This function is named GetUsers in the Go SDK.
public static class GetUsers
{
public static Task<GetUsersResult> InvokeAsync(GetUsersArgs args, InvokeOptions? opts = null)
public static Output<GetUsersResult> Invoke(GetUsersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
public static Output<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
fn::invoke:
function: nutanix:index/getUsers:getUsers
arguments:
# arguments dictionaryThe following arguments are supported:
- Metadatas
List<Piers
Karsenbarg. Nutanix. Inputs. Get Users Metadata> - The user kind metadata.
- Metadatas
[]Get
Users Metadata - The user kind metadata.
- metadatas
List<Get
Users Metadata> - The user kind metadata.
- metadatas
Get
Users Metadata[] - The user kind metadata.
- metadatas
Sequence[Get
Users Metadata] - The user kind metadata.
- metadatas List<Property Map>
- The user kind metadata.
getUsers Result
The following output properties are available:
- Api
Version string - The version of the API.
- Entities
List<Piers
Karsenbarg. Nutanix. Outputs. Get Users Entity> - List of Users
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadatas
List<Piers
Karsenbarg. Nutanix. Outputs. Get Users Metadata> - The user kind metadata.
- Api
Version string - The version of the API.
- Entities
[]Get
Users Entity - List of Users
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadatas
[]Get
Users Metadata - The user kind metadata.
- api
Version String - The version of the API.
- entities
List<Get
Users Entity> - List of Users
- id String
- The provider-assigned unique ID for this managed resource.
- metadatas
List<Get
Users Metadata> - The user kind metadata.
- api
Version string - The version of the API.
- entities
Get
Users Entity[] - List of Users
- id string
- The provider-assigned unique ID for this managed resource.
- metadatas
Get
Users Metadata[] - The user kind metadata.
- api_
version str - The version of the API.
- entities
Sequence[Get
Users Entity] - List of Users
- id str
- The provider-assigned unique ID for this managed resource.
- metadatas
Sequence[Get
Users Metadata] - The user kind metadata.
- api
Version String - The version of the API.
- entities List<Property Map>
- List of Users
- id String
- The provider-assigned unique ID for this managed resource.
- metadatas List<Property Map>
- The user kind metadata.
Supporting Types
GetUsersEntity
- Access
Control List<PiersPolicy Reference Lists Karsenbarg. Nutanix. Inputs. Get Users Entity Access Control Policy Reference List> - List of ACP references. See #reference for more details.
- Api
Version string - The version of the API.
- Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Get Users Entity Category> - (Optional) Categories for the user.
- Directory
Service List<PiersUsers Karsenbarg. Nutanix. Inputs. Get Users Entity Directory Service User> - (Optional) The directory service user configuration. See below for more information.
- Display
Name string - The display name of the user (common name) provided by the directory service.
- Identity
Provider List<PiersUsers Karsenbarg. Nutanix. Inputs. Get Users Entity Identity Provider User> - (Optional) (Optional) The identity provider user configuration. See below for more information.
- Metadata Dictionary<string, string>
- The user kind metadata.
- Name string
- the name(Optional).
- Owner
Reference Dictionary<string, string> - (Optional) The reference to a user.
- Project
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Get Users Entity Project Reference List> - A list of projects the user is part of. See #reference for more details.
- State string
- The state of the entity.
- User
Type string - The name of the user.
- Project
Reference Dictionary<string, string> - (Optional) The reference to a project.
- Access
Control []GetPolicy Reference Lists Users Entity Access Control Policy Reference List - List of ACP references. See #reference for more details.
- Api
Version string - The version of the API.
- Categories
[]Get
Users Entity Category - (Optional) Categories for the user.
- Directory
Service []GetUsers Users Entity Directory Service User - (Optional) The directory service user configuration. See below for more information.
- Display
Name string - The display name of the user (common name) provided by the directory service.
- Identity
Provider []GetUsers Users Entity Identity Provider User - (Optional) (Optional) The identity provider user configuration. See below for more information.
- Metadata map[string]string
- The user kind metadata.
- Name string
- the name(Optional).
- Owner
Reference map[string]string - (Optional) The reference to a user.
- Project
Reference []GetLists Users Entity Project Reference List - A list of projects the user is part of. See #reference for more details.
- State string
- The state of the entity.
- User
Type string - The name of the user.
- Project
Reference map[string]string - (Optional) The reference to a project.
- access
Control List<GetPolicy Reference Lists Users Entity Access Control Policy Reference List> - List of ACP references. See #reference for more details.
- api
Version String - The version of the API.
- categories
List<Get
Users Entity Category> - (Optional) Categories for the user.
- directory
Service List<GetUsers Users Entity Directory Service User> - (Optional) The directory service user configuration. See below for more information.
- display
Name String - The display name of the user (common name) provided by the directory service.
- identity
Provider List<GetUsers Users Entity Identity Provider User> - (Optional) (Optional) The identity provider user configuration. See below for more information.
- metadata Map<String,String>
- The user kind metadata.
- name String
- the name(Optional).
- owner
Reference Map<String,String> - (Optional) The reference to a user.
- project
Reference List<GetLists Users Entity Project Reference List> - A list of projects the user is part of. See #reference for more details.
- state String
- The state of the entity.
- user
Type String - The name of the user.
- project
Reference Map<String,String> - (Optional) The reference to a project.
- access
Control GetPolicy Reference Lists Users Entity Access Control Policy Reference List[] - List of ACP references. See #reference for more details.
- api
Version string - The version of the API.
- categories
Get
Users Entity Category[] - (Optional) Categories for the user.
- directory
Service GetUsers Users Entity Directory Service User[] - (Optional) The directory service user configuration. See below for more information.
- display
Name string - The display name of the user (common name) provided by the directory service.
- identity
Provider GetUsers Users Entity Identity Provider User[] - (Optional) (Optional) The identity provider user configuration. See below for more information.
- metadata {[key: string]: string}
- The user kind metadata.
- name string
- the name(Optional).
- owner
Reference {[key: string]: string} - (Optional) The reference to a user.
- project
Reference GetLists Users Entity Project Reference List[] - A list of projects the user is part of. See #reference for more details.
- state string
- The state of the entity.
- user
Type string - The name of the user.
- project
Reference {[key: string]: string} - (Optional) The reference to a project.
- access_
control_ Sequence[Getpolicy_ reference_ lists Users Entity Access Control Policy Reference List] - List of ACP references. See #reference for more details.
- api_
version str - The version of the API.
- categories
Sequence[Get
Users Entity Category] - (Optional) Categories for the user.
- directory_
service_ Sequence[Getusers Users Entity Directory Service User] - (Optional) The directory service user configuration. See below for more information.
- display_
name str - The display name of the user (common name) provided by the directory service.
- identity_
provider_ Sequence[Getusers Users Entity Identity Provider User] - (Optional) (Optional) The identity provider user configuration. See below for more information.
- metadata Mapping[str, str]
- The user kind metadata.
- name str
- the name(Optional).
- owner_
reference Mapping[str, str] - (Optional) The reference to a user.
- project_
reference_ Sequence[Getlists Users Entity Project Reference List] - A list of projects the user is part of. See #reference for more details.
- state str
- The state of the entity.
- user_
type str - The name of the user.
- project_
reference Mapping[str, str] - (Optional) The reference to a project.
- access
Control List<Property Map>Policy Reference Lists - List of ACP references. See #reference for more details.
- api
Version String - The version of the API.
- categories List<Property Map>
- (Optional) Categories for the user.
- directory
Service List<Property Map>Users - (Optional) The directory service user configuration. See below for more information.
- display
Name String - The display name of the user (common name) provided by the directory service.
- identity
Provider List<Property Map>Users - (Optional) (Optional) The identity provider user configuration. See below for more information.
- metadata Map<String>
- The user kind metadata.
- name String
- the name(Optional).
- owner
Reference Map<String> - (Optional) The reference to a user.
- project
Reference List<Property Map>Lists - A list of projects the user is part of. See #reference for more details.
- state String
- The state of the entity.
- user
Type String - The name of the user.
- project
Reference Map<String> - (Optional) The reference to a project.
GetUsersEntityAccessControlPolicyReferenceList
GetUsersEntityCategory
GetUsersEntityDirectoryServiceUser
- Default
User stringPrincipal Name - Directory
Service List<PiersReferences Karsenbarg. Nutanix. Inputs. Get Users Entity Directory Service User Directory Service Reference> - (Optional) The reference to a directory service. See #reference for to look the supported attributes.
- User
Principal stringName - (Optional) The UserPrincipalName of the user from the directory service.
- Default
User stringPrincipal Name - Directory
Service []GetReferences Users Entity Directory Service User Directory Service Reference - (Optional) The reference to a directory service. See #reference for to look the supported attributes.
- User
Principal stringName - (Optional) The UserPrincipalName of the user from the directory service.
- default
User StringPrincipal Name - directory
Service List<GetReferences Users Entity Directory Service User Directory Service Reference> - (Optional) The reference to a directory service. See #reference for to look the supported attributes.
- user
Principal StringName - (Optional) The UserPrincipalName of the user from the directory service.
- default
User stringPrincipal Name - directory
Service GetReferences Users Entity Directory Service User Directory Service Reference[] - (Optional) The reference to a directory service. See #reference for to look the supported attributes.
- user
Principal stringName - (Optional) The UserPrincipalName of the user from the directory service.
- default_
user_ strprincipal_ name - directory_
service_ Sequence[Getreferences Users Entity Directory Service User Directory Service Reference] - (Optional) The reference to a directory service. See #reference for to look the supported attributes.
- user_
principal_ strname - (Optional) The UserPrincipalName of the user from the directory service.
- default
User StringPrincipal Name - directory
Service List<Property Map>References - (Optional) The reference to a directory service. See #reference for to look the supported attributes.
- user
Principal StringName - (Optional) The UserPrincipalName of the user from the directory service.
GetUsersEntityDirectoryServiceUserDirectoryServiceReference
GetUsersEntityIdentityProviderUser
- Identity
Provider List<PiersReferences Karsenbarg. Nutanix. Inputs. Get Users Entity Identity Provider User Identity Provider Reference> - (Optional) The reference to a identity provider. See #reference for to look the supported attributes.
- Username string
- (Optional) The username from identity provider. Name ID for SAML Identity Provider.
- Identity
Provider []GetReferences Users Entity Identity Provider User Identity Provider Reference - (Optional) The reference to a identity provider. See #reference for to look the supported attributes.
- Username string
- (Optional) The username from identity provider. Name ID for SAML Identity Provider.
- identity
Provider List<GetReferences Users Entity Identity Provider User Identity Provider Reference> - (Optional) The reference to a identity provider. See #reference for to look the supported attributes.
- username String
- (Optional) The username from identity provider. Name ID for SAML Identity Provider.
- identity
Provider GetReferences Users Entity Identity Provider User Identity Provider Reference[] - (Optional) The reference to a identity provider. See #reference for to look the supported attributes.
- username string
- (Optional) The username from identity provider. Name ID for SAML Identity Provider.
- identity_
provider_ Sequence[Getreferences Users Entity Identity Provider User Identity Provider Reference] - (Optional) The reference to a identity provider. See #reference for to look the supported attributes.
- username str
- (Optional) The username from identity provider. Name ID for SAML Identity Provider.
- identity
Provider List<Property Map>References - (Optional) The reference to a identity provider. See #reference for to look the supported attributes.
- username String
- (Optional) The username from identity provider. Name ID for SAML Identity Provider.
GetUsersEntityIdentityProviderUserIdentityProviderReference
GetUsersEntityProjectReferenceList
GetUsersMetadata
- filter str
- kind str
- The kind name. (Default depends on the resource you are referencing)
- length int
- offset int
- sort_
attribute str - sort_
order str
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanixTerraform Provider.
Viewing docs for Nutanix v0.11.0
published on Monday, Nov 24, 2025 by Piers Karsenbarg
published on Monday, Nov 24, 2025 by Piers Karsenbarg
