All Products
Search
Document Center

App Streaming:ModifyNodePoolAttribute

Last Updated:Dec 17, 2025

Changes the scaling policy of a delivery group. The following scaling policies are supported: fixed resource number, scheduled scaling, and auto scaling.

Operation description

You can select one of the following scaling policies for cloud app resources:

  • No scaling: Resources are not scaled.
  • Auto scaling: Resources are automatically scaled based on the number of connected sessions and the duration during which no session is connected.
  • Scheduled scaling: Resources are scaled during specific periods of time on specific dates.

Before you call this operation, make sure that you fully understand the billing methods and prices of App Streaming.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
appstreaming:ModifyNodePoolAttributeupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProductTypestringNo

The product type.

Valid value:

  • CloudApp: App Streaming
CloudApp
NodePoolStrategyobjectNo

The auto scaling policy used by the delivery group.

StrategyTypestringNo

The scaling mode.

Note
  • NODE_FIXED: no scaling. This value is applicable to pay-as-you-go resources and subscription resources.
  • NODE_SCALING_BY_USAGE: auto scaling. This value is applicable to pay-as-you-go resources and subscription resources.
  • NODE_SCALING_BY_SCHEDULE: scheduled scaling. This value is applicable only to pay-as-you-go resources.

Valid values:

  • NODE_FIXED: no scaling
  • NODE_SCALING_BY_SCHEDULE: scheduled scaling
  • NODE_SCALING_BY_USAGE: auto scaling
NODE_FIXED
NodeAmountintegerNo

The number of resources to purchase. Valid values: 1 to 100.

Note
  • If you use subscription resources, you cannot modify this parameter.
  • If you use pay-as-you-go resources, you can modify this parameter only if you set StrategyType to NODE_FIXED or NODE_SCALING_BY_USAGE.
1
MaxScalingAmountintegerNo

The maximum number of resources that can be created for scale-out. This parameter is required only if you set StrategyType to NODE_SCALING_BY_USAGE.

10
MaxIdleAppInstanceAmountintegerNo

The maximum number of idle sessions. After you specify a value for this parameter, auto scaling is triggered only if the number of idle sessions in the delivery group is smaller than the specified value and the session usage exceeds the value specified for ScalingUsageThreshold. Otherwise, the system determines that the idle sessions in the delivery group are sufficient and does not perform auto scaling.`` You can use this parameter to flexibly manage auto scaling and reduce costs.

3
ScalingStepintegerNo

The number of resources that are created each time resources are scaled out. Valid values: 1 to 10. This parameter is required only if you set StrategyType to NODE_SCALING_BY_USAGE.

2
ScalingUsageThresholdstringNo

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: Session usage = Number of current sessions/(Total number of resources × Number of concurrent sessions) × 100%. This parameter is required only if you set StrategyType to NODE_SCALING_BY_USAGE. Valid values: 0 to 100. Default value: 85.

85
ScalingDownAfterIdleMinutesintegerNo

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.

  • If a scale-out is automatically triggered after the resource is scaled in, the scale-in is not executed. This prevents repeated scale-in and scale-out.
  • If a scale-out is automatically triggered due to an increase in the number of sessions during the specified period of time, the resource is not scaled in and the countdown restarts.
5
StrategyEnableDatestringNo

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 only if you set StrategyType to NODE_SCALING_BY_SCHEDULE.

2023-01-05
StrategyDisableDatestringNo

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 only if you set StrategyType to NODE_SCALING_BY_SCHEDULE.

2023-01-19
WarmUpbooleanNo

Specifies whether to enable the warmup policy for resources. This parameter is required only if you set StrategyType to NODE_SCALING_BY_SCHEDULE.

false
RecurrenceSchedulesarray<object>No

The intervals at which the scaling policy is executed. This parameter is required only if you set StrategyType to NODE_SCALING_BY_SCHEDULE.

objectNo

The interval at which the scaling policy is executed.

RecurrenceTypestringNo

The schedule type of the scaling policy. This parameter must be configured together with RecurrenceValues.``

Valid values:

  • weekly: The scaling policy is executed on specific days each week.
weekly
RecurrenceValuesarrayNo

The days of each week on which the scaling policy is executed.

integerNo

The day of each week on which the scaling policy is executed.

Valid values:

  • 1: Monday
  • 2: Tuesday
  • 3: Wednesday
  • 4: Thursday
  • 5: Friday
  • 6: Saturday
  • 7: Sunday
1
TimerPeriodsarray<object>No

The time periods during which the scaling policy can be executed. The time periods must meet the following requirements:

  • Up to three time periods can be added.
  • Time periods cannot be overlapped.
  • The interval between two consecutive time periods must be greater than or equal to 5 minutes.
  • Each time period must be greater than or equal to 15 minutes.
  • The total length of the time periods that you specify cannot be greater than a day.
objectNo

The time period during which the scaling policy can be executed.

StartTimestringNo

The beginning of the time period during which the scaling policy is executed. Format: HH:mm.

12:00
EndTimestringNo

The end of the time period during which the scaling policy is executed. Format: HH:mm.

15:00
AmountintegerNo

The number of resources.

2
BizRegionIdstringNo

The ID of the region where the delivery group resides. For information about the supported regions, see Limits .

Valid values:

  • cn-shanghai: China (Shanghai)
  • cn-hangzhou: China (Hangzhou)
cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
The current API has no return parameters

Examples

Sample success responses

JSONformat

{
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
  "Code": "InvalidParameter.PoolId",
  "Message": "The parameter PoolId is invalid."
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-09-12The internal configuration of the API is changed, but the call is not affectedView Change Details
2023-03-31The internal configuration of the API is changed, but the call is not affectedView Change Details