Creates an office network (formerly workspace) based on an enterprise Active Directory (AD) account system. Elastic Desktop Service supports convenient accounts and enterprise AD accounts.
Operation description
When you create an AD office network, the system performs automatic creation of an AD Connector to connect to your enterprise AD. You are charged for the AD Connector. For more information, see Billing overview.
After you call this operation to create an AD office network, you must complete the AD domain configurations. The procedure is as follows:
-
Configure a conditional forwarder on the DNS server.
-
Configure a trust relationship on the AD domain server, and then call ConfigADConnectorTrust to configure the trust relationship for the AD office network.
-
Call ListUserAdOrganizationUnits to obtain the organizational unit (OU) information of the AD domain, and then call ConfigADConnectorUser to specify the OU and administrator for the AD office network.
NoteWhen you create an AD office network, if you specify the domain administrator and password (DomainUserName and DomainPassword), you only need to configure the conditional forwarder afterward. If you do not specify the domain administrator and password, you must complete the configurations of the conditional forwarder, trust relationship, and OU as described above.
For more information, see Create and manage an AD-based office network.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:CreateADConnectorOfficeSite |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call DescribeRegions to query the regions supported by Elastic Desktop Service. |
cn-hangzhou |
| CidrBlock |
string |
No |
The IPv4 CIDR block of the office network VPC. The system uses automatic creation to provision a VPC based on the specified IPv4 CIDR block. Use one of the following CIDR blocks or their subnets as the IPv4 CIDR block:
|
47.100.XX.XX |
| CenOwnerId |
integer |
No |
The Alibaba Cloud account ID of the Cloud Enterprise Network (CEN) instance owner.
|
102681951715**** |
| CenId |
string |
No |
The instance ID of the Cloud Enterprise Network (CEN). |
cen-3gwy16dojz1m65**** |
| VerifyCode |
string |
No |
The verification code. If the specified CenId belongs to another Alibaba Cloud account, you must first call SendVerifyCode to obtain the verification code. |
12**** |
| Bandwidth |
integer |
No |
The peak Internet bandwidth, in Mbit/s. Valid values: 0 to 200. |
1 |
| DomainName |
string |
Yes |
The domain name of the enterprise AD. The same domain name can be registered only once. |
example.com |
| DomainUserName |
string |
No |
The username of the domain administrator. The username can be up to 64 characters in length. Note
Use the sAMAccountName format for the username. Do not use the userPrincipalName format. |
Administrator |
| DomainPassword |
string |
No |
The password of the domain administrator. The password can be up to 64 characters in length. |
testPassword |
| OfficeSiteName |
string |
No |
The name of the office network. The name must be 2 to 255 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). The name must start with a letter or Chinese character and cannot start with |
RD_Office_Network |
| EnableAdminAccess |
boolean |
No |
Specifies whether to grant local administrator permissions to users who use cloud computers. Valid values:
|
true |
| DesktopAccessType |
string |
No |
The access method allowed when connecting to cloud computers. Note
The VPC connection method depends on the Alibaba Cloud PrivateLink service, which is free of charge. If this parameter is set to Valid values:
|
Internet |
| EnableInternetAccess |
boolean |
No |
Specifies whether public network access is enabled. This parameter indicates whether the feature is active. |
true |
| SubDomainName |
string |
No |
The domain name of the enterprise AD subdomain. |
child.example.com |
| MfaEnabled |
boolean |
No |
Specifies whether to enable multi-factor authentication (MFA). |
false |
| DnsAddress |
array |
Yes |
The IP address of the DNS server corresponding to the enterprise AD. Currently, only one IP address is supported. |
192.168.XX.XX |
|
string |
No |
The IP address of the DNS server corresponding to the enterprise AD. Currently, only one IP address is supported. |
192.168.XX.XX |
|
| SubDomainDnsAddress |
array |
No |
The DNS address of the enterprise AD subdomain. If |
192.168.XX.XX |
|
string |
No |
The DNS address of the enterprise AD subdomain. If |
192.168.XX.XX |
|
| Specification |
integer |
No |
The AD Connector specification. Valid values:
|
1 |
| AdHostname |
string |
No |
The hostname of the domain controller. The hostname must comply with Windows hostname naming conventions. |
beijing-ad01 |
| ProtocolType |
string |
No |
The protocol type. Valid values:
|
ASP |
| BackupDns |
string |
No |
The DNS address of the backup domain controller. |
192.168.2.100 |
| BackupDCHostname |
string |
No |
The hostname of the backup domain controller. |
dc002 |
| VSwitchId |
array |
No |
The list of vSwitch IDs. |
|
|
string |
No |
The vSwitch ID. |
vsw-uf68bgq7rjwbqpg0**** |
|
| AccessAttribute |
string |
No |
The access attribute of the office network (workspace). |
Private |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| OfficeSiteId |
string |
The office network ID. |
cn-hangzhou+dir-363353**** |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"OfficeSiteId": "cn-hangzhou+dir-363353****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NetworkSpace.VpcInfoExist | vpc info already exist. | Office network already exists for the corresponding VPC |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.