WUYING Workspace supports two account types: convenience accounts and Enterprise AD accounts. This operation creates an office network (formerly known as a workspace) for Enterprise AD accounts.
Operation description
When you create an AD office network, an AD Connector is automatically created to connect to your enterprise AD. You are charged for the AD Connector. For more information, see billing overview.
After creating an AD office network, you must also configure the AD domain. Follow these steps:
-
Configure a conditional forwarder on your DNS server.
-
Establish a trust relationship on your domain controller, and then call ConfigADConnectorTrust to configure this trust for the AD office network.
-
Call ListUserAdOrganizationUnits to list the organizational units (OUs) in your AD domain. Then, call ConfigADConnectorUser to specify the OUs and an administrator for the AD office network.
NoteIf you provide domain administrator credentials (DomainUserName and DomainPassword) when you create the AD office network, you only need to configure a conditional forwarder. If you do not provide these credentials, you must configure a conditional forwarder, establish a trust relationship, and specify the organizational units (OUs).
For more information, see Create and manage office networks for enterprise AD accounts.
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 ID of the region. You can call the DescribeRegions operation to query the regions supported by Elastic Desktop Service (EDS). |
cn-hangzhou |
| CidrBlock |
string |
No |
The IPv4 CIDR block for the office site's VPC. The system uses this IPv4 CIDR block to automatically create a VPC. We recommend that you use one of the following CIDR blocks or their subnets:
|
47.100.XX.XX |
| CenOwnerId |
integer |
No |
The ID of the Alibaba Cloud account that owns the Cloud Enterprise Network (CEN) instance.
|
102681951715**** |
| CenId |
string |
No |
The ID of the CEN instance. |
cen-3gwy16dojz1m65**** |
| VerifyCode |
string |
No |
The verification code. If the |
12**** |
| Bandwidth |
integer |
No |
The peak public bandwidth, specified in Mbit/s. The value can range from 0 to 200. |
1 |
| DomainName |
string |
Yes |
The domain name for the enterprise AD. Each domain name must be unique. |
example.com |
| DomainUserName |
string |
No |
The domain administrator's username. The username cannot exceed 64 characters in length. Note
Use the sAMAccountName, not the userPrincipalName. |
Administrator |
| DomainPassword |
string |
No |
The domain administrator's password. The password cannot exceed 64 characters in length. |
testPassword |
| OfficeSiteName |
string |
No |
The name of the office site. The name must be 2 to 255 characters in length. It must start with a letter or a Chinese character and cannot start with |
test |
| EnableAdminAccess |
boolean |
No |
Specifies whether to grant local administrator permissions to cloud desktop users. Default: true. Valid values:
|
true |
| DesktopAccessType |
string |
No |
The method for connecting to cloud desktops. Note
VPC connections are established using Alibaba Cloud PrivateLink, which is a free service. If you set this parameter to Valid values:
|
Internet |
| EnableInternetAccess |
boolean |
No |
This parameter is deprecated. Use the |
true |
| SubDomainName |
string |
No |
The domain name of the enterprise AD child domain. |
child.example.com |
| MfaEnabled |
boolean |
No |
Specifies whether to enable multi-factor authentication (MFA). |
false |
| DnsAddress |
array |
Yes |
An array that contains the IP address of the DNS server for the enterprise AD. You can specify only one IP address. |
192.168.XX.XX |
|
string |
No |
The IP address of the DNS server. |
192.168.XX.XX |
|
| SubDomainDnsAddress |
array |
No |
The DNS address of the enterprise AD child domain. If you specify |
192.168.XX.XX |
|
string |
No |
The DNS address of the enterprise AD child domain. If you specify |
192.168.XX.XX |
|
| Specification |
integer |
No |
The AD Connector type. Valid values:
|
1 |
| AdHostname |
string |
No |
The domain controller hostname. 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 |
A vSwitch ID. |
vsw-uf68bgq7rjwbqpg0**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The ID of the request. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| OfficeSiteId |
string |
The ID of the office network. |
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.