Modifies the auto scaling rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ManageApplication |
update |
*Application
|
None | None |
Request syntax
POST /pop/v5/app/scaling_rules HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The application ID. |
74ee****-db65-4322-a1f6-bcb60e5b**** |
| GroupId |
string |
Yes |
The deployment group ID. |
8123db90-880f-486f-****-************ |
| InCondition |
string |
No |
The trigger condition. Valid values:
Valid values:
|
"OR" |
| InEnable |
boolean |
No |
Specifies whether to include the scale-in rule. Valid values:
|
true |
| InCpu |
integer |
No |
The trigger metric: CPU utilization. |
50 |
| InDuration |
integer |
No |
The duration, in minutes. |
50 |
| InInstanceNum |
integer |
No |
The minimum number of instances to retain when the group scales in. |
3 |
| InLoad |
integer |
No |
The trigger metric: system load. |
50 |
| InRT |
integer |
No |
The trigger metric: service latency. Unit: milliseconds. Minimum value: 0. |
50 |
| InStep |
integer |
No |
The number of instances to scale in at a time. |
1 |
| OutCondition |
string |
No |
The trigger condition. Valid values:
Valid values:
|
"OR" |
| OutCPU |
integer |
No |
The trigger metric: CPU utilization. |
50 |
| OutDuration |
integer |
No |
The duration, in minutes. |
50 |
| OutEnable |
boolean |
No |
Specifies whether to include the scale-out rule. |
true |
| OutInstanceNum |
integer |
No |
The maximum number of instances when the group scales out. |
10 |
| OutLoad |
integer |
No |
The trigger metric: system load. |
50 |
| OutRT |
integer |
No |
The trigger metric: service latency. Unit: milliseconds. Minimum value: 0. |
0 |
| OutStep |
integer |
No |
The number of instances to scale out at a time. |
0 |
| ResourceFrom |
string |
No |
The source of instances for scale-out. Valid values:
If you set this parameter to NEW or AVAILABLE_FIRST, you must specify auto scaling parameters. Auto scaling includes two modes: launch template and existing instance rule. Valid values:
|
"AVAILABLE" |
| MultiAzPolicy |
string |
No |
The multi-zone scaling policy for auto scaling. Valid values:
Valid values:
|
"PRIORITY" |
| VpcId |
string |
No |
The VPC ID associated with the launch template or existing instance rule for auto scaling. |
"vpc-bp1j55oz3bg*****" |
| VSwitchIds |
string |
No |
The list of vSwitch IDs in the VPC. Separate multiple IDs with commas (,). |
"vsw-bp1ldxs3d4fd*****" |
| ScalingPolicy |
string |
No |
The reclamation mode for scale-in. Valid values:
Valid values:
|
"release" |
| TemplateInstanceId |
string |
No |
The instance ID for the existing instance rule of auto scaling. This parameter is valid only when OutEnable is set to true. |
"1" |
| TemplateInstanceName |
string |
No |
The instance name for the existing instance rule of auto scaling. This parameter is valid only when TemplateInstanceId is specified. |
"tpl-tdy218" |
| Password |
string |
No |
The logon password of the instance. This parameter is valid only when the existing instance rule is used for auto scaling. |
"Pwd*****" |
| KeyPairName |
string |
No |
The name of the logon key pair for the instance. This parameter is valid only when the existing instance rule is used for auto scaling. |
"tdy218" |
| AcceptEULA |
boolean |
No |
Must be set to true if auto scaling is used. |
true |
| TemplateId |
string |
No |
The launch template ID for auto scaling. This parameter is valid only when OutEnable is set to true, and it has a higher priority than TemplateInstanceId. |
"lt-wz9hkhn8wp*****" |
| TemplateVersion |
integer |
No |
The launch template version for auto scaling. This parameter is valid only when OutEnable is set to true. Set this parameter to |
-1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The status code. |
200 |
| Message |
string |
The message. |
success |
| RequestId |
string |
The request ID. |
CB36E997-FE54-476C-8C0D-******** |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"RequestId": "CB36E997-FE54-476C-8C0D-********"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.