1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. eds
  5. getAdConnectorDirectories
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.eds.getAdConnectorDirectories

Explore with Pulumi AI

This data source provides the Ecd Ad Connector Directories of the current Alibaba Cloud user.

NOTE: Available in v1.174.0+.

Example Usage

Basic Usage

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

const ids = alicloud.eds.getAdConnectorDirectories({
    ids: ["example_id"],
});
export const ecdAdConnectorDirectoryId1 = ids.then(ids => ids.directories?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.eds.get_ad_connector_directories(ids=["example_id"])
pulumi.export("ecdAdConnectorDirectoryId1", ids.directories[0].id)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := eds.GetAdConnectorDirectories(ctx, &eds.GetAdConnectorDirectoriesArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("ecdAdConnectorDirectoryId1", ids.Directories[0].Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.Eds.GetAdConnectorDirectories.Invoke(new()
    {
        Ids = new[]
        {
            "example_id",
        },
    });

    return new Dictionary<string, object?>
    {
        ["ecdAdConnectorDirectoryId1"] = ids.Apply(getAdConnectorDirectoriesResult => getAdConnectorDirectoriesResult.Directories[0]?.Id),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.eds.EdsFunctions;
import com.pulumi.alicloud.eds.inputs.GetAdConnectorDirectoriesArgs;
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 ids = EdsFunctions.getAdConnectorDirectories(GetAdConnectorDirectoriesArgs.builder()
            .ids("example_id")
            .build());

        ctx.export("ecdAdConnectorDirectoryId1", ids.applyValue(getAdConnectorDirectoriesResult -> getAdConnectorDirectoriesResult.directories()[0].id()));
    }
}
Copy
variables:
  ids:
    fn::invoke:
      function: alicloud:eds:getAdConnectorDirectories
      arguments:
        ids:
          - example_id
outputs:
  ecdAdConnectorDirectoryId1: ${ids.directories[0].id}
Copy

Using getAdConnectorDirectories

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 getAdConnectorDirectories(args: GetAdConnectorDirectoriesArgs, opts?: InvokeOptions): Promise<GetAdConnectorDirectoriesResult>
function getAdConnectorDirectoriesOutput(args: GetAdConnectorDirectoriesOutputArgs, opts?: InvokeOptions): Output<GetAdConnectorDirectoriesResult>
Copy
def get_ad_connector_directories(ids: Optional[Sequence[str]] = None,
                                 name_regex: Optional[str] = None,
                                 output_file: Optional[str] = None,
                                 status: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetAdConnectorDirectoriesResult
def get_ad_connector_directories_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                 name_regex: Optional[pulumi.Input[str]] = None,
                                 output_file: Optional[pulumi.Input[str]] = None,
                                 status: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetAdConnectorDirectoriesResult]
Copy
func GetAdConnectorDirectories(ctx *Context, args *GetAdConnectorDirectoriesArgs, opts ...InvokeOption) (*GetAdConnectorDirectoriesResult, error)
func GetAdConnectorDirectoriesOutput(ctx *Context, args *GetAdConnectorDirectoriesOutputArgs, opts ...InvokeOption) GetAdConnectorDirectoriesResultOutput
Copy

> Note: This function is named GetAdConnectorDirectories in the Go SDK.

public static class GetAdConnectorDirectories 
{
    public static Task<GetAdConnectorDirectoriesResult> InvokeAsync(GetAdConnectorDirectoriesArgs args, InvokeOptions? opts = null)
    public static Output<GetAdConnectorDirectoriesResult> Invoke(GetAdConnectorDirectoriesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAdConnectorDirectoriesResult> getAdConnectorDirectories(GetAdConnectorDirectoriesArgs args, InvokeOptions options)
public static Output<GetAdConnectorDirectoriesResult> getAdConnectorDirectories(GetAdConnectorDirectoriesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:eds/getAdConnectorDirectories:getAdConnectorDirectories
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids Changes to this property will trigger replacement. List<string>
A list of Ad Connector Directory IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Ad Connector Directory name.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of directory. Valid values: REGISTERING, REGISTERED, DEREGISTERING, NEEDCONFIGTRUST, CONFIGTRUSTFAILED, DEREGISTERED, ERROR, CONFIGTRUSTING, NEEDCONFIGUSER.
Ids Changes to this property will trigger replacement. []string
A list of Ad Connector Directory IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Ad Connector Directory name.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of directory. Valid values: REGISTERING, REGISTERED, DEREGISTERING, NEEDCONFIGTRUST, CONFIGTRUSTFAILED, DEREGISTERED, ERROR, CONFIGTRUSTING, NEEDCONFIGUSER.
ids Changes to this property will trigger replacement. List<String>
A list of Ad Connector Directory IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Ad Connector Directory name.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of directory. Valid values: REGISTERING, REGISTERED, DEREGISTERING, NEEDCONFIGTRUST, CONFIGTRUSTFAILED, DEREGISTERED, ERROR, CONFIGTRUSTING, NEEDCONFIGUSER.
ids Changes to this property will trigger replacement. string[]
A list of Ad Connector Directory IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Ad Connector Directory name.
outputFile string
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. string
The status of directory. Valid values: REGISTERING, REGISTERED, DEREGISTERING, NEEDCONFIGTRUST, CONFIGTRUSTFAILED, DEREGISTERED, ERROR, CONFIGTRUSTING, NEEDCONFIGUSER.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Ad Connector Directory IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by Ad Connector Directory name.
output_file str
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. str
The status of directory. Valid values: REGISTERING, REGISTERED, DEREGISTERING, NEEDCONFIGTRUST, CONFIGTRUSTFAILED, DEREGISTERED, ERROR, CONFIGTRUSTING, NEEDCONFIGUSER.
ids Changes to this property will trigger replacement. List<String>
A list of Ad Connector Directory IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Ad Connector Directory name.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of directory. Valid values: REGISTERING, REGISTERED, DEREGISTERING, NEEDCONFIGTRUST, CONFIGTRUSTFAILED, DEREGISTERED, ERROR, CONFIGTRUSTING, NEEDCONFIGUSER.

getAdConnectorDirectories Result

The following output properties are available:

Directories List<Pulumi.AliCloud.Eds.Outputs.GetAdConnectorDirectoriesDirectory>
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
Names List<string>
NameRegex string
OutputFile string
Status string
Directories []GetAdConnectorDirectoriesDirectory
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Names []string
NameRegex string
OutputFile string
Status string
directories List<GetAdConnectorDirectoriesDirectory>
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
nameRegex String
outputFile String
status String
directories GetAdConnectorDirectoriesDirectory[]
id string
The provider-assigned unique ID for this managed resource.
ids string[]
names string[]
nameRegex string
outputFile string
status string
directories Sequence[GetAdConnectorDirectoriesDirectory]
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
names Sequence[str]
name_regex str
output_file str
status str
directories List<Property Map>
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
nameRegex String
outputFile String
status String

Supporting Types

GetAdConnectorDirectoriesDirectory

AdConnectorDirectoryId This property is required. string
The ID of the ad connector directory.
AdConnectors This property is required. List<Pulumi.AliCloud.Eds.Inputs.GetAdConnectorDirectoriesDirectoryAdConnector>
The AD connectors.
CreateTime This property is required. string
The CreateTime of resource.
CustomSecurityGroupId This property is required. string
The ID of the security group.
DirectoryName This property is required. string
The name of directory.
DirectoryType This property is required. string
The name of the domain.
DnsAddresses This property is required. List<string>
The address of DNSAddress.
DnsUserName This property is required. string
The username of DNS.
DomainName This property is required. string
The name of the domain.
DomainUserName This property is required. string
domain admin user name.
EnableAdminAccess This property is required. bool
Whether to grant local administrator rights to users who use cloud desktops.
Id This property is required. string
The ID of the Ad Connector Directory.
MfaEnabled This property is required. bool
Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device.
Status This property is required. string
The status of directory.
SubDnsAddresses This property is required. List<string>
The Enterprise already has the DNS address of the AD subdomain.
SubDomainName This property is required. string
The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
TrustPassword This property is required. string
The trust password.
VpcId This property is required. string
The ID of the vpc.
VswitchIds This property is required. List<string>
List of vSwitch IDs in the directory.
AdConnectorDirectoryId This property is required. string
The ID of the ad connector directory.
AdConnectors This property is required. []GetAdConnectorDirectoriesDirectoryAdConnector
The AD connectors.
CreateTime This property is required. string
The CreateTime of resource.
CustomSecurityGroupId This property is required. string
The ID of the security group.
DirectoryName This property is required. string
The name of directory.
DirectoryType This property is required. string
The name of the domain.
DnsAddresses This property is required. []string
The address of DNSAddress.
DnsUserName This property is required. string
The username of DNS.
DomainName This property is required. string
The name of the domain.
DomainUserName This property is required. string
domain admin user name.
EnableAdminAccess This property is required. bool
Whether to grant local administrator rights to users who use cloud desktops.
Id This property is required. string
The ID of the Ad Connector Directory.
MfaEnabled This property is required. bool
Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device.
Status This property is required. string
The status of directory.
SubDnsAddresses This property is required. []string
The Enterprise already has the DNS address of the AD subdomain.
SubDomainName This property is required. string
The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
TrustPassword This property is required. string
The trust password.
VpcId This property is required. string
The ID of the vpc.
VswitchIds This property is required. []string
List of vSwitch IDs in the directory.
adConnectorDirectoryId This property is required. String
The ID of the ad connector directory.
adConnectors This property is required. List<GetAdConnectorDirectoriesDirectoryAdConnector>
The AD connectors.
createTime This property is required. String
The CreateTime of resource.
customSecurityGroupId This property is required. String
The ID of the security group.
directoryName This property is required. String
The name of directory.
directoryType This property is required. String
The name of the domain.
dnsAddresses This property is required. List<String>
The address of DNSAddress.
dnsUserName This property is required. String
The username of DNS.
domainName This property is required. String
The name of the domain.
domainUserName This property is required. String
domain admin user name.
enableAdminAccess This property is required. Boolean
Whether to grant local administrator rights to users who use cloud desktops.
id This property is required. String
The ID of the Ad Connector Directory.
mfaEnabled This property is required. Boolean
Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device.
status This property is required. String
The status of directory.
subDnsAddresses This property is required. List<String>
The Enterprise already has the DNS address of the AD subdomain.
subDomainName This property is required. String
The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
trustPassword This property is required. String
The trust password.
vpcId This property is required. String
The ID of the vpc.
vswitchIds This property is required. List<String>
List of vSwitch IDs in the directory.
adConnectorDirectoryId This property is required. string
The ID of the ad connector directory.
adConnectors This property is required. GetAdConnectorDirectoriesDirectoryAdConnector[]
The AD connectors.
createTime This property is required. string
The CreateTime of resource.
customSecurityGroupId This property is required. string
The ID of the security group.
directoryName This property is required. string
The name of directory.
directoryType This property is required. string
The name of the domain.
dnsAddresses This property is required. string[]
The address of DNSAddress.
dnsUserName This property is required. string
The username of DNS.
domainName This property is required. string
The name of the domain.
domainUserName This property is required. string
domain admin user name.
enableAdminAccess This property is required. boolean
Whether to grant local administrator rights to users who use cloud desktops.
id This property is required. string
The ID of the Ad Connector Directory.
mfaEnabled This property is required. boolean
Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device.
status This property is required. string
The status of directory.
subDnsAddresses This property is required. string[]
The Enterprise already has the DNS address of the AD subdomain.
subDomainName This property is required. string
The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
trustPassword This property is required. string
The trust password.
vpcId This property is required. string
The ID of the vpc.
vswitchIds This property is required. string[]
List of vSwitch IDs in the directory.
ad_connector_directory_id This property is required. str
The ID of the ad connector directory.
ad_connectors This property is required. Sequence[GetAdConnectorDirectoriesDirectoryAdConnector]
The AD connectors.
create_time This property is required. str
The CreateTime of resource.
custom_security_group_id This property is required. str
The ID of the security group.
directory_name This property is required. str
The name of directory.
directory_type This property is required. str
The name of the domain.
dns_addresses This property is required. Sequence[str]
The address of DNSAddress.
dns_user_name This property is required. str
The username of DNS.
domain_name This property is required. str
The name of the domain.
domain_user_name This property is required. str
domain admin user name.
enable_admin_access This property is required. bool
Whether to grant local administrator rights to users who use cloud desktops.
id This property is required. str
The ID of the Ad Connector Directory.
mfa_enabled This property is required. bool
Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device.
status This property is required. str
The status of directory.
sub_dns_addresses This property is required. Sequence[str]
The Enterprise already has the DNS address of the AD subdomain.
sub_domain_name This property is required. str
The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
trust_password This property is required. str
The trust password.
vpc_id This property is required. str
The ID of the vpc.
vswitch_ids This property is required. Sequence[str]
List of vSwitch IDs in the directory.
adConnectorDirectoryId This property is required. String
The ID of the ad connector directory.
adConnectors This property is required. List<Property Map>
The AD connectors.
createTime This property is required. String
The CreateTime of resource.
customSecurityGroupId This property is required. String
The ID of the security group.
directoryName This property is required. String
The name of directory.
directoryType This property is required. String
The name of the domain.
dnsAddresses This property is required. List<String>
The address of DNSAddress.
dnsUserName This property is required. String
The username of DNS.
domainName This property is required. String
The name of the domain.
domainUserName This property is required. String
domain admin user name.
enableAdminAccess This property is required. Boolean
Whether to grant local administrator rights to users who use cloud desktops.
id This property is required. String
The ID of the Ad Connector Directory.
mfaEnabled This property is required. Boolean
Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device.
status This property is required. String
The status of directory.
subDnsAddresses This property is required. List<String>
The Enterprise already has the DNS address of the AD subdomain.
subDomainName This property is required. String
The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
trustPassword This property is required. String
The trust password.
vpcId This property is required. String
The ID of the vpc.
vswitchIds This property is required. List<String>
List of vSwitch IDs in the directory.

GetAdConnectorDirectoriesDirectoryAdConnector

AdConnectorAddress This property is required. string
The address of AD connector.
ConnectorStatus This property is required. string
The status of connector.
NetworkInterfaceId This property is required. string
The ID of the network interface.
Specification This property is required. string
The AD Connector specifications.
TrustKey This property is required. string
The AD Connector control trust password.
VswitchId This property is required. string
The ID of vSwitch.
AdConnectorAddress This property is required. string
The address of AD connector.
ConnectorStatus This property is required. string
The status of connector.
NetworkInterfaceId This property is required. string
The ID of the network interface.
Specification This property is required. string
The AD Connector specifications.
TrustKey This property is required. string
The AD Connector control trust password.
VswitchId This property is required. string
The ID of vSwitch.
adConnectorAddress This property is required. String
The address of AD connector.
connectorStatus This property is required. String
The status of connector.
networkInterfaceId This property is required. String
The ID of the network interface.
specification This property is required. String
The AD Connector specifications.
trustKey This property is required. String
The AD Connector control trust password.
vswitchId This property is required. String
The ID of vSwitch.
adConnectorAddress This property is required. string
The address of AD connector.
connectorStatus This property is required. string
The status of connector.
networkInterfaceId This property is required. string
The ID of the network interface.
specification This property is required. string
The AD Connector specifications.
trustKey This property is required. string
The AD Connector control trust password.
vswitchId This property is required. string
The ID of vSwitch.
ad_connector_address This property is required. str
The address of AD connector.
connector_status This property is required. str
The status of connector.
network_interface_id This property is required. str
The ID of the network interface.
specification This property is required. str
The AD Connector specifications.
trust_key This property is required. str
The AD Connector control trust password.
vswitch_id This property is required. str
The ID of vSwitch.
adConnectorAddress This property is required. String
The address of AD connector.
connectorStatus This property is required. String
The status of connector.
networkInterfaceId This property is required. String
The ID of the network interface.
specification This property is required. String
The AD Connector specifications.
trustKey This property is required. String
The AD Connector control trust password.
vswitchId This property is required. String
The ID of vSwitch.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.