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 Directory Service(s).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
// Get a Directory Service.
const get_active_directory = nutanix.getDirectoryServiceV2({
extId: "8a938cc5-282b-48c4-81be-de22de145d07",
});
import pulumi
import pulumi_nutanix as nutanix
# Get a Directory Service.
get_active_directory = nutanix.get_directory_service_v2(ext_id="8a938cc5-282b-48c4-81be-de22de145d07")
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 {
// Get a Directory Service.
_, err := nutanix.GetDirectoryServiceV2(ctx, &nutanix.GetDirectoryServiceV2Args{
ExtId: "8a938cc5-282b-48c4-81be-de22de145d07",
}, 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(() =>
{
// Get a Directory Service.
var get_active_directory = Nutanix.GetDirectoryServiceV2.Invoke(new()
{
ExtId = "8a938cc5-282b-48c4-81be-de22de145d07",
});
});
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.GetDirectoryServiceV2Args;
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) {
// Get a Directory Service.
final var get-active-directory = NutanixFunctions.getDirectoryServiceV2(GetDirectoryServiceV2Args.builder()
.extId("8a938cc5-282b-48c4-81be-de22de145d07")
.build());
}
}
variables:
# Get a Directory Service.
get-active-directory:
fn::invoke:
function: nutanix:getDirectoryServiceV2
arguments:
extId: 8a938cc5-282b-48c4-81be-de22de145d07
Using getDirectoryServiceV2
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 getDirectoryServiceV2(args: GetDirectoryServiceV2Args, opts?: InvokeOptions): Promise<GetDirectoryServiceV2Result>
function getDirectoryServiceV2Output(args: GetDirectoryServiceV2OutputArgs, opts?: InvokeOptions): Output<GetDirectoryServiceV2Result>def get_directory_service_v2(ext_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDirectoryServiceV2Result
def get_directory_service_v2_output(ext_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDirectoryServiceV2Result]func GetDirectoryServiceV2(ctx *Context, args *GetDirectoryServiceV2Args, opts ...InvokeOption) (*GetDirectoryServiceV2Result, error)
func GetDirectoryServiceV2Output(ctx *Context, args *GetDirectoryServiceV2OutputArgs, opts ...InvokeOption) GetDirectoryServiceV2ResultOutput> Note: This function is named GetDirectoryServiceV2 in the Go SDK.
public static class GetDirectoryServiceV2
{
public static Task<GetDirectoryServiceV2Result> InvokeAsync(GetDirectoryServiceV2Args args, InvokeOptions? opts = null)
public static Output<GetDirectoryServiceV2Result> Invoke(GetDirectoryServiceV2InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDirectoryServiceV2Result> getDirectoryServiceV2(GetDirectoryServiceV2Args args, InvokeOptions options)
public static Output<GetDirectoryServiceV2Result> getDirectoryServiceV2(GetDirectoryServiceV2Args args, InvokeOptions options)
fn::invoke:
function: nutanix:index/getDirectoryServiceV2:getDirectoryServiceV2
arguments:
# arguments dictionaryThe following arguments are supported:
- Ext
Id string - -(Required) External identifier of the Directory Service.
- Ext
Id string - -(Required) External identifier of the Directory Service.
- ext
Id String - -(Required) External identifier of the Directory Service.
- ext
Id string - -(Required) External identifier of the Directory Service.
- ext_
id str - -(Required) External identifier of the Directory Service.
- ext
Id String - -(Required) External identifier of the Directory Service.
getDirectoryServiceV2 Result
The following output properties are available:
- Created
By string - User or Service who created the Directory Service.
- Created
Time string - Creation time of the Directory Service.
- Directory
Type string - Type of Directory Service, Supported values are: "ACTIVE_DIRECTORY" (Directory Service type is Active Directory.) and "OPEN_LDAP" (Directory Service type is Open LDAP.)
- Domain
Name string - Domain name for the Directory Service.
- Ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
- Group
Search stringType - Group membership search type for the Directory Service. Supported values are: "NON_RECURSIVE" (Doesn't search recursively within groups.) and "RECURSIVE" (Searches recursively within groups.)
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringTime - Last updated time of the Directory Service.
- Name string
- Name for the Directory Service.
- Open
Ldap List<PiersConfigurations Karsenbarg. Nutanix. Outputs. Get Directory Service V2Open Ldap Configuration> - Configuration for OpenLDAP Directory Service.
- Secondary
Urls List<string> - Secondary URL for the Directory Service.
- Service
Accounts List<PiersKarsenbarg. Nutanix. Outputs. Get Directory Service V2Service Account> - Information of Service account to connect to the Directory Service.
- Url string
- URL for the Directory Service.
- White
Listed List<string>Groups - List of allowed User Groups for the Directory Service.
- Created
By string - User or Service who created the Directory Service.
- Created
Time string - Creation time of the Directory Service.
- Directory
Type string - Type of Directory Service, Supported values are: "ACTIVE_DIRECTORY" (Directory Service type is Active Directory.) and "OPEN_LDAP" (Directory Service type is Open LDAP.)
- Domain
Name string - Domain name for the Directory Service.
- Ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
- Group
Search stringType - Group membership search type for the Directory Service. Supported values are: "NON_RECURSIVE" (Doesn't search recursively within groups.) and "RECURSIVE" (Searches recursively within groups.)
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringTime - Last updated time of the Directory Service.
- Name string
- Name for the Directory Service.
- Open
Ldap []GetConfigurations Directory Service V2Open Ldap Configuration - Configuration for OpenLDAP Directory Service.
- Secondary
Urls []string - Secondary URL for the Directory Service.
- Service
Accounts []GetDirectory Service V2Service Account - Information of Service account to connect to the Directory Service.
- Url string
- URL for the Directory Service.
- White
Listed []stringGroups - List of allowed User Groups for the Directory Service.
- created
By String - User or Service who created the Directory Service.
- created
Time String - Creation time of the Directory Service.
- directory
Type String - Type of Directory Service, Supported values are: "ACTIVE_DIRECTORY" (Directory Service type is Active Directory.) and "OPEN_LDAP" (Directory Service type is Open LDAP.)
- domain
Name String - Domain name for the Directory Service.
- ext
Id String - A globally unique identifier of an instance that is suitable for external consumption.
- group
Search StringType - Group membership search type for the Directory Service. Supported values are: "NON_RECURSIVE" (Doesn't search recursively within groups.) and "RECURSIVE" (Searches recursively within groups.)
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringTime - Last updated time of the Directory Service.
- name String
- Name for the Directory Service.
- open
Ldap List<GetConfigurations Directory Service V2Open Ldap Configuration> - Configuration for OpenLDAP Directory Service.
- secondary
Urls List<String> - Secondary URL for the Directory Service.
- service
Accounts List<GetDirectory Service V2Service Account> - Information of Service account to connect to the Directory Service.
- url String
- URL for the Directory Service.
- white
Listed List<String>Groups - List of allowed User Groups for the Directory Service.
- created
By string - User or Service who created the Directory Service.
- created
Time string - Creation time of the Directory Service.
- directory
Type string - Type of Directory Service, Supported values are: "ACTIVE_DIRECTORY" (Directory Service type is Active Directory.) and "OPEN_LDAP" (Directory Service type is Open LDAP.)
- domain
Name string - Domain name for the Directory Service.
- ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
- group
Search stringType - Group membership search type for the Directory Service. Supported values are: "NON_RECURSIVE" (Doesn't search recursively within groups.) and "RECURSIVE" (Searches recursively within groups.)
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringTime - Last updated time of the Directory Service.
- name string
- Name for the Directory Service.
- open
Ldap GetConfigurations Directory Service V2Open Ldap Configuration[] - Configuration for OpenLDAP Directory Service.
- secondary
Urls string[] - Secondary URL for the Directory Service.
- service
Accounts GetDirectory Service V2Service Account[] - Information of Service account to connect to the Directory Service.
- url string
- URL for the Directory Service.
- white
Listed string[]Groups - List of allowed User Groups for the Directory Service.
- created_
by str - User or Service who created the Directory Service.
- created_
time str - Creation time of the Directory Service.
- directory_
type str - Type of Directory Service, Supported values are: "ACTIVE_DIRECTORY" (Directory Service type is Active Directory.) and "OPEN_LDAP" (Directory Service type is Open LDAP.)
- domain_
name str - Domain name for the Directory Service.
- ext_
id str - A globally unique identifier of an instance that is suitable for external consumption.
- group_
search_ strtype - Group membership search type for the Directory Service. Supported values are: "NON_RECURSIVE" (Doesn't search recursively within groups.) and "RECURSIVE" (Searches recursively within groups.)
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strtime - Last updated time of the Directory Service.
- name str
- Name for the Directory Service.
- open_
ldap_ Sequence[Getconfigurations Directory Service V2Open Ldap Configuration] - Configuration for OpenLDAP Directory Service.
- secondary_
urls Sequence[str] - Secondary URL for the Directory Service.
- service_
accounts Sequence[GetDirectory Service V2Service Account] - Information of Service account to connect to the Directory Service.
- url str
- URL for the Directory Service.
- white_
listed_ Sequence[str]groups - List of allowed User Groups for the Directory Service.
- created
By String - User or Service who created the Directory Service.
- created
Time String - Creation time of the Directory Service.
- directory
Type String - Type of Directory Service, Supported values are: "ACTIVE_DIRECTORY" (Directory Service type is Active Directory.) and "OPEN_LDAP" (Directory Service type is Open LDAP.)
- domain
Name String - Domain name for the Directory Service.
- ext
Id String - A globally unique identifier of an instance that is suitable for external consumption.
- group
Search StringType - Group membership search type for the Directory Service. Supported values are: "NON_RECURSIVE" (Doesn't search recursively within groups.) and "RECURSIVE" (Searches recursively within groups.)
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringTime - Last updated time of the Directory Service.
- name String
- Name for the Directory Service.
- open
Ldap List<Property Map>Configurations - Configuration for OpenLDAP Directory Service.
- secondary
Urls List<String> - Secondary URL for the Directory Service.
- service
Accounts List<Property Map> - Information of Service account to connect to the Directory Service.
- url String
- URL for the Directory Service.
- white
Listed List<String>Groups - List of allowed User Groups for the Directory Service.
Supporting Types
GetDirectoryServiceV2OpenLdapConfiguration
- User
Configurations List<PiersKarsenbarg. Nutanix. Inputs. Get Directory Service V2Open Ldap Configuration User Configuration> - this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
- User
Group List<PiersConfigurations Karsenbarg. Nutanix. Inputs. Get Directory Service V2Open Ldap Configuration User Group Configuration> - this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
- User
Configurations []GetDirectory Service V2Open Ldap Configuration User Configuration - this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
- User
Group []GetConfigurations Directory Service V2Open Ldap Configuration User Group Configuration - this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
- user
Configurations List<GetDirectory Service V2Open Ldap Configuration User Configuration> - this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
- user
Group List<GetConfigurations Directory Service V2Open Ldap Configuration User Group Configuration> - this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
- user
Configurations GetDirectory Service V2Open Ldap Configuration User Configuration[] - this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
- user
Group GetConfigurations Directory Service V2Open Ldap Configuration User Group Configuration[] - this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
- user_
configurations Sequence[GetDirectory Service V2Open Ldap Configuration User Configuration] - this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
- user_
group_ Sequence[Getconfigurations Directory Service V2Open Ldap Configuration User Group Configuration] - this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
- user
Configurations List<Property Map> - this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
- user
Group List<Property Map>Configurations - this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
GetDirectoryServiceV2OpenLdapConfigurationUserConfiguration
- User
Object stringClass - Object class in the OpenLDAP system that corresponds to Users.
- User
Search stringBase - Base DN for User search.
- Username
Attribute string - Unique Identifier for each User which can be used in Authentication.
- User
Object stringClass - Object class in the OpenLDAP system that corresponds to Users.
- User
Search stringBase - Base DN for User search.
- Username
Attribute string - Unique Identifier for each User which can be used in Authentication.
- user
Object StringClass - Object class in the OpenLDAP system that corresponds to Users.
- user
Search StringBase - Base DN for User search.
- username
Attribute String - Unique Identifier for each User which can be used in Authentication.
- user
Object stringClass - Object class in the OpenLDAP system that corresponds to Users.
- user
Search stringBase - Base DN for User search.
- username
Attribute string - Unique Identifier for each User which can be used in Authentication.
- user_
object_ strclass - Object class in the OpenLDAP system that corresponds to Users.
- user_
search_ strbase - Base DN for User search.
- username_
attribute str - Unique Identifier for each User which can be used in Authentication.
- user
Object StringClass - Object class in the OpenLDAP system that corresponds to Users.
- user
Search StringBase - Base DN for User search.
- username
Attribute String - Unique Identifier for each User which can be used in Authentication.
GetDirectoryServiceV2OpenLdapConfigurationUserGroupConfiguration
- Group
Member stringAttribute - Attribute in a group that associates Users to the group.
- Group
Member stringAttribute Value - User attribute value that will be used in group entity to associate User to the group.
- Group
Object stringClass - Object class in the OpenLDAP system that corresponds to groups.
- Group
Search stringBase - Base DN for group search.
- Group
Member stringAttribute - Attribute in a group that associates Users to the group.
- Group
Member stringAttribute Value - User attribute value that will be used in group entity to associate User to the group.
- Group
Object stringClass - Object class in the OpenLDAP system that corresponds to groups.
- Group
Search stringBase - Base DN for group search.
- group
Member StringAttribute - Attribute in a group that associates Users to the group.
- group
Member StringAttribute Value - User attribute value that will be used in group entity to associate User to the group.
- group
Object StringClass - Object class in the OpenLDAP system that corresponds to groups.
- group
Search StringBase - Base DN for group search.
- group
Member stringAttribute - Attribute in a group that associates Users to the group.
- group
Member stringAttribute Value - User attribute value that will be used in group entity to associate User to the group.
- group
Object stringClass - Object class in the OpenLDAP system that corresponds to groups.
- group
Search stringBase - Base DN for group search.
- group_
member_ strattribute - Attribute in a group that associates Users to the group.
- group_
member_ strattribute_ value - User attribute value that will be used in group entity to associate User to the group.
- group_
object_ strclass - Object class in the OpenLDAP system that corresponds to groups.
- group_
search_ strbase - Base DN for group search.
- group
Member StringAttribute - Attribute in a group that associates Users to the group.
- group
Member StringAttribute Value - User attribute value that will be used in group entity to associate User to the group.
- group
Object StringClass - Object class in the OpenLDAP system that corresponds to groups.
- group
Search StringBase - Base DN for group search.
GetDirectoryServiceV2ServiceAccount
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
