Elastic Desktop Service supports two account systems: convenience accounts and enterprise AD accounts. Creates an office network (formerly workspace) based on convenience accounts.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:CreateSimpleOfficeSite |
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 VPC for the office network. This parameter is required for advanced office networks. The system uses automatic creation of a VPC based on the specified IPv4 CIDR block. Use one of the following CIDR blocks or their subnets:
|
172.16.0.0/12 |
| CenId |
string |
No |
The instance ID of the Cloud Enterprise Network (CEN) instance. Note
To connect to cloud desktops over a VPC connection, add the office network to a CEN instance. The CEN instance is the one that the on-premises network connects to by using a VPN or Express Connect circuit. |
cen-3gwy16dojz1m65**** |
| CenOwnerId |
integer |
No |
The Alibaba Cloud account ID to which the CEN instance belongs.
|
118272523431**** |
| VerifyCode |
string |
No |
The verification code. If the specified CEN instance belongs to another Alibaba Cloud account, call SendVerifyCode to obtain the verification code first. |
123456 |
| Bandwidth |
integer |
No |
The peak Internet bandwidth. Valid values: 10 to 200. Unit: Mbit/s.
You can specify this parameter when |
10 |
| 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 |
TestOfficeSite_Simple |
| EnableInternetAccess |
boolean |
No |
Specifies whether to enable public network access. Valid values:
|
false |
| EnableAdminAccess |
boolean |
No |
Specifies whether to grant local administrator permissions to users who use cloud desktops. Valid values:
|
true |
| DesktopAccessType |
string |
No |
The access method allowed when connecting to cloud desktops. 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 |
| NeedVerifyZeroDevice |
boolean |
No |
Specifies whether to enable trusted device verification. Valid values:
|
true |
| VSwitchId |
array |
No |
The ID of the vSwitch in the VPC. This parameter is required when you create a CloudBox office network. |
|
|
string |
No |
The ID of the vSwitch in the VPC. This parameter is required when you create a CloudBox office network. |
vsw-bp12mw1f8k3jgy**** |
|
| CloudBoxOfficeSite |
boolean |
No |
Specifies whether the office network is a CloudBox office network. Valid values:
|
false |
| VpcType |
string |
No |
The type of the office network. Valid values:
|
standard |
| AccountType |
string |
No |
The account type. |
SIMPLE |
| AuthorityHost |
string |
No |
The authority URL of the identity authentication service. |
https://login.microsoftonline.com |
| TenantId |
string |
No |
The tenant ID of the identity provider. |
72f988bf-86f1-41af-91ab-2d7cd011**** |
| DomainName |
string |
No |
The domain name of the enterprise AD. |
domain.local |
| ClientId |
string |
No |
The client ID registered with the identity provider application. |
a2c8f7e4-1b3d-4c5e-9f0a-6d7b8c9e**** |
| ClientSecret |
string |
No |
The client secret registered with the identity provider application. |
sct-9f3e2d1c**** |
| Eid |
string |
No |
The enterprise ID (EID). |
e-1234abcd**** |
| AccessAttribute |
string |
No |
The access attribute of the office network (workspace). |
Private |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| OfficeSiteId |
string |
The office network ID. |
cn-hangzhou+os-c5cy7q578s8jc**** |
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Examples
Success response
JSON format
{
"OfficeSiteId": "cn-hangzhou+os-c5cy7q578s8jc****",
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
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 |
| 400 | OfficeSiteNameInvalid | Office site name invalid. | Office site name invalid. |
| 400 | INSUFFICIENT_QUOTA | Insufficient quota. | The user quota is insufficient. |
| 403 | CREATE_SLR_ERROR | You are not authorized to do this action. | You are not authorized to do this action. Resource: acs:ram:*:*:role/* Action: ram:CreateServiceLinkedRole |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.