1. Packages
  2. Nutanix
  3. API Docs
  4. getDirectoryServiceV2
Nutanix v0.10.0 published on Monday, Sep 1, 2025 by Piers Karsenbarg

nutanix.getDirectoryServiceV2

Start a Neo task
Explain and create a nutanix.getDirectoryServiceV2 resource
nutanix logo
Nutanix v0.10.0 published on Monday, Sep 1, 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";
    
    const get_active_directory = nutanix.getDirectoryServiceV2({
        extId: "8a938cc5-282b-48c4-81be-de22de145d07",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    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 {
    		_, 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(() => 
    {
        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) {
            final var get-active-directory = NutanixFunctions.getDirectoryServiceV2(GetDirectoryServiceV2Args.builder()
                .extId("8a938cc5-282b-48c4-81be-de22de145d07")
                .build());
    
        }
    }
    
    variables:
      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 dictionary

    The following arguments are supported:

    ExtId string
    -(Required) External identifier of the Directory Service.
    ExtId string
    -(Required) External identifier of the Directory Service.
    extId String
    -(Required) External identifier of the Directory Service.
    extId string
    -(Required) External identifier of the Directory Service.
    ext_id str
    -(Required) External identifier of the Directory Service.
    extId String
    -(Required) External identifier of the Directory Service.

    getDirectoryServiceV2 Result

    The following output properties are available:

    CreatedBy string
    • User or Service who created the Directory Service.
    CreatedTime string
    • Creation time of the Directory Service.
    DirectoryType 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.)
    DomainName string
    • Domain name for the Directory Service.
    ExtId string
    • A globally unique identifier of an instance that is suitable for external consumption.
    GroupSearchType string
    • 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.
    LastUpdatedTime string
    • Last updated time of the Directory Service.
    Name string
    • Name for the Directory Service.
    OpenLdapConfigurations List<PiersKarsenbarg.Nutanix.Outputs.GetDirectoryServiceV2OpenLdapConfiguration>
    • Configuration for OpenLDAP Directory Service.
    SecondaryUrls List<string>
    • Secondary URL for the Directory Service.
    ServiceAccounts List<PiersKarsenbarg.Nutanix.Outputs.GetDirectoryServiceV2ServiceAccount>
    • Information of Service account to connect to the Directory Service.
    Url string
    • URL for the Directory Service.
    WhiteListedGroups List<string>
    • List of allowed User Groups for the Directory Service.
    CreatedBy string
    • User or Service who created the Directory Service.
    CreatedTime string
    • Creation time of the Directory Service.
    DirectoryType 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.)
    DomainName string
    • Domain name for the Directory Service.
    ExtId string
    • A globally unique identifier of an instance that is suitable for external consumption.
    GroupSearchType string
    • 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.
    LastUpdatedTime string
    • Last updated time of the Directory Service.
    Name string
    • Name for the Directory Service.
    OpenLdapConfigurations []GetDirectoryServiceV2OpenLdapConfiguration
    • Configuration for OpenLDAP Directory Service.
    SecondaryUrls []string
    • Secondary URL for the Directory Service.
    ServiceAccounts []GetDirectoryServiceV2ServiceAccount
    • Information of Service account to connect to the Directory Service.
    Url string
    • URL for the Directory Service.
    WhiteListedGroups []string
    • List of allowed User Groups for the Directory Service.
    createdBy String
    • User or Service who created the Directory Service.
    createdTime String
    • Creation time of the Directory Service.
    directoryType 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.)
    domainName String
    • Domain name for the Directory Service.
    extId String
    • A globally unique identifier of an instance that is suitable for external consumption.
    groupSearchType String
    • 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.
    lastUpdatedTime String
    • Last updated time of the Directory Service.
    name String
    • Name for the Directory Service.
    openLdapConfigurations List<GetDirectoryServiceV2OpenLdapConfiguration>
    • Configuration for OpenLDAP Directory Service.
    secondaryUrls List<String>
    • Secondary URL for the Directory Service.
    serviceAccounts List<GetDirectoryServiceV2ServiceAccount>
    • Information of Service account to connect to the Directory Service.
    url String
    • URL for the Directory Service.
    whiteListedGroups List<String>
    • List of allowed User Groups for the Directory Service.
    createdBy string
    • User or Service who created the Directory Service.
    createdTime string
    • Creation time of the Directory Service.
    directoryType 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.)
    domainName string
    • Domain name for the Directory Service.
    extId string
    • A globally unique identifier of an instance that is suitable for external consumption.
    groupSearchType string
    • 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.
    lastUpdatedTime string
    • Last updated time of the Directory Service.
    name string
    • Name for the Directory Service.
    openLdapConfigurations GetDirectoryServiceV2OpenLdapConfiguration[]
    • Configuration for OpenLDAP Directory Service.
    secondaryUrls string[]
    • Secondary URL for the Directory Service.
    serviceAccounts GetDirectoryServiceV2ServiceAccount[]
    • Information of Service account to connect to the Directory Service.
    url string
    • URL for the Directory Service.
    whiteListedGroups string[]
    • 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_type str
    • 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_time str
    • Last updated time of the Directory Service.
    name str
    • Name for the Directory Service.
    open_ldap_configurations Sequence[GetDirectoryServiceV2OpenLdapConfiguration]
    • Configuration for OpenLDAP Directory Service.
    secondary_urls Sequence[str]
    • Secondary URL for the Directory Service.
    service_accounts Sequence[GetDirectoryServiceV2ServiceAccount]
    • Information of Service account to connect to the Directory Service.
    url str
    • URL for the Directory Service.
    white_listed_groups Sequence[str]
    • List of allowed User Groups for the Directory Service.
    createdBy String
    • User or Service who created the Directory Service.
    createdTime String
    • Creation time of the Directory Service.
    directoryType 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.)
    domainName String
    • Domain name for the Directory Service.
    extId String
    • A globally unique identifier of an instance that is suitable for external consumption.
    groupSearchType String
    • 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.
    lastUpdatedTime String
    • Last updated time of the Directory Service.
    name String
    • Name for the Directory Service.
    openLdapConfigurations List<Property Map>
    • Configuration for OpenLDAP Directory Service.
    secondaryUrls List<String>
    • Secondary URL for the Directory Service.
    serviceAccounts List<Property Map>
    • Information of Service account to connect to the Directory Service.
    url String
    • URL for the Directory Service.
    whiteListedGroups List<String>
    • List of allowed User Groups for the Directory Service.

    Supporting Types

    GetDirectoryServiceV2OpenLdapConfiguration

    UserConfigurations List<PiersKarsenbarg.Nutanix.Inputs.GetDirectoryServiceV2OpenLdapConfigurationUserConfiguration>
    • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
    UserGroupConfigurations List<PiersKarsenbarg.Nutanix.Inputs.GetDirectoryServiceV2OpenLdapConfigurationUserGroupConfiguration>
    • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
    UserConfigurations []GetDirectoryServiceV2OpenLdapConfigurationUserConfiguration
    • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
    UserGroupConfigurations []GetDirectoryServiceV2OpenLdapConfigurationUserGroupConfiguration
    • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
    userConfigurations List<GetDirectoryServiceV2OpenLdapConfigurationUserConfiguration>
    • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
    userGroupConfigurations List<GetDirectoryServiceV2OpenLdapConfigurationUserGroupConfiguration>
    • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
    userConfigurations GetDirectoryServiceV2OpenLdapConfigurationUserConfiguration[]
    • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
    userGroupConfigurations GetDirectoryServiceV2OpenLdapConfigurationUserGroupConfiguration[]
    • 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[GetDirectoryServiceV2OpenLdapConfigurationUserConfiguration]
    • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
    user_group_configurations Sequence[GetDirectoryServiceV2OpenLdapConfigurationUserGroupConfiguration]
    • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
    userConfigurations 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.
    userGroupConfigurations 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.

    GetDirectoryServiceV2OpenLdapConfigurationUserConfiguration

    UserObjectClass string
    • Object class in the OpenLDAP system that corresponds to Users.
    UserSearchBase string
    • Base DN for User search.
    UsernameAttribute string
    • Unique Identifier for each User which can be used in Authentication.
    UserObjectClass string
    • Object class in the OpenLDAP system that corresponds to Users.
    UserSearchBase string
    • Base DN for User search.
    UsernameAttribute string
    • Unique Identifier for each User which can be used in Authentication.
    userObjectClass String
    • Object class in the OpenLDAP system that corresponds to Users.
    userSearchBase String
    • Base DN for User search.
    usernameAttribute String
    • Unique Identifier for each User which can be used in Authentication.
    userObjectClass string
    • Object class in the OpenLDAP system that corresponds to Users.
    userSearchBase string
    • Base DN for User search.
    usernameAttribute string
    • Unique Identifier for each User which can be used in Authentication.
    user_object_class str
    • Object class in the OpenLDAP system that corresponds to Users.
    user_search_base str
    • Base DN for User search.
    username_attribute str
    • Unique Identifier for each User which can be used in Authentication.
    userObjectClass String
    • Object class in the OpenLDAP system that corresponds to Users.
    userSearchBase String
    • Base DN for User search.
    usernameAttribute String
    • Unique Identifier for each User which can be used in Authentication.

    GetDirectoryServiceV2OpenLdapConfigurationUserGroupConfiguration

    GroupMemberAttribute string
    • Attribute in a group that associates Users to the group.
    GroupMemberAttributeValue string
    • User attribute value that will be used in group entity to associate User to the group.
    GroupObjectClass string
    • Object class in the OpenLDAP system that corresponds to groups.
    GroupSearchBase string
    • Base DN for group search.
    GroupMemberAttribute string
    • Attribute in a group that associates Users to the group.
    GroupMemberAttributeValue string
    • User attribute value that will be used in group entity to associate User to the group.
    GroupObjectClass string
    • Object class in the OpenLDAP system that corresponds to groups.
    GroupSearchBase string
    • Base DN for group search.
    groupMemberAttribute String
    • Attribute in a group that associates Users to the group.
    groupMemberAttributeValue String
    • User attribute value that will be used in group entity to associate User to the group.
    groupObjectClass String
    • Object class in the OpenLDAP system that corresponds to groups.
    groupSearchBase String
    • Base DN for group search.
    groupMemberAttribute string
    • Attribute in a group that associates Users to the group.
    groupMemberAttributeValue string
    • User attribute value that will be used in group entity to associate User to the group.
    groupObjectClass string
    • Object class in the OpenLDAP system that corresponds to groups.
    groupSearchBase string
    • Base DN for group search.
    group_member_attribute str
    • Attribute in a group that associates Users to the group.
    group_member_attribute_value str
    • User attribute value that will be used in group entity to associate User to the group.
    group_object_class str
    • Object class in the OpenLDAP system that corresponds to groups.
    group_search_base str
    • Base DN for group search.
    groupMemberAttribute String
    • Attribute in a group that associates Users to the group.
    groupMemberAttributeValue String
    • User attribute value that will be used in group entity to associate User to the group.
    groupObjectClass String
    • Object class in the OpenLDAP system that corresponds to groups.
    groupSearchBase String
    • Base DN for group search.

    GetDirectoryServiceV2ServiceAccount

    Password string
    • Password to connect to the Directory Service.
    Username string
    • Username to connect to the Directory Service.
    Password string
    • Password to connect to the Directory Service.
    Username string
    • Username to connect to the Directory Service.
    password String
    • Password to connect to the Directory Service.
    username String
    • Username to connect to the Directory Service.
    password string
    • Password to connect to the Directory Service.
    username string
    • Username to connect to the Directory Service.
    password str
    • Password to connect to the Directory Service.
    username str
    • Username to connect to the Directory Service.
    password String
    • Password to connect to the Directory Service.
    username String
    • Username to connect to the Directory Service.

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.10.0 published on Monday, Sep 1, 2025 by Piers Karsenbarg
      Meet Neo: Your AI Platform Teammate