Creates a delivery group.
Operation description
Make sure that you are familiar with the billing and pricing of WUYING Cloud Application before you call this operation.
A delivery group is a logical grouping for delivering cloud applications to end users. It includes the underlying cloud application resources, images that contain cloud applications, resource management policies, and user assignment settings. For details, see Publish a delivery group.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppCenterImageId |
string |
Yes |
The application image ID. You can obtain the ID from the O&M > Custom Images or System Images page in the WUYING Cloud Application console. |
img-8z4nztpaqvay4**** |
| ProductType |
string |
Yes |
The product type. Valid values:
|
CloudApp |
| AppInstanceGroupName |
string |
No |
The name of the delivery group. |
办公应用 |
| Users |
array |
No |
The list of usernames to be added to the delivery group as assigned users. |
|
|
string |
No |
The username to be added to the delivery group as an assigned user. Format: Users.N= |
Users.1=username1 Users.2=username2 |
|
| UserInfo |
object |
No |
The user information of the users to be added to the delivery group. This field is required if the |
|
| Type |
string |
No |
The user account type. Valid values:
|
Simple |
| ChargeType |
string |
Yes |
The billing method. Valid values:
|
PrePaid |
| PromotionId |
string |
No |
The promotion ID. You can call the GetResourcePrice operation to obtain the ID. |
17440009**** |
| AutoPay |
boolean |
No |
Specifies whether to enable automatic payment. Valid values:
|
false |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. Valid values:
|
false |
| Period |
integer |
Yes |
The subscription duration of the resource when
Note
If |
1 |
| PeriodUnit |
string |
Yes |
The unit of the subscription duration when Note
This parameter is case-sensitive. For example, Note
If Valid values:
|
Week |
| SessionTimeout |
integer |
Yes |
The application recycling timeout period, in minutes. After an end user disconnects from a cloud application for a period of time, the cloud application process exits. This period is the application recycling timeout. Set this parameter to |
15 |
| BizRegionId |
string |
Yes |
The region ID of the delivery group. For information about supported regions, see Limits. Valid values:
|
cn-hangzhou |
| ChargeResourceMode |
string |
Yes |
The sales mode. Valid values:
|
Node |
| NodePool |
object |
No |
The node pool object. |
|
| NodeInstanceType |
string |
No |
The instance type ID of the resource to purchase. You can call the ListNodeInstanceType operation to obtain the ID. Valid values:
|
appstreaming.general.4c8g |
| NodeAmount |
integer |
No |
The number of resources to purchase. Valid values: 1 to 100. Note
|
1 |
| NodeCapacity |
integer |
No |
The number of concurrent sessions, which is the number of sessions that a single resource can handle simultaneously. Too many concurrent sessions may degrade the application experience. The valid value range varies by resource specification. You can call the ListNodeInstanceType operation to obtain the valid value range for each resource specification. |
2 |
| StrategyType |
string |
No |
The scaling mode. Note
Valid values:
|
NODE_FIXED |
| MaxScalingAmount |
integer |
No |
The maximum number of resources that can be created during scale-out. This field is required when |
10 |
| MaxIdleAppInstanceAmount |
integer |
No |
The maximum number of idle sessions. When this value is specified, auto scale-out is triggered only when the session usage exceeds |
3 |
| ScalingStep |
integer |
No |
The number of resources to create per scale-out operation. Valid values: 1 to 10. This field is required when |
2 |
| ScalingUsageThreshold |
string |
No |
The upper threshold of session usage (%). Auto scale-out is triggered when the session usage exceeds this threshold. The session usage is calculated as follows: |
85 |
| ScalingDownAfterIdleMinutes |
integer |
No |
The maximum duration (in minutes) that a resource without active sessions is retained. When no sessions are connected to a resource, a countdown starts based on this value. The resource is released when the countdown ends. Valid values: 5 to 120. Default value: 5. The following exceptions apply:
|
5 |
| StrategyEnableDate |
string |
No |
The date when the policy takes effect. Format: yyyy-MM-dd. The date must be equal to or later than the current date. This field is required when |
2022-08-01 |
| StrategyDisableDate |
string |
No |
The date when the policy expires. Format: yyyy-MM-dd. The interval between the expiration date and the effective date must be between 7 days and 1 year, inclusive. This field is required when |
2022-09-08 |
| WarmUp |
boolean |
No |
Specifies whether to enable the resource prefetch policy. This field is required when |
false |
| RecurrenceSchedules |
array<object> |
No |
The list of recurrence schedules. This field is required when |
|
|
array<object> |
No |
The recurrence schedule. |
||
| RecurrenceType |
string |
No |
The type of the recurrence schedule. You must specify both Valid values:
|
weekly |
| RecurrenceValues |
array |
No |
The list of recurrence values. |
|
|
integer |
No |
The recurrence value. Valid values:
|
1 |
|
| TimerPeriods |
array<object> |
No |
The list of time periods for the recurrence schedule. Requirements for time period settings:
|
|
|
object |
No |
The time period for the recurrence schedule. |
||
| StartTime |
string |
No |
The start time of the time period. Format: HH:mm. |
12:00 |
| EndTime |
string |
No |
The end time of the time period. Format: HH:mm. |
15:00 |
| Amount |
integer |
No |
The number of resources. |
2 |
| Network |
object |
No |
The network configuration. Note
To use this parameter, submit a ticket. |
|
| StrategyType |
string |
No |
The network policy type. Valid values:
|
Shared |
| Routes |
array<object> |
No |
The route configurations. This parameter can be configured only when the network policy type ( |
|
|
object |
No |
The route configuration. |
||
| Destination |
string |
No |
The access destination. CIDR format. |
139.196.XX.XX/32 |
| Mode |
string |
No |
The network egress mode. Valid values:
|
Shared |
| IpExpireMinutes |
integer |
No |
The duration (in minutes) after which the public IP address is refreshed upon the next logon. Minimum value: 60. |
60 |
| OfficeSiteId |
string |
No |
The office network ID. |
cn-hongkong+dir-842567**** |
| VSwitchIds |
array |
No |
The list of vSwitch IDs.
|
|
|
string |
No |
The vSwitch ID. |
vsw-m5ef1sjhf7bbvqvvy**** |
|
| DomainRules |
array<object> |
No |
The domain name rule configurations. |
|
|
object |
No |
The domain name rule. |
||
| Domain |
string |
No |
The domain name. |
www.example.com |
| Policy |
string |
No |
The policy value. Valid values:
|
block |
| StoragePolicy |
object |
No |
The storage policy. |
|
| StorageTypeList |
array |
No |
The list of storage types. |
|
|
string |
No |
The storage type. Valid values:
|
PDS |
|
| UserProfile |
object |
No |
The user data roaming configuration. |
|
| UserProfileSwitch |
boolean |
No |
Specifies whether to enable user data roaming. Valid values:
|
false |
| RemoteStorageType |
string |
No |
The remote storage type used for user data roaming. Valid values:
|
NAS |
| RemoteStoragePath |
string |
No |
The remote storage path for user data roaming.
|
ID20250101 |
| PreOpenAppId |
string |
No |
The pre-opened application ID. |
cag-b2ronxxd**** |
| VideoPolicy |
object |
No |
The display policy. |
|
| FrameRate |
integer |
No |
The frame rate (FPS). Valid values:
|
60 |
| TerminalResolutionAdaptive |
boolean |
No |
Specifies whether to use adaptive resolution.
Valid values:
|
false |
| SessionResolutionWidth |
integer |
No |
The width of the resolution, in pixels. |
1920 |
| SessionResolutionHeight |
integer |
No |
The height of the resolution, in pixels. |
1080 |
| StreamingMode |
string |
No |
The streaming mode. Used together with the
Valid values:
|
video |
| Webrtc |
boolean |
No |
Specifies whether to enable WebRTC. Used together with the
Valid values:
|
true |
| RuntimePolicy |
object |
No |
The runtime policy. |
|
| SessionType |
string |
No |
The session type. Valid values:
|
NORMAL |
| DebugMode |
string |
No |
Specifies whether to enable debug mode. To call Valid values:
|
OFF |
| SessionUserGenerationMode |
string |
No |
The generation mode for session users.
Valid values:
|
wyid |
| SessionPreOpen |
string |
No |
Specifies whether to enable session pre-opening.
Valid values:
|
false |
| PerSessionPerApp |
boolean |
No |
Specifies whether to allow only one application per session.
Valid values:
|
false |
| PersistentAppInstanceScheduleMode |
string |
No |
The scheduling mode for persistent sessions. Valid values:
|
DYNAMIC |
| SecurityPolicy |
object |
No |
The security policy. |
|
| ResetAfterUnbind |
boolean |
No |
Specifies whether to reset after unbinding. Valid values:
|
true |
| SkipUserAuthCheck |
boolean |
No |
Specifies whether to skip user authorization verification. Valid values:
|
false |
| UserDefinePolicy |
object |
No |
The user-defined policy. |
|
| CustomConfig |
string |
No |
The custom policy content. The content must comply with the image version specifications. To use this parameter, submit a ticket to enable the whitelist. |
[{"target":"agent","config":{"abc":"xxx"}}] |
| AppPolicyId |
string |
No |
The policy ID. |
pg-0clfzcy0adpcf**** |
| ClusterId |
string |
No |
The cluster ID. |
cls-d39iq73l5c0a8**** |
| SubPayType |
string |
No |
The billing method subtype. Valid values:
|
postPaid |
| AppPackageType |
string |
No |
The package type. |
browser.package.5.250.appstreaming.general.basic |
| AuthMode |
string |
No |
The authorization mode of the delivery group. Valid values:
|
App |
| UserGroupIds |
array |
No |
The list of authorized user group IDs. |
|
|
string |
No |
The authorized user group ID. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| AppInstanceGroupModel |
object |
The delivery group. |
|
| AppInstanceGroupId |
string |
The delivery group ID. |
aig-9ciijz60n4xsv**** |
| OrderId |
string |
The order ID. |
12345**** |
| NodePoolId |
string |
The resource group ID. This parameter is returned if a resource group is created at the same time. |
rg-ew7va2g1wl3vm**** |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"AppInstanceGroupModel": {
"AppInstanceGroupId": "aig-9ciijz60n4xsv****",
"OrderId": "12345****",
"NodePoolId": "rg-ew7va2g1wl3vm****"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | StockError.NoStock | The selected specification is out of stock. Please try again later or select other specifications. | The selected specification is out of stock. Please try again later or select other specifications. |
| 500 | StockError.InvalidResourceRequest | Your request cannot be processed currently due to an error. Please try again later. | The inventory check failed and the system is temporarily unable to process your request. Please try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.