Create a delivery group.
Operation description
Before you call this operation, ensure you understand the billing methods and pricing for Wuying App Service.
A delivery group is a logical grouping used to deliver cloud applications to end users. It includes cloud application resources, the image that contains the cloud applications, resource management policies, and user assignment settings. For more information, see Publish a delivery group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:CreateAppInstanceGroup |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppCenterImageId |
string |
Yes |
The ID of the app image. You can obtain the ID from the Custom Images or System Images page under Operations in the Wuying App Service console. |
img-8z4nztpaqvay4**** |
| ProductType |
string |
Yes |
The product type. Valid values:
|
CloudApp |
| AppInstanceGroupName |
string |
No |
The name of the app instance group. |
办公应用 |
| Users |
array |
No |
The usernames to add to the app instance group. |
|
|
string |
No |
The username to add to the app instance group. The format is Users.N= |
Users.1=username1 Users.2=username2 |
|
| UserInfo |
object |
No |
Details about the users to be added to the app instance group. This parameter is required if you specify the |
|
| Type |
string |
No |
The type of user account. Valid values:
|
Simple |
| ChargeType |
string |
Yes |
The billing method. Valid values:
|
PrePaid |
| PromotionId |
string |
No |
The promotion ID. You can obtain the promotion ID by calling the GetResourcePrice operation. |
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. This parameter is required when
Note
If |
1 |
| PeriodUnit |
string |
Yes |
The unit of the subscription duration. This parameter is required when Note
This parameter is case-sensitive. For example, Note
If Valid values:
|
Week |
| SessionTimeout |
integer |
Yes |
The idle time in minutes before a session times out. After a user disconnects, the app process is terminated after this period. To disable the timeout, set this value to |
15 |
| BizRegionId |
string |
Yes |
The region ID of the app instance group. For more information about supported regions, see Usage notes. Valid values:
|
cn-hangzhou |
| ChargeResourceMode |
string |
Yes |
The resource unit to be billed. Valid values:
|
Node |
| NodePool |
object |
No |
The node pool configuration. |
|
| NodeInstanceType |
string |
No |
The instance type of the resource to purchase. You can call the ListNodeInstanceType operation to obtain the valid values. 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 maximum number of concurrent sessions per resource. Exceeding this limit may degrade the user experience. Valid values depend on the resource specification. You can query the valid values by calling the ListNodeInstanceType operation. |
2 |
| StrategyType |
string |
No |
The scaling mode. Note
Valid values:
|
NODE_FIXED |
| MaxScalingAmount |
integer |
No |
The maximum number of resources to create during a scale-out. This parameter is required when |
10 |
| MaxIdleAppInstanceAmount |
integer |
No |
The maximum number of idle sessions. If you specify this parameter, an auto scaling event is triggered only when the session usage exceeds |
3 |
| ScalingStep |
integer |
No |
The number of resources to add in each scale-out. Valid values: 1 to 10. This parameter is required when |
2 |
| ScalingUsageThreshold |
string |
No |
The session usage percentage that triggers a scale-out. An auto scaling event is triggered when the session usage exceeds this threshold. Session usage is calculated by using the following formula: |
85 |
| ScalingDownAfterIdleMinutes |
integer |
No |
The number of minutes an idle resource can wait before being released. A resource is considered idle when it has no active sessions. The resource is released when this period ends. The following exceptions may apply:
|
5 |
| StrategyEnableDate |
string |
No |
The date on which the policy takes effect. The date must be in the yyyy-MM-dd format and must be on or after the current date. This parameter is required if |
2022-08-01 |
| StrategyDisableDate |
string |
No |
The date on which the policy expires. The date must be in the yyyy-MM-dd format. The interval between the effective date and the expiration date must be between 7 and 365 days, inclusive. This parameter is required if |
2022-09-08 |
| WarmUp |
boolean |
No |
Specifies whether to enable resource warming. This parameter is required if |
false |
| RecurrenceSchedules |
array<object> |
No |
The recurring schedules for the policy. This parameter is required if |
|
|
array<object> |
No |
A recurring schedule. |
||
| RecurrenceType |
string |
No |
The recurrence type for the scheduled task. You must specify both Valid values:
|
weekly |
| RecurrenceValues |
array |
No |
The list of recurrence values. |
|
|
integer |
No |
The value for the recurrence. Valid values:
|
1 |
|
| TimerPeriods |
array<object> |
No |
The time periods within the recurrence. The time periods must meet the following requirements:
|
|
|
object |
No |
The time period within the recurrence. |
||
| StartTime |
string |
No |
The start time. The time is in the HH:mm format. |
12:00 |
| EndTime |
string |
No |
The end time. The time is in the HH:mm format. |
15:00 |
| Amount |
integer |
No |
The number of resources. |
2 |
| Network |
object |
No |
The network configuration. Note
This parameter is available only to allowlisted users. To use it, submit a ticket. |
|
| StrategyType |
string |
No |
The network policy type. Valid values:
|
Shared |
| Routes |
array<object> |
No |
The route configuration. This parameter can be configured only if |
|
|
object |
No |
The route configuration. |
||
| Destination |
string |
No |
The destination CIDR block. |
139.196.XX.XX/32 |
| Mode |
string |
No |
The network egress mode. Valid values:
|
Shared |
| IpExpireMinutes |
integer |
No |
The duration in minutes after which a public IP address is rotated on the next sign-in. The minimum value is 60. |
60 |
| OfficeSiteId |
string |
No |
The ID of the workspace. |
cn-hongkong+dir-842567**** |
| VSwitchIds |
array |
No |
The list of vSwitch IDs.
|
|
|
string |
No |
The ID of the vSwitch. |
vsw-m5ef1sjhf7bbvqvvy**** |
|
| DomainRules |
array<object> |
No |
The domain name-based access control rules. |
|
|
object |
No |
The domain name-based access control rule. |
||
| Domain |
string |
No |
The domain name. |
www.example.com |
| Policy |
string |
No |
The policy action. 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 configuration for user data roaming. |
|
| 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 ID of the app to pre-open. |
cag-b2ronxxd**** |
| VideoPolicy |
object |
No |
The display policy. |
|
| FrameRate |
integer |
No |
The frame rate, in frames per second (FPS). Valid values:
|
60 |
| TerminalResolutionAdaptive |
boolean |
No |
Specifies whether to enable adaptive resolution.
Valid values:
|
false |
| SessionResolutionWidth |
integer |
No |
The resolution width, in pixels. |
1920 |
| SessionResolutionHeight |
integer |
No |
The resolution height, in pixels. |
1080 |
| StreamingMode |
string |
No |
The streaming mode. This parameter, in combination with the
Valid values:
|
video |
| Webrtc |
boolean |
No |
Specifies whether to enable WebRTC. This parameter, in combination 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 the 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 create a new session for each application.
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 the instance after unbinding. Valid values:
|
true |
| SkipUserAuthCheck |
boolean |
No |
Specifies whether to skip the user authorization check. Valid values:
|
false |
| UserDefinePolicy |
object |
No |
Custom policy |
|
| CustomConfig |
string |
No |
The content of the custom policy. The content must comply with the image version specifications. To use this parameter, submit a ticket to be added to the allowlist. |
[{"target":"agent","config":{"abc":"xxx"}}] |
| AppPolicyId |
string |
No |
The policy ID. |
pg-0clfzcy0adpcf**** |
| ClusterId |
string |
No |
Cluster ID |
cls-d39iq73l5c0a8**** |
| SubPayType |
string |
No |
The subtype of the billing method. Valid values:
|
postPaid |
| AppPackageType |
string |
No |
Package type. |
browser.package.5.250.appstreaming.general.basic |
| AuthMode |
string |
No |
Delivery group authorization mode. Valid values:
|
App |
| UserGroupIds |
array |
No |
A list of authorized user group IDs. |
|
|
string |
No |
Authorized user group ID. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The ID of the request. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| AppInstanceGroupModel |
object |
The details of the app instance group. |
|
| AppInstanceGroupId |
string |
The ID of the app instance group. |
aig-9ciijz60n4xsv**** |
| OrderId |
string |
The ID of the order. |
12345**** |
| NodePoolId |
string |
The ID of the node pool. This parameter is returned only if a node pool is also created. |
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.