Creates a delivery group.
Operation description
Before you call this operation, make sure that you fully understand the billing methods and prices of App Streaming.
A delivery group is a logical group that is used to deliver cloud applications to end users, including the images, resource management policies, and user groups on which the cloud applications rely. For more information, see Publish delivery groups.
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 Resourcesis 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 |
|---|---|---|---|---|
| appstreaming:CreateAppInstanceGroup | create | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| AppCenterImageId | string | Yes | The image ID of the application. To obtain the image ID, log on to the App Streaming console. In the left-side navigation pane, choose Maintenance > Custom Images or Maintenance > System Images. | img-8z4nztpaqvay4**** |
| ProductType | string | Yes | The product type. Valid value:
| CloudApp |
| AppInstanceGroupName | string | No | The name of the delivery group. | |
| Users | array | No | The users that you want to add to the assigned user list of the delivery group. | |
| string | No | The user that you want to add to the assigned user list of the delivery group. The name of the user is in the Users.N= | Users.1=username1 Users.2=username2 | |
| UserInfo | object | No | The information about the user that you want to add to the assigned user list of the delivery group. This parameter is required if you configure | |
| Type | string | No | The account type of the user. Valid value:
| 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 resources. This parameter is required if you set
Note
If you set ChargeType to PostPaid, set this parameter to 1.
| 1 |
| PeriodUnit | string | Yes | The unit of the subscription duration. This parameter is available if you set Note
The value of this parameter is case-insensitive. For example, Week is valid and week is invalid. If you specify an invalid value combination for Period and PeriodUnit, such as 2 Week, the operation can still be called. However, an error occurs when you place the order.
Note
If you set ChargeType to PostPaid, set this parameter to Month.
Valid values:
| Week |
| SessionTimeout | integer | Yes | The period of time during which the application can be recycled. The recycling period is the period of time between the time when the end user disconnects from the application and the time when processes exit the application. If you do not want to recycle the application, set this parameter to | 15 |
| BizRegionId | string | Yes | The ID of the region where the delivery group resides. For information about the supported regions, see Limits . Valid values:
| cn-hangzhou |
| ChargeResourceMode | string | Yes | The sales mode. Valid value:
| Node |
| NodePool | object | No | The node pool object. | |
| NodeInstanceType | string | No | The ID of the resource type that you want to purchase. You can call the ListNodeInstanceType operation to obtain the ID. Valid values:
| appstreaming.general.4c8g |
| NodeAmount | integer | No | The number of resources that you want to purchase. Valid values: 1 to 100. Note
| 1 |
| NodeCapacity | integer | No | The maximum number of sessions to which a resource can connect at the same time. If a resource connects to a large number of sessions at the same time, the user experience can be compromised. The value range varies based on the resource type. The following items describe the value ranges of different resource types:
| 2 |
| StrategyType | string | No | The scaling policy of resources. Note
Valid values:
| NODE_FIXED |
| MaxScalingAmount | integer | No | The maximum number of resources that can be created for scale-out. This parameter is required if you set | 10 |
| MaxIdleAppInstanceAmount | integer | No | Maximum number of idle sessions. When this value is specified, auto-scaling is triggered only if the session utilization exceeds | 3 |
| ScalingStep | integer | No | The number of resources that are created each time resources are scaled out. Valid values: 1 to 10. This parameter is required if you set | 2 |
| ScalingUsageThreshold | string | No | The upper limit of session usage. If the session usage exceeds the specified upper limit, auto scaling is automatically triggered. The session usage is calculated by using the following formula: | 85 |
| ScalingDownAfterIdleMinutes | integer | No | The maximum retention period of a resource to which no session is connected. If no session is connected to a resource, the resource is automatically scaled in after the specified retention period elapses. Valid values: 5 to 120. Default value: 5. Unit: minutes. If one of the following situations occurs, the resource is not scaled in.
| 5 |
| StrategyEnableDate | string | No | The effective date of the scaling policy. Format: yyyy-MM-dd. The date must be the same as or later than the current date. This parameter is required if you set | 2022-08-01 |
| StrategyDisableDate | string | No | The expiration date of the scaling policy. Format: yyyy-MM-dd. The interval between the expiration date and the effective date must be from 7 days to 1 year. This parameter is required if you set | 2022-09-08 |
| WarmUp | boolean | No | Specifies whether to enable the warmup policy for resources. This parameter is required if you set | false |
| RecurrenceSchedules | array<object> | No | The schedules of the scaling policy. This parameter is required if you set | |
| object | No | |||
| RecurrenceType | string | No | The schedule type of the scaling policy. This parameter must be configured together with Valid value:
| weekly |
| RecurrenceValues | array | No | The days of each week on which the scaling policy is executed. | |
| integer | No | The day of each week on which the scaling policy is executed. Valid values:
| 1 | |
| TimerPeriods | array<object> | No | The time periods during which the scaling policy can be executed. The time periods must meet the following requirements:
| |
| object | No | |||
| 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 settings. Note
If you want to use this parameter, submit a ticket.
| |
| StrategyType | string | No | The type of the network policy. Valid values:
| Shared |
| Routes | array<object> | No | The route settings. This parameter is available only if you set | |
| object | No | |||
| Destination | string | No | The destination. The value is a CIDR block. | 139.196.XX.XX/32 |
| Mode | string | No | The network egress mode. Valid value:
| Shared |
| IpExpireMinutes | integer | No | The validity period of the public IP address. If the specified value is exceeded, the IP address is updated at next logon. Minimum value: 60. Unit: minutes. | 60 |
| OfficeSiteId | string | No | Office Network ID. | cn-hongkong+dir-842567**** |
| VSwitchIds | array | No | List of virtual switch IDs.
| |
| string | No | Virtual Switch ID | vsw-m5ef1sjhf7bbvqvvy**** | |
| DomainRules | array<object> | No | The domain name rules. | |
| object | No | |||
| Domain | string | No | The domain name. | www.example.com |
| Policy | string | No | The policy used for the domain name. Valid values:
| block |
| StoragePolicy | object | No | The storage policy. | |
| StorageTypeList | array | No | The storage types. | |
| string | No | The storage type. Valid values:
| PDS | |
| UserProfile | object | No | User data roaming configuration. | |
| UserProfileSwitch | boolean | No | User data roaming toggle. Enumeration Value:
| false |
| RemoteStorageType | string | No | Remote storage type used for user data roaming. Enumeration Value:
| NAS |
| RemoteStoragePath | string | No | Remote storage path for user data roaming.
| ID20250101 |
| PreOpenAppId | string | No | The ID of the pre-open application. | cag-b2ron******* |
| VideoPolicy | object | No | Display policy. | |
| FrameRate | integer | No | Frame rate (FPS). Enumeration Value:
| 60 |
| TerminalResolutionAdaptive | boolean | No | Whether to use adaptive resolution.
| false |
| SessionResolutionWidth | integer | No | Resolution width, in pixels. | 1920 |
| SessionResolutionHeight | integer | No | Resolution height, in pixels. | 1080 |
| StreamingMode | string | No | Streaming mode. Combined with the Webrtc parameter, it indicates the protocol type.
Enumeration Value:
| video |
| Webrtc | boolean | No | Whether to enable WebRTC. Combined with the StreamingMode parameter, it indicates the protocol type.
| true |
| RuntimePolicy | object | No | The runtime policy. | |
| SessionType | string | No | The session type. Valid values:
| NORMAL |
| DebugMode | string | No | Specifies whether to enable the debugging mode. If you want to call the Valid values:
| OFF |
| SessionUserGenerationMode | string | No | The generation mode of the session users. Valid value:
| wyid |
| SessionPreOpen | string | No | Session pre-launch toggle.
Enumeration Value:
| false |
| PerSessionPerApp | boolean | No | Only one application is allowed to be opened within a single session.
Enumeration Value:
| false |
| PersistentAppInstanceScheduleMode | string | No | Persistent session scheduling mode. Enumeration Value:
| DYNAMIC |
| SecurityPolicy | object | No | The security policy. | |
| ResetAfterUnbind | boolean | No | Specifies whether to reset after unbinding from a delivery group. Valid values:
| true |
| SkipUserAuthCheck | boolean | No | Specifies whether to skip user permission verification. Valid values:
| false |
| UserDefinePolicy | object | No | The custom policy. | |
| CustomConfig | string | No | The content of the custom policy. The content must meet the specifications of image versions. To use this parameter, submit a ticket to apply to enable the whitelist feature. | [{"target":"agent","config":{"abc":"xxx"}}] |
| AppPolicyId | string | No | Policy ID. | pg-0clfzcy0adpcf**** |
| ClusterId | string | No | Cluster ID. | cls-d39iq73l5c0a8**** |
| SubPayType | string | No | Payment method subtype. Enumeration Value:
| postPaid |
| AppPackageType | string | No | Package type. | browser.package.5.250.appstreaming.general.basic |
| AuthMode | string | No | The authentication mode of the delivery group. Enumeration Value:
| App |
| UserGroupIds | array | No | List of authorized user group IDs. | |
| string | No | Authorized user group ID. |
Response parameters
Examples
Sample success responses
JSONformat
{
"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. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-11-27 | The Error code has changed. The request parameters of the API has changed | View Change Details |
| 2025-03-27 | The Error code has changed. The request parameters of the API has changed | View Change Details |
| 2025-02-27 | The Error code has changed | View Change Details |
| 2025-02-24 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
| 2025-02-21 | The request parameters of the API has changed | View Change Details |
| 2025-01-15 | The request parameters of the API has changed | View Change Details |
| 2024-10-22 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
| 2024-09-12 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
| 2024-07-19 | The request parameters of the API has changed | View Change Details |
| 2024-05-11 | The request parameters of the API has changed | View Change Details |
| 2023-08-21 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
| 2023-04-28 | The request parameters of the API has changed | View Change Details |
| 2023-04-14 | The request parameters of the API has changed | View Change Details |
| 2023-03-14 | The request parameters of the API has changed | View Change Details |
| 2022-08-01 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
