All Products
Search
Document Center

Elastic Desktop Service:CreateADConnectorDirectory

Last Updated:Oct 17, 2024

Creates a directory of the Active Directory (AD) type.

Operation description

An AD directory is used to connect to an enterprise's existing Active Directory and is suitable for large-scale cloud computer deployment. You are charged directory fees when you connect your AD to cloud computers. For more information, see Billing overview.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
DomainNamestringYes

The fully qualified domain name (FQDN) of the enterprise AD system. The value must contain the hostname and the domain name. You can register each FQDN only once.

corp.example.com
DomainUserNamestringYes

The username of the domain administrator. The username can be up to 64 characters in length.

sAMAccountName
DomainPasswordstringYes

The password of the domain administrator. The password can be up to 64 characters in length.

testPassword
DirectoryNamestringYes

The directory name. The name must be 2 to 255 characters in length. The name must start with a letter but cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).

testDirectoryName
EnableAdminAccessbooleanNo

Specifies whether to grant the local administrator permissions to users that are authorized to use cloud computers in the office network.

Valid values:

  • true

    (default)

  • false

Enumeration Value:
  • true: To grant the local administrator permission [Default].
  • false: Not to grant the local administrator permission.
true
DesktopAccessTypestringNo

The method in which the cloud computer is connected.

Valid values:

  • VPC

  • Internet (default)

  • Any

Enumeration Value:
  • VPC: Only connect through VPC.
  • Internet: Only connect through the Internet [Default].
  • Any: Both VPC and Internet are supported.
Internet
SubDomainNamestringNo

The FQDN of the enterprise AD subdomain. The value must contain the hostname and the subdomain name.

child.example.com
MfaEnabledbooleanNo

Specifies whether to enable Multi-Factor Authentication (MFA). After you enable MFA, all AD users in the directory must enter a dynamic verification code generated by the virtual MFA device in addition to a correct password when they log on to a cloud computer.

Note When end users log on to a cloud computer for the first time, they must bind an MFA device.

Valid values:

  • true

  • false (default)

Enumeration Value:
  • true: To enable MFA.
  • false: To disable MFA [Default].
false
DnsAddressarrayYes

The IP address of the DNS server corresponding to the enterprise AD. You can specify only one IP address. Make sure that the specified IP address is accessible in the network of the selected vSwitch.

stringYes

The IP address of the DNS server corresponding to the enterprise AD.

127.0.**.**
VSwitchIdarrayYes

Details of the vSwitch IDs. You can specify only one vSwitch ID.

stringYes

The ID of the vSwitch.

vsw-bp19ocz3erfx15uon****
SubDomainDnsAddressarrayNo

The DNS address of the existing AD subdomain.
If you specify the SubDomainName parameter but you do not specify this parameter, the DNS address of the subdomain is the same as the DNS address of the parent domain.

stringNo

The DNS address of the existing AD subdomain.

127.0.**.**
SpecificationlongNo

The type of the AD connector.

Valid values:

  • 1 (General)
  • 2 (Advanced)
1

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

TrustPasswordstring

The AD trust password.

82Tg****
RequestIdstring

The ID of the request.

3FE99D5E-93A1-493F-B1CB-0ABD4D05BEFF
DirectoryIdstring

The ID of the AD directory.

cn-hangzhou+dir-gx2x1dhsmu52rd****
AdConnectorsarray<object>

The details of AD connectors.

AdConnectorobject

AD Connector.

Addressstring

The connection address.

127.0.**.**

Examples

Sample success responses

JSONformat

{
  "TrustPassword": "82Tg****",
  "RequestId": "3FE99D5E-93A1-493F-B1CB-0ABD4D05BEFF",
  "DirectoryId": "cn-hangzhou+dir-gx2x1dhsmu52rd****",
  "AdConnectors": [
    {
      "Address": "127.0.**.**"
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-11-14The internal configuration of the API is changed, but the call is not affectedView Change Details
2021-08-19The request parameters of the API has changedView Change Details