All Products
Search
Document Center

WUYING Workspace:CreateADConnectorDirectory

Last Updated:Apr 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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ecd:CreateADConnectorDirectoryWRITE
  • All Resources
    *
    none
none

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****
AdConnectorsobject []

The details of AD connectors.

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 affectedsee changesets
Change itemChange content
The internal configuration of the API is changed, but the call is not affected.
2021-08-19The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: Specification