Nutanix v0.7.3 published on Thursday, Mar 13, 2025 by Piers Karsenbarg
nutanix.getDirectoryServiceV2
Explore with Pulumi AI
 
Nutanix v0.7.3 published on Thursday, Mar 13, 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 "@pulumi/nutanix";
const example = nutanix.getDirectoryServiceV2({
    extId: "directory service ext id",
});
import pulumi
import pulumi_nutanix as nutanix
example = nutanix.get_directory_service_v2(ext_id="directory service ext id")
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
	})
}
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",
    });
});
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());
    }
}
variables:
  example:
    fn::invoke:
      function: nutanix:getDirectoryServiceV2
      arguments:
        extId: directory service ext id
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:
- 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.
 
- GroupSearch 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.
- LastUpdated stringTime 
- Last updated time of the Directory Service.
 
- Name string
- Name for the Directory Service.
 
- OpenLdap List<PiersConfigurations Karsenbarg. Nutanix. Outputs. Get Directory Service V2Open Ldap Configuration> 
- Configuration for OpenLDAP Directory Service.
 
- SecondaryUrls List<string>
- Secondary URL for the Directory Service.
 
- ServiceAccounts 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.
 
- WhiteListed List<string>Groups 
- 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.
 
- GroupSearch 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.
- LastUpdated stringTime 
- Last updated time of the Directory Service.
 
- Name string
- Name for the Directory Service.
 
- OpenLdap []GetConfigurations Directory Service V2Open Ldap Configuration 
- Configuration for OpenLDAP Directory Service.
 
- SecondaryUrls []string
- Secondary URL for the Directory Service.
 
- ServiceAccounts []GetDirectory Service V2Service Account 
- Information of Service account to connect to the Directory Service.
 
- Url string
- URL for the Directory Service.
 
- WhiteListed []stringGroups 
- 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.
 
- groupSearch 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.
- lastUpdated StringTime 
- Last updated time of the Directory Service.
 
- name String
- Name for the Directory Service.
 
- openLdap List<GetConfigurations Directory Service V2Open Ldap Configuration> 
- Configuration for OpenLDAP Directory Service.
 
- secondaryUrls List<String>
- Secondary URL for the Directory Service.
 
- serviceAccounts List<GetDirectory Service V2Service Account> 
- Information of Service account to connect to the Directory Service.
 
- url String
- URL for the Directory Service.
 
- whiteListed List<String>Groups 
- 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.
 
- groupSearch 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.
- lastUpdated stringTime 
- Last updated time of the Directory Service.
 
- name string
- Name for the Directory Service.
 
- openLdap GetConfigurations Directory Service V2Open Ldap Configuration[] 
- Configuration for OpenLDAP Directory Service.
 
- secondaryUrls string[]
- Secondary URL for the Directory Service.
 
- serviceAccounts GetDirectory Service V2Service Account[] 
- Information of Service account to connect to the Directory Service.
 
- url string
- URL for the Directory Service.
 
- whiteListed 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.
 
- 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.
 
- groupSearch 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.
- lastUpdated StringTime 
- Last updated time of the Directory Service.
 
- name String
- Name for the Directory Service.
 
- openLdap List<Property Map>Configurations 
- 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.
 
- whiteListed List<String>Groups 
- List of allowed User Groups for the Directory Service.
 
Supporting Types
GetDirectoryServiceV2OpenLdapConfiguration     
- UserConfigurations 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.
 
- UserGroup 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.
 
- UserConfigurations []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.
 
- UserGroup []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.
 
- userConfigurations 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.
 
- userGroup 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.
 
- userConfigurations 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.
 
- userGroup 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.
 
- 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.
 
- userGroup 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       
- UserObject stringClass 
- Object class in the OpenLDAP system that corresponds to Users.
 
- UserSearch stringBase 
- Base DN for User search.
 
- UsernameAttribute string
- Unique Identifier for each User which can be used in Authentication.
 
- UserObject stringClass 
- Object class in the OpenLDAP system that corresponds to Users.
 
- UserSearch stringBase 
- Base DN for User search.
 
- UsernameAttribute string
- Unique Identifier for each User which can be used in Authentication.
 
- userObject StringClass 
- Object class in the OpenLDAP system that corresponds to Users.
 
- userSearch StringBase 
- Base DN for User search.
 
- usernameAttribute String
- Unique Identifier for each User which can be used in Authentication.
 
- userObject stringClass 
- Object class in the OpenLDAP system that corresponds to Users.
 
- userSearch stringBase 
- Base DN for User search.
 
- usernameAttribute 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.
 
- userObject StringClass 
- Object class in the OpenLDAP system that corresponds to Users.
 
- userSearch StringBase 
- Base DN for User search.
 
- usernameAttribute String
- Unique Identifier for each User which can be used in Authentication.
 
GetDirectoryServiceV2OpenLdapConfigurationUserGroupConfiguration        
- GroupMember stringAttribute 
- Attribute in a group that associates Users to the group.
 
- GroupMember stringAttribute Value 
- User attribute value that will be used in group entity to associate User to the group.
 
- GroupObject stringClass 
- Object class in the OpenLDAP system that corresponds to groups.
 
- GroupSearch stringBase 
- Base DN for group search.
 
- GroupMember stringAttribute 
- Attribute in a group that associates Users to the group.
 
- GroupMember stringAttribute Value 
- User attribute value that will be used in group entity to associate User to the group.
 
- GroupObject stringClass 
- Object class in the OpenLDAP system that corresponds to groups.
 
- GroupSearch stringBase 
- Base DN for group search.
 
- groupMember StringAttribute 
- Attribute in a group that associates Users to the group.
 
- groupMember StringAttribute Value 
- User attribute value that will be used in group entity to associate User to the group.
 
- groupObject StringClass 
- Object class in the OpenLDAP system that corresponds to groups.
 
- groupSearch StringBase 
- Base DN for group search.
 
- groupMember stringAttribute 
- Attribute in a group that associates Users to the group.
 
- groupMember stringAttribute Value 
- User attribute value that will be used in group entity to associate User to the group.
 
- groupObject stringClass 
- Object class in the OpenLDAP system that corresponds to groups.
 
- groupSearch 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.
 
- groupMember StringAttribute 
- Attribute in a group that associates Users to the group.
 
- groupMember StringAttribute Value 
- User attribute value that will be used in group entity to associate User to the group.
 
- groupObject StringClass 
- Object class in the OpenLDAP system that corresponds to groups.
 
- groupSearch 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.
 
Nutanix v0.7.3 published on Thursday, Mar 13, 2025 by Piers Karsenbarg