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

nutanix.getDirectoryServiceV2

Explore with Pulumi AI

Provides a datasource to retrieve all Directory Service(s).

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";

const example = nutanix.getDirectoryServiceV2({
    extId: "directory service ext id",
});
Copy
import pulumi
import pulumi_nutanix as nutanix

example = nutanix.get_directory_service_v2(ext_id="directory service 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.GetDirectoryServiceV2(ctx, &nutanix.GetDirectoryServiceV2Args{
			ExtId: "directory service 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 example = Nutanix.GetDirectoryServiceV2.Invoke(new()
    {
        ExtId = "directory service 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.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 example = NutanixFunctions.getDirectoryServiceV2(GetDirectoryServiceV2Args.builder()
            .extId("directory service ext id")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: nutanix:getDirectoryServiceV2
      arguments:
        extId: directory service ext id
Copy

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>
Copy
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]
Copy
func GetDirectoryServiceV2(ctx *Context, args *GetDirectoryServiceV2Args, opts ...InvokeOption) (*GetDirectoryServiceV2Result, error)
func GetDirectoryServiceV2Output(ctx *Context, args *GetDirectoryServiceV2OutputArgs, opts ...InvokeOption) GetDirectoryServiceV2ResultOutput
Copy

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

The following arguments are supported:

ExtId This property is required. string
-(Required) External identifier of the Directory Service.
ExtId This property is required. string
-(Required) External identifier of the Directory Service.
extId This property is required. String
-(Required) External identifier of the Directory Service.
extId This property is required. string
-(Required) External identifier of the Directory Service.
ext_id This property is required. str
-(Required) External identifier of the Directory Service.
extId This property is required. 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 This property is required. 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 This property is required. 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 This property is required. []GetDirectoryServiceV2OpenLdapConfigurationUserConfiguration
  • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
UserGroupConfigurations This property is required. []GetDirectoryServiceV2OpenLdapConfigurationUserGroupConfiguration
  • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
userConfigurations This property is required. 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 This property is required. 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 This property is required. GetDirectoryServiceV2OpenLdapConfigurationUserConfiguration[]
  • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
userGroupConfigurations This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. string
  • Object class in the OpenLDAP system that corresponds to Users.
UserSearchBase This property is required. string
  • Base DN for User search.
UsernameAttribute This property is required. string
  • Unique Identifier for each User which can be used in Authentication.
UserObjectClass This property is required. string
  • Object class in the OpenLDAP system that corresponds to Users.
UserSearchBase This property is required. string
  • Base DN for User search.
UsernameAttribute This property is required. string
  • Unique Identifier for each User which can be used in Authentication.
userObjectClass This property is required. String
  • Object class in the OpenLDAP system that corresponds to Users.
userSearchBase This property is required. String
  • Base DN for User search.
usernameAttribute This property is required. String
  • Unique Identifier for each User which can be used in Authentication.
userObjectClass This property is required. string
  • Object class in the OpenLDAP system that corresponds to Users.
userSearchBase This property is required. string
  • Base DN for User search.
usernameAttribute This property is required. string
  • Unique Identifier for each User which can be used in Authentication.
user_object_class This property is required. str
  • Object class in the OpenLDAP system that corresponds to Users.
user_search_base This property is required. str
  • Base DN for User search.
username_attribute This property is required. str
  • Unique Identifier for each User which can be used in Authentication.
userObjectClass This property is required. String
  • Object class in the OpenLDAP system that corresponds to Users.
userSearchBase This property is required. String
  • Base DN for User search.
usernameAttribute This property is required. String
  • Unique Identifier for each User which can be used in Authentication.

GetDirectoryServiceV2OpenLdapConfigurationUserGroupConfiguration

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

GetDirectoryServiceV2ServiceAccount

Password This property is required. string
  • Password to connect to the Directory Service.
Username This property is required. string
  • Username to connect to the Directory Service.
Password This property is required. string
  • Password to connect to the Directory Service.
Username This property is required. string
  • Username to connect to the Directory Service.
password This property is required. String
  • Password to connect to the Directory Service.
username This property is required. String
  • Username to connect to the Directory Service.
password This property is required. string
  • Password to connect to the Directory Service.
username This property is required. string
  • Username to connect to the Directory Service.
password This property is required. str
  • Password to connect to the Directory Service.
username This property is required. str
  • Username to connect to the Directory Service.
password This property is required. String
  • Password to connect to the Directory Service.
username This property is required. 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.