Elastic Desktop Service (EDS) supports two types of accounts: convenience accounts and enterprise AD accounts. Use this API to create an office network (formerly a workspace) that uses 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 the DescribeRegions operation to get a list of regions that support Elastic Desktop Service (ECD). |
cn-hangzhou |
| CidrBlock |
string |
No |
The IPv4 CIDR block for the office site's Virtual Private Cloud (VPC). This parameter is required for standard office sites. The system automatically creates 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 ID of the Cloud Enterprise Network (CEN) instance. Note
If you want to connect to cloud desktops over a VPC, attach the office site to the same CEN instance that is connected to your on-premises network by a VPN or an Express Connect circuit. |
cen-3gwy16dojz1m65**** |
| CenOwnerId |
integer |
No |
The ID of the Alibaba Cloud account that owns the CEN instance.
|
118272523431**** |
| VerifyCode |
string |
No |
The verification code. If the CEN instance is owned by another Alibaba Cloud account, you must first call SendVerifyCode to obtain a verification code. |
123456 |
| Bandwidth |
integer |
No |
The peak public bandwidth. Valid values: 10 to 200. Unit: Mbps.
This parameter is valid only when |
10 |
| 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 |
TestOfficeSite_Simple |
| EnableInternetAccess |
boolean |
No |
Specifies whether to enable internet access. Valid values:
|
false |
| EnableAdminAccess |
boolean |
No |
Specifies whether to grant users local administrator privileges on their cloud desktops. Valid values:
|
true |
| DesktopAccessType |
string |
No |
Specifies how clients can connect to cloud desktops. Note
VPC connections rely on the Alibaba Cloud PrivateLink service, which is free of charge. If you set this parameter to Valid values:
|
Internet |
| NeedVerifyZeroDevice |
boolean |
No |
Specifies whether to enable trusted device verification. Valid values:
|
true |
| VSwitchId |
array |
No |
The vSwitch ID. This parameter is required when you create a Cloud Box office site. |
|
|
string |
No |
|
vsw-bp12mw1f8k3jgy**** |
|
| CloudBoxOfficeSite |
boolean |
No |
Specifies whether to create a Cloud Box office site. Valid values:
|
false |
| VpcType |
string |
No |
The type of the office site. Valid values:
|
standard |
| AccountType |
string |
No |
||
| AuthorityHost |
string |
No |
||
| TenantId |
string |
No |
||
| DomainName |
string |
No |
||
| ClientId |
string |
No |
||
| ClientSecret |
string |
No |
||
| Eid |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned for the request. |
||
| OfficeSiteId |
string |
The office site ID. |
cn-hangzhou+os-c5cy7q578s8jc**** |
| RequestId |
string |
The ID of the request. |
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 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.