alicloud.eds.AdConnectorDirectory
Explore with Pulumi AI
Provides a ECD Ad Connector Directory resource.
For information about ECD Ad Connector Directory and how to use it, see What is Ad Connector Directory.
NOTE: Available since v1.174.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const default = alicloud.eds.getZones({});
const defaultNetwork = new alicloud.vpc.Network("default", {
    vpcName: name,
    cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
    vpcId: defaultNetwork.id,
    cidrBlock: "172.16.0.0/24",
    zoneId: _default.then(_default => _default.ids?.[0]),
    vswitchName: name,
});
const defaultInteger = new random.index.Integer("default", {
    min: 10000,
    max: 99999,
});
const defaultAdConnectorDirectory = new alicloud.eds.AdConnectorDirectory("default", {
    directoryName: `${name}-${defaultInteger.result}`,
    desktopAccessType: "INTERNET",
    dnsAddresses: ["127.0.0.2"],
    domainName: "corp.example.com",
    domainPassword: "Example1234",
    domainUserName: "sAMAccountName",
    enableAdminAccess: false,
    mfaEnabled: false,
    specification: 1,
    subDomainDnsAddresses: ["127.0.0.3"],
    subDomainName: "child.example.com",
    vswitchIds: [defaultSwitch.id],
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "terraform-example"
default = alicloud.eds.get_zones()
default_network = alicloud.vpc.Network("default",
    vpc_name=name,
    cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("default",
    vpc_id=default_network.id,
    cidr_block="172.16.0.0/24",
    zone_id=default.ids[0],
    vswitch_name=name)
default_integer = random.index.Integer("default",
    min=10000,
    max=99999)
default_ad_connector_directory = alicloud.eds.AdConnectorDirectory("default",
    directory_name=f"{name}-{default_integer['result']}",
    desktop_access_type="INTERNET",
    dns_addresses=["127.0.0.2"],
    domain_name="corp.example.com",
    domain_password="Example1234",
    domain_user_name="sAMAccountName",
    enable_admin_access=False,
    mfa_enabled=False,
    specification=1,
    sub_domain_dns_addresses=["127.0.0.3"],
    sub_domain_name="child.example.com",
    vswitch_ids=[default_switch.id])
package main
import (
	"fmt"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := eds.GetZones(ctx, &eds.GetZonesArgs{}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
			VpcId:       defaultNetwork.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/24"),
			ZoneId:      pulumi.String(_default.Ids[0]),
			VswitchName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Min: 10000,
			Max: 99999,
		})
		if err != nil {
			return err
		}
		_, err = eds.NewAdConnectorDirectory(ctx, "default", &eds.AdConnectorDirectoryArgs{
			DirectoryName:     pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
			DesktopAccessType: pulumi.String("INTERNET"),
			DnsAddresses: pulumi.StringArray{
				pulumi.String("127.0.0.2"),
			},
			DomainName:        pulumi.String("corp.example.com"),
			DomainPassword:    pulumi.String("Example1234"),
			DomainUserName:    pulumi.String("sAMAccountName"),
			EnableAdminAccess: pulumi.Bool(false),
			MfaEnabled:        pulumi.Bool(false),
			Specification:     pulumi.Int(1),
			SubDomainDnsAddresses: pulumi.StringArray{
				pulumi.String("127.0.0.3"),
			},
			SubDomainName: pulumi.String("child.example.com"),
			VswitchIds: pulumi.StringArray{
				defaultSwitch.ID(),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "terraform-example";
    var @default = AliCloud.Eds.GetZones.Invoke();
    var defaultNetwork = new AliCloud.Vpc.Network("default", new()
    {
        VpcName = name,
        CidrBlock = "172.16.0.0/16",
    });
    var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
    {
        VpcId = defaultNetwork.Id,
        CidrBlock = "172.16.0.0/24",
        ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Ids[0])),
        VswitchName = name,
    });
    var defaultInteger = new Random.Index.Integer("default", new()
    {
        Min = 10000,
        Max = 99999,
    });
    var defaultAdConnectorDirectory = new AliCloud.Eds.AdConnectorDirectory("default", new()
    {
        DirectoryName = $"{name}-{defaultInteger.Result}",
        DesktopAccessType = "INTERNET",
        DnsAddresses = new[]
        {
            "127.0.0.2",
        },
        DomainName = "corp.example.com",
        DomainPassword = "Example1234",
        DomainUserName = "sAMAccountName",
        EnableAdminAccess = false,
        MfaEnabled = false,
        Specification = 1,
        SubDomainDnsAddresses = new[]
        {
            "127.0.0.3",
        },
        SubDomainName = "child.example.com",
        VswitchIds = new[]
        {
            defaultSwitch.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.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.eds.AdConnectorDirectory;
import com.pulumi.alicloud.eds.AdConnectorDirectoryArgs;
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 config = ctx.config();
        final var name = config.get("name").orElse("terraform-example");
        final var default = EdsFunctions.getZones();
        var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
            .vpcName(name)
            .cidrBlock("172.16.0.0/16")
            .build());
        var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
            .vpcId(defaultNetwork.id())
            .cidrBlock("172.16.0.0/24")
            .zoneId(default_.ids()[0])
            .vswitchName(name)
            .build());
        var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
            .min(10000)
            .max(99999)
            .build());
        var defaultAdConnectorDirectory = new AdConnectorDirectory("defaultAdConnectorDirectory", AdConnectorDirectoryArgs.builder()
            .directoryName(String.format("%s-%s", name,defaultInteger.result()))
            .desktopAccessType("INTERNET")
            .dnsAddresses("127.0.0.2")
            .domainName("corp.example.com")
            .domainPassword("Example1234")
            .domainUserName("sAMAccountName")
            .enableAdminAccess(false)
            .mfaEnabled(false)
            .specification(1)
            .subDomainDnsAddresses("127.0.0.3")
            .subDomainName("child.example.com")
            .vswitchIds(defaultSwitch.id())
            .build());
    }
}
configuration:
  name:
    type: string
    default: terraform-example
resources:
  defaultNetwork:
    type: alicloud:vpc:Network
    name: default
    properties:
      vpcName: ${name}
      cidrBlock: 172.16.0.0/16
  defaultSwitch:
    type: alicloud:vpc:Switch
    name: default
    properties:
      vpcId: ${defaultNetwork.id}
      cidrBlock: 172.16.0.0/24
      zoneId: ${default.ids[0]}
      vswitchName: ${name}
  defaultInteger:
    type: random:integer
    name: default
    properties:
      min: 10000
      max: 99999
  defaultAdConnectorDirectory:
    type: alicloud:eds:AdConnectorDirectory
    name: default
    properties:
      directoryName: ${name}-${defaultInteger.result}
      desktopAccessType: INTERNET
      dnsAddresses:
        - 127.0.0.2
      domainName: corp.example.com
      domainPassword: Example1234
      domainUserName: sAMAccountName
      enableAdminAccess: false
      mfaEnabled: false
      specification: 1
      subDomainDnsAddresses:
        - 127.0.0.3
      subDomainName: child.example.com
      vswitchIds:
        - ${defaultSwitch.id}
variables:
  default:
    fn::invoke:
      Function: alicloud:eds:getZones
      Arguments: {}
Create AdConnectorDirectory Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AdConnectorDirectory(name: string, args: AdConnectorDirectoryArgs, opts?: CustomResourceOptions);@overload
def AdConnectorDirectory(resource_name: str,
                         args: AdConnectorDirectoryArgs,
                         opts: Optional[ResourceOptions] = None)
@overload
def AdConnectorDirectory(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         directory_name: Optional[str] = None,
                         dns_addresses: Optional[Sequence[str]] = None,
                         domain_name: Optional[str] = None,
                         domain_password: Optional[str] = None,
                         domain_user_name: Optional[str] = None,
                         vswitch_ids: Optional[Sequence[str]] = None,
                         desktop_access_type: Optional[str] = None,
                         enable_admin_access: Optional[bool] = None,
                         mfa_enabled: Optional[bool] = None,
                         specification: Optional[int] = None,
                         sub_domain_dns_addresses: Optional[Sequence[str]] = None,
                         sub_domain_name: Optional[str] = None)func NewAdConnectorDirectory(ctx *Context, name string, args AdConnectorDirectoryArgs, opts ...ResourceOption) (*AdConnectorDirectory, error)public AdConnectorDirectory(string name, AdConnectorDirectoryArgs args, CustomResourceOptions? opts = null)
public AdConnectorDirectory(String name, AdConnectorDirectoryArgs args)
public AdConnectorDirectory(String name, AdConnectorDirectoryArgs args, CustomResourceOptions options)
type: alicloud:eds:AdConnectorDirectory
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AdConnectorDirectoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AdConnectorDirectoryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AdConnectorDirectoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AdConnectorDirectoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AdConnectorDirectoryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var adConnectorDirectoryResource = new AliCloud.Eds.AdConnectorDirectory("adConnectorDirectoryResource", new()
{
    DirectoryName = "string",
    DnsAddresses = new[]
    {
        "string",
    },
    DomainName = "string",
    DomainPassword = "string",
    DomainUserName = "string",
    VswitchIds = new[]
    {
        "string",
    },
    DesktopAccessType = "string",
    EnableAdminAccess = false,
    MfaEnabled = false,
    Specification = 0,
    SubDomainDnsAddresses = new[]
    {
        "string",
    },
    SubDomainName = "string",
});
example, err := eds.NewAdConnectorDirectory(ctx, "adConnectorDirectoryResource", &eds.AdConnectorDirectoryArgs{
	DirectoryName: pulumi.String("string"),
	DnsAddresses: pulumi.StringArray{
		pulumi.String("string"),
	},
	DomainName:     pulumi.String("string"),
	DomainPassword: pulumi.String("string"),
	DomainUserName: pulumi.String("string"),
	VswitchIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	DesktopAccessType: pulumi.String("string"),
	EnableAdminAccess: pulumi.Bool(false),
	MfaEnabled:        pulumi.Bool(false),
	Specification:     pulumi.Int(0),
	SubDomainDnsAddresses: pulumi.StringArray{
		pulumi.String("string"),
	},
	SubDomainName: pulumi.String("string"),
})
var adConnectorDirectoryResource = new AdConnectorDirectory("adConnectorDirectoryResource", AdConnectorDirectoryArgs.builder()
    .directoryName("string")
    .dnsAddresses("string")
    .domainName("string")
    .domainPassword("string")
    .domainUserName("string")
    .vswitchIds("string")
    .desktopAccessType("string")
    .enableAdminAccess(false)
    .mfaEnabled(false)
    .specification(0)
    .subDomainDnsAddresses("string")
    .subDomainName("string")
    .build());
ad_connector_directory_resource = alicloud.eds.AdConnectorDirectory("adConnectorDirectoryResource",
    directory_name="string",
    dns_addresses=["string"],
    domain_name="string",
    domain_password="string",
    domain_user_name="string",
    vswitch_ids=["string"],
    desktop_access_type="string",
    enable_admin_access=False,
    mfa_enabled=False,
    specification=0,
    sub_domain_dns_addresses=["string"],
    sub_domain_name="string")
const adConnectorDirectoryResource = new alicloud.eds.AdConnectorDirectory("adConnectorDirectoryResource", {
    directoryName: "string",
    dnsAddresses: ["string"],
    domainName: "string",
    domainPassword: "string",
    domainUserName: "string",
    vswitchIds: ["string"],
    desktopAccessType: "string",
    enableAdminAccess: false,
    mfaEnabled: false,
    specification: 0,
    subDomainDnsAddresses: ["string"],
    subDomainName: "string",
});
type: alicloud:eds:AdConnectorDirectory
properties:
    desktopAccessType: string
    directoryName: string
    dnsAddresses:
        - string
    domainName: string
    domainPassword: string
    domainUserName: string
    enableAdminAccess: false
    mfaEnabled: false
    specification: 0
    subDomainDnsAddresses:
        - string
    subDomainName: string
    vswitchIds:
        - string
AdConnectorDirectory Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AdConnectorDirectory resource accepts the following input properties:
- DirectoryName string
- The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http://orhttps://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
- DnsAddresses List<string>
- The DNS address list.
- DomainName string
- The name of the domain.
- DomainPassword string
- The user password of the domain administrator. The maximum number of English characters is 64.
- DomainUser stringName 
- The username of the domain administrator. The maximum number of English characters is 64.
- VswitchIds List<string>
- List of VSwitch IDs in the directory.
- DesktopAccess stringType 
- The desktop access type. Valid values: VPC,INTERNET,ANY.
- EnableAdmin boolAccess 
- Whether to grant local administrator rights to users who use cloud desktops.
- 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. NOTE: The MFA device needs to be bound when logging in for the first time.
- Specification int
- The AD Connector specifications. Valid values: 1,2.
- SubDomain List<string>Dns Addresses 
- The Enterprise already has the DNS address of the AD subdomain. If sub_domain_nameis set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
- SubDomain stringName 
- The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
- DirectoryName string
- The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http://orhttps://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
- DnsAddresses []string
- The DNS address list.
- DomainName string
- The name of the domain.
- DomainPassword string
- The user password of the domain administrator. The maximum number of English characters is 64.
- DomainUser stringName 
- The username of the domain administrator. The maximum number of English characters is 64.
- VswitchIds []string
- List of VSwitch IDs in the directory.
- DesktopAccess stringType 
- The desktop access type. Valid values: VPC,INTERNET,ANY.
- EnableAdmin boolAccess 
- Whether to grant local administrator rights to users who use cloud desktops.
- 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. NOTE: The MFA device needs to be bound when logging in for the first time.
- Specification int
- The AD Connector specifications. Valid values: 1,2.
- SubDomain []stringDns Addresses 
- The Enterprise already has the DNS address of the AD subdomain. If sub_domain_nameis set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
- SubDomain stringName 
- The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
- directoryName String
- The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http://orhttps://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
- dnsAddresses List<String>
- The DNS address list.
- domainName String
- The name of the domain.
- domainPassword String
- The user password of the domain administrator. The maximum number of English characters is 64.
- domainUser StringName 
- The username of the domain administrator. The maximum number of English characters is 64.
- vswitchIds List<String>
- List of VSwitch IDs in the directory.
- desktopAccess StringType 
- The desktop access type. Valid values: VPC,INTERNET,ANY.
- enableAdmin BooleanAccess 
- Whether to grant local administrator rights to users who use cloud desktops.
- 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. NOTE: The MFA device needs to be bound when logging in for the first time.
- specification Integer
- The AD Connector specifications. Valid values: 1,2.
- subDomain List<String>Dns Addresses 
- The Enterprise already has the DNS address of the AD subdomain. If sub_domain_nameis set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
- subDomain StringName 
- The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
- directoryName string
- The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http://orhttps://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
- dnsAddresses string[]
- The DNS address list.
- domainName string
- The name of the domain.
- domainPassword string
- The user password of the domain administrator. The maximum number of English characters is 64.
- domainUser stringName 
- The username of the domain administrator. The maximum number of English characters is 64.
- vswitchIds string[]
- List of VSwitch IDs in the directory.
- desktopAccess stringType 
- The desktop access type. Valid values: VPC,INTERNET,ANY.
- enableAdmin booleanAccess 
- Whether to grant local administrator rights to users who use cloud desktops.
- 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. NOTE: The MFA device needs to be bound when logging in for the first time.
- specification number
- The AD Connector specifications. Valid values: 1,2.
- subDomain string[]Dns Addresses 
- The Enterprise already has the DNS address of the AD subdomain. If sub_domain_nameis set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
- subDomain stringName 
- The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
- directory_name str
- The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http://orhttps://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
- dns_addresses Sequence[str]
- The DNS address list.
- domain_name str
- The name of the domain.
- domain_password str
- The user password of the domain administrator. The maximum number of English characters is 64.
- domain_user_ strname 
- The username of the domain administrator. The maximum number of English characters is 64.
- vswitch_ids Sequence[str]
- List of VSwitch IDs in the directory.
- desktop_access_ strtype 
- The desktop access type. Valid values: VPC,INTERNET,ANY.
- enable_admin_ boolaccess 
- Whether to grant local administrator rights to users who use cloud desktops.
- 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. NOTE: The MFA device needs to be bound when logging in for the first time.
- specification int
- The AD Connector specifications. Valid values: 1,2.
- sub_domain_ Sequence[str]dns_ addresses 
- The Enterprise already has the DNS address of the AD subdomain. If sub_domain_nameis set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
- sub_domain_ strname 
- The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
- directoryName String
- The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http://orhttps://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
- dnsAddresses List<String>
- The DNS address list.
- domainName String
- The name of the domain.
- domainPassword String
- The user password of the domain administrator. The maximum number of English characters is 64.
- domainUser StringName 
- The username of the domain administrator. The maximum number of English characters is 64.
- vswitchIds List<String>
- List of VSwitch IDs in the directory.
- desktopAccess StringType 
- The desktop access type. Valid values: VPC,INTERNET,ANY.
- enableAdmin BooleanAccess 
- Whether to grant local administrator rights to users who use cloud desktops.
- 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. NOTE: The MFA device needs to be bound when logging in for the first time.
- specification Number
- The AD Connector specifications. Valid values: 1,2.
- subDomain List<String>Dns Addresses 
- The Enterprise already has the DNS address of the AD subdomain. If sub_domain_nameis set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
- subDomain StringName 
- The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
Outputs
All input properties are implicitly available as output properties. Additionally, the AdConnectorDirectory resource produces the following output properties:
Look up Existing AdConnectorDirectory Resource
Get an existing AdConnectorDirectory resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AdConnectorDirectoryState, opts?: CustomResourceOptions): AdConnectorDirectory@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        desktop_access_type: Optional[str] = None,
        directory_name: Optional[str] = None,
        dns_addresses: Optional[Sequence[str]] = None,
        domain_name: Optional[str] = None,
        domain_password: Optional[str] = None,
        domain_user_name: Optional[str] = None,
        enable_admin_access: Optional[bool] = None,
        mfa_enabled: Optional[bool] = None,
        specification: Optional[int] = None,
        status: Optional[str] = None,
        sub_domain_dns_addresses: Optional[Sequence[str]] = None,
        sub_domain_name: Optional[str] = None,
        vswitch_ids: Optional[Sequence[str]] = None) -> AdConnectorDirectoryfunc GetAdConnectorDirectory(ctx *Context, name string, id IDInput, state *AdConnectorDirectoryState, opts ...ResourceOption) (*AdConnectorDirectory, error)public static AdConnectorDirectory Get(string name, Input<string> id, AdConnectorDirectoryState? state, CustomResourceOptions? opts = null)public static AdConnectorDirectory get(String name, Output<String> id, AdConnectorDirectoryState state, CustomResourceOptions options)Resource lookup is not supported in YAML- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- DesktopAccess stringType 
- The desktop access type. Valid values: VPC,INTERNET,ANY.
- DirectoryName string
- The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http://orhttps://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
- DnsAddresses List<string>
- The DNS address list.
- DomainName string
- The name of the domain.
- DomainPassword string
- The user password of the domain administrator. The maximum number of English characters is 64.
- DomainUser stringName 
- The username of the domain administrator. The maximum number of English characters is 64.
- EnableAdmin boolAccess 
- Whether to grant local administrator rights to users who use cloud desktops.
- 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. NOTE: The MFA device needs to be bound when logging in for the first time.
- Specification int
- The AD Connector specifications. Valid values: 1,2.
- Status string
- The status of directory.
- SubDomain List<string>Dns Addresses 
- The Enterprise already has the DNS address of the AD subdomain. If sub_domain_nameis set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
- SubDomain stringName 
- The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
- VswitchIds List<string>
- List of VSwitch IDs in the directory.
- DesktopAccess stringType 
- The desktop access type. Valid values: VPC,INTERNET,ANY.
- DirectoryName string
- The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http://orhttps://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
- DnsAddresses []string
- The DNS address list.
- DomainName string
- The name of the domain.
- DomainPassword string
- The user password of the domain administrator. The maximum number of English characters is 64.
- DomainUser stringName 
- The username of the domain administrator. The maximum number of English characters is 64.
- EnableAdmin boolAccess 
- Whether to grant local administrator rights to users who use cloud desktops.
- 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. NOTE: The MFA device needs to be bound when logging in for the first time.
- Specification int
- The AD Connector specifications. Valid values: 1,2.
- Status string
- The status of directory.
- SubDomain []stringDns Addresses 
- The Enterprise already has the DNS address of the AD subdomain. If sub_domain_nameis set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
- SubDomain stringName 
- The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
- VswitchIds []string
- List of VSwitch IDs in the directory.
- desktopAccess StringType 
- The desktop access type. Valid values: VPC,INTERNET,ANY.
- directoryName String
- The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http://orhttps://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
- dnsAddresses List<String>
- The DNS address list.
- domainName String
- The name of the domain.
- domainPassword String
- The user password of the domain administrator. The maximum number of English characters is 64.
- domainUser StringName 
- The username of the domain administrator. The maximum number of English characters is 64.
- enableAdmin BooleanAccess 
- Whether to grant local administrator rights to users who use cloud desktops.
- 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. NOTE: The MFA device needs to be bound when logging in for the first time.
- specification Integer
- The AD Connector specifications. Valid values: 1,2.
- status String
- The status of directory.
- subDomain List<String>Dns Addresses 
- The Enterprise already has the DNS address of the AD subdomain. If sub_domain_nameis set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
- subDomain StringName 
- The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
- vswitchIds List<String>
- List of VSwitch IDs in the directory.
- desktopAccess stringType 
- The desktop access type. Valid values: VPC,INTERNET,ANY.
- directoryName string
- The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http://orhttps://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
- dnsAddresses string[]
- The DNS address list.
- domainName string
- The name of the domain.
- domainPassword string
- The user password of the domain administrator. The maximum number of English characters is 64.
- domainUser stringName 
- The username of the domain administrator. The maximum number of English characters is 64.
- enableAdmin booleanAccess 
- Whether to grant local administrator rights to users who use cloud desktops.
- 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. NOTE: The MFA device needs to be bound when logging in for the first time.
- specification number
- The AD Connector specifications. Valid values: 1,2.
- status string
- The status of directory.
- subDomain string[]Dns Addresses 
- The Enterprise already has the DNS address of the AD subdomain. If sub_domain_nameis set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
- subDomain stringName 
- The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
- vswitchIds string[]
- List of VSwitch IDs in the directory.
- desktop_access_ strtype 
- The desktop access type. Valid values: VPC,INTERNET,ANY.
- directory_name str
- The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http://orhttps://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
- dns_addresses Sequence[str]
- The DNS address list.
- domain_name str
- The name of the domain.
- domain_password str
- The user password of the domain administrator. The maximum number of English characters is 64.
- domain_user_ strname 
- The username of the domain administrator. The maximum number of English characters is 64.
- enable_admin_ boolaccess 
- Whether to grant local administrator rights to users who use cloud desktops.
- 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. NOTE: The MFA device needs to be bound when logging in for the first time.
- specification int
- The AD Connector specifications. Valid values: 1,2.
- status str
- The status of directory.
- sub_domain_ Sequence[str]dns_ addresses 
- The Enterprise already has the DNS address of the AD subdomain. If sub_domain_nameis set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
- sub_domain_ strname 
- The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
- vswitch_ids Sequence[str]
- List of VSwitch IDs in the directory.
- desktopAccess StringType 
- The desktop access type. Valid values: VPC,INTERNET,ANY.
- directoryName String
- The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http://orhttps://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
- dnsAddresses List<String>
- The DNS address list.
- domainName String
- The name of the domain.
- domainPassword String
- The user password of the domain administrator. The maximum number of English characters is 64.
- domainUser StringName 
- The username of the domain administrator. The maximum number of English characters is 64.
- enableAdmin BooleanAccess 
- Whether to grant local administrator rights to users who use cloud desktops.
- 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. NOTE: The MFA device needs to be bound when logging in for the first time.
- specification Number
- The AD Connector specifications. Valid values: 1,2.
- status String
- The status of directory.
- subDomain List<String>Dns Addresses 
- The Enterprise already has the DNS address of the AD subdomain. If sub_domain_nameis set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
- subDomain StringName 
- The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
- vswitchIds List<String>
- List of VSwitch IDs in the directory.
Import
ECD Ad Connector Directory can be imported using the id, e.g.
$ pulumi import alicloud:eds/adConnectorDirectory:AdConnectorDirectory example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.