Creates a shared group.
Operation description
- To learn about the features, application scenarios, usage limits, scaling policies, and other details of shared groups, refer to Overview .
- Before you call this operation, make sure that the required resources, such as the office network, cloud computer template, and policies, are created.
Debugging
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:
- For mandatory resource types, indicate with a prefix of * .
- 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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ecd:CreateDesktopGroup | create | *All Resources * |
| 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 list of regions where Elastic Desktop Service (EDS) Enterprise is available. | cn-hangzhou |
BundleId | string | Yes | The ID of the cloud computer template. | b-je9hani001wfn**** |
OfficeSiteId | string | Yes | The ID of the office network. | cn-hangzhou+os-c5cy7q578s8jc**** |
PolicyGroupId | string | Yes | The ID of the policy. | pg-9c2d6t2dwflqr**** |
DesktopGroupName | string | No | The name of the shared group. The name can be up to 30 characters in length and can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-). It must start with a letter but cannot start with | desktopGroupName1 |
DirectoryId | string | No | The ID of the directory. Note
This parameter is not publicly available.
| hide |
ScaleStrategyId | string | No | The ID of the scaling policy. Note
This parameter is not publicly available.
| hide |
VpcId | string | No | The ID of the virtual private cloud (VPC). Note
This parameter is not publicly available.
| hide |
DefaultInitDesktopCount | integer | No | The default number of cloud computers that you want to create at the same time in the shared group. Default value: 1. | 1 |
KeepDuration | long | No | The duration for which each session remains active after disconnection. Valid values: 180000 (3 minutes) to 345600000 (4 days). Unit: milliseconds. If you set this parameter to 0, the session is permanently retained after disconnection. When a session is disconnected, take note of the following items: 1. If the end user does not resume the session within the specified duration, the session will close, and all unsaved data will be cleared. 2. If the end user resumes the session within the specified duration, the session data will remain accessible for continued use. | 6000 |
ChargeType | string | Yes | The billing method of the shared group. Valid values:
| PrePaid |
Period | integer | No | The subscription duration of the shared group. This parameter is required if you set
| 1 |
PeriodUnit | string | No | The unit of the subscription duration. | Month |
OwnType | integer | No | The session type of the shared group. Note
This parameter is not publicly available.
Valid values:
| 0 |
AutoPay | boolean | No | Specifies whether to automatically complete the payment for subscription orders. | true |
Comments | string | No | The remarks of the shared group. | test |
MinDesktopsCount | integer | No | The minimum number of subscription cloud computers that can be automatically provisioned at the same time in the shared group. This parameter is required if you set | 1 |
MaxDesktopsCount | integer | No | The maximum number of pay-as-you-go cloud computers that can be automatically provisioned at the same time in the shared group. Valid values: 0 to 500. | 50 |
AllowAutoSetup | integer | No | Specifies whether to enable batch-based automatic creation of subscription cloud computers for the shared group. This parameter is required if you set Valid values:
| 1 |
AllowBufferCount | integer | No | The maximum number of pay-as-you-go cloud computers that can be reserved in the shared group. This parameter is required if you set
Note
Setting this parameter to 0 means no cloud computers will be reserved in the shared group. In this case, the system must create, start, and assign cloud computers to end users upon request, which can be time-consuming. To improve user experience, we recommend that you reserve a specific number of cloud computers.
| 1 |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. | 123e4567-e89b-12d3-a456-426655440000 |
EndUserIds | array | No | The IDs of the end users. | |
string | No | The ID of the end user. | alice | |
ResetType | long | No | The reset option of the shared group. Valid values:
| 0 |
LoadPolicy | long | No | The load balancing policy of the multi-session shared group. Note
This parameter is not publicly available.
Valid values:
| 0 |
BindAmount | long | No | The number of concurrent sessions of the multi-session shared group. Note
This parameter is not publicly available.
| 1 |
Classify | string | No | The type of the cloud computers in the shared group. Note
This parameter is not publicly available.
Valid values:
| teacher |
AllClassifyUsers | boolean | No | The types of the users. Note
This parameter is not publicly available.
| Alice |
VolumeEncryptionEnabled | boolean | No | Specifies whether to enable disk encryption. | false |
VolumeEncryptionKey | string | No | The ID of the Key Management Service (KMS) key that you want to use when disk encryption is enabled. You can call the ListKeys operation to obtain a list of KMS keys. | 08c33a6f-4e0a-4a1b-a3fa-7ddfa1d4**** |
RatioThreshold | float | No | The threshold for the ratio of connected sessions. This parameter defines the condition that activates automatic scaling of cloud computers in a multi-session shared group. The ratio of connected sessions is calculated by using the following formula:
If the connected session ratio exceeds the specified threshold, new cloud computers are provisioned. If the ratio falls below the threshold, idle cloud computers are deleted. Note
This parameter is not publicly available.
| 0.5 |
ConnectDuration | long | No | The maximum duration for which each session remains connected. The session is automatically disconnected once the specified maximum time limit is reached. Unit: milliseconds. Valid values: 900000 to 345600000. That is, the session can be connected for 15 to 5,760 minutes (4 days). | 300000 |
IdleDisconnectDuration | long | No | The duration after which a session is terminated if no keyboard or mouse activity is detected. When an end user connects to a cloud computer, a session is initiated. If no input from the keyboard or mouse is detected within this specified timeframe, the session is automatically closed. Unit: milliseconds. Valid values: 360000 to 3600000 (6 minutes to 60 minutes) The system prompts end users to save their data 30 seconds before a session is disconnected. To avoid data loss, end users must save their session data upon receiving the prompt. Note
This parameter is suitable only for cloud computers whose image version is v1.0.2 or later.
| 300000 |
StopDuration | long | No | The maximum period of inactivity allowed before a cloud computer is automatically stopped. If the idle duration reaches the specified limit, the system stops the cloud computer. When an end user reconnects to the stopped cloud computer, it automatically restarts. Unit: milliseconds. | 300000 |
ProfileFollowSwitch | boolean | No | Specifies whether to enable user data roaming. Note
This parameter is not publicly available.
| false |
FileSystemId | string | No | The ID of the File Storage NAS (NAS) file system for the user data roaming feature. Note
This parameter is not publicly available.
| 04f314**** |
BuyDesktopsCount | integer | No |
| 3 |
GroupVersion | integer | No | The version of the shared group. | 2 |
AutoRenew | boolean | No | Specifies whether to enable auto-renewal for the shared subscription group. Valid values:
| false |
Tag | array<object> | No | The tags. You can specify up to 20 tags. | |
object | No | The tag. | ||
Key | string | Yes | The tag key. You cannot specify an empty string as a tag key. A tag key can be up to 128 characters in length and cannot start with | TestKey |
Value | string | Yes | The tag value. You can specify an empty string as a tag key. A tag value can be up to 128 characters in length and cannot start with | TestValue |
PromotionId | string | No | The ID of the coupon. | youhuiquan_promotion_option_id_***** |
ImageId | string | No | The ID of the image. | m-gx2x1dhsmusr2**** |
SystemDiskCategory | string | No | The category of the system disk. Valid values:
| cloud_auto |
SystemDiskSize | integer | No | The size of the system disk. Unit: GiB. Note
The system disk must be at least as large as the image.
| 80 |
SystemDiskPerLevel | string | No | The performance level (PL) of the system disk of the ESSD category. Default value: PL0. Valid values:
| PL0 |
DataDiskCategory | string | No | The category of the data disk. Valid values:
| cloud_auto |
DataDiskSize | integer | No | The size of the data disk. Unit: GB. Valid values: 0 to 16380. The value must be an integral multiple of 20.
Default value: 0. | 80 |
DataDiskPerLevel | string | No | The PL of the data disk of the ESSD category. Default value: PL0. Valid values:
| PL0 |
DefaultLanguage | string | No | The language of the OS. Valid values:
| zh-CN |
DesktopType | string | No | The specifications of the cloud computer. You can call the DescribeDesktopTypes operation to query all the supported specifications. | eds.enterprise_office.16c64g |
Hostname | string | No | The hostname series of the cloud computer. This parameter is supported exclusively when the office network operates on Active Directory (AD) and the cloud computer runs on a Windows operating system. Naming conventions:
If you want to create multiple cloud computers, specify their hostnames in the
| testhost |
MultiResource | boolean | No | Specifies whether the shared group is a multi-cloud computer type. Valid values:
| false |
ExclusiveType | string | No | Specifies whether the shared group is exclusive. You must set this parameter to | Exclusive |
GroupAmount | integer | No | The number of shared groups for the single-cloud computer type. You must specify this parameter if you set | 1 |
SessionType | string | No | The type of the session. Valid values:
| SingleSession |
TimerGroupId | string | No | The ID of the timer group. | ccg-0caoeogrk9m5**** |
SnapshotPolicyId | string | No | The ID of the automatic snapshot policy. | sp-28mp6my0l6zow**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"DesktopGroupId": "dg-2i8qxpv6t1a03****",
"RequestId": "3EB7FCEE-D731-4948-85A3-4B2C341CA983",
"OrderIds": [
"123456789"
],
"DesktopGroupIds": [
"['dg-1np2yupx0uim****']"
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2025-03-24 | The request parameters of the API has changed | View Change Details |
2025-01-24 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2024-08-09 | The request parameters of the API has changed | View Change Details |
2024-06-14 | The request parameters of the API has changed | View Change Details |
2023-09-05 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-03-28 | The request parameters of the API has changed | View Change Details |
2022-08-24 | The internal configuration of the API is changed, but the call is not affected | View Change Details |