1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. eds
  5. getAdConnectorDirectories
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.eds.getAdConnectorDirectories

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    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);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.eds.get_ad_connector_directories(ids=["example_id"])
    pulumi.export("ecdAdConnectorDirectoryId1", ids.directories[0].id)
    
    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
    	})
    }
    
    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),
        };
    });
    
    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()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:eds:getAdConnectorDirectories
          Arguments:
            ids:
              - example_id
    outputs:
      ecdAdConnectorDirectoryId1: ${ids.directories[0].id}
    

    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>
    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]
    func GetAdConnectorDirectories(ctx *Context, args *GetAdConnectorDirectoriesArgs, opts ...InvokeOption) (*GetAdConnectorDirectoriesResult, error)
    func GetAdConnectorDirectoriesOutput(ctx *Context, args *GetAdConnectorDirectoriesOutputArgs, opts ...InvokeOption) GetAdConnectorDirectoriesResultOutput

    > 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)
    }
    public static CompletableFuture<GetAdConnectorDirectoriesResult> getAdConnectorDirectories(GetAdConnectorDirectoriesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:eds/getAdConnectorDirectories:getAdConnectorDirectories
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of Ad Connector Directory IDs.
    NameRegex 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 string
    The status of directory. Valid values: REGISTERING, REGISTERED, DEREGISTERING, NEEDCONFIGTRUST, CONFIGTRUSTFAILED, DEREGISTERED, ERROR, CONFIGTRUSTING, NEEDCONFIGUSER.
    Ids []string
    A list of Ad Connector Directory IDs.
    NameRegex 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 string
    The status of directory. Valid values: REGISTERING, REGISTERED, DEREGISTERING, NEEDCONFIGTRUST, CONFIGTRUSTFAILED, DEREGISTERED, ERROR, CONFIGTRUSTING, NEEDCONFIGUSER.
    ids List<String>
    A list of Ad Connector Directory IDs.
    nameRegex 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 String
    The status of directory. Valid values: REGISTERING, REGISTERED, DEREGISTERING, NEEDCONFIGTRUST, CONFIGTRUSTFAILED, DEREGISTERED, ERROR, CONFIGTRUSTING, NEEDCONFIGUSER.
    ids string[]
    A list of Ad Connector Directory IDs.
    nameRegex 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 string
    The status of directory. Valid values: REGISTERING, REGISTERED, DEREGISTERING, NEEDCONFIGTRUST, CONFIGTRUSTFAILED, DEREGISTERED, ERROR, CONFIGTRUSTING, NEEDCONFIGUSER.
    ids Sequence[str]
    A list of Ad Connector Directory IDs.
    name_regex 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 str
    The status of directory. Valid values: REGISTERING, REGISTERED, DEREGISTERING, NEEDCONFIGTRUST, CONFIGTRUSTFAILED, DEREGISTERED, ERROR, CONFIGTRUSTING, NEEDCONFIGUSER.
    ids List<String>
    A list of Ad Connector Directory IDs.
    nameRegex 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 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 string
    The ID of the ad connector directory.
    AdConnectors List<Pulumi.AliCloud.Eds.Inputs.GetAdConnectorDirectoriesDirectoryAdConnector>
    The AD connectors.
    CreateTime string
    The CreateTime of resource.
    CustomSecurityGroupId string
    The ID of the security group.
    DirectoryName string
    The name of directory.
    DirectoryType string
    The name of the domain.
    DnsAddresses List<string>
    The address of DNSAddress.
    DnsUserName string
    The username of DNS.
    DomainName string
    The name of the domain.
    DomainUserName string
    domain admin user name.
    EnableAdminAccess bool
    Whether to grant local administrator rights to users who use cloud desktops.
    Id string
    The ID of the Ad Connector Directory.
    MfaEnabled 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 string
    The status of directory.
    SubDnsAddresses List<string>
    The Enterprise already has the DNS address of the AD subdomain.
    SubDomainName 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 string
    The trust password.
    VpcId string
    The ID of the vpc.
    VswitchIds List<string>
    List of VSwitch IDs in the directory.
    AdConnectorDirectoryId string
    The ID of the ad connector directory.
    AdConnectors []GetAdConnectorDirectoriesDirectoryAdConnector
    The AD connectors.
    CreateTime string
    The CreateTime of resource.
    CustomSecurityGroupId string
    The ID of the security group.
    DirectoryName string
    The name of directory.
    DirectoryType string
    The name of the domain.
    DnsAddresses []string
    The address of DNSAddress.
    DnsUserName string
    The username of DNS.
    DomainName string
    The name of the domain.
    DomainUserName string
    domain admin user name.
    EnableAdminAccess bool
    Whether to grant local administrator rights to users who use cloud desktops.
    Id string
    The ID of the Ad Connector Directory.
    MfaEnabled 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 string
    The status of directory.
    SubDnsAddresses []string
    The Enterprise already has the DNS address of the AD subdomain.
    SubDomainName 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 string
    The trust password.
    VpcId string
    The ID of the vpc.
    VswitchIds []string
    List of VSwitch IDs in the directory.
    adConnectorDirectoryId String
    The ID of the ad connector directory.
    adConnectors List<GetAdConnectorDirectoriesDirectoryAdConnector>
    The AD connectors.
    createTime String
    The CreateTime of resource.
    customSecurityGroupId String
    The ID of the security group.
    directoryName String
    The name of directory.
    directoryType String
    The name of the domain.
    dnsAddresses List<String>
    The address of DNSAddress.
    dnsUserName String
    The username of DNS.
    domainName String
    The name of the domain.
    domainUserName String
    domain admin user name.
    enableAdminAccess Boolean
    Whether to grant local administrator rights to users who use cloud desktops.
    id String
    The ID of the Ad Connector Directory.
    mfaEnabled 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 String
    The status of directory.
    subDnsAddresses List<String>
    The Enterprise already has the DNS address of the AD subdomain.
    subDomainName 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 String
    The trust password.
    vpcId String
    The ID of the vpc.
    vswitchIds List<String>
    List of VSwitch IDs in the directory.
    adConnectorDirectoryId string
    The ID of the ad connector directory.
    adConnectors GetAdConnectorDirectoriesDirectoryAdConnector[]
    The AD connectors.
    createTime string
    The CreateTime of resource.
    customSecurityGroupId string
    The ID of the security group.
    directoryName string
    The name of directory.
    directoryType string
    The name of the domain.
    dnsAddresses string[]
    The address of DNSAddress.
    dnsUserName string
    The username of DNS.
    domainName string
    The name of the domain.
    domainUserName string
    domain admin user name.
    enableAdminAccess boolean
    Whether to grant local administrator rights to users who use cloud desktops.
    id string
    The ID of the Ad Connector Directory.
    mfaEnabled 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 string
    The status of directory.
    subDnsAddresses string[]
    The Enterprise already has the DNS address of the AD subdomain.
    subDomainName 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 string
    The trust password.
    vpcId string
    The ID of the vpc.
    vswitchIds string[]
    List of VSwitch IDs in the directory.
    ad_connector_directory_id str
    The ID of the ad connector directory.
    ad_connectors Sequence[GetAdConnectorDirectoriesDirectoryAdConnector]
    The AD connectors.
    create_time str
    The CreateTime of resource.
    custom_security_group_id str
    The ID of the security group.
    directory_name str
    The name of directory.
    directory_type str
    The name of the domain.
    dns_addresses Sequence[str]
    The address of DNSAddress.
    dns_user_name str
    The username of DNS.
    domain_name str
    The name of the domain.
    domain_user_name str
    domain admin user name.
    enable_admin_access bool
    Whether to grant local administrator rights to users who use cloud desktops.
    id str
    The ID of the Ad Connector Directory.
    mfa_enabled 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 str
    The status of directory.
    sub_dns_addresses Sequence[str]
    The Enterprise already has the DNS address of the AD subdomain.
    sub_domain_name 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 str
    The trust password.
    vpc_id str
    The ID of the vpc.
    vswitch_ids Sequence[str]
    List of VSwitch IDs in the directory.
    adConnectorDirectoryId String
    The ID of the ad connector directory.
    adConnectors List<Property Map>
    The AD connectors.
    createTime String
    The CreateTime of resource.
    customSecurityGroupId String
    The ID of the security group.
    directoryName String
    The name of directory.
    directoryType String
    The name of the domain.
    dnsAddresses List<String>
    The address of DNSAddress.
    dnsUserName String
    The username of DNS.
    domainName String
    The name of the domain.
    domainUserName String
    domain admin user name.
    enableAdminAccess Boolean
    Whether to grant local administrator rights to users who use cloud desktops.
    id String
    The ID of the Ad Connector Directory.
    mfaEnabled 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 String
    The status of directory.
    subDnsAddresses List<String>
    The Enterprise already has the DNS address of the AD subdomain.
    subDomainName 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 String
    The trust password.
    vpcId String
    The ID of the vpc.
    vswitchIds List<String>
    List of VSwitch IDs in the directory.

    GetAdConnectorDirectoriesDirectoryAdConnector

    AdConnectorAddress string
    The address of AD connector.
    ConnectorStatus string
    The status of connector.
    NetworkInterfaceId string
    The ID of the network interface.
    Specification string
    The AD Connector specifications.
    TrustKey string
    The AD Connector control trust password.
    VswitchId string
    The ID of VSwitch.
    AdConnectorAddress string
    The address of AD connector.
    ConnectorStatus string
    The status of connector.
    NetworkInterfaceId string
    The ID of the network interface.
    Specification string
    The AD Connector specifications.
    TrustKey string
    The AD Connector control trust password.
    VswitchId string
    The ID of VSwitch.
    adConnectorAddress String
    The address of AD connector.
    connectorStatus String
    The status of connector.
    networkInterfaceId String
    The ID of the network interface.
    specification String
    The AD Connector specifications.
    trustKey String
    The AD Connector control trust password.
    vswitchId String
    The ID of VSwitch.
    adConnectorAddress string
    The address of AD connector.
    connectorStatus string
    The status of connector.
    networkInterfaceId string
    The ID of the network interface.
    specification string
    The AD Connector specifications.
    trustKey string
    The AD Connector control trust password.
    vswitchId string
    The ID of VSwitch.
    ad_connector_address str
    The address of AD connector.
    connector_status str
    The status of connector.
    network_interface_id str
    The ID of the network interface.
    specification str
    The AD Connector specifications.
    trust_key str
    The AD Connector control trust password.
    vswitch_id str
    The ID of VSwitch.
    adConnectorAddress String
    The address of AD connector.
    connectorStatus String
    The status of connector.
    networkInterfaceId String
    The ID of the network interface.
    specification String
    The AD Connector specifications.
    trustKey String
    The AD Connector control trust password.
    vswitchId 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.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi