@alicloud/ess20220222 1.11.2 → 1.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +220 -658
- package/dist/client.js +247 -654
- package/dist/client.js.map +1 -1
- package/dist/models/ApplyEciScalingConfigurationRequest.d.ts +7 -0
- package/dist/models/ApplyEciScalingConfigurationRequest.js.map +1 -1
- package/dist/models/ApplyScalingGroupRequest.d.ts +17 -17
- package/dist/models/CreateAlarmRequest.d.ts +14 -17
- package/dist/models/CreateAlarmRequest.js.map +1 -1
- package/dist/models/CreateEciScalingConfigurationRequest.d.ts +3 -3
- package/dist/models/CreateNotificationConfigurationRequest.d.ts +9 -0
- package/dist/models/CreateNotificationConfigurationRequest.js.map +1 -1
- package/dist/models/CreateScalingConfigurationRequest.d.ts +528 -293
- package/dist/models/CreateScalingConfigurationRequest.js.map +1 -1
- package/dist/models/CreateScalingConfigurationResponseBody.d.ts +1 -1
- package/dist/models/CreateScalingConfigurationShrinkRequest.d.ts +528 -293
- package/dist/models/CreateScalingConfigurationShrinkRequest.js.map +1 -1
- package/dist/models/CreateScalingGroupRequest.d.ts +272 -205
- package/dist/models/CreateScalingGroupRequest.js.map +1 -1
- package/dist/models/CreateScalingRuleRequest.d.ts +15 -0
- package/dist/models/CreateScalingRuleRequest.js.map +1 -1
- package/dist/models/DeactivateScalingConfigurationRequest.d.ts +0 -5
- package/dist/models/DeactivateScalingConfigurationRequest.js.map +1 -1
- package/dist/models/DeactivateScalingConfigurationResponseBody.d.ts +0 -7
- package/dist/models/DeactivateScalingConfigurationResponseBody.js.map +1 -1
- package/dist/models/DescribeCandidateInstanceTypeRequest.d.ts +62 -0
- package/dist/models/DescribeCandidateInstanceTypeRequest.js.map +1 -1
- package/dist/models/DescribeCandidateInstanceTypeResponseBody.d.ts +9 -1
- package/dist/models/DescribeCandidateInstanceTypeResponseBody.js.map +1 -1
- package/dist/models/DescribeElasticStrengthRequest.d.ts +38 -34
- package/dist/models/DescribeElasticStrengthRequest.js.map +1 -1
- package/dist/models/DescribeElasticStrengthResponseBody.d.ts +78 -54
- package/dist/models/DescribeElasticStrengthResponseBody.js.map +1 -1
- package/dist/models/DescribeInstanceRefreshesRequest.d.ts +7 -6
- package/dist/models/DescribeInstanceRefreshesRequest.js.map +1 -1
- package/dist/models/DescribeInstanceRefreshesResponseBody.d.ts +85 -26
- package/dist/models/DescribeInstanceRefreshesResponseBody.js +2 -0
- package/dist/models/DescribeInstanceRefreshesResponseBody.js.map +1 -1
- package/dist/models/DescribeNotificationConfigurationsResponseBody.d.ts +3 -0
- package/dist/models/DescribeNotificationConfigurationsResponseBody.js.map +1 -1
- package/dist/models/DescribeRegionsResponseBody.d.ts +1 -1
- package/dist/models/DescribeScalingConfigurationsRequest.d.ts +8 -8
- package/dist/models/DescribeScalingConfigurationsResponseBody.d.ts +416 -240
- package/dist/models/DescribeScalingConfigurationsResponseBody.js.map +1 -1
- package/dist/models/DescribeScalingGroupDetailRequest.d.ts +1 -1
- package/dist/models/DescribeScalingInstancesRequest.d.ts +25 -25
- package/dist/models/DescribeScalingInstancesResponseBody.d.ts +46 -47
- package/dist/models/DescribeScalingInstancesResponseBody.js +2 -0
- package/dist/models/DescribeScalingInstancesResponseBody.js.map +1 -1
- package/dist/models/ModifyEciScalingConfigurationRequest.d.ts +1 -1
- package/dist/models/ModifyNotificationConfigurationRequest.d.ts +9 -0
- package/dist/models/ModifyNotificationConfigurationRequest.js.map +1 -1
- package/dist/models/ModifyScalingConfigurationRequest.d.ts +475 -296
- package/dist/models/ModifyScalingConfigurationRequest.js.map +1 -1
- package/dist/models/ModifyScalingConfigurationResponseBody.d.ts +1 -1
- package/dist/models/ModifyScalingConfigurationShrinkRequest.d.ts +475 -296
- package/dist/models/ModifyScalingConfigurationShrinkRequest.js.map +1 -1
- package/dist/models/ModifyScalingGroupRequest.d.ts +8 -0
- package/dist/models/ModifyScalingGroupRequest.js.map +1 -1
- package/dist/models/RemoveInstancesRequest.d.ts +33 -31
- package/dist/models/RemoveInstancesRequest.js.map +1 -1
- package/dist/models/RemoveInstancesResponseBody.d.ts +18 -2
- package/dist/models/RemoveInstancesResponseBody.js.map +1 -1
- package/dist/models/RemoveInstancesShrinkRequest.d.ts +28 -27
- package/dist/models/RemoveInstancesShrinkRequest.js.map +1 -1
- package/dist/models/ScaleWithAdjustmentRequest.d.ts +43 -36
- package/dist/models/ScaleWithAdjustmentRequest.js.map +1 -1
- package/dist/models/ScaleWithAdjustmentResponseBody.d.ts +15 -12
- package/dist/models/ScaleWithAdjustmentResponseBody.js.map +1 -1
- package/dist/models/ScaleWithAdjustmentShrinkRequest.d.ts +26 -20
- package/dist/models/ScaleWithAdjustmentShrinkRequest.js.map +1 -1
- package/dist/models/StartInstanceRefreshRequest.d.ts +43 -48
- package/dist/models/StartInstanceRefreshRequest.js +2 -0
- package/dist/models/StartInstanceRefreshRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +248 -654
- package/src/models/ApplyEciScalingConfigurationRequest.ts +7 -0
- package/src/models/ApplyScalingGroupRequest.ts +17 -17
- package/src/models/CreateAlarmRequest.ts +14 -17
- package/src/models/CreateEciScalingConfigurationRequest.ts +3 -3
- package/src/models/CreateNotificationConfigurationRequest.ts +9 -0
- package/src/models/CreateScalingConfigurationRequest.ts +528 -293
- package/src/models/CreateScalingConfigurationResponseBody.ts +1 -1
- package/src/models/CreateScalingConfigurationShrinkRequest.ts +528 -293
- package/src/models/CreateScalingGroupRequest.ts +273 -206
- package/src/models/CreateScalingRuleRequest.ts +15 -0
- package/src/models/DeactivateScalingConfigurationRequest.ts +0 -5
- package/src/models/DeactivateScalingConfigurationResponseBody.ts +0 -7
- package/src/models/DescribeCandidateInstanceTypeRequest.ts +62 -0
- package/src/models/DescribeCandidateInstanceTypeResponseBody.ts +9 -1
- package/src/models/DescribeElasticStrengthRequest.ts +38 -34
- package/src/models/DescribeElasticStrengthResponseBody.ts +78 -54
- package/src/models/DescribeInstanceRefreshesRequest.ts +7 -6
- package/src/models/DescribeInstanceRefreshesResponseBody.ts +87 -26
- package/src/models/DescribeNotificationConfigurationsResponseBody.ts +3 -0
- package/src/models/DescribeRegionsResponseBody.ts +1 -1
- package/src/models/DescribeScalingConfigurationsRequest.ts +8 -8
- package/src/models/DescribeScalingConfigurationsResponseBody.ts +416 -240
- package/src/models/DescribeScalingGroupDetailRequest.ts +1 -1
- package/src/models/DescribeScalingInstancesRequest.ts +26 -26
- package/src/models/DescribeScalingInstancesResponseBody.ts +50 -49
- package/src/models/ModifyEciScalingConfigurationRequest.ts +1 -1
- package/src/models/ModifyNotificationConfigurationRequest.ts +9 -0
- package/src/models/ModifyScalingConfigurationRequest.ts +475 -296
- package/src/models/ModifyScalingConfigurationResponseBody.ts +1 -1
- package/src/models/ModifyScalingConfigurationShrinkRequest.ts +475 -296
- package/src/models/ModifyScalingGroupRequest.ts +8 -0
- package/src/models/RemoveInstancesRequest.ts +35 -33
- package/src/models/RemoveInstancesResponseBody.ts +18 -2
- package/src/models/RemoveInstancesShrinkRequest.ts +30 -29
- package/src/models/ScaleWithAdjustmentRequest.ts +43 -36
- package/src/models/ScaleWithAdjustmentResponseBody.ts +15 -12
- package/src/models/ScaleWithAdjustmentShrinkRequest.ts +26 -20
- package/src/models/StartInstanceRefreshRequest.ts +45 -48
package/dist/client.js
CHANGED
|
@@ -94,6 +94,34 @@ class Client extends openapi_core_1.default {
|
|
|
94
94
|
'cn-zhengzhou-nebula-1': "ess.aliyuncs.com",
|
|
95
95
|
'eu-west-1-oxs': "ess.aliyuncs.com",
|
|
96
96
|
'rus-west-1-pop': "ess.aliyuncs.com",
|
|
97
|
+
'us-southeast-1': "ess.us-southeast-1.aliyuncs.com",
|
|
98
|
+
'na-south-1': "ess.na-south-1.aliyuncs.com",
|
|
99
|
+
'me-east-1': "ess.me-east-1.aliyuncs.com",
|
|
100
|
+
'me-central-1': "ess.me-central-1.aliyuncs.com",
|
|
101
|
+
'eu-west-1': "ess.eu-west-1.aliyuncs.com",
|
|
102
|
+
'eu-central-1': "ess.eu-central-1.aliyuncs.com",
|
|
103
|
+
'cn-zhongwei': "ess.cn-zhongwei.aliyuncs.com",
|
|
104
|
+
'cn-zhengzhou-jva': "ess.cn-zhengzhou-jva.aliyuncs.com",
|
|
105
|
+
'cn-zhangjiakou': "ess.cn-zhangjiakou.aliyuncs.com",
|
|
106
|
+
'cn-wulanchabu-gic-1': "ess.cn-wulanchabu-gic-1.aliyuncs.com",
|
|
107
|
+
'cn-wulanchabu': "ess.cn-wulanchabu.aliyuncs.com",
|
|
108
|
+
'cn-wuhan-lr': "ess.cn-wuhan-lr.aliyuncs.com",
|
|
109
|
+
'cn-nanjing': "ess.aliyuncs.com",
|
|
110
|
+
'cn-huhehaote': "ess.cn-huhehaote.aliyuncs.com",
|
|
111
|
+
'cn-heyuan-acdr-1': "ess.cn-heyuan-acdr-1.aliyuncs.com",
|
|
112
|
+
'cn-heyuan': "ess.cn-heyuan.aliyuncs.com",
|
|
113
|
+
'cn-guangzhou': "ess.cn-guangzhou.aliyuncs.com",
|
|
114
|
+
'cn-fuzhou': "ess.cn-fuzhou.aliyuncs.com",
|
|
115
|
+
'cn-chengdu': "ess.cn-chengdu.aliyuncs.com",
|
|
116
|
+
'cn-beijing-finance-1': "ess.aliyuncs.com",
|
|
117
|
+
'ap-southeast-7': "ess.ap-southeast-7.aliyuncs.com",
|
|
118
|
+
'ap-southeast-6': "ess.ap-southeast-6.aliyuncs.com",
|
|
119
|
+
'ap-southeast-5': "ess.ap-southeast-5.aliyuncs.com",
|
|
120
|
+
'ap-southeast-3': "ess.ap-southeast-3.aliyuncs.com",
|
|
121
|
+
'ap-southeast-2': "ess.ap-southeast-2.aliyuncs.com",
|
|
122
|
+
'ap-south-1': "ess.ap-south-1.aliyuncs.com",
|
|
123
|
+
'ap-northeast-2': "ess.ap-northeast-2.aliyuncs.com",
|
|
124
|
+
'ap-northeast-1': "ess.ap-northeast-1.aliyuncs.com",
|
|
97
125
|
};
|
|
98
126
|
this.checkConfig(config);
|
|
99
127
|
this._endpoint = this.getEndpoint("ess", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
@@ -111,9 +139,9 @@ class Client extends openapi_core_1.default {
|
|
|
111
139
|
* Applies a scaling configuration of the Elastic Container Instance type. If you want to create and manage scaling configurations of the Elastic Container Instance type by using a configuration file, you can call the ApplyEciScalingConfiguration operation.
|
|
112
140
|
*
|
|
113
141
|
* @remarks
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
142
|
+
* 基于YAML配置文件管理ECI类型的伸缩配置时,您需要注意以下事项:
|
|
143
|
+
* - 如果指定ECI类型的伸缩配置ID时,系统会基于YAML配置文件更新ECI类型的伸缩配置。
|
|
144
|
+
* - 如果未指定ECI类型的伸缩配置ID时,系统会基于YAML配置文件创建对应ECI类型的伸缩配置。
|
|
117
145
|
*
|
|
118
146
|
* @param request - ApplyEciScalingConfigurationRequest
|
|
119
147
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -157,9 +185,9 @@ class Client extends openapi_core_1.default {
|
|
|
157
185
|
* Applies a scaling configuration of the Elastic Container Instance type. If you want to create and manage scaling configurations of the Elastic Container Instance type by using a configuration file, you can call the ApplyEciScalingConfiguration operation.
|
|
158
186
|
*
|
|
159
187
|
* @remarks
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
188
|
+
* 基于YAML配置文件管理ECI类型的伸缩配置时,您需要注意以下事项:
|
|
189
|
+
* - 如果指定ECI类型的伸缩配置ID时,系统会基于YAML配置文件更新ECI类型的伸缩配置。
|
|
190
|
+
* - 如果未指定ECI类型的伸缩配置ID时,系统会基于YAML配置文件创建对应ECI类型的伸缩配置。
|
|
163
191
|
*
|
|
164
192
|
* @param request - ApplyEciScalingConfigurationRequest
|
|
165
193
|
* @returns ApplyEciScalingConfigurationResponse
|
|
@@ -284,11 +312,6 @@ class Client extends openapi_core_1.default {
|
|
|
284
312
|
/**
|
|
285
313
|
* Attaches Application Load Balancer (ALB) server groups to a scaling group. To seamlessly adjust the number of instances in response to changes in your business workload or to maintain the uninterrupted accessibility of your application, you can call the AttachAlbServerGroups operation. By attaching ALB server groups to your scaling group, this operation enables Auto Scaling to automatically tailor your computing capacity to your business needs. Furthermore, it optimizes traffic routing by dynamically allocating incoming requests based on current workload patterns, which significantly improves the stability and performance of your application.
|
|
286
314
|
*
|
|
287
|
-
* @remarks
|
|
288
|
-
* Before you call the operation to attach an ALB server group to your scaling group, make sure that the following requirements are met:
|
|
289
|
-
* * The scaling group and the ALB server group share the same virtual private cloud (VPC).
|
|
290
|
-
* * The ALB server group is in the Available state.
|
|
291
|
-
*
|
|
292
315
|
* @param request - AttachAlbServerGroupsRequest
|
|
293
316
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
294
317
|
* @returns AttachAlbServerGroupsResponse
|
|
@@ -336,11 +359,6 @@ class Client extends openapi_core_1.default {
|
|
|
336
359
|
/**
|
|
337
360
|
* Attaches Application Load Balancer (ALB) server groups to a scaling group. To seamlessly adjust the number of instances in response to changes in your business workload or to maintain the uninterrupted accessibility of your application, you can call the AttachAlbServerGroups operation. By attaching ALB server groups to your scaling group, this operation enables Auto Scaling to automatically tailor your computing capacity to your business needs. Furthermore, it optimizes traffic routing by dynamically allocating incoming requests based on current workload patterns, which significantly improves the stability and performance of your application.
|
|
338
361
|
*
|
|
339
|
-
* @remarks
|
|
340
|
-
* Before you call the operation to attach an ALB server group to your scaling group, make sure that the following requirements are met:
|
|
341
|
-
* * The scaling group and the ALB server group share the same virtual private cloud (VPC).
|
|
342
|
-
* * The ALB server group is in the Available state.
|
|
343
|
-
*
|
|
344
362
|
* @param request - AttachAlbServerGroupsRequest
|
|
345
363
|
* @returns AttachAlbServerGroupsResponse
|
|
346
364
|
*/
|
|
@@ -351,15 +369,6 @@ class Client extends openapi_core_1.default {
|
|
|
351
369
|
/**
|
|
352
370
|
* Associates one or more ApsaraDB RDS instances with a scaling group.
|
|
353
371
|
*
|
|
354
|
-
* @remarks
|
|
355
|
-
* Before you attach an ApsaraDB RDS instance to a scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
|
|
356
|
-
* * The ApsaraDB RDS instance and the scaling group belong to the same Alibaba Cloud account.
|
|
357
|
-
* * The ApsaraDB RDS instance is unlocked. For information about the lock policy, see [ApsaraDB RDS usage notes](https://help.aliyun.com/document_detail/41872.html).
|
|
358
|
-
* * The ApsaraDB RDS instance is in the Running state.
|
|
359
|
-
* * The ApsaraDB RDS instance exists in the Alibaba Cloud account.
|
|
360
|
-
* * If you reattach an ApsaraDB RDS instance to a scaling group, the total number of attached ApsaraDB RDS instances of the scaling group remains unchanged. But Auto Scaling adds the private IP addresses of all Elastic Compute Service (ECS) instances in the scaling group to the IP address whitelist of the ApsaraDB RDS instance.
|
|
361
|
-
* > After you attach an ApsaraDB RDS instance to a scaling group, make sure that the number of IP addresses in the default whitelist of the ApsaraDB RDS instance is limited to 1,000. For information about IP address whitelists, see [Configure an IP address whitelist](https://help.aliyun.com/document_detail/96118.html).
|
|
362
|
-
*
|
|
363
372
|
* @param request - AttachDBInstancesRequest
|
|
364
373
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
365
374
|
* @returns AttachDBInstancesResponse
|
|
@@ -413,15 +422,6 @@ class Client extends openapi_core_1.default {
|
|
|
413
422
|
/**
|
|
414
423
|
* Associates one or more ApsaraDB RDS instances with a scaling group.
|
|
415
424
|
*
|
|
416
|
-
* @remarks
|
|
417
|
-
* Before you attach an ApsaraDB RDS instance to a scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
|
|
418
|
-
* * The ApsaraDB RDS instance and the scaling group belong to the same Alibaba Cloud account.
|
|
419
|
-
* * The ApsaraDB RDS instance is unlocked. For information about the lock policy, see [ApsaraDB RDS usage notes](https://help.aliyun.com/document_detail/41872.html).
|
|
420
|
-
* * The ApsaraDB RDS instance is in the Running state.
|
|
421
|
-
* * The ApsaraDB RDS instance exists in the Alibaba Cloud account.
|
|
422
|
-
* * If you reattach an ApsaraDB RDS instance to a scaling group, the total number of attached ApsaraDB RDS instances of the scaling group remains unchanged. But Auto Scaling adds the private IP addresses of all Elastic Compute Service (ECS) instances in the scaling group to the IP address whitelist of the ApsaraDB RDS instance.
|
|
423
|
-
* > After you attach an ApsaraDB RDS instance to a scaling group, make sure that the number of IP addresses in the default whitelist of the ApsaraDB RDS instance is limited to 1,000. For information about IP address whitelists, see [Configure an IP address whitelist](https://help.aliyun.com/document_detail/96118.html).
|
|
424
|
-
*
|
|
425
425
|
* @param request - AttachDBInstancesRequest
|
|
426
426
|
* @returns AttachDBInstancesResponse
|
|
427
427
|
*/
|
|
@@ -432,22 +432,6 @@ class Client extends openapi_core_1.default {
|
|
|
432
432
|
/**
|
|
433
433
|
* Adds instances to a scaling group to provide services or restarts Elastic Compute Service (ECS) instances stopped in Economical Mode to provide services. You can call the AttachInstances operation to add ECS instances, elastic container instances, or third-party instances managed by Alibaba Cloud to your scaling group to provide services. You can also call this operation to restart ECS instances stopped in Economical Mode in your scaling group to provide services.
|
|
434
434
|
*
|
|
435
|
-
* @remarks
|
|
436
|
-
* Before you call this operation, take note of the following items:
|
|
437
|
-
* * The scaling group is in the Active state.
|
|
438
|
-
* * No scaling activities in the scaling group are in progress.
|
|
439
|
-
* The ECS instances or the elastic container instances that you want to add to a scaling group must meet the following requirements:
|
|
440
|
-
* * The instances reside in the same region as the scaling group.
|
|
441
|
-
* * The instances must be in the Running state.
|
|
442
|
-
* * The instances are not added to other scaling groups.
|
|
443
|
-
* * The instances use the subscription or pay-as-you-go billing method, or are preemptible instances.
|
|
444
|
-
* * If the VswitchID parameter is specified for a scaling group, the instances that are in the classic network or those that are not in the same virtual private cloud (VPC) as the specified vSwitch cannot be added to the scaling group.
|
|
445
|
-
* * If the VswitchID parameter is not specified for a scaling group, the instances that are in VPCs cannot be added to the scaling group.
|
|
446
|
-
* If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
447
|
-
* A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the ScalingActivityId parameter in the response.
|
|
448
|
-
* If the sum of the number of instances that you want to add and the number of existing instances in the scaling group is greater than the value of the MaxSize parameter, the call fails.
|
|
449
|
-
* Instances that are manually added by calling the AttachInstances operation are not associated with the active scaling configuration of the scaling group.
|
|
450
|
-
*
|
|
451
435
|
* @param request - AttachInstancesRequest
|
|
452
436
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
453
437
|
* @returns AttachInstancesResponse
|
|
@@ -510,22 +494,6 @@ class Client extends openapi_core_1.default {
|
|
|
510
494
|
/**
|
|
511
495
|
* Adds instances to a scaling group to provide services or restarts Elastic Compute Service (ECS) instances stopped in Economical Mode to provide services. You can call the AttachInstances operation to add ECS instances, elastic container instances, or third-party instances managed by Alibaba Cloud to your scaling group to provide services. You can also call this operation to restart ECS instances stopped in Economical Mode in your scaling group to provide services.
|
|
512
496
|
*
|
|
513
|
-
* @remarks
|
|
514
|
-
* Before you call this operation, take note of the following items:
|
|
515
|
-
* * The scaling group is in the Active state.
|
|
516
|
-
* * No scaling activities in the scaling group are in progress.
|
|
517
|
-
* The ECS instances or the elastic container instances that you want to add to a scaling group must meet the following requirements:
|
|
518
|
-
* * The instances reside in the same region as the scaling group.
|
|
519
|
-
* * The instances must be in the Running state.
|
|
520
|
-
* * The instances are not added to other scaling groups.
|
|
521
|
-
* * The instances use the subscription or pay-as-you-go billing method, or are preemptible instances.
|
|
522
|
-
* * If the VswitchID parameter is specified for a scaling group, the instances that are in the classic network or those that are not in the same virtual private cloud (VPC) as the specified vSwitch cannot be added to the scaling group.
|
|
523
|
-
* * If the VswitchID parameter is not specified for a scaling group, the instances that are in VPCs cannot be added to the scaling group.
|
|
524
|
-
* If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
525
|
-
* A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the ScalingActivityId parameter in the response.
|
|
526
|
-
* If the sum of the number of instances that you want to add and the number of existing instances in the scaling group is greater than the value of the MaxSize parameter, the call fails.
|
|
527
|
-
* Instances that are manually added by calling the AttachInstances operation are not associated with the active scaling configuration of the scaling group.
|
|
528
|
-
*
|
|
529
497
|
* @param request - AttachInstancesRequest
|
|
530
498
|
* @returns AttachInstancesResponse
|
|
531
499
|
*/
|
|
@@ -536,15 +504,6 @@ class Client extends openapi_core_1.default {
|
|
|
536
504
|
/**
|
|
537
505
|
* Attaches load balancers to a scaling group. Auto Scaling supports the attachment of load balancers to scaling groups. Load balancers help distribute the access traffic to the instances in scaling groups, which effectively improves the service performance of the scaling groups. You can call the AttachLoadBalancers operation to attach one or more load balancers to your scaling group.
|
|
538
506
|
*
|
|
539
|
-
* @remarks
|
|
540
|
-
* Before you call this operation, make sure that the following requirements are met:
|
|
541
|
-
* * The load balancer and the scaling group belong to the same Alibaba Cloud account and region.
|
|
542
|
-
* * The load balancer is in the `Running` state.
|
|
543
|
-
* * At least one listener is configured for the load balancer, and the health check feature is enabled for the load balancer.
|
|
544
|
-
* * If the network type of the load balancer and the scaling group is virtual private cloud (VPC), they use the same VPC.
|
|
545
|
-
* * If the network type of the scaling group is VPC, and that of the load balancer is classic network and a backend server of the load balancer uses a VPC, the scaling group and the backend server use the same VPC.
|
|
546
|
-
* * The attachment of load balancers ensures that the cumulative number of load balancers attached to the scaling group stays within the predefined maximum limit. For information about the load balancer quota, see [Limits](https://help.aliyun.com/document_detail/25863.html).
|
|
547
|
-
*
|
|
548
507
|
* @param request - AttachLoadBalancersRequest
|
|
549
508
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
550
509
|
* @returns AttachLoadBalancersResponse
|
|
@@ -595,15 +554,6 @@ class Client extends openapi_core_1.default {
|
|
|
595
554
|
/**
|
|
596
555
|
* Attaches load balancers to a scaling group. Auto Scaling supports the attachment of load balancers to scaling groups. Load balancers help distribute the access traffic to the instances in scaling groups, which effectively improves the service performance of the scaling groups. You can call the AttachLoadBalancers operation to attach one or more load balancers to your scaling group.
|
|
597
556
|
*
|
|
598
|
-
* @remarks
|
|
599
|
-
* Before you call this operation, make sure that the following requirements are met:
|
|
600
|
-
* * The load balancer and the scaling group belong to the same Alibaba Cloud account and region.
|
|
601
|
-
* * The load balancer is in the `Running` state.
|
|
602
|
-
* * At least one listener is configured for the load balancer, and the health check feature is enabled for the load balancer.
|
|
603
|
-
* * If the network type of the load balancer and the scaling group is virtual private cloud (VPC), they use the same VPC.
|
|
604
|
-
* * If the network type of the scaling group is VPC, and that of the load balancer is classic network and a backend server of the load balancer uses a VPC, the scaling group and the backend server use the same VPC.
|
|
605
|
-
* * The attachment of load balancers ensures that the cumulative number of load balancers attached to the scaling group stays within the predefined maximum limit. For information about the load balancer quota, see [Limits](https://help.aliyun.com/document_detail/25863.html).
|
|
606
|
-
*
|
|
607
557
|
* @param request - AttachLoadBalancersRequest
|
|
608
558
|
* @returns AttachLoadBalancersResponse
|
|
609
559
|
*/
|
|
@@ -671,23 +621,6 @@ class Client extends openapi_core_1.default {
|
|
|
671
621
|
/**
|
|
672
622
|
* Attaches vServer groups to a scaling group. After a Classic Load Balancer (CLB) instance is attached to your scaling group, the instances in the scaling group are automatically added as backend servers of the CLB instance. These servers then handle requests forwarded by the CLB instance, streamlining the processing of incoming traffic. To direct varying access requests to separate backend servers or to distribute requests based on domain names or URLs, you can call the AttachVServerGroups operation. This operation enables the addition of multiple vServer groups, allowing for efficient management of various backend server configurations tailored to your routing preferences.
|
|
673
623
|
*
|
|
674
|
-
* @remarks
|
|
675
|
-
* Before you call this operation, make sure that the following requirements are met:
|
|
676
|
-
* * The CLB instance and the scaling group belong to the same Alibaba Cloud account.
|
|
677
|
-
* * The CLB instance and the scaling group reside in the same region.
|
|
678
|
-
* * The CLB instance is in the Running state.
|
|
679
|
-
* * The CLB instance is configured with at least one listener. The health check feature is enabled for the CLB instance.
|
|
680
|
-
* * If the network type of both the CLB instance and the scaling group is virtual private cloud (VPC), they use the same VPC.
|
|
681
|
-
* * If the network type of the scaling group is VPC and the network type of the CLB instance is classic network, any backend server of the CLB instance within a VPC setup shares the same VPC as the scaling group.
|
|
682
|
-
* * The vServer groups that you want to attach to the scaling group belong to the CLB instance.
|
|
683
|
-
* * The operation to attach vServer groups does not result in the total number of vServer groups exceeding the predefined quota limit. For information about the vServer group quota, see [Limits](https://help.aliyun.com/document_detail/25863.html).
|
|
684
|
-
* * When you call this operation to attach vServer groups, you must specify the following parameters:
|
|
685
|
-
* * LoadBalancerId: the ID of the CLB instance
|
|
686
|
-
* * VServerGroupId: the ID of the vServer group
|
|
687
|
-
* * Port: the port number of the vServer group
|
|
688
|
-
* **
|
|
689
|
-
* **Note** If you attempt to attach the same vServer group to a scaling group multiple times over the identical port, the system regards each attempt as a separate vServer group attachment to the scaling group. In your request, if you include the same vServer group ID coupled with the same port number multiple times, only the first configuration of the vServer group and port number pairing is considered valid. Subsequent vServer group and port number parings are disregarded.
|
|
690
|
-
*
|
|
691
624
|
* @param request - AttachVServerGroupsRequest
|
|
692
625
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
693
626
|
* @returns AttachVServerGroupsResponse
|
|
@@ -735,23 +668,6 @@ class Client extends openapi_core_1.default {
|
|
|
735
668
|
/**
|
|
736
669
|
* Attaches vServer groups to a scaling group. After a Classic Load Balancer (CLB) instance is attached to your scaling group, the instances in the scaling group are automatically added as backend servers of the CLB instance. These servers then handle requests forwarded by the CLB instance, streamlining the processing of incoming traffic. To direct varying access requests to separate backend servers or to distribute requests based on domain names or URLs, you can call the AttachVServerGroups operation. This operation enables the addition of multiple vServer groups, allowing for efficient management of various backend server configurations tailored to your routing preferences.
|
|
737
670
|
*
|
|
738
|
-
* @remarks
|
|
739
|
-
* Before you call this operation, make sure that the following requirements are met:
|
|
740
|
-
* * The CLB instance and the scaling group belong to the same Alibaba Cloud account.
|
|
741
|
-
* * The CLB instance and the scaling group reside in the same region.
|
|
742
|
-
* * The CLB instance is in the Running state.
|
|
743
|
-
* * The CLB instance is configured with at least one listener. The health check feature is enabled for the CLB instance.
|
|
744
|
-
* * If the network type of both the CLB instance and the scaling group is virtual private cloud (VPC), they use the same VPC.
|
|
745
|
-
* * If the network type of the scaling group is VPC and the network type of the CLB instance is classic network, any backend server of the CLB instance within a VPC setup shares the same VPC as the scaling group.
|
|
746
|
-
* * The vServer groups that you want to attach to the scaling group belong to the CLB instance.
|
|
747
|
-
* * The operation to attach vServer groups does not result in the total number of vServer groups exceeding the predefined quota limit. For information about the vServer group quota, see [Limits](https://help.aliyun.com/document_detail/25863.html).
|
|
748
|
-
* * When you call this operation to attach vServer groups, you must specify the following parameters:
|
|
749
|
-
* * LoadBalancerId: the ID of the CLB instance
|
|
750
|
-
* * VServerGroupId: the ID of the vServer group
|
|
751
|
-
* * Port: the port number of the vServer group
|
|
752
|
-
* **
|
|
753
|
-
* **Note** If you attempt to attach the same vServer group to a scaling group multiple times over the identical port, the system regards each attempt as a separate vServer group attachment to the scaling group. In your request, if you include the same vServer group ID coupled with the same port number multiple times, only the first configuration of the vServer group and port number pairing is considered valid. Subsequent vServer group and port number parings are disregarded.
|
|
754
|
-
*
|
|
755
671
|
* @param request - AttachVServerGroupsRequest
|
|
756
672
|
* @returns AttachVServerGroupsResponse
|
|
757
673
|
*/
|
|
@@ -881,9 +797,6 @@ class Client extends openapi_core_1.default {
|
|
|
881
797
|
/**
|
|
882
798
|
* Ends the timeout period of a lifecycle hook ahead of schedule. If you have created a lifecycle hook for your scaling group, you can call the CompleteLifecycleAction operation to end the timeout period of the lifecycle hook ahead of schedule based on your business requirements.
|
|
883
799
|
*
|
|
884
|
-
* @remarks
|
|
885
|
-
* When you manually cut short the timeout period of a lifecycle hook, Auto Scaling proceeds with one of the following actions based on the predefined settings: responding to the scaling request, aborting the scaling request, and initiating a rollback process.
|
|
886
|
-
*
|
|
887
800
|
* @param request - CompleteLifecycleActionRequest
|
|
888
801
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
889
802
|
* @returns CompleteLifecycleActionResponse
|
|
@@ -934,9 +847,6 @@ class Client extends openapi_core_1.default {
|
|
|
934
847
|
/**
|
|
935
848
|
* Ends the timeout period of a lifecycle hook ahead of schedule. If you have created a lifecycle hook for your scaling group, you can call the CompleteLifecycleAction operation to end the timeout period of the lifecycle hook ahead of schedule based on your business requirements.
|
|
936
849
|
*
|
|
937
|
-
* @remarks
|
|
938
|
-
* When you manually cut short the timeout period of a lifecycle hook, Auto Scaling proceeds with one of the following actions based on the predefined settings: responding to the scaling request, aborting the scaling request, and initiating a rollback process.
|
|
939
|
-
*
|
|
940
850
|
* @param request - CompleteLifecycleActionRequest
|
|
941
851
|
* @returns CompleteLifecycleActionResponse
|
|
942
852
|
*/
|
|
@@ -1091,8 +1001,8 @@ class Client extends openapi_core_1.default {
|
|
|
1091
1001
|
* Creates a scaling configuration of the Elastic Container Instance type. Auto Scaling uses the scaling configuration as a template to create elastic container instances to meet your business requirements during scale-out events.
|
|
1092
1002
|
*
|
|
1093
1003
|
* @remarks
|
|
1094
|
-
*
|
|
1095
|
-
*
|
|
1004
|
+
* 伸缩配置用来指定弹性扩张时使用的ECI实例模板。
|
|
1005
|
+
* 参数Cpu和Memory用于指定CPU和内存定义实例规格的范围,弹性伸缩会结合IO优化、可用区等因素确定可用实例规格集合,并根据价格排序为您创建价格最低的实例。该方式仅适用于伸缩组的扩缩容策略为成本优化策略,且伸缩配置未指定实例规格的场景。
|
|
1096
1006
|
*
|
|
1097
1007
|
* @param request - CreateEciScalingConfigurationRequest
|
|
1098
1008
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1271,8 +1181,8 @@ class Client extends openapi_core_1.default {
|
|
|
1271
1181
|
* Creates a scaling configuration of the Elastic Container Instance type. Auto Scaling uses the scaling configuration as a template to create elastic container instances to meet your business requirements during scale-out events.
|
|
1272
1182
|
*
|
|
1273
1183
|
* @remarks
|
|
1274
|
-
*
|
|
1275
|
-
*
|
|
1184
|
+
* 伸缩配置用来指定弹性扩张时使用的ECI实例模板。
|
|
1185
|
+
* 参数Cpu和Memory用于指定CPU和内存定义实例规格的范围,弹性伸缩会结合IO优化、可用区等因素确定可用实例规格集合,并根据价格排序为您创建价格最低的实例。该方式仅适用于伸缩组的扩缩容策略为成本优化策略,且伸缩配置未指定实例规格的场景。
|
|
1276
1186
|
*
|
|
1277
1187
|
* @param request - CreateEciScalingConfigurationRequest
|
|
1278
1188
|
* @returns CreateEciScalingConfigurationResponse
|
|
@@ -1284,12 +1194,6 @@ class Client extends openapi_core_1.default {
|
|
|
1284
1194
|
/**
|
|
1285
1195
|
* Creates one or more lifecycle hooks in a scaling group. A lifecycle hook allows you to execute custom actions like sending notifications or automating script execution at critical stages (such as instance startup and termination) in the lifecycle of an instance. Implementing the lifecycle hook feature allows for finer control and management of instances. For example, you can verify configurations, set up custom tasks, or back up data on your instances when lifecycle hooks take effect, thus enhancing the flexibility and reliability of application deployment.
|
|
1286
1196
|
*
|
|
1287
|
-
* @remarks
|
|
1288
|
-
* You can create a maximum of 10 lifecycle hooks for each scaling group. When a scaling activity occurs in a scaling group with a lifecycle hook, the hook pauses the activity for a specified period. This waiting period is determined by the HeartbeatTimeout parameter. You can perform custom operations, like initializing ECS instance configurations or querying ECS instance data, before the lifecycle hook expires.
|
|
1289
|
-
* During a scale-out event, the private IP addresses of ECS instances are added to the IP address whitelists of the associated ApsaraDB RDS instances. The ECS instances are then added to the backend server groups of the associated Server Load Balancer (SLB) instances only after the lifecycle hook times out. During a scale-in event, the private IP addresses of ECS instances are removed from the IP address whitelists of the associated ApsaraDB RDS instances. Additionally, the ECS instances are removed from the backend server groups of the associated SLB instances only after the lifecycle hook times out.
|
|
1290
|
-
* For each lifecycle hook, you must specify a notification recipient. When lifecycle hooks are triggered, notifications can be delivered through Simple Message Queue (SMQ, formerly MNS) topics, SMQ queues, or CloudOps Orchestration Service (OOS) templates. If you want to configure an OOS template, you must create a Resource Access Management (RAM) role for OOS. For more information, see [Use RAM to grant permissions to OOS](https://help.aliyun.com/document_detail/120810.html).
|
|
1291
|
-
* > If your scaling group contains existing ECS instances and you\\"ve configured an OOS template to manage their private IP addresses in the whitelists of non-ApsaraDB RDS databases, you must manually add or remove those IPs from the whitelists.
|
|
1292
|
-
*
|
|
1293
1197
|
* @param request - CreateLifecycleHookRequest
|
|
1294
1198
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1295
1199
|
* @returns CreateLifecycleHookResponse
|
|
@@ -1346,12 +1250,6 @@ class Client extends openapi_core_1.default {
|
|
|
1346
1250
|
/**
|
|
1347
1251
|
* Creates one or more lifecycle hooks in a scaling group. A lifecycle hook allows you to execute custom actions like sending notifications or automating script execution at critical stages (such as instance startup and termination) in the lifecycle of an instance. Implementing the lifecycle hook feature allows for finer control and management of instances. For example, you can verify configurations, set up custom tasks, or back up data on your instances when lifecycle hooks take effect, thus enhancing the flexibility and reliability of application deployment.
|
|
1348
1252
|
*
|
|
1349
|
-
* @remarks
|
|
1350
|
-
* You can create a maximum of 10 lifecycle hooks for each scaling group. When a scaling activity occurs in a scaling group with a lifecycle hook, the hook pauses the activity for a specified period. This waiting period is determined by the HeartbeatTimeout parameter. You can perform custom operations, like initializing ECS instance configurations or querying ECS instance data, before the lifecycle hook expires.
|
|
1351
|
-
* During a scale-out event, the private IP addresses of ECS instances are added to the IP address whitelists of the associated ApsaraDB RDS instances. The ECS instances are then added to the backend server groups of the associated Server Load Balancer (SLB) instances only after the lifecycle hook times out. During a scale-in event, the private IP addresses of ECS instances are removed from the IP address whitelists of the associated ApsaraDB RDS instances. Additionally, the ECS instances are removed from the backend server groups of the associated SLB instances only after the lifecycle hook times out.
|
|
1352
|
-
* For each lifecycle hook, you must specify a notification recipient. When lifecycle hooks are triggered, notifications can be delivered through Simple Message Queue (SMQ, formerly MNS) topics, SMQ queues, or CloudOps Orchestration Service (OOS) templates. If you want to configure an OOS template, you must create a Resource Access Management (RAM) role for OOS. For more information, see [Use RAM to grant permissions to OOS](https://help.aliyun.com/document_detail/120810.html).
|
|
1353
|
-
* > If your scaling group contains existing ECS instances and you\\"ve configured an OOS template to manage their private IP addresses in the whitelists of non-ApsaraDB RDS databases, you must manually add or remove those IPs from the whitelists.
|
|
1354
|
-
*
|
|
1355
1253
|
* @param request - CreateLifecycleHookRequest
|
|
1356
1254
|
* @returns CreateLifecycleHookResponse
|
|
1357
1255
|
*/
|
|
@@ -1363,9 +1261,9 @@ class Client extends openapi_core_1.default {
|
|
|
1363
1261
|
* Creates a notification rule. You can call the CreateNotificationConfiguration operation to create a notification rule to stay informed about scaling events or resource changes. This helps you learn about the dynamic status of your scaling group in real time and further automates the management of scaling events.
|
|
1364
1262
|
*
|
|
1365
1263
|
* @remarks
|
|
1366
|
-
*
|
|
1367
|
-
*
|
|
1368
|
-
*
|
|
1264
|
+
* - You can configure message notifications to be received by CloudMonitor system events, Message Service (formerly MNS) queues, or Message Service (formerly MNS) topics. When specified scaling events or resource changes occur in a scaling group, automatic scaling notifies CloudMonitor or Message Service (formerly MNS).
|
|
1265
|
+
* - Different event notifications within the same scaling group cannot share the same accepter.
|
|
1266
|
+
* For example, different event notifications cannot simultaneously use the same CloudMonitor configuration, the same MNS topic, or the same MNS queue.
|
|
1369
1267
|
*
|
|
1370
1268
|
* @param request - CreateNotificationConfigurationRequest
|
|
1371
1269
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1418,9 +1316,9 @@ class Client extends openapi_core_1.default {
|
|
|
1418
1316
|
* Creates a notification rule. You can call the CreateNotificationConfiguration operation to create a notification rule to stay informed about scaling events or resource changes. This helps you learn about the dynamic status of your scaling group in real time and further automates the management of scaling events.
|
|
1419
1317
|
*
|
|
1420
1318
|
* @remarks
|
|
1421
|
-
*
|
|
1422
|
-
*
|
|
1423
|
-
*
|
|
1319
|
+
* - You can configure message notifications to be received by CloudMonitor system events, Message Service (formerly MNS) queues, or Message Service (formerly MNS) topics. When specified scaling events or resource changes occur in a scaling group, automatic scaling notifies CloudMonitor or Message Service (formerly MNS).
|
|
1320
|
+
* - Different event notifications within the same scaling group cannot share the same accepter.
|
|
1321
|
+
* For example, different event notifications cannot simultaneously use the same CloudMonitor configuration, the same MNS topic, or the same MNS queue.
|
|
1424
1322
|
*
|
|
1425
1323
|
* @param request - CreateNotificationConfigurationRequest
|
|
1426
1324
|
* @returns CreateNotificationConfigurationResponse
|
|
@@ -1430,16 +1328,19 @@ class Client extends openapi_core_1.default {
|
|
|
1430
1328
|
return await this.createNotificationConfigurationWithOptions(request, runtime);
|
|
1431
1329
|
}
|
|
1432
1330
|
/**
|
|
1433
|
-
*
|
|
1331
|
+
* Call the CreateScalingConfiguration operation to create an ECS scaling configuration for a scaling group. You must specify the scaling group ID, instance type, and image.
|
|
1434
1332
|
*
|
|
1435
1333
|
* @remarks
|
|
1436
|
-
*
|
|
1437
|
-
*
|
|
1438
|
-
*
|
|
1439
|
-
*
|
|
1440
|
-
*
|
|
1441
|
-
*
|
|
1442
|
-
*
|
|
1334
|
+
* A scaling configuration is a template that defines the ECS instances to be created during a scale-out event. You can configure instances in the following ways:
|
|
1335
|
+
* - InstancePatternInfos: Use the intelligent configuration mode. You do not need to specify an instance type. Instead, you specify the number of vCPUs, memory size, instance family level, and maximum price based on your business needs. The system automatically selects eligible instance types and prioritizes the instance type with the lowest price to create ECS instances. This mode is available only when the network type of the scaling group is VPC. It can effectively reduce the risk of instance creation failures during scale-out events due to an instance type being out of stock.
|
|
1336
|
+
* - InstanceType: Specify a single instance type.
|
|
1337
|
+
* - InstanceTypes: Specify multiple instance types.
|
|
1338
|
+
* - InstanceTypeOverrides: Specify multiple instance types and configure a weight for each instance type.
|
|
1339
|
+
* - Cpu and Memory: Specify a range of instance types by setting the number of vCPUs and memory size. Auto Scaling determines the available instance types based on factors such as I/O optimization and zone. It then creates the instance with the lowest price. This method is applicable only if the scaling policy of the scaling group is the cost optimization policy and no instance type is specified in the scaling configuration.
|
|
1340
|
+
* - You can attach a primary network interface controller (NIC) in one of the following ways. Note that you can use only one method in a single call. If you use both methods, the call fails and an error message is returned.
|
|
1341
|
+
* - Directly configure the primary NIC using parameters such as SecurityGroupId, SecurityGroupIds, and Ipv6AddressCount.
|
|
1342
|
+
* - Configure the primary and secondary NICs using the NetworkInterfaces parameter. When you use this parameter, you must configure the primary NIC. Set NetworkInterface.InstanceType to Primary to configure the primary NIC. To configure a secondary NIC, set NetworkInterface.InstanceType to Secondary or leave the parameter empty.
|
|
1343
|
+
* > You cannot specify \\`InstanceType\\`, \\`InstanceTypes\\`, \\`InstanceTypeOverrides\\`, and \\`Cpu\\`/\\`Memory\\` at the same time. However, you can specify \\`InstanceType\\` or \\`InstanceTypes\\` together with \\`InstancePatternInfos\\`. If you specify them together, Auto Scaling prioritizes the specified instance types during scale-outs. If the specified instance types are out of stock, Auto Scaling uses instance types that match the \\`InstancePatternInfos\\` configuration.
|
|
1443
1344
|
*
|
|
1444
1345
|
* @param tmpReq - CreateScalingConfigurationRequest
|
|
1445
1346
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1656,16 +1557,19 @@ class Client extends openapi_core_1.default {
|
|
|
1656
1557
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateScalingConfigurationResponse({}));
|
|
1657
1558
|
}
|
|
1658
1559
|
/**
|
|
1659
|
-
*
|
|
1560
|
+
* Call the CreateScalingConfiguration operation to create an ECS scaling configuration for a scaling group. You must specify the scaling group ID, instance type, and image.
|
|
1660
1561
|
*
|
|
1661
1562
|
* @remarks
|
|
1662
|
-
*
|
|
1663
|
-
*
|
|
1664
|
-
*
|
|
1665
|
-
*
|
|
1666
|
-
*
|
|
1667
|
-
*
|
|
1668
|
-
*
|
|
1563
|
+
* A scaling configuration is a template that defines the ECS instances to be created during a scale-out event. You can configure instances in the following ways:
|
|
1564
|
+
* - InstancePatternInfos: Use the intelligent configuration mode. You do not need to specify an instance type. Instead, you specify the number of vCPUs, memory size, instance family level, and maximum price based on your business needs. The system automatically selects eligible instance types and prioritizes the instance type with the lowest price to create ECS instances. This mode is available only when the network type of the scaling group is VPC. It can effectively reduce the risk of instance creation failures during scale-out events due to an instance type being out of stock.
|
|
1565
|
+
* - InstanceType: Specify a single instance type.
|
|
1566
|
+
* - InstanceTypes: Specify multiple instance types.
|
|
1567
|
+
* - InstanceTypeOverrides: Specify multiple instance types and configure a weight for each instance type.
|
|
1568
|
+
* - Cpu and Memory: Specify a range of instance types by setting the number of vCPUs and memory size. Auto Scaling determines the available instance types based on factors such as I/O optimization and zone. It then creates the instance with the lowest price. This method is applicable only if the scaling policy of the scaling group is the cost optimization policy and no instance type is specified in the scaling configuration.
|
|
1569
|
+
* - You can attach a primary network interface controller (NIC) in one of the following ways. Note that you can use only one method in a single call. If you use both methods, the call fails and an error message is returned.
|
|
1570
|
+
* - Directly configure the primary NIC using parameters such as SecurityGroupId, SecurityGroupIds, and Ipv6AddressCount.
|
|
1571
|
+
* - Configure the primary and secondary NICs using the NetworkInterfaces parameter. When you use this parameter, you must configure the primary NIC. Set NetworkInterface.InstanceType to Primary to configure the primary NIC. To configure a secondary NIC, set NetworkInterface.InstanceType to Secondary or leave the parameter empty.
|
|
1572
|
+
* > You cannot specify \\`InstanceType\\`, \\`InstanceTypes\\`, \\`InstanceTypeOverrides\\`, and \\`Cpu\\`/\\`Memory\\` at the same time. However, you can specify \\`InstanceType\\` or \\`InstanceTypes\\` together with \\`InstancePatternInfos\\`. If you specify them together, Auto Scaling prioritizes the specified instance types during scale-outs. If the specified instance types are out of stock, Auto Scaling uses instance types that match the \\`InstancePatternInfos\\` configuration.
|
|
1669
1573
|
*
|
|
1670
1574
|
* @param request - CreateScalingConfigurationRequest
|
|
1671
1575
|
* @returns CreateScalingConfigurationResponse
|
|
@@ -1675,31 +1579,31 @@ class Client extends openapi_core_1.default {
|
|
|
1675
1579
|
return await this.createScalingConfigurationWithOptions(request, runtime);
|
|
1676
1580
|
}
|
|
1677
1581
|
/**
|
|
1678
|
-
*
|
|
1582
|
+
* Call the `CreateScalingGroup` API to create a scaling group. The group automatically adjusts your computing capacity (the number of instances) by scaling instances of a specified type in or out based on your business requirements and scaling policies.
|
|
1679
1583
|
*
|
|
1680
1584
|
* @remarks
|
|
1681
|
-
* A scaling group is a
|
|
1682
|
-
*
|
|
1683
|
-
* A scaling group
|
|
1684
|
-
*
|
|
1685
|
-
* If you
|
|
1686
|
-
*
|
|
1687
|
-
*
|
|
1688
|
-
* >
|
|
1689
|
-
*
|
|
1690
|
-
*
|
|
1691
|
-
*
|
|
1692
|
-
* If you
|
|
1693
|
-
* If you associate an RDS instance with
|
|
1694
|
-
*
|
|
1695
|
-
*
|
|
1696
|
-
* If the MultiAZPolicy
|
|
1697
|
-
*
|
|
1698
|
-
*
|
|
1699
|
-
* If you
|
|
1700
|
-
*
|
|
1701
|
-
*
|
|
1702
|
-
*
|
|
1585
|
+
* A scaling group is a collection of ECS instances for the same use case.
|
|
1586
|
+
* The number of scaling groups that you can create in a region depends on your Auto Scaling usage. To view your quota for scaling groups, go to Quota Center.
|
|
1587
|
+
* A scaling group is not active immediately after creation. You must call the [EnableScalingGroup](https://help.aliyun.com/document_detail/25939.html) operation to enable the group before it can trigger scaling activities or execute scaling rules.
|
|
1588
|
+
* The scaling group, as well as its associated Classic Load Balancer (CLB) (formerly SLB) and RDS instances, must be in the same region. For more information, see [Regions and availability zones](https://help.aliyun.com/document_detail/40654.html).
|
|
1589
|
+
* If you associate a CLB instance with a scaling group, the scaling group automatically adds new ECS instances to a backend server group of the CLB instance. You can specify which server group to use. The following types of server groups are supported:
|
|
1590
|
+
* - Default server group: A group of ECS instances that receive requests from the front end. If no vServer group or primary/standby server group is configured for a listener, it forwards requests to the ECS instances in the default server group.
|
|
1591
|
+
* - vServer group: Use a vServer group if you need to forward different requests to different backend servers, or forward requests based on domain names and URLs.
|
|
1592
|
+
* > If you specify both a default server group and one or more vServer groups, the scaling group adds new ECS instances to all specified server groups.
|
|
1593
|
+
* After an instance is added to a backend server group of a CLB instance, its default weight is 50. The CLB instance must meet the following conditions:
|
|
1594
|
+
* - The CLB instance must be in the active state. You can call the [DescribeLoadBalancers](https://help.aliyun.com/document_detail/2401696.html) operation to check the state of a CLB instance.
|
|
1595
|
+
* - Health checks must be enabled for all listeners configured on the CLB instance. Otherwise, the scaling group creation fails.
|
|
1596
|
+
* If you associate a scaling group with Application Load Balancer (ALB), Network Load Balancer (NLB), or Gateway Load Balancer (GWLB) server groups, it automatically adds new ECS instances as backend servers to those groups to handle distributed requests. You can specify multiple such server groups, but they must all belong to the same VPC as the scaling group. For more information, see [AttachAlbServerGroups](https://help.aliyun.com/document_detail/266800.html) or [AttachServerGroups](https://help.aliyun.com/document_detail/600535.html).
|
|
1597
|
+
* If you associate an RDS instance with a scaling group, the scaling group automatically adds the internal IP addresses of new ECS instances to the IP address whitelist of the RDS instance. The RDS instance must meet the following conditions:
|
|
1598
|
+
* - The RDS instance must be in the Running state. You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/610396.html) operation to check the state of an RDS instance.
|
|
1599
|
+
* - The number of IP addresses in the RDS instance\\"s IP address whitelist cannot exceed the limit. For more information, see the [Configure an IP address whitelist](https://help.aliyun.com/document_detail/43185.html) topic in the RDS documentation.
|
|
1600
|
+
* If the `MultiAZPolicy` of a scaling group is set to `COST_OPTIMIZED`:
|
|
1601
|
+
* - If you specify the `OnDemandBaseCapacity`, `OnDemandPercentageAboveBaseCapacity`, and `SpotInstancePools` parameters, you define the instance allocation strategy for the cost-optimized policy. Auto Scaling prioritizes this strategy during scaling activities.
|
|
1602
|
+
* - If you do not specify the `OnDemandBaseCapacity`, `OnDemandPercentageAboveBaseCapacity`, or `SpotInstancePools` parameters, the cost-optimized policy creates instances by using only the lowest-cost method. In this mode, you cannot create instances by using the Elastic Guarantee service or the Capacity Reservation service.
|
|
1603
|
+
* If you enable tag propagation for a scaling group by setting `Tags.Propagate` to `true`:
|
|
1604
|
+
* - The scaling group propagates its tags only to new instances, not to existing instances.
|
|
1605
|
+
* - If you specify instance tags in the scaling configuration and also choose to propagate tags from the scaling group, Auto Scaling applies both sets of tags to the new instances.
|
|
1606
|
+
* - If a tag from the scaling configuration and a propagated tag from the scaling group have the same tag key, the tag value from the scaling configuration takes precedence.
|
|
1703
1607
|
*
|
|
1704
1608
|
* @param request - CreateScalingGroupRequest
|
|
1705
1609
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1872,31 +1776,31 @@ class Client extends openapi_core_1.default {
|
|
|
1872
1776
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateScalingGroupResponse({}));
|
|
1873
1777
|
}
|
|
1874
1778
|
/**
|
|
1875
|
-
*
|
|
1779
|
+
* Call the `CreateScalingGroup` API to create a scaling group. The group automatically adjusts your computing capacity (the number of instances) by scaling instances of a specified type in or out based on your business requirements and scaling policies.
|
|
1876
1780
|
*
|
|
1877
1781
|
* @remarks
|
|
1878
|
-
* A scaling group is a
|
|
1879
|
-
*
|
|
1880
|
-
* A scaling group
|
|
1881
|
-
*
|
|
1882
|
-
* If you
|
|
1883
|
-
*
|
|
1884
|
-
*
|
|
1885
|
-
* >
|
|
1886
|
-
*
|
|
1887
|
-
*
|
|
1888
|
-
*
|
|
1889
|
-
* If you
|
|
1890
|
-
* If you associate an RDS instance with
|
|
1891
|
-
*
|
|
1892
|
-
*
|
|
1893
|
-
* If the MultiAZPolicy
|
|
1894
|
-
*
|
|
1895
|
-
*
|
|
1896
|
-
* If you
|
|
1897
|
-
*
|
|
1898
|
-
*
|
|
1899
|
-
*
|
|
1782
|
+
* A scaling group is a collection of ECS instances for the same use case.
|
|
1783
|
+
* The number of scaling groups that you can create in a region depends on your Auto Scaling usage. To view your quota for scaling groups, go to Quota Center.
|
|
1784
|
+
* A scaling group is not active immediately after creation. You must call the [EnableScalingGroup](https://help.aliyun.com/document_detail/25939.html) operation to enable the group before it can trigger scaling activities or execute scaling rules.
|
|
1785
|
+
* The scaling group, as well as its associated Classic Load Balancer (CLB) (formerly SLB) and RDS instances, must be in the same region. For more information, see [Regions and availability zones](https://help.aliyun.com/document_detail/40654.html).
|
|
1786
|
+
* If you associate a CLB instance with a scaling group, the scaling group automatically adds new ECS instances to a backend server group of the CLB instance. You can specify which server group to use. The following types of server groups are supported:
|
|
1787
|
+
* - Default server group: A group of ECS instances that receive requests from the front end. If no vServer group or primary/standby server group is configured for a listener, it forwards requests to the ECS instances in the default server group.
|
|
1788
|
+
* - vServer group: Use a vServer group if you need to forward different requests to different backend servers, or forward requests based on domain names and URLs.
|
|
1789
|
+
* > If you specify both a default server group and one or more vServer groups, the scaling group adds new ECS instances to all specified server groups.
|
|
1790
|
+
* After an instance is added to a backend server group of a CLB instance, its default weight is 50. The CLB instance must meet the following conditions:
|
|
1791
|
+
* - The CLB instance must be in the active state. You can call the [DescribeLoadBalancers](https://help.aliyun.com/document_detail/2401696.html) operation to check the state of a CLB instance.
|
|
1792
|
+
* - Health checks must be enabled for all listeners configured on the CLB instance. Otherwise, the scaling group creation fails.
|
|
1793
|
+
* If you associate a scaling group with Application Load Balancer (ALB), Network Load Balancer (NLB), or Gateway Load Balancer (GWLB) server groups, it automatically adds new ECS instances as backend servers to those groups to handle distributed requests. You can specify multiple such server groups, but they must all belong to the same VPC as the scaling group. For more information, see [AttachAlbServerGroups](https://help.aliyun.com/document_detail/266800.html) or [AttachServerGroups](https://help.aliyun.com/document_detail/600535.html).
|
|
1794
|
+
* If you associate an RDS instance with a scaling group, the scaling group automatically adds the internal IP addresses of new ECS instances to the IP address whitelist of the RDS instance. The RDS instance must meet the following conditions:
|
|
1795
|
+
* - The RDS instance must be in the Running state. You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/610396.html) operation to check the state of an RDS instance.
|
|
1796
|
+
* - The number of IP addresses in the RDS instance\\"s IP address whitelist cannot exceed the limit. For more information, see the [Configure an IP address whitelist](https://help.aliyun.com/document_detail/43185.html) topic in the RDS documentation.
|
|
1797
|
+
* If the `MultiAZPolicy` of a scaling group is set to `COST_OPTIMIZED`:
|
|
1798
|
+
* - If you specify the `OnDemandBaseCapacity`, `OnDemandPercentageAboveBaseCapacity`, and `SpotInstancePools` parameters, you define the instance allocation strategy for the cost-optimized policy. Auto Scaling prioritizes this strategy during scaling activities.
|
|
1799
|
+
* - If you do not specify the `OnDemandBaseCapacity`, `OnDemandPercentageAboveBaseCapacity`, or `SpotInstancePools` parameters, the cost-optimized policy creates instances by using only the lowest-cost method. In this mode, you cannot create instances by using the Elastic Guarantee service or the Capacity Reservation service.
|
|
1800
|
+
* If you enable tag propagation for a scaling group by setting `Tags.Propagate` to `true`:
|
|
1801
|
+
* - The scaling group propagates its tags only to new instances, not to existing instances.
|
|
1802
|
+
* - If you specify instance tags in the scaling configuration and also choose to propagate tags from the scaling group, Auto Scaling applies both sets of tags to the new instances.
|
|
1803
|
+
* - If a tag from the scaling configuration and a propagated tag from the scaling group have the same tag key, the tag value from the scaling configuration takes precedence.
|
|
1900
1804
|
*
|
|
1901
1805
|
* @param request - CreateScalingGroupRequest
|
|
1902
1806
|
* @returns CreateScalingGroupResponse
|
|
@@ -1906,21 +1810,21 @@ class Client extends openapi_core_1.default {
|
|
|
1906
1810
|
return await this.createScalingGroupWithOptions(request, runtime);
|
|
1907
1811
|
}
|
|
1908
1812
|
/**
|
|
1909
|
-
*
|
|
1813
|
+
* The function of a scaling rule is determined by its type, which can be used to trigger a scaling activity or intelligently set the boundary values of a scaling group. Depending on your business requirements, you can invoke the CreateScalingRule API to create different types of scaling rules. For example, if your business only requires setting the boundary values of a scaling group, we recommend that you select the predictive rule type.
|
|
1910
1814
|
*
|
|
1911
1815
|
* @remarks
|
|
1912
|
-
* A scaling rule defines
|
|
1913
|
-
*
|
|
1914
|
-
*
|
|
1915
|
-
*
|
|
1916
|
-
*
|
|
1917
|
-
*
|
|
1918
|
-
*
|
|
1919
|
-
*
|
|
1920
|
-
*
|
|
1921
|
-
*
|
|
1922
|
-
*
|
|
1923
|
-
*
|
|
1816
|
+
* A scaling rule defines specific scale-out or scale-in operations, such as adding or removing N instances. If executing a scaling rule would cause the number of ECS or ECI instances in the scaling group to fall below MinSize or exceed MaxSize, automatic scaling automatically adjusts the number of ECS or ECI instances to be added or removed so that the actual instance count reaches MinSize or MaxSize. However, the configured value of the scaling rule remains unchanged. Examples are as follows:
|
|
1817
|
+
* - For a scaling group with MaxSize=3 and a current Total Capacity of 2, if the scaling rule specifies adding 3 ECS instances, only 1 ECS instance will actually be added during execution, but the configured value of the scaling rule remains 3.
|
|
1818
|
+
* - For a scaling group with MinSize=2 and a current Total Capacity of 3, if the scaling rule specifies removing 5 ECS instances, only 1 ECS instance will actually be removed during execution, but the configured value of the scaling rule remains 5.
|
|
1819
|
+
* Please note the following parameter-related descriptions:
|
|
1820
|
+
* - When AdjustmentType is TotalCapacity, it means adjusting the current number of ECS or ECI instances in the scaling group to the specified quantity. The corresponding AdjustmentValue must be greater than or equal to 0.
|
|
1821
|
+
* - When AdjustmentType is QuantityChangeInCapacity or PercentChangeInCapacity, a positive AdjustmentValue indicates adding instances, while a negative value indicates removing instances.
|
|
1822
|
+
* - When AdjustmentType is PercentChangeInCapacity, the automatic scaling service calculates the number of ECS or ECI instances to add or remove by multiplying the current instance count (Total Capacity) by AdjustmentValue/100 and then applying rounding.
|
|
1823
|
+
* - If a cooldown time (Cooldown) is specified in the scaling rule, the scaling group enters a cooldown period for the specified duration after the scaling activity triggered by this rule completes. If no cooldown time is specified in the scaling rule, the default cooldown time (DefaultCooldown) of the scaling group is used.
|
|
1824
|
+
* - There is a limit on the number of scaling rules that can be created within a single scaling group. For details, see [Limits](https://help.aliyun.com/document_detail/25863.html).
|
|
1825
|
+
* - The returned Unique Identifier (ScalingRuleAri) of the scaling rule can be used with the following APIs:
|
|
1826
|
+
* - Specify it in the ScalingRuleAri parameter when invoking ExecuteScalingRule to manually execute the scaling rule.
|
|
1827
|
+
* - Specify it in the ScheduledAction parameter when creating a scheduled task (CreateScheduledTask) to execute the scaling rule at a scheduled time.
|
|
1924
1828
|
*
|
|
1925
1829
|
* @param request - CreateScalingRuleRequest
|
|
1926
1830
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2030,21 +1934,21 @@ class Client extends openapi_core_1.default {
|
|
|
2030
1934
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateScalingRuleResponse({}));
|
|
2031
1935
|
}
|
|
2032
1936
|
/**
|
|
2033
|
-
*
|
|
1937
|
+
* The function of a scaling rule is determined by its type, which can be used to trigger a scaling activity or intelligently set the boundary values of a scaling group. Depending on your business requirements, you can invoke the CreateScalingRule API to create different types of scaling rules. For example, if your business only requires setting the boundary values of a scaling group, we recommend that you select the predictive rule type.
|
|
2034
1938
|
*
|
|
2035
1939
|
* @remarks
|
|
2036
|
-
* A scaling rule defines
|
|
2037
|
-
*
|
|
2038
|
-
*
|
|
2039
|
-
*
|
|
2040
|
-
*
|
|
2041
|
-
*
|
|
2042
|
-
*
|
|
2043
|
-
*
|
|
2044
|
-
*
|
|
2045
|
-
*
|
|
2046
|
-
*
|
|
2047
|
-
*
|
|
1940
|
+
* A scaling rule defines specific scale-out or scale-in operations, such as adding or removing N instances. If executing a scaling rule would cause the number of ECS or ECI instances in the scaling group to fall below MinSize or exceed MaxSize, automatic scaling automatically adjusts the number of ECS or ECI instances to be added or removed so that the actual instance count reaches MinSize or MaxSize. However, the configured value of the scaling rule remains unchanged. Examples are as follows:
|
|
1941
|
+
* - For a scaling group with MaxSize=3 and a current Total Capacity of 2, if the scaling rule specifies adding 3 ECS instances, only 1 ECS instance will actually be added during execution, but the configured value of the scaling rule remains 3.
|
|
1942
|
+
* - For a scaling group with MinSize=2 and a current Total Capacity of 3, if the scaling rule specifies removing 5 ECS instances, only 1 ECS instance will actually be removed during execution, but the configured value of the scaling rule remains 5.
|
|
1943
|
+
* Please note the following parameter-related descriptions:
|
|
1944
|
+
* - When AdjustmentType is TotalCapacity, it means adjusting the current number of ECS or ECI instances in the scaling group to the specified quantity. The corresponding AdjustmentValue must be greater than or equal to 0.
|
|
1945
|
+
* - When AdjustmentType is QuantityChangeInCapacity or PercentChangeInCapacity, a positive AdjustmentValue indicates adding instances, while a negative value indicates removing instances.
|
|
1946
|
+
* - When AdjustmentType is PercentChangeInCapacity, the automatic scaling service calculates the number of ECS or ECI instances to add or remove by multiplying the current instance count (Total Capacity) by AdjustmentValue/100 and then applying rounding.
|
|
1947
|
+
* - If a cooldown time (Cooldown) is specified in the scaling rule, the scaling group enters a cooldown period for the specified duration after the scaling activity triggered by this rule completes. If no cooldown time is specified in the scaling rule, the default cooldown time (DefaultCooldown) of the scaling group is used.
|
|
1948
|
+
* - There is a limit on the number of scaling rules that can be created within a single scaling group. For details, see [Limits](https://help.aliyun.com/document_detail/25863.html).
|
|
1949
|
+
* - The returned Unique Identifier (ScalingRuleAri) of the scaling rule can be used with the following APIs:
|
|
1950
|
+
* - Specify it in the ScalingRuleAri parameter when invoking ExecuteScalingRule to manually execute the scaling rule.
|
|
1951
|
+
* - Specify it in the ScheduledAction parameter when creating a scheduled task (CreateScheduledTask) to execute the scaling rule at a scheduled time.
|
|
2048
1952
|
*
|
|
2049
1953
|
* @param request - CreateScalingRuleRequest
|
|
2050
1954
|
* @returns CreateScalingRuleResponse
|
|
@@ -2056,17 +1960,6 @@ class Client extends openapi_core_1.default {
|
|
|
2056
1960
|
/**
|
|
2057
1961
|
* Creates a scheduled task. A scheduled task is a type of scaling task that enables automatic execution of a specific scaling rule at a specified point in time. You can call the CreateScheduledTask operation to create a scheduled task to implement automatic scaling of computing resources. This ensures your business continuity and minimizes resource costs.
|
|
2058
1962
|
*
|
|
2059
|
-
* @remarks
|
|
2060
|
-
* If the scaling rule of a scheduled task fails to be executed due to an ongoing scaling activity in the scaling group or because the scaling group is disabled, the scheduled task is automatically retried during the time window specified by `LaunchExpirationTime`. If the scheduled task still fails after the specified time window ends, the task is automatically skipped.
|
|
2061
|
-
* * If several scheduled tasks concurrently attempt to execute the same scaling rule within a scaling group, the following rules apply:
|
|
2062
|
-
* * Scaling groups with **Expected Number of Instances** configured: The scaling activities incurred by the scheduled tasks are parallel scaling activities. In a proximate time window, Auto Scaling can trigger several scheduled tasks and then execute multiple parallel scaling activities at the same time.
|
|
2063
|
-
* * Scaling groups with **Expected Number of Instances** not configured: The scaling activity incurred by the earliest scheduled task is executed. Considering that a scaling group allows for no more than one ongoing scaling activity simultaneously, other scheduled tasks will spontaneously invoke retries within the time window specified by `LaunchExpirationTime`. Upon completion of the first scheduled task, any retries invoked by other tasks within the time window specified by `LaunchExpirationTime` lead to continuous enforcement of the scaling rule, with each iteration generating a distinct scaling activity.
|
|
2064
|
-
* * You can use one of the following methods to specify the scaling mode:
|
|
2065
|
-
* * ScheduledAction: Specify an existing scaling rule that you want Auto Scaling to execute when the scheduled task is triggered.
|
|
2066
|
-
* * ScalingGroupId: Specify the minimum number, maximum number, or expected number of instances for the scaling group for which you create the scheduled task.
|
|
2067
|
-
* **
|
|
2068
|
-
* **Note** You cannot specify ScheduledAction and ScalingGroupId at the same time.
|
|
2069
|
-
*
|
|
2070
1963
|
* @param request - CreateScheduledTaskRequest
|
|
2071
1964
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2072
1965
|
* @returns CreateScheduledTaskResponse
|
|
@@ -2144,17 +2037,6 @@ class Client extends openapi_core_1.default {
|
|
|
2144
2037
|
/**
|
|
2145
2038
|
* Creates a scheduled task. A scheduled task is a type of scaling task that enables automatic execution of a specific scaling rule at a specified point in time. You can call the CreateScheduledTask operation to create a scheduled task to implement automatic scaling of computing resources. This ensures your business continuity and minimizes resource costs.
|
|
2146
2039
|
*
|
|
2147
|
-
* @remarks
|
|
2148
|
-
* If the scaling rule of a scheduled task fails to be executed due to an ongoing scaling activity in the scaling group or because the scaling group is disabled, the scheduled task is automatically retried during the time window specified by `LaunchExpirationTime`. If the scheduled task still fails after the specified time window ends, the task is automatically skipped.
|
|
2149
|
-
* * If several scheduled tasks concurrently attempt to execute the same scaling rule within a scaling group, the following rules apply:
|
|
2150
|
-
* * Scaling groups with **Expected Number of Instances** configured: The scaling activities incurred by the scheduled tasks are parallel scaling activities. In a proximate time window, Auto Scaling can trigger several scheduled tasks and then execute multiple parallel scaling activities at the same time.
|
|
2151
|
-
* * Scaling groups with **Expected Number of Instances** not configured: The scaling activity incurred by the earliest scheduled task is executed. Considering that a scaling group allows for no more than one ongoing scaling activity simultaneously, other scheduled tasks will spontaneously invoke retries within the time window specified by `LaunchExpirationTime`. Upon completion of the first scheduled task, any retries invoked by other tasks within the time window specified by `LaunchExpirationTime` lead to continuous enforcement of the scaling rule, with each iteration generating a distinct scaling activity.
|
|
2152
|
-
* * You can use one of the following methods to specify the scaling mode:
|
|
2153
|
-
* * ScheduledAction: Specify an existing scaling rule that you want Auto Scaling to execute when the scheduled task is triggered.
|
|
2154
|
-
* * ScalingGroupId: Specify the minimum number, maximum number, or expected number of instances for the scaling group for which you create the scheduled task.
|
|
2155
|
-
* **
|
|
2156
|
-
* **Note** You cannot specify ScheduledAction and ScalingGroupId at the same time.
|
|
2157
|
-
*
|
|
2158
2040
|
* @param request - CreateScheduledTaskRequest
|
|
2159
2041
|
* @returns CreateScheduledTaskResponse
|
|
2160
2042
|
*/
|
|
@@ -2163,10 +2045,7 @@ class Client extends openapi_core_1.default {
|
|
|
2163
2045
|
return await this.createScheduledTaskWithOptions(request, runtime);
|
|
2164
2046
|
}
|
|
2165
2047
|
/**
|
|
2166
|
-
*
|
|
2167
|
-
*
|
|
2168
|
-
* @remarks
|
|
2169
|
-
* You can call this operation to deactivate a scaling configuration only in a disabled scaling group.
|
|
2048
|
+
* 使指定伸缩配置进入失效状态
|
|
2170
2049
|
*
|
|
2171
2050
|
* @param request - DeactivateScalingConfigurationRequest
|
|
2172
2051
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2204,10 +2083,7 @@ class Client extends openapi_core_1.default {
|
|
|
2204
2083
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeactivateScalingConfigurationResponse({}));
|
|
2205
2084
|
}
|
|
2206
2085
|
/**
|
|
2207
|
-
*
|
|
2208
|
-
*
|
|
2209
|
-
* @remarks
|
|
2210
|
-
* You can call this operation to deactivate a scaling configuration only in a disabled scaling group.
|
|
2086
|
+
* 使指定伸缩配置进入失效状态
|
|
2211
2087
|
*
|
|
2212
2088
|
* @param request - DeactivateScalingConfigurationRequest
|
|
2213
2089
|
* @returns DeactivateScalingConfigurationResponse
|
|
@@ -2303,11 +2179,6 @@ class Client extends openapi_core_1.default {
|
|
|
2303
2179
|
/**
|
|
2304
2180
|
* Deletes a scaling configuration of the Elastic Container Instance type. If the scaling configuration of a scaling group is in the Inactive state and the scaling group contains no elastic container instances created from the scaling configuration, you can call the DeleteEciScalingConfiguration operation to delete the scaling configuration to free up the scaling configuration quota.
|
|
2305
2181
|
*
|
|
2306
|
-
* @remarks
|
|
2307
|
-
* You cannot call this operation to delete a scaling configuration in the following scenarios:
|
|
2308
|
-
* * The scaling configuration is in the Active state.
|
|
2309
|
-
* * The scaling group contains elastic container instances created from the scaling configuration.
|
|
2310
|
-
*
|
|
2311
2182
|
* @param request - DeleteEciScalingConfigurationRequest
|
|
2312
2183
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2313
2184
|
* @returns DeleteEciScalingConfigurationResponse
|
|
@@ -2349,11 +2220,6 @@ class Client extends openapi_core_1.default {
|
|
|
2349
2220
|
/**
|
|
2350
2221
|
* Deletes a scaling configuration of the Elastic Container Instance type. If the scaling configuration of a scaling group is in the Inactive state and the scaling group contains no elastic container instances created from the scaling configuration, you can call the DeleteEciScalingConfiguration operation to delete the scaling configuration to free up the scaling configuration quota.
|
|
2351
2222
|
*
|
|
2352
|
-
* @remarks
|
|
2353
|
-
* You cannot call this operation to delete a scaling configuration in the following scenarios:
|
|
2354
|
-
* * The scaling configuration is in the Active state.
|
|
2355
|
-
* * The scaling group contains elastic container instances created from the scaling configuration.
|
|
2356
|
-
*
|
|
2357
2223
|
* @param request - DeleteEciScalingConfigurationRequest
|
|
2358
2224
|
* @returns DeleteEciScalingConfigurationResponse
|
|
2359
2225
|
*/
|
|
@@ -2364,11 +2230,6 @@ class Client extends openapi_core_1.default {
|
|
|
2364
2230
|
/**
|
|
2365
2231
|
* Deletes a lifecycle hook. If you no longer require a lifecycle hook, you can call the DeleteLifecycleHook operation to delete it, which frees up the lifecycle hook quota.
|
|
2366
2232
|
*
|
|
2367
|
-
* @remarks
|
|
2368
|
-
* If you delete an effective lifecycle hook before its timeout period ends, the instances on which the lifecycle hook takes effect exits the Pending state ahead of schedule. You can use the following methods to delete a lifecycle hook:
|
|
2369
|
-
* * Include `LifecycleHookId` within your request to specify the lifecycle hook that you want to delete. In this case, `ScalingGroupId` and `LifecycleHookName` are ignored.
|
|
2370
|
-
* * Include `ScalingGroupId` and `LifecycleHookName` within your request to specify the lifecycle hook that you want to delete.
|
|
2371
|
-
*
|
|
2372
2233
|
* @param request - DeleteLifecycleHookRequest
|
|
2373
2234
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2374
2235
|
* @returns DeleteLifecycleHookResponse
|
|
@@ -2416,11 +2277,6 @@ class Client extends openapi_core_1.default {
|
|
|
2416
2277
|
/**
|
|
2417
2278
|
* Deletes a lifecycle hook. If you no longer require a lifecycle hook, you can call the DeleteLifecycleHook operation to delete it, which frees up the lifecycle hook quota.
|
|
2418
2279
|
*
|
|
2419
|
-
* @remarks
|
|
2420
|
-
* If you delete an effective lifecycle hook before its timeout period ends, the instances on which the lifecycle hook takes effect exits the Pending state ahead of schedule. You can use the following methods to delete a lifecycle hook:
|
|
2421
|
-
* * Include `LifecycleHookId` within your request to specify the lifecycle hook that you want to delete. In this case, `ScalingGroupId` and `LifecycleHookName` are ignored.
|
|
2422
|
-
* * Include `ScalingGroupId` and `LifecycleHookName` within your request to specify the lifecycle hook that you want to delete.
|
|
2423
|
-
*
|
|
2424
2280
|
* @param request - DeleteLifecycleHookRequest
|
|
2425
2281
|
* @returns DeleteLifecycleHookResponse
|
|
2426
2282
|
*/
|
|
@@ -2482,11 +2338,6 @@ class Client extends openapi_core_1.default {
|
|
|
2482
2338
|
/**
|
|
2483
2339
|
* Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
|
|
2484
2340
|
*
|
|
2485
|
-
* @remarks
|
|
2486
|
-
* You cannot delete a scaling configuration in one of the following scenarios:
|
|
2487
|
-
* * The scaling configuration in your scaling group is in the Active state.
|
|
2488
|
-
* * The scaling group contains ECS instances that were created based on the scaling configuration.
|
|
2489
|
-
*
|
|
2490
2341
|
* @param request - DeleteScalingConfigurationRequest
|
|
2491
2342
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2492
2343
|
* @returns DeleteScalingConfigurationResponse
|
|
@@ -2525,11 +2376,6 @@ class Client extends openapi_core_1.default {
|
|
|
2525
2376
|
/**
|
|
2526
2377
|
* Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
|
|
2527
2378
|
*
|
|
2528
|
-
* @remarks
|
|
2529
|
-
* You cannot delete a scaling configuration in one of the following scenarios:
|
|
2530
|
-
* * The scaling configuration in your scaling group is in the Active state.
|
|
2531
|
-
* * The scaling group contains ECS instances that were created based on the scaling configuration.
|
|
2532
|
-
*
|
|
2533
2379
|
* @param request - DeleteScalingConfigurationRequest
|
|
2534
2380
|
* @returns DeleteScalingConfigurationResponse
|
|
2535
2381
|
*/
|
|
@@ -2540,18 +2386,6 @@ class Client extends openapi_core_1.default {
|
|
|
2540
2386
|
/**
|
|
2541
2387
|
* Deletes a scaling group. If you want to enable policy-based automatic addition or removal of instances of a specific type to meet evolving business requirements, you can create scaling groups to manage your computing power with ease. The computing power refers to the instances that provide the computing capability. If you no longer require a scaling group, you can call the DeleteScalingGroup operation to delete it to free up the scaling group quota.
|
|
2542
2388
|
*
|
|
2543
|
-
* @remarks
|
|
2544
|
-
* Before you call the DeleteScalingGroup operation, take note of the following items:
|
|
2545
|
-
* * If you delete a scaling group, the scaling configurations, scaling rules, scaling activities, and scaling requests related to the scaling group are also deleted.
|
|
2546
|
-
* * If you delete a scaling group, the scheduled tasks and event-triggered tasks of the scaling group are not deleted. The Server Load Balancer (SLB) instances and ApsaraDB RDS instances that are attached to the scaling group are also not deleted.
|
|
2547
|
-
* * If the scaling group that you want to delete contains ECS instances or elastic container instances that are in the In Service state, Auto Scaling stops the instances and then removes all manually added instances from the scaling group or releases all automatically created instances in the scaling group before the scaling group is deleted.
|
|
2548
|
-
* **
|
|
2549
|
-
* **Note** Before you delete a scaling group, make sure that the Deletion Protection feature is disabled. If you have enabled the Deletion Protection feature for a scaling group, disable the feature on the Modify Scaling Group page before you delete the scaling group.
|
|
2550
|
-
* * If you do not disable the Deletion Protection feature for a scaling group, you cannot delete the scaling group by using the Auto Scaling console or calling this operation. The Deletion Protection feature is an effective measure to safeguard scaling groups against unintended deletion.
|
|
2551
|
-
* * Prior to deleting a scaling group, make sure that your ECS instances within the scaling group are safeguarded against unintended release. Even if you have already enabled the Release Protection feature for the ECS instances, you must manually put these ECS instances into the Protected state. Doing so guarantees that the ECS instances will not be forcibly released during the deletion process of the scaling group, providing an extra layer of security.
|
|
2552
|
-
* **
|
|
2553
|
-
* **Note** Before you delete a scaling group, we recommend that you enable the Deletion Protection feature for ECS instances that you want to retain. This action guarantees that the ECS instances are not forcibly released after you delete the scaling group. For more information, see [SetInstancesProtection](https://help.aliyun.com/document_detail/459342.html).
|
|
2554
|
-
*
|
|
2555
2389
|
* @param request - DeleteScalingGroupRequest
|
|
2556
2390
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2557
2391
|
* @returns DeleteScalingGroupResponse
|
|
@@ -2596,18 +2430,6 @@ class Client extends openapi_core_1.default {
|
|
|
2596
2430
|
/**
|
|
2597
2431
|
* Deletes a scaling group. If you want to enable policy-based automatic addition or removal of instances of a specific type to meet evolving business requirements, you can create scaling groups to manage your computing power with ease. The computing power refers to the instances that provide the computing capability. If you no longer require a scaling group, you can call the DeleteScalingGroup operation to delete it to free up the scaling group quota.
|
|
2598
2432
|
*
|
|
2599
|
-
* @remarks
|
|
2600
|
-
* Before you call the DeleteScalingGroup operation, take note of the following items:
|
|
2601
|
-
* * If you delete a scaling group, the scaling configurations, scaling rules, scaling activities, and scaling requests related to the scaling group are also deleted.
|
|
2602
|
-
* * If you delete a scaling group, the scheduled tasks and event-triggered tasks of the scaling group are not deleted. The Server Load Balancer (SLB) instances and ApsaraDB RDS instances that are attached to the scaling group are also not deleted.
|
|
2603
|
-
* * If the scaling group that you want to delete contains ECS instances or elastic container instances that are in the In Service state, Auto Scaling stops the instances and then removes all manually added instances from the scaling group or releases all automatically created instances in the scaling group before the scaling group is deleted.
|
|
2604
|
-
* **
|
|
2605
|
-
* **Note** Before you delete a scaling group, make sure that the Deletion Protection feature is disabled. If you have enabled the Deletion Protection feature for a scaling group, disable the feature on the Modify Scaling Group page before you delete the scaling group.
|
|
2606
|
-
* * If you do not disable the Deletion Protection feature for a scaling group, you cannot delete the scaling group by using the Auto Scaling console or calling this operation. The Deletion Protection feature is an effective measure to safeguard scaling groups against unintended deletion.
|
|
2607
|
-
* * Prior to deleting a scaling group, make sure that your ECS instances within the scaling group are safeguarded against unintended release. Even if you have already enabled the Release Protection feature for the ECS instances, you must manually put these ECS instances into the Protected state. Doing so guarantees that the ECS instances will not be forcibly released during the deletion process of the scaling group, providing an extra layer of security.
|
|
2608
|
-
* **
|
|
2609
|
-
* **Note** Before you delete a scaling group, we recommend that you enable the Deletion Protection feature for ECS instances that you want to retain. This action guarantees that the ECS instances are not forcibly released after you delete the scaling group. For more information, see [SetInstancesProtection](https://help.aliyun.com/document_detail/459342.html).
|
|
2610
|
-
*
|
|
2611
2433
|
* @param request - DeleteScalingGroupRequest
|
|
2612
2434
|
* @returns DeleteScalingGroupResponse
|
|
2613
2435
|
*/
|
|
@@ -2835,7 +2657,7 @@ class Client extends openapi_core_1.default {
|
|
|
2835
2657
|
return await this.describeAlertConfigurationWithOptions(request, runtime);
|
|
2836
2658
|
}
|
|
2837
2659
|
/**
|
|
2838
|
-
*
|
|
2660
|
+
* Lists candidate instance types.
|
|
2839
2661
|
*
|
|
2840
2662
|
* @param request - DescribeCandidateInstanceTypeRequest
|
|
2841
2663
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2909,7 +2731,7 @@ class Client extends openapi_core_1.default {
|
|
|
2909
2731
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeCandidateInstanceTypeResponse({}));
|
|
2910
2732
|
}
|
|
2911
2733
|
/**
|
|
2912
|
-
*
|
|
2734
|
+
* Lists candidate instance types.
|
|
2913
2735
|
*
|
|
2914
2736
|
* @param request - DescribeCandidateInstanceTypeRequest
|
|
2915
2737
|
* @returns DescribeCandidateInstanceTypeResponse
|
|
@@ -2919,7 +2741,7 @@ class Client extends openapi_core_1.default {
|
|
|
2919
2741
|
return await this.describeCandidateInstanceTypeWithOptions(request, runtime);
|
|
2920
2742
|
}
|
|
2921
2743
|
/**
|
|
2922
|
-
*
|
|
2744
|
+
* DescribeDiagnoseReports
|
|
2923
2745
|
*
|
|
2924
2746
|
* @param request - DescribeDiagnoseReportsRequest
|
|
2925
2747
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2945,7 +2767,7 @@ class Client extends openapi_core_1.default {
|
|
|
2945
2767
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeDiagnoseReportsResponse({}));
|
|
2946
2768
|
}
|
|
2947
2769
|
/**
|
|
2948
|
-
*
|
|
2770
|
+
* DescribeDiagnoseReports
|
|
2949
2771
|
*
|
|
2950
2772
|
* @param request - DescribeDiagnoseReportsRequest
|
|
2951
2773
|
* @returns DescribeDiagnoseReportsResponse
|
|
@@ -3069,7 +2891,7 @@ class Client extends openapi_core_1.default {
|
|
|
3069
2891
|
return await this.describeEciScalingConfigurationsWithOptions(request, runtime);
|
|
3070
2892
|
}
|
|
3071
2893
|
/**
|
|
3072
|
-
*
|
|
2894
|
+
* A scaling group\\"s configuration is key to successful scale-outs. Auto Scaling uses elasticity strength to quantify the effectiveness of a Scaling Configuration, helping you make targeted optimizations.
|
|
3073
2895
|
*
|
|
3074
2896
|
* @param request - DescribeElasticStrengthRequest
|
|
3075
2897
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3095,7 +2917,7 @@ class Client extends openapi_core_1.default {
|
|
|
3095
2917
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeElasticStrengthResponse({}));
|
|
3096
2918
|
}
|
|
3097
2919
|
/**
|
|
3098
|
-
*
|
|
2920
|
+
* A scaling group\\"s configuration is key to successful scale-outs. Auto Scaling uses elasticity strength to quantify the effectiveness of a Scaling Configuration, helping you make targeted optimizations.
|
|
3099
2921
|
*
|
|
3100
2922
|
* @param request - DescribeElasticStrengthRequest
|
|
3101
2923
|
* @returns DescribeElasticStrengthResponse
|
|
@@ -3162,7 +2984,7 @@ class Client extends openapi_core_1.default {
|
|
|
3162
2984
|
return await this.describeInstanceCreateAndDeleteStatisticsWithOptions(request, runtime);
|
|
3163
2985
|
}
|
|
3164
2986
|
/**
|
|
3165
|
-
* Queries instance refresh tasks.
|
|
2987
|
+
* Queries instance refresh tasks for a scaling group. You can call this operation to view basic information and progress of instance refresh tasks.
|
|
3166
2988
|
*
|
|
3167
2989
|
* @param request - DescribeInstanceRefreshesRequest
|
|
3168
2990
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3215,7 +3037,7 @@ class Client extends openapi_core_1.default {
|
|
|
3215
3037
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeInstanceRefreshesResponse({}));
|
|
3216
3038
|
}
|
|
3217
3039
|
/**
|
|
3218
|
-
* Queries instance refresh tasks.
|
|
3040
|
+
* Queries instance refresh tasks for a scaling group. You can call this operation to view basic information and progress of instance refresh tasks.
|
|
3219
3041
|
*
|
|
3220
3042
|
* @param request - DescribeInstanceRefreshesRequest
|
|
3221
3043
|
* @returns DescribeInstanceRefreshesResponse
|
|
@@ -3227,13 +3049,6 @@ class Client extends openapi_core_1.default {
|
|
|
3227
3049
|
/**
|
|
3228
3050
|
* Queries lifecycle hook actions. When you call the DescribeLifecycleActions operation, you can specify parameters such as ScalingActivityId, NextToken, and MaxResults to query the details such as the action status and ID of a lifecycle hook. You can also call this operation to query the IDs of Elastic Compute Service (ECS) instances on which the lifecycle hook takes effect.
|
|
3229
3051
|
*
|
|
3230
|
-
* @remarks
|
|
3231
|
-
* If a scaling activity is executed and a lifecycle hook is created for the scaling activity, the lifecycle hook triggers a lifecycle action. A lifecycle action can be in one of the following states:
|
|
3232
|
-
* * If a lifecycle action is in the Pending state, Elastic Compute Service (ECS) instances are waiting to be added to a scaling group or waiting to be removed from a scaling group.
|
|
3233
|
-
* * If a lifecycle action is in the Timeout state, the lifecycle hook that triggers the lifecycle action expires and ECS instances are added to or removed from a scaling group.
|
|
3234
|
-
* * If a lifecycle action is in the Completed state, you manually end the lifecycle hook that triggers the lifecycle action ahead of schedule.
|
|
3235
|
-
* If you do not specify the action to perform, such as execute a specific OOS template, after a lifecycle hook ends, you can call this operation to obtain the token of the lifecycle action that corresponds to the lifecycle hook. Then, you can specify a custom action to perform after the lifecycle hook ends.
|
|
3236
|
-
*
|
|
3237
3052
|
* @param request - DescribeLifecycleActionsRequest
|
|
3238
3053
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
3239
3054
|
* @returns DescribeLifecycleActionsResponse
|
|
@@ -3281,13 +3096,6 @@ class Client extends openapi_core_1.default {
|
|
|
3281
3096
|
/**
|
|
3282
3097
|
* Queries lifecycle hook actions. When you call the DescribeLifecycleActions operation, you can specify parameters such as ScalingActivityId, NextToken, and MaxResults to query the details such as the action status and ID of a lifecycle hook. You can also call this operation to query the IDs of Elastic Compute Service (ECS) instances on which the lifecycle hook takes effect.
|
|
3283
3098
|
*
|
|
3284
|
-
* @remarks
|
|
3285
|
-
* If a scaling activity is executed and a lifecycle hook is created for the scaling activity, the lifecycle hook triggers a lifecycle action. A lifecycle action can be in one of the following states:
|
|
3286
|
-
* * If a lifecycle action is in the Pending state, Elastic Compute Service (ECS) instances are waiting to be added to a scaling group or waiting to be removed from a scaling group.
|
|
3287
|
-
* * If a lifecycle action is in the Timeout state, the lifecycle hook that triggers the lifecycle action expires and ECS instances are added to or removed from a scaling group.
|
|
3288
|
-
* * If a lifecycle action is in the Completed state, you manually end the lifecycle hook that triggers the lifecycle action ahead of schedule.
|
|
3289
|
-
* If you do not specify the action to perform, such as execute a specific OOS template, after a lifecycle hook ends, you can call this operation to obtain the token of the lifecycle action that corresponds to the lifecycle hook. Then, you can specify a custom action to perform after the lifecycle hook ends.
|
|
3290
|
-
*
|
|
3291
3099
|
* @param request - DescribeLifecycleActionsRequest
|
|
3292
3100
|
* @returns DescribeLifecycleActionsResponse
|
|
3293
3101
|
*/
|
|
@@ -3298,12 +3106,6 @@ class Client extends openapi_core_1.default {
|
|
|
3298
3106
|
/**
|
|
3299
3107
|
* Queries lifecycle hooks. When you call this operation, you can specify the lifecycle hook ID or scaling group ID to query the details of the desired lifecycle hook, such as the default action after the lifecycle hook times out, scaling activity that corresponds to the lifecycle hook, Alibaba Cloud Resource Name (ARN) of the notification recipient, and effective period of the lifecycle hook.
|
|
3300
3108
|
*
|
|
3301
|
-
* @remarks
|
|
3302
|
-
* You can use one of the following methods to query lifecycle hooks:
|
|
3303
|
-
* * Specify a list of lifecycle hook IDs by using the LifecycleHookIds parameter. In this case, you do not need to specify the ScalingGroupId and LifecycleHookName parameters.
|
|
3304
|
-
* * Specify the scaling group ID by using the ScalingGroupId parameter.
|
|
3305
|
-
* * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
|
|
3306
|
-
*
|
|
3307
3109
|
* @param request - DescribeLifecycleHooksRequest
|
|
3308
3110
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
3309
3111
|
* @returns DescribeLifecycleHooksResponse
|
|
@@ -3357,12 +3159,6 @@ class Client extends openapi_core_1.default {
|
|
|
3357
3159
|
/**
|
|
3358
3160
|
* Queries lifecycle hooks. When you call this operation, you can specify the lifecycle hook ID or scaling group ID to query the details of the desired lifecycle hook, such as the default action after the lifecycle hook times out, scaling activity that corresponds to the lifecycle hook, Alibaba Cloud Resource Name (ARN) of the notification recipient, and effective period of the lifecycle hook.
|
|
3359
3161
|
*
|
|
3360
|
-
* @remarks
|
|
3361
|
-
* You can use one of the following methods to query lifecycle hooks:
|
|
3362
|
-
* * Specify a list of lifecycle hook IDs by using the LifecycleHookIds parameter. In this case, you do not need to specify the ScalingGroupId and LifecycleHookName parameters.
|
|
3363
|
-
* * Specify the scaling group ID by using the ScalingGroupId parameter.
|
|
3364
|
-
* * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
|
|
3365
|
-
*
|
|
3366
3162
|
* @param request - DescribeLifecycleHooksRequest
|
|
3367
3163
|
* @returns DescribeLifecycleHooksResponse
|
|
3368
3164
|
*/
|
|
@@ -3589,11 +3385,6 @@ class Client extends openapi_core_1.default {
|
|
|
3589
3385
|
/**
|
|
3590
3386
|
* Queries scaling activities. You can call the DescribeScalingActivities operation to query the results of scaling activities triggered by scheduled tasks, event-triggered tasks, or manual execution of scaling rules. For example, you can query the status and cause of a scaling activity. You can also query the total number of instances after a scaling activity is complete.
|
|
3591
3387
|
*
|
|
3592
|
-
* @remarks
|
|
3593
|
-
* You can query all scaling activities in a scaling group by specifying ScalingGroupId.
|
|
3594
|
-
* * You can filter query results based on the status of scaling activities.
|
|
3595
|
-
* * You can query scaling activities within the last 30 days.
|
|
3596
|
-
*
|
|
3597
3388
|
* @param request - DescribeScalingActivitiesRequest
|
|
3598
3389
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
3599
3390
|
* @returns DescribeScalingActivitiesResponse
|
|
@@ -3653,11 +3444,6 @@ class Client extends openapi_core_1.default {
|
|
|
3653
3444
|
/**
|
|
3654
3445
|
* Queries scaling activities. You can call the DescribeScalingActivities operation to query the results of scaling activities triggered by scheduled tasks, event-triggered tasks, or manual execution of scaling rules. For example, you can query the status and cause of a scaling activity. You can also query the total number of instances after a scaling activity is complete.
|
|
3655
3446
|
*
|
|
3656
|
-
* @remarks
|
|
3657
|
-
* You can query all scaling activities in a scaling group by specifying ScalingGroupId.
|
|
3658
|
-
* * You can filter query results based on the status of scaling activities.
|
|
3659
|
-
* * You can query scaling activities within the last 30 days.
|
|
3660
|
-
*
|
|
3661
3447
|
* @param request - DescribeScalingActivitiesRequest
|
|
3662
3448
|
* @returns DescribeScalingActivitiesResponse
|
|
3663
3449
|
*/
|
|
@@ -3774,7 +3560,7 @@ class Client extends openapi_core_1.default {
|
|
|
3774
3560
|
return await this.describeScalingActivityStatisticsWithOptions(request, runtime);
|
|
3775
3561
|
}
|
|
3776
3562
|
/**
|
|
3777
|
-
*
|
|
3563
|
+
* You can call the DescribeScalingConfigurations API to query information about ECS-type scaling configurations, including instance type and image details. This helps you understand the ECS instance template used during scale-out operations.
|
|
3778
3564
|
*
|
|
3779
3565
|
* @param request - DescribeScalingConfigurationsRequest
|
|
3780
3566
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3830,7 +3616,7 @@ class Client extends openapi_core_1.default {
|
|
|
3830
3616
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeScalingConfigurationsResponse({}));
|
|
3831
3617
|
}
|
|
3832
3618
|
/**
|
|
3833
|
-
*
|
|
3619
|
+
* You can call the DescribeScalingConfigurations API to query information about ECS-type scaling configurations, including instance type and image details. This helps you understand the ECS instance template used during scale-out operations.
|
|
3834
3620
|
*
|
|
3835
3621
|
* @param request - DescribeScalingConfigurationsRequest
|
|
3836
3622
|
* @returns DescribeScalingConfigurationsResponse
|
|
@@ -3999,7 +3785,7 @@ class Client extends openapi_core_1.default {
|
|
|
3999
3785
|
return await this.describeScalingGroupsWithOptions(request, runtime);
|
|
4000
3786
|
}
|
|
4001
3787
|
/**
|
|
4002
|
-
*
|
|
3788
|
+
* Calls DescribeScalingInstances to query the list and information of ECS instances in a scaling group by scaling group ID, including the total number of running spot instances, the total number of ECS instances, the warmup state of ECS instances, and the lifecycle state in the current scaling group. You can also filter ECS instances by health check status, lifecycle state, or creation type.
|
|
4003
3789
|
*
|
|
4004
3790
|
* @param request - DescribeScalingInstancesRequest
|
|
4005
3791
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4073,7 +3859,7 @@ class Client extends openapi_core_1.default {
|
|
|
4073
3859
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeScalingInstancesResponse({}));
|
|
4074
3860
|
}
|
|
4075
3861
|
/**
|
|
4076
|
-
*
|
|
3862
|
+
* Calls DescribeScalingInstances to query the list and information of ECS instances in a scaling group by scaling group ID, including the total number of running spot instances, the total number of ECS instances, the warmup state of ECS instances, and the lifecycle state in the current scaling group. You can also filter ECS instances by health check status, lifecycle state, or creation type.
|
|
4077
3863
|
*
|
|
4078
3864
|
* @param request - DescribeScalingInstancesRequest
|
|
4079
3865
|
* @returns DescribeScalingInstancesResponse
|
|
@@ -4085,9 +3871,6 @@ class Client extends openapi_core_1.default {
|
|
|
4085
3871
|
/**
|
|
4086
3872
|
* Queries scaling rules. When you call this operation, you can specify the ID, name, or Alibaba Cloud Resource Name (ARN) of a scaling rule to query the details of the scaling rule. For example, you can query the adjustment method, instance warm-up period, and associated event-triggered tasks of the desired scaling rule.
|
|
4087
3873
|
*
|
|
4088
|
-
* @remarks
|
|
4089
|
-
* You can specify a scaling group ID to query all scaling rules in the scaling group. You can also specify the scaling rule ID, name, unique identifier, and type in the request parameters as filter conditions.
|
|
4090
|
-
*
|
|
4091
3874
|
* @param request - DescribeScalingRulesRequest
|
|
4092
3875
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
4093
3876
|
* @returns DescribeScalingRulesResponse
|
|
@@ -4153,9 +3936,6 @@ class Client extends openapi_core_1.default {
|
|
|
4153
3936
|
/**
|
|
4154
3937
|
* Queries scaling rules. When you call this operation, you can specify the ID, name, or Alibaba Cloud Resource Name (ARN) of a scaling rule to query the details of the scaling rule. For example, you can query the adjustment method, instance warm-up period, and associated event-triggered tasks of the desired scaling rule.
|
|
4155
3938
|
*
|
|
4156
|
-
* @remarks
|
|
4157
|
-
* You can specify a scaling group ID to query all scaling rules in the scaling group. You can also specify the scaling rule ID, name, unique identifier, and type in the request parameters as filter conditions.
|
|
4158
|
-
*
|
|
4159
3939
|
* @param request - DescribeScalingRulesRequest
|
|
4160
3940
|
* @returns DescribeScalingRulesResponse
|
|
4161
3941
|
*/
|
|
@@ -4166,9 +3946,6 @@ class Client extends openapi_core_1.default {
|
|
|
4166
3946
|
/**
|
|
4167
3947
|
* Queries scheduled tasks. A scheduled task is a predefined task that triggers the automatic execution of a scaling rule at the specified point in time. It ensures an automatic scaling of computing resources to fulfill your business demands at a minimum cost. After you create a scheduled task, you can call the DescribeScheduledTasks operation to query the details of the task, such as the execution time point and the scaling group ID. You can also call this operation to query the total number of existing scheduled tasks.
|
|
4168
3948
|
*
|
|
4169
|
-
* @remarks
|
|
4170
|
-
* You can query scheduled tasks by scaling rule, task ID, or task name.
|
|
4171
|
-
*
|
|
4172
3949
|
* @param request - DescribeScheduledTasksRequest
|
|
4173
3950
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
4174
3951
|
* @returns DescribeScheduledTasksResponse
|
|
@@ -4240,9 +4017,6 @@ class Client extends openapi_core_1.default {
|
|
|
4240
4017
|
/**
|
|
4241
4018
|
* Queries scheduled tasks. A scheduled task is a predefined task that triggers the automatic execution of a scaling rule at the specified point in time. It ensures an automatic scaling of computing resources to fulfill your business demands at a minimum cost. After you create a scheduled task, you can call the DescribeScheduledTasks operation to query the details of the task, such as the execution time point and the scaling group ID. You can also call this operation to query the total number of existing scheduled tasks.
|
|
4242
4019
|
*
|
|
4243
|
-
* @remarks
|
|
4244
|
-
* You can query scheduled tasks by scaling rule, task ID, or task name.
|
|
4245
|
-
*
|
|
4246
4020
|
* @param request - DescribeScheduledTasksRequest
|
|
4247
4021
|
* @returns DescribeScheduledTasksResponse
|
|
4248
4022
|
*/
|
|
@@ -4370,18 +4144,6 @@ class Client extends openapi_core_1.default {
|
|
|
4370
4144
|
/**
|
|
4371
4145
|
* Removes instances from a scaling group. If an enabled scaling group has no ongoing scaling activities, you can call the DetachInstances operation to remove one or more Elastic Compute Service (ECS) instances, elastic container instances, or Alibaba Cloud-hosted third-party instances from the scaling group.
|
|
4372
4146
|
*
|
|
4373
|
-
* @remarks
|
|
4374
|
-
* Before you call the DetachInstances operation, make sure that the following conditions are met:
|
|
4375
|
-
* * The specified scaling group is enabled.
|
|
4376
|
-
* * The specified scaling group does not have any ongoing scaling activities.
|
|
4377
|
-
* **
|
|
4378
|
-
* **Note** If the specified scaling group does not have any ongoing scaling activities, the operation can bypass the cooldown period of the scaling group and immediately trigger scaling activities.
|
|
4379
|
-
* * Before you call this operation, take note of the following items:
|
|
4380
|
-
* * The ECS instances, elastic container instances, or Alibaba Cloud-hosted third-party instances that are removed from a scaling group by using this operation can run independently. If needed, you can call the [AttachInstances](https://help.aliyun.com/document_detail/25954.html) operation to re-add these instances to a scaling group.
|
|
4381
|
-
* * The ECS instances, elastic container instances, or Alibaba Cloud-hosted third-party instances that are removed from a scaling group by using this operation are not stopped or released.
|
|
4382
|
-
* * A successful call only means that Auto Scaling accepts your request. Scaling activities can be triggered as expected, but their successful execution is not guaranteed. You can query the status of a scaling activity based on the ScalingActivityId response parameter.
|
|
4383
|
-
* * The removal of ECS instances, elastic container instances, or Alibaba Cloud-hosted third-party instances must not result in the overall number of instances within the specified scaling group falling below the minimum capacity threshold (MinSize); otherwise, an error will be reported.
|
|
4384
|
-
*
|
|
4385
4147
|
* @param request - DetachInstancesRequest
|
|
4386
4148
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
4387
4149
|
* @returns DetachInstancesResponse
|
|
@@ -4441,18 +4203,6 @@ class Client extends openapi_core_1.default {
|
|
|
4441
4203
|
/**
|
|
4442
4204
|
* Removes instances from a scaling group. If an enabled scaling group has no ongoing scaling activities, you can call the DetachInstances operation to remove one or more Elastic Compute Service (ECS) instances, elastic container instances, or Alibaba Cloud-hosted third-party instances from the scaling group.
|
|
4443
4205
|
*
|
|
4444
|
-
* @remarks
|
|
4445
|
-
* Before you call the DetachInstances operation, make sure that the following conditions are met:
|
|
4446
|
-
* * The specified scaling group is enabled.
|
|
4447
|
-
* * The specified scaling group does not have any ongoing scaling activities.
|
|
4448
|
-
* **
|
|
4449
|
-
* **Note** If the specified scaling group does not have any ongoing scaling activities, the operation can bypass the cooldown period of the scaling group and immediately trigger scaling activities.
|
|
4450
|
-
* * Before you call this operation, take note of the following items:
|
|
4451
|
-
* * The ECS instances, elastic container instances, or Alibaba Cloud-hosted third-party instances that are removed from a scaling group by using this operation can run independently. If needed, you can call the [AttachInstances](https://help.aliyun.com/document_detail/25954.html) operation to re-add these instances to a scaling group.
|
|
4452
|
-
* * The ECS instances, elastic container instances, or Alibaba Cloud-hosted third-party instances that are removed from a scaling group by using this operation are not stopped or released.
|
|
4453
|
-
* * A successful call only means that Auto Scaling accepts your request. Scaling activities can be triggered as expected, but their successful execution is not guaranteed. You can query the status of a scaling activity based on the ScalingActivityId response parameter.
|
|
4454
|
-
* * The removal of ECS instances, elastic container instances, or Alibaba Cloud-hosted third-party instances must not result in the overall number of instances within the specified scaling group falling below the minimum capacity threshold (MinSize); otherwise, an error will be reported.
|
|
4455
|
-
*
|
|
4456
4206
|
* @param request - DetachInstancesRequest
|
|
4457
4207
|
* @returns DetachInstancesResponse
|
|
4458
4208
|
*/
|
|
@@ -4580,14 +4330,6 @@ class Client extends openapi_core_1.default {
|
|
|
4580
4330
|
/**
|
|
4581
4331
|
* Detaches vServer groups from a scaling group. Auto Scaling supports the attachment of load balancers to scaling groups to improve service performance. If the load balancer currently attached to your scaling group is no longer needed to distribute the access traffic to the instances in your scaling group, you can call the DetachVServerGroups operation to detach one or more vServer groups of this load balancer from the scaling group.
|
|
4582
4332
|
*
|
|
4583
|
-
* @remarks
|
|
4584
|
-
* When you call the DetachVServerGroups operation, you must use the following parameters to specify the vServer groups that you want to detach from your scaling group:
|
|
4585
|
-
* * LoadBalancerId: the ID of the load balancer
|
|
4586
|
-
* * VServerGroupId: the ID of the vServer group
|
|
4587
|
-
* * Port: the port number of the vServer group
|
|
4588
|
-
* * When the vServer group specified by the request parameters matches that attached to your scaling group, this operation yields a favorable result. Otherwise, the request is ignored and no error is reported.
|
|
4589
|
-
* * Before you call this operation, you must make sure that the load balancer has ceased routing the access traffic to the instances in the scaling group. Failure to do so may lead to service requests being dropped or lost during the detachment process.
|
|
4590
|
-
*
|
|
4591
4333
|
* @param request - DetachVServerGroupsRequest
|
|
4592
4334
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
4593
4335
|
* @returns DetachVServerGroupsResponse
|
|
@@ -4635,14 +4377,6 @@ class Client extends openapi_core_1.default {
|
|
|
4635
4377
|
/**
|
|
4636
4378
|
* Detaches vServer groups from a scaling group. Auto Scaling supports the attachment of load balancers to scaling groups to improve service performance. If the load balancer currently attached to your scaling group is no longer needed to distribute the access traffic to the instances in your scaling group, you can call the DetachVServerGroups operation to detach one or more vServer groups of this load balancer from the scaling group.
|
|
4637
4379
|
*
|
|
4638
|
-
* @remarks
|
|
4639
|
-
* When you call the DetachVServerGroups operation, you must use the following parameters to specify the vServer groups that you want to detach from your scaling group:
|
|
4640
|
-
* * LoadBalancerId: the ID of the load balancer
|
|
4641
|
-
* * VServerGroupId: the ID of the vServer group
|
|
4642
|
-
* * Port: the port number of the vServer group
|
|
4643
|
-
* * When the vServer group specified by the request parameters matches that attached to your scaling group, this operation yields a favorable result. Otherwise, the request is ignored and no error is reported.
|
|
4644
|
-
* * Before you call this operation, you must make sure that the load balancer has ceased routing the access traffic to the instances in the scaling group. Failure to do so may lead to service requests being dropped or lost during the detachment process.
|
|
4645
|
-
*
|
|
4646
4380
|
* @param request - DetachVServerGroupsRequest
|
|
4647
4381
|
* @returns DetachVServerGroupsResponse
|
|
4648
4382
|
*/
|
|
@@ -4653,9 +4387,6 @@ class Client extends openapi_core_1.default {
|
|
|
4653
4387
|
/**
|
|
4654
4388
|
* Disables an event-triggered task. If your business pattern is unpredictable or prone to unforeseen traffic spikes, you can create event-triggered tasks by associating CloudMonitor metrics to effectively monitor fluctuations in your business workload. Upon detecting that the criteria for alerts, as specified in event-triggered tasks, are fulfilled, Auto Scaling promptly issues alerts and executes the scaling rules predefined within those tasks. This process occurs within the predefined effective time windows of the tasks, thereby facilitating the automatic increase or decrease of Elastic Compute Service (ECS) instances or elastic container instances within your scaling groups. Ultimately, this mechanism ensures the dynamic optimization of resources based on real-time workload demands. If you currently do not need an event-triggered task, you can call the DisableAlarm operation to disable it.
|
|
4655
4389
|
*
|
|
4656
|
-
* @remarks
|
|
4657
|
-
* Before you disable an event-triggered task, make sure that the task is in the `Normal`, `Alert`, or `Insufficient Data` state.
|
|
4658
|
-
*
|
|
4659
4390
|
* @param request - DisableAlarmRequest
|
|
4660
4391
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
4661
4392
|
* @returns DisableAlarmResponse
|
|
@@ -4694,9 +4425,6 @@ class Client extends openapi_core_1.default {
|
|
|
4694
4425
|
/**
|
|
4695
4426
|
* Disables an event-triggered task. If your business pattern is unpredictable or prone to unforeseen traffic spikes, you can create event-triggered tasks by associating CloudMonitor metrics to effectively monitor fluctuations in your business workload. Upon detecting that the criteria for alerts, as specified in event-triggered tasks, are fulfilled, Auto Scaling promptly issues alerts and executes the scaling rules predefined within those tasks. This process occurs within the predefined effective time windows of the tasks, thereby facilitating the automatic increase or decrease of Elastic Compute Service (ECS) instances or elastic container instances within your scaling groups. Ultimately, this mechanism ensures the dynamic optimization of resources based on real-time workload demands. If you currently do not need an event-triggered task, you can call the DisableAlarm operation to disable it.
|
|
4696
4427
|
*
|
|
4697
|
-
* @remarks
|
|
4698
|
-
* Before you disable an event-triggered task, make sure that the task is in the `Normal`, `Alert`, or `Insufficient Data` state.
|
|
4699
|
-
*
|
|
4700
4428
|
* @param request - DisableAlarmRequest
|
|
4701
4429
|
* @returns DisableAlarmResponse
|
|
4702
4430
|
*/
|
|
@@ -4707,11 +4435,6 @@ class Client extends openapi_core_1.default {
|
|
|
4707
4435
|
/**
|
|
4708
4436
|
* Disables a scaling group. If you temporarily do not require a scaling group that is in the Enabled state, you can call the DisableScalingGroup operation to disable it.
|
|
4709
4437
|
*
|
|
4710
|
-
* @remarks
|
|
4711
|
-
* Before you call this operation to disable a scaling group, take note of the following items:
|
|
4712
|
-
* * If scaling activities are being executed in the specified scaling group when you call this operation, these activities will continue until they are complete. However, scaling activities that are triggered after this operation is called will be rejected.
|
|
4713
|
-
* * This operation can be called only when the scaling group is in the Active state.
|
|
4714
|
-
*
|
|
4715
4438
|
* @param request - DisableScalingGroupRequest
|
|
4716
4439
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
4717
4440
|
* @returns DisableScalingGroupResponse
|
|
@@ -4753,11 +4476,6 @@ class Client extends openapi_core_1.default {
|
|
|
4753
4476
|
/**
|
|
4754
4477
|
* Disables a scaling group. If you temporarily do not require a scaling group that is in the Enabled state, you can call the DisableScalingGroup operation to disable it.
|
|
4755
4478
|
*
|
|
4756
|
-
* @remarks
|
|
4757
|
-
* Before you call this operation to disable a scaling group, take note of the following items:
|
|
4758
|
-
* * If scaling activities are being executed in the specified scaling group when you call this operation, these activities will continue until they are complete. However, scaling activities that are triggered after this operation is called will be rejected.
|
|
4759
|
-
* * This operation can be called only when the scaling group is in the Active state.
|
|
4760
|
-
*
|
|
4761
4479
|
* @param request - DisableScalingGroupRequest
|
|
4762
4480
|
* @returns DisableScalingGroupResponse
|
|
4763
4481
|
*/
|
|
@@ -4816,14 +4534,6 @@ class Client extends openapi_core_1.default {
|
|
|
4816
4534
|
/**
|
|
4817
4535
|
* Enables a scaling group. If a scaling group is in the Disabled state and contains an instance configuration source such as a launch template or a scaling configuration, you can call the EnableScalingGroup operation to enable the scaling group. This operation permits Auto Scaling to dynamically adjust the computing power (also known as the number of instances) in the scaling group based on your business requirements.
|
|
4818
4536
|
*
|
|
4819
|
-
* @remarks
|
|
4820
|
-
* You can call this operation to enable a scaling group only if the scaling group is in the Inactive state and contains an instance configuration source such as a launch temple or a scaling configuration. The instance configuration source can also be the Elastic Compute Service (ECS) instance that you specified when you created the scaling group. If the preceding requirements are not met, the operation will fail.
|
|
4821
|
-
* **
|
|
4822
|
-
* **Note** A scaling group can have only one active instance configuration source at a time. When you call this operation to enable a scaling group, you can specify a scaling configuration or a launch template for the scaling group. If the scaling group already have an instance configuration source defined prior to your calling, the scaling configuration or launch template specified within your request will supersede the existing scaling configuration or launch template.
|
|
4823
|
-
* * If you specify InstanceId.N to add to the scaling group within your request, Auto Scaling will check whether the addition of InstanceId.N will cause the total number of ECS instances in the scaling group to fall outside the boundaries specified by MinSize and MaxSize after you call this operation.
|
|
4824
|
-
* * If the call results in the total number of ECS instances dropping below the value of MinSize, Auto Scaling proactively creates pay-as-you-go ECS instances to ensure that the total number reaches the minimum threshold. For example, if you set MinSize to 5 when you created a scaling group and include InstanceId.N within your request to add two ECS instances when you attempt to enable the scaling group, Auto Scaling creates three more ECS instances in the scaling group after the two ECS instances are added.
|
|
4825
|
-
* * If the call results in the total number of ECS instances exceeding the value of MaxSize, the operation fails.
|
|
4826
|
-
*
|
|
4827
4537
|
* @param request - EnableScalingGroupRequest
|
|
4828
4538
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
4829
4539
|
* @returns EnableScalingGroupResponse
|
|
@@ -4886,14 +4596,6 @@ class Client extends openapi_core_1.default {
|
|
|
4886
4596
|
/**
|
|
4887
4597
|
* Enables a scaling group. If a scaling group is in the Disabled state and contains an instance configuration source such as a launch template or a scaling configuration, you can call the EnableScalingGroup operation to enable the scaling group. This operation permits Auto Scaling to dynamically adjust the computing power (also known as the number of instances) in the scaling group based on your business requirements.
|
|
4888
4598
|
*
|
|
4889
|
-
* @remarks
|
|
4890
|
-
* You can call this operation to enable a scaling group only if the scaling group is in the Inactive state and contains an instance configuration source such as a launch temple or a scaling configuration. The instance configuration source can also be the Elastic Compute Service (ECS) instance that you specified when you created the scaling group. If the preceding requirements are not met, the operation will fail.
|
|
4891
|
-
* **
|
|
4892
|
-
* **Note** A scaling group can have only one active instance configuration source at a time. When you call this operation to enable a scaling group, you can specify a scaling configuration or a launch template for the scaling group. If the scaling group already have an instance configuration source defined prior to your calling, the scaling configuration or launch template specified within your request will supersede the existing scaling configuration or launch template.
|
|
4893
|
-
* * If you specify InstanceId.N to add to the scaling group within your request, Auto Scaling will check whether the addition of InstanceId.N will cause the total number of ECS instances in the scaling group to fall outside the boundaries specified by MinSize and MaxSize after you call this operation.
|
|
4894
|
-
* * If the call results in the total number of ECS instances dropping below the value of MinSize, Auto Scaling proactively creates pay-as-you-go ECS instances to ensure that the total number reaches the minimum threshold. For example, if you set MinSize to 5 when you created a scaling group and include InstanceId.N within your request to add two ECS instances when you attempt to enable the scaling group, Auto Scaling creates three more ECS instances in the scaling group after the two ECS instances are added.
|
|
4895
|
-
* * If the call results in the total number of ECS instances exceeding the value of MaxSize, the operation fails.
|
|
4896
|
-
*
|
|
4897
4599
|
* @param request - EnableScalingGroupRequest
|
|
4898
4600
|
* @returns EnableScalingGroupResponse
|
|
4899
4601
|
*/
|
|
@@ -4904,13 +4606,6 @@ class Client extends openapi_core_1.default {
|
|
|
4904
4606
|
/**
|
|
4905
4607
|
* Puts an Elastic Compute Service (ECS) instance into the Standby state.
|
|
4906
4608
|
*
|
|
4907
|
-
* @remarks
|
|
4908
|
-
* ## Description
|
|
4909
|
-
* * If you call the operation to put an ECS instance in a scaling group that is associated with a Classic Load Balancer (CLB) instance into the Standby state, the weight of the ECS instance as a backend server of the CLB instance is set to 0.
|
|
4910
|
-
* * You can remove an instance that is in the Standby state from a scaling group, and then release the instance.
|
|
4911
|
-
* * ECS instances that are in the Standby state are not removed from the scaling group during scale-in activities triggered by event-triggered tasks.
|
|
4912
|
-
* * If Auto Scaling considers an ECS instance that is in the Standby state unhealthy, for example, the ECS instance is being stopped or being restarted, Auto Scaling does not update the health status of the ECS instance or trigger scale-in activities to remove the ECS instance from the scaling group. Auto Scaling updates the health status of the ECS instance only when the ECS instance is no longer in the Standby state.
|
|
4913
|
-
*
|
|
4914
4609
|
* @param request - EnterStandbyRequest
|
|
4915
4610
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
4916
4611
|
* @returns EnterStandbyResponse
|
|
@@ -4955,13 +4650,6 @@ class Client extends openapi_core_1.default {
|
|
|
4955
4650
|
/**
|
|
4956
4651
|
* Puts an Elastic Compute Service (ECS) instance into the Standby state.
|
|
4957
4652
|
*
|
|
4958
|
-
* @remarks
|
|
4959
|
-
* ## Description
|
|
4960
|
-
* * If you call the operation to put an ECS instance in a scaling group that is associated with a Classic Load Balancer (CLB) instance into the Standby state, the weight of the ECS instance as a backend server of the CLB instance is set to 0.
|
|
4961
|
-
* * You can remove an instance that is in the Standby state from a scaling group, and then release the instance.
|
|
4962
|
-
* * ECS instances that are in the Standby state are not removed from the scaling group during scale-in activities triggered by event-triggered tasks.
|
|
4963
|
-
* * If Auto Scaling considers an ECS instance that is in the Standby state unhealthy, for example, the ECS instance is being stopped or being restarted, Auto Scaling does not update the health status of the ECS instance or trigger scale-in activities to remove the ECS instance from the scaling group. Auto Scaling updates the health status of the ECS instance only when the ECS instance is no longer in the Standby state.
|
|
4964
|
-
*
|
|
4965
4653
|
* @param request - EnterStandbyRequest
|
|
4966
4654
|
* @returns EnterStandbyResponse
|
|
4967
4655
|
*/
|
|
@@ -4972,16 +4660,6 @@ class Client extends openapi_core_1.default {
|
|
|
4972
4660
|
/**
|
|
4973
4661
|
* Executes a scaling rule. To adjust the number of Elastic Compute Service (ECS) instances or elastic container instances, you can manually execute a scaling rule or enable Auto Scaling to execute a scaling rule. You can call the ExecuteScalingRule operation to execute simple scaling rules or step scaling rules. Auto Scaling automatically executes target tracking scaling rules and predictive scaling rules on your behalf without requiring explicit execution calls.
|
|
4974
4662
|
*
|
|
4975
|
-
* @remarks
|
|
4976
|
-
* Before you call this operation, take note of the following items:
|
|
4977
|
-
* * The scaling group is in the Active state.
|
|
4978
|
-
* * No scaling activities in the scaling group are in progress.
|
|
4979
|
-
* If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
4980
|
-
* A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the ScalingActivityId parameter in the response.
|
|
4981
|
-
* If the addition of a specified number of Elastic Compute Service (ECS) instances to a scaling group causes the total number of ECS instances in the scaling group to exceed the maximum number of instances allowed, Auto Scaling adds only a specific number of ECS instances to ensure that the total number of instances is equal to the maximum number of instances.
|
|
4982
|
-
* If the removal of a specified number of ECS instances from a scaling group causes the total number of ECS instances in the scaling group to drop below the minimum number of instances allowed, Auto Scaling removes only a specific number of ECS instances to ensure that the total number of instances is equal to the minimum number of instances.
|
|
4983
|
-
* You can specify only a limited number of ECS instances in each adjustment. For more information, see the description of the AdjustmentValue parameter in the CreateScalingRule topic.
|
|
4984
|
-
*
|
|
4985
4663
|
* @param request - ExecuteScalingRuleRequest
|
|
4986
4664
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
4987
4665
|
* @returns ExecuteScalingRuleResponse
|
|
@@ -5035,16 +4713,6 @@ class Client extends openapi_core_1.default {
|
|
|
5035
4713
|
/**
|
|
5036
4714
|
* Executes a scaling rule. To adjust the number of Elastic Compute Service (ECS) instances or elastic container instances, you can manually execute a scaling rule or enable Auto Scaling to execute a scaling rule. You can call the ExecuteScalingRule operation to execute simple scaling rules or step scaling rules. Auto Scaling automatically executes target tracking scaling rules and predictive scaling rules on your behalf without requiring explicit execution calls.
|
|
5037
4715
|
*
|
|
5038
|
-
* @remarks
|
|
5039
|
-
* Before you call this operation, take note of the following items:
|
|
5040
|
-
* * The scaling group is in the Active state.
|
|
5041
|
-
* * No scaling activities in the scaling group are in progress.
|
|
5042
|
-
* If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
5043
|
-
* A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the ScalingActivityId parameter in the response.
|
|
5044
|
-
* If the addition of a specified number of Elastic Compute Service (ECS) instances to a scaling group causes the total number of ECS instances in the scaling group to exceed the maximum number of instances allowed, Auto Scaling adds only a specific number of ECS instances to ensure that the total number of instances is equal to the maximum number of instances.
|
|
5045
|
-
* If the removal of a specified number of ECS instances from a scaling group causes the total number of ECS instances in the scaling group to drop below the minimum number of instances allowed, Auto Scaling removes only a specific number of ECS instances to ensure that the total number of instances is equal to the minimum number of instances.
|
|
5046
|
-
* You can specify only a limited number of ECS instances in each adjustment. For more information, see the description of the AdjustmentValue parameter in the CreateScalingRule topic.
|
|
5047
|
-
*
|
|
5048
4716
|
* @param request - ExecuteScalingRuleRequest
|
|
5049
4717
|
* @returns ExecuteScalingRuleResponse
|
|
5050
4718
|
*/
|
|
@@ -5055,13 +4723,6 @@ class Client extends openapi_core_1.default {
|
|
|
5055
4723
|
/**
|
|
5056
4724
|
* Removes an instance from the Standby state. When a scale-in event is triggered in a scaling group, Auto Scaling does not remove Elastic Compute Service (ECS) instances or elastic container instances that are in the Standby state from the scaling group. If you want to restart the instances that are in the Standby state, you can call the ExitStandby operation to remove the instances from the Standby state and put them into the In Service state.
|
|
5057
4725
|
*
|
|
5058
|
-
* @remarks
|
|
5059
|
-
* After ECS instances or elastic container instances are removed from the Standby state, the following rules apply:
|
|
5060
|
-
* * The ECS instances or elastic container instances enter the In Service state.
|
|
5061
|
-
* * The default weight of each ECS instance or elastic container instance as a backend server of the attached load balancer is 50.
|
|
5062
|
-
* * If you stop or restart the ECS instances or elastic container instances, the health check status of the instances will be updated.
|
|
5063
|
-
* * When a scale-in event is triggered, Auto Scaling may remove the ECS instances or elastic container instances from the scaling group.
|
|
5064
|
-
*
|
|
5065
4726
|
* @param request - ExitStandbyRequest
|
|
5066
4727
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
5067
4728
|
* @returns ExitStandbyResponse
|
|
@@ -5109,13 +4770,6 @@ class Client extends openapi_core_1.default {
|
|
|
5109
4770
|
/**
|
|
5110
4771
|
* Removes an instance from the Standby state. When a scale-in event is triggered in a scaling group, Auto Scaling does not remove Elastic Compute Service (ECS) instances or elastic container instances that are in the Standby state from the scaling group. If you want to restart the instances that are in the Standby state, you can call the ExitStandby operation to remove the instances from the Standby state and put them into the In Service state.
|
|
5111
4772
|
*
|
|
5112
|
-
* @remarks
|
|
5113
|
-
* After ECS instances or elastic container instances are removed from the Standby state, the following rules apply:
|
|
5114
|
-
* * The ECS instances or elastic container instances enter the In Service state.
|
|
5115
|
-
* * The default weight of each ECS instance or elastic container instance as a backend server of the attached load balancer is 50.
|
|
5116
|
-
* * If you stop or restart the ECS instances or elastic container instances, the health check status of the instances will be updated.
|
|
5117
|
-
* * When a scale-in event is triggered, Auto Scaling may remove the ECS instances or elastic container instances from the scaling group.
|
|
5118
|
-
*
|
|
5119
4773
|
* @param request - ExitStandbyRequest
|
|
5120
4774
|
* @returns ExitStandbyResponse
|
|
5121
4775
|
*/
|
|
@@ -5303,11 +4957,11 @@ class Client extends openapi_core_1.default {
|
|
|
5303
4957
|
* Modifies an event-triggered task.
|
|
5304
4958
|
*
|
|
5305
4959
|
* @remarks
|
|
5306
|
-
*
|
|
5307
|
-
*
|
|
5308
|
-
*
|
|
5309
|
-
*
|
|
5310
|
-
* >
|
|
4960
|
+
* - 如果您创建自定义监控类型的报警任务(MetricType=custom),您需要先将自定义监控项指标上报到云监控。具体操作,请参见[自定义监控报警任务](https://help.aliyun.com/document_detail/74861.html)。
|
|
4961
|
+
* - 创建报警任务时,您需要指定监控项(MetricName),并配合维度信息(Dimension.N.DimensionKey和Dimension.N.DimensionValue),来确定伸缩组中该监控项数据的聚合范围。例如,指定user_id和scaling_group来确定聚合该用户、该伸缩组下所有ECS实例或ECI实例的监控项数据。
|
|
4962
|
+
* - 自定义监控报警任务(MetricType=custom)的监控项取决于您自有的监控指标。
|
|
4963
|
+
* - 系统监控报警任务(MetricType=system)支持的监控项的更多信息,请参见[系统监控报警任务](https://help.aliyun.com/document_detail/74854.html)。
|
|
4964
|
+
* > 维度信息中,user_id和scaling_group由系统自动填充,device、state需要您手动指定。更多信息,请参见参数`Dimension.N.DimensionKey`和`Dimension.N.DimensionValue`。
|
|
5311
4965
|
*
|
|
5312
4966
|
* @param request - ModifyAlarmRequest
|
|
5313
4967
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5393,11 +5047,11 @@ class Client extends openapi_core_1.default {
|
|
|
5393
5047
|
* Modifies an event-triggered task.
|
|
5394
5048
|
*
|
|
5395
5049
|
* @remarks
|
|
5396
|
-
*
|
|
5397
|
-
*
|
|
5398
|
-
*
|
|
5399
|
-
*
|
|
5400
|
-
* >
|
|
5050
|
+
* - 如果您创建自定义监控类型的报警任务(MetricType=custom),您需要先将自定义监控项指标上报到云监控。具体操作,请参见[自定义监控报警任务](https://help.aliyun.com/document_detail/74861.html)。
|
|
5051
|
+
* - 创建报警任务时,您需要指定监控项(MetricName),并配合维度信息(Dimension.N.DimensionKey和Dimension.N.DimensionValue),来确定伸缩组中该监控项数据的聚合范围。例如,指定user_id和scaling_group来确定聚合该用户、该伸缩组下所有ECS实例或ECI实例的监控项数据。
|
|
5052
|
+
* - 自定义监控报警任务(MetricType=custom)的监控项取决于您自有的监控指标。
|
|
5053
|
+
* - 系统监控报警任务(MetricType=system)支持的监控项的更多信息,请参见[系统监控报警任务](https://help.aliyun.com/document_detail/74854.html)。
|
|
5054
|
+
* > 维度信息中,user_id和scaling_group由系统自动填充,device、state需要您手动指定。更多信息,请参见参数`Dimension.N.DimensionKey`和`Dimension.N.DimensionValue`。
|
|
5401
5055
|
*
|
|
5402
5056
|
* @param request - ModifyAlarmRequest
|
|
5403
5057
|
* @returns ModifyAlarmResponse
|
|
@@ -5461,8 +5115,8 @@ class Client extends openapi_core_1.default {
|
|
|
5461
5115
|
* Modifies a scaling configuration of the Elastic Container Instance type. When you call the ModifyEciScalingConfiguration operation, you can specify the ID, name, and instance properties of the scaling configuration whose information you want to modify. You can modify the instance restart policy, instance bidding policy, and elastic IP address (EIP) bandwidth.
|
|
5462
5116
|
*
|
|
5463
5117
|
* @remarks
|
|
5464
|
-
*
|
|
5465
|
-
*
|
|
5118
|
+
* - 如果修改伸缩配置的名称,请注意同一伸缩组下不能存在名称相同的伸缩配置。
|
|
5119
|
+
* - 可以调用[DescribeEciScalingConfigurations](https://help.aliyun.com/document_detail/459374.html)查询并验证修改结果。
|
|
5466
5120
|
*
|
|
5467
5121
|
* @param request - ModifyEciScalingConfigurationRequest
|
|
5468
5122
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5647,8 +5301,8 @@ class Client extends openapi_core_1.default {
|
|
|
5647
5301
|
* Modifies a scaling configuration of the Elastic Container Instance type. When you call the ModifyEciScalingConfiguration operation, you can specify the ID, name, and instance properties of the scaling configuration whose information you want to modify. You can modify the instance restart policy, instance bidding policy, and elastic IP address (EIP) bandwidth.
|
|
5648
5302
|
*
|
|
5649
5303
|
* @remarks
|
|
5650
|
-
*
|
|
5651
|
-
*
|
|
5304
|
+
* - 如果修改伸缩配置的名称,请注意同一伸缩组下不能存在名称相同的伸缩配置。
|
|
5305
|
+
* - 可以调用[DescribeEciScalingConfigurations](https://help.aliyun.com/document_detail/459374.html)查询并验证修改结果。
|
|
5652
5306
|
*
|
|
5653
5307
|
* @param request - ModifyEciScalingConfigurationRequest
|
|
5654
5308
|
* @returns ModifyEciScalingConfigurationResponse
|
|
@@ -5717,11 +5371,6 @@ class Client extends openapi_core_1.default {
|
|
|
5717
5371
|
/**
|
|
5718
5372
|
* Modifies a lifecycle hook. If an existing lifecycle hook does not meet your business requirements anymore, you can call the ModifyLifecycleHook operation to modify the information such as the scaling event, timeout period, and default action of the lifecycle hook. Before you modify a lifecycle hook, you can locate the lifecycle hook by its ID, name, or scaling group.
|
|
5719
5373
|
*
|
|
5720
|
-
* @remarks
|
|
5721
|
-
* You can use one of the following methods to locate the lifecycle hook that you want to modify:
|
|
5722
|
-
* * Specify LifecycleHookId. In this case, ScalingGroupId and LifecycleHookName are ignored.
|
|
5723
|
-
* * Specify ScalingGroupId and LifecycleHookName. Each lifecycle hook within a scaling group has a unique name.
|
|
5724
|
-
*
|
|
5725
5374
|
* @param request - ModifyLifecycleHookRequest
|
|
5726
5375
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
5727
5376
|
* @returns ModifyLifecycleHookResponse
|
|
@@ -5787,11 +5436,6 @@ class Client extends openapi_core_1.default {
|
|
|
5787
5436
|
/**
|
|
5788
5437
|
* Modifies a lifecycle hook. If an existing lifecycle hook does not meet your business requirements anymore, you can call the ModifyLifecycleHook operation to modify the information such as the scaling event, timeout period, and default action of the lifecycle hook. Before you modify a lifecycle hook, you can locate the lifecycle hook by its ID, name, or scaling group.
|
|
5789
5438
|
*
|
|
5790
|
-
* @remarks
|
|
5791
|
-
* You can use one of the following methods to locate the lifecycle hook that you want to modify:
|
|
5792
|
-
* * Specify LifecycleHookId. In this case, ScalingGroupId and LifecycleHookName are ignored.
|
|
5793
|
-
* * Specify ScalingGroupId and LifecycleHookName. Each lifecycle hook within a scaling group has a unique name.
|
|
5794
|
-
*
|
|
5795
5439
|
* @param request - ModifyLifecycleHookRequest
|
|
5796
5440
|
* @returns ModifyLifecycleHookResponse
|
|
5797
5441
|
*/
|
|
@@ -5860,13 +5504,13 @@ class Client extends openapi_core_1.default {
|
|
|
5860
5504
|
return await this.modifyNotificationConfigurationWithOptions(request, runtime);
|
|
5861
5505
|
}
|
|
5862
5506
|
/**
|
|
5863
|
-
*
|
|
5507
|
+
* If a scaling configuration does not meet your business needs, you can call the ModifyScalingConfiguration operation to modify the scaling configuration. A scaling configuration is a template for creating ECS instances during scale-out events.
|
|
5864
5508
|
*
|
|
5865
5509
|
* @remarks
|
|
5866
|
-
*
|
|
5867
|
-
*
|
|
5868
|
-
*
|
|
5869
|
-
*
|
|
5510
|
+
* - Scaling configurations in the same scaling group cannot have the same name.
|
|
5511
|
+
* - You can configure the primary elastic network interface (ENI) in one of the following ways. You can use only one method in a single API call. If you use both methods, the call fails and an error message is returned. When you modify the ENI configuration, using one method clears any configuration set by the other method.
|
|
5512
|
+
* - Directly set the configuration of the primary ENI using parameters such as \\`SecurityGroupId\\`, \\`SecurityGroupIds\\`, and \\`Ipv6AddressCount\\`.
|
|
5513
|
+
* - Set the configuration of the primary and secondary ENIs using the \\`NetworkInterfaces\\` parameter. When you use this parameter, you must configure the primary ENI. To specify the primary ENI, set \\`NetworkInterface.InstanceType\\` to \\`Primary\\`. To specify a secondary ENI, set \\`NetworkInterface.InstanceType\\` to \\`Secondary\\` or leave the parameter empty.
|
|
5870
5514
|
*
|
|
5871
5515
|
* @param tmpReq - ModifyScalingConfigurationRequest
|
|
5872
5516
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6077,13 +5721,13 @@ class Client extends openapi_core_1.default {
|
|
|
6077
5721
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyScalingConfigurationResponse({}));
|
|
6078
5722
|
}
|
|
6079
5723
|
/**
|
|
6080
|
-
*
|
|
5724
|
+
* If a scaling configuration does not meet your business needs, you can call the ModifyScalingConfiguration operation to modify the scaling configuration. A scaling configuration is a template for creating ECS instances during scale-out events.
|
|
6081
5725
|
*
|
|
6082
5726
|
* @remarks
|
|
6083
|
-
*
|
|
6084
|
-
*
|
|
6085
|
-
*
|
|
6086
|
-
*
|
|
5727
|
+
* - Scaling configurations in the same scaling group cannot have the same name.
|
|
5728
|
+
* - You can configure the primary elastic network interface (ENI) in one of the following ways. You can use only one method in a single API call. If you use both methods, the call fails and an error message is returned. When you modify the ENI configuration, using one method clears any configuration set by the other method.
|
|
5729
|
+
* - Directly set the configuration of the primary ENI using parameters such as \\`SecurityGroupId\\`, \\`SecurityGroupIds\\`, and \\`Ipv6AddressCount\\`.
|
|
5730
|
+
* - Set the configuration of the primary and secondary ENIs using the \\`NetworkInterfaces\\` parameter. When you use this parameter, you must configure the primary ENI. To specify the primary ENI, set \\`NetworkInterface.InstanceType\\` to \\`Primary\\`. To specify a secondary ENI, set \\`NetworkInterface.InstanceType\\` to \\`Secondary\\` or leave the parameter empty.
|
|
6087
5731
|
*
|
|
6088
5732
|
* @param request - ModifyScalingConfigurationRequest
|
|
6089
5733
|
* @returns ModifyScalingConfigurationResponse
|
|
@@ -6096,19 +5740,17 @@ class Client extends openapi_core_1.default {
|
|
|
6096
5740
|
* Modifies a scaling group. If you want to enable policy-based automatic addition or removal of instances of a specific type to meet evolving business requirements, you can modify scaling groups to adjust your computing power with ease. The computing power refers to the instances that provide the computing capability. When your scaling group cannot meet your business requirements, you can call the ModifyScalingGroup operation to modify scaling group attributes such as the maximum, minimum, and expected numbers of instances. This prevents repeated creation and configuration of scaling groups, which saves you a lot of time and resource costs.
|
|
6097
5741
|
*
|
|
6098
5742
|
* @remarks
|
|
6099
|
-
*
|
|
6100
|
-
*
|
|
6101
|
-
*
|
|
6102
|
-
*
|
|
6103
|
-
*
|
|
6104
|
-
*
|
|
6105
|
-
*
|
|
6106
|
-
*
|
|
6107
|
-
*
|
|
6108
|
-
*
|
|
6109
|
-
*
|
|
6110
|
-
* * If the modification of the MinSize setting leads to the total number of ECS instances or elastic container instances in the scaling group exceeding the new minimum threshold, Auto Scaling proactively adds more instances to the scaling group to ensure that the total number aligns with the new minimum threshold.
|
|
6111
|
-
* * If the modification of the DesiredCapacity setting leads to the total number of ECS instances or elastic container instances in the scaling group not matching the new desired capacity, Auto Scaling proactively adjusts the total number of instances to ensure that the total number aligns with the new desired capacity.
|
|
5743
|
+
* - The following parameters cannot be modified:
|
|
5744
|
+
* - RegionId
|
|
5745
|
+
* - LoadBalancerId
|
|
5746
|
+
* > To modify an SLB instance, use the AttachLoadBalancers and DetachLoadBalancers APIs.
|
|
5747
|
+
* - DBInstanceId
|
|
5748
|
+
* > To modify an RDS instance, use the AttachDBInstances and DetachDBInstances APIs.
|
|
5749
|
+
* - You can invoke this API only when the scaling group status is `Active` or `Inactive`.
|
|
5750
|
+
* - Enabling a new scaling configuration does not affect ECS instances or ECI instances that were created using an earlier scaling configuration and are currently running.
|
|
5751
|
+
* - If MaxSize is modified such that the current number of ECS or ECI instances in the scaling group exceeds MaxSize, the scaling group automatically removes ECS or ECI instances until the instance count equals MaxSize.
|
|
5752
|
+
* - If MinSize is modified such that the current number of ECS or ECI instances in the scaling group falls below MinSize, the scaling group automatically adds ECS or ECI instances until the instance count equals MinSize.
|
|
5753
|
+
* - If DesiredCapacity is set for the scaling group and then modified such that the current number of ECS or ECI instances differs from the new DesiredCapacity, the scaling group automatically adds or removes ECS or ECI instances until the instance count equals DesiredCapacity.
|
|
6112
5754
|
*
|
|
6113
5755
|
* @param request - ModifyScalingGroupRequest
|
|
6114
5756
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6245,19 +5887,17 @@ class Client extends openapi_core_1.default {
|
|
|
6245
5887
|
* Modifies a scaling group. If you want to enable policy-based automatic addition or removal of instances of a specific type to meet evolving business requirements, you can modify scaling groups to adjust your computing power with ease. The computing power refers to the instances that provide the computing capability. When your scaling group cannot meet your business requirements, you can call the ModifyScalingGroup operation to modify scaling group attributes such as the maximum, minimum, and expected numbers of instances. This prevents repeated creation and configuration of scaling groups, which saves you a lot of time and resource costs.
|
|
6246
5888
|
*
|
|
6247
5889
|
* @remarks
|
|
6248
|
-
*
|
|
6249
|
-
*
|
|
6250
|
-
*
|
|
6251
|
-
*
|
|
6252
|
-
*
|
|
6253
|
-
*
|
|
6254
|
-
*
|
|
6255
|
-
*
|
|
6256
|
-
*
|
|
6257
|
-
*
|
|
6258
|
-
*
|
|
6259
|
-
* * If the modification of the MinSize setting leads to the total number of ECS instances or elastic container instances in the scaling group exceeding the new minimum threshold, Auto Scaling proactively adds more instances to the scaling group to ensure that the total number aligns with the new minimum threshold.
|
|
6260
|
-
* * If the modification of the DesiredCapacity setting leads to the total number of ECS instances or elastic container instances in the scaling group not matching the new desired capacity, Auto Scaling proactively adjusts the total number of instances to ensure that the total number aligns with the new desired capacity.
|
|
5890
|
+
* - The following parameters cannot be modified:
|
|
5891
|
+
* - RegionId
|
|
5892
|
+
* - LoadBalancerId
|
|
5893
|
+
* > To modify an SLB instance, use the AttachLoadBalancers and DetachLoadBalancers APIs.
|
|
5894
|
+
* - DBInstanceId
|
|
5895
|
+
* > To modify an RDS instance, use the AttachDBInstances and DetachDBInstances APIs.
|
|
5896
|
+
* - You can invoke this API only when the scaling group status is `Active` or `Inactive`.
|
|
5897
|
+
* - Enabling a new scaling configuration does not affect ECS instances or ECI instances that were created using an earlier scaling configuration and are currently running.
|
|
5898
|
+
* - If MaxSize is modified such that the current number of ECS or ECI instances in the scaling group exceeds MaxSize, the scaling group automatically removes ECS or ECI instances until the instance count equals MaxSize.
|
|
5899
|
+
* - If MinSize is modified such that the current number of ECS or ECI instances in the scaling group falls below MinSize, the scaling group automatically adds ECS or ECI instances until the instance count equals MinSize.
|
|
5900
|
+
* - If DesiredCapacity is set for the scaling group and then modified such that the current number of ECS or ECI instances differs from the new DesiredCapacity, the scaling group automatically adds or removes ECS or ECI instances until the instance count equals DesiredCapacity.
|
|
6261
5901
|
*
|
|
6262
5902
|
* @param request - ModifyScalingGroupRequest
|
|
6263
5903
|
* @returns ModifyScalingGroupResponse
|
|
@@ -6386,12 +6026,6 @@ class Client extends openapi_core_1.default {
|
|
|
6386
6026
|
/**
|
|
6387
6027
|
* Modifies a scheduled task. If an existing scheduled task cannot meet your business requirements, you can call the ModifyScheduledTask operation to adjust its parameter settings including the scaling rule to execute and the boundary values of your scaling group, without the need to create a new scheduled task. This operation provides a flexible way to optimize scheduled tasks.
|
|
6388
6028
|
*
|
|
6389
|
-
* @remarks
|
|
6390
|
-
* You can use the following parameters to specify the scaling method of a scheduled task:
|
|
6391
|
-
* * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
|
|
6392
|
-
* * If you use the `ScalingGroupId` parameter, you must specify the minimum number, maximum number, or expected number of instances in the scheduled task.
|
|
6393
|
-
* > You cannot specify the `ScheduledAction` and `ScalingGroupId` parameters at the same time.
|
|
6394
|
-
*
|
|
6395
6029
|
* @param request - ModifyScheduledTaskRequest
|
|
6396
6030
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
6397
6031
|
* @returns ModifyScheduledTaskResponse
|
|
@@ -6475,12 +6109,6 @@ class Client extends openapi_core_1.default {
|
|
|
6475
6109
|
/**
|
|
6476
6110
|
* Modifies a scheduled task. If an existing scheduled task cannot meet your business requirements, you can call the ModifyScheduledTask operation to adjust its parameter settings including the scaling rule to execute and the boundary values of your scaling group, without the need to create a new scheduled task. This operation provides a flexible way to optimize scheduled tasks.
|
|
6477
6111
|
*
|
|
6478
|
-
* @remarks
|
|
6479
|
-
* You can use the following parameters to specify the scaling method of a scheduled task:
|
|
6480
|
-
* * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
|
|
6481
|
-
* * If you use the `ScalingGroupId` parameter, you must specify the minimum number, maximum number, or expected number of instances in the scheduled task.
|
|
6482
|
-
* > You cannot specify the `ScheduledAction` and `ScalingGroupId` parameters at the same time.
|
|
6483
|
-
*
|
|
6484
6112
|
* @param request - ModifyScheduledTaskRequest
|
|
6485
6113
|
* @returns ModifyScheduledTaskResponse
|
|
6486
6114
|
*/
|
|
@@ -6731,15 +6359,6 @@ class Client extends openapi_core_1.default {
|
|
|
6731
6359
|
/**
|
|
6732
6360
|
* Rebalances the distribution of Elastic Compute Service (ECS) instances across zones. If ECS instances are unevenly distributed across multiple zones, you can call the RebalanceInstances operation to rebalance the distribution of the ECS instances across the zones.
|
|
6733
6361
|
*
|
|
6734
|
-
* @remarks
|
|
6735
|
-
* ## [](#)Usage notes
|
|
6736
|
-
* Auto Scaling creates new ECS instances to replace the existing ECS instances to fulfill the rebalancing purpose. Auto Scaling starts the new ECS instances before stopping the existing ECS instances. The rebalancing operation does not affect the performance or service availability of your application.
|
|
6737
|
-
* * This operation is supported by only multi-zone scaling groups whose `MultiAZPolicy` is set to `BALANCE`.
|
|
6738
|
-
* * A rebalancing operation is required only when the distribution of the instances of a multi-zone scaling group is significantly unbalanced. In a rebalancing activity, Auto Scaling replaces up to 20 ECS instances to rectify the unbalanced distribution.
|
|
6739
|
-
* * During the execution of a rebalancing operation, if the number of instances in the scaling group approaches or hits the value of MaxSize but the rebalancing operation needs to continue, Auto Scaling allows the total number of ECS instances to momentarily exceed the value of MaxSize by 10%. This temporary surplus condition persists for a duration until equilibrium in the distribution of ECS instances is achieved. Typically, it takes 1 to 6 minutes.
|
|
6740
|
-
* **
|
|
6741
|
-
* **Note** If the 10% increment of the maximum number of instances in a scaling group yield a non-integer value, the decimal portion is always rounded up to ensure an additional instance is accounted for. For example, you have a scaling group that holds a maximum of 15 ECS instances. During a rebalancing operation, Auto Scaling would permit the total number of instances to momentarily surpass this limit by 2, instead of the calculated 10% (which is 1.5).
|
|
6742
|
-
*
|
|
6743
6362
|
* @param request - RebalanceInstancesRequest
|
|
6744
6363
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
6745
6364
|
* @returns RebalanceInstancesResponse
|
|
@@ -6784,15 +6403,6 @@ class Client extends openapi_core_1.default {
|
|
|
6784
6403
|
/**
|
|
6785
6404
|
* Rebalances the distribution of Elastic Compute Service (ECS) instances across zones. If ECS instances are unevenly distributed across multiple zones, you can call the RebalanceInstances operation to rebalance the distribution of the ECS instances across the zones.
|
|
6786
6405
|
*
|
|
6787
|
-
* @remarks
|
|
6788
|
-
* ## [](#)Usage notes
|
|
6789
|
-
* Auto Scaling creates new ECS instances to replace the existing ECS instances to fulfill the rebalancing purpose. Auto Scaling starts the new ECS instances before stopping the existing ECS instances. The rebalancing operation does not affect the performance or service availability of your application.
|
|
6790
|
-
* * This operation is supported by only multi-zone scaling groups whose `MultiAZPolicy` is set to `BALANCE`.
|
|
6791
|
-
* * A rebalancing operation is required only when the distribution of the instances of a multi-zone scaling group is significantly unbalanced. In a rebalancing activity, Auto Scaling replaces up to 20 ECS instances to rectify the unbalanced distribution.
|
|
6792
|
-
* * During the execution of a rebalancing operation, if the number of instances in the scaling group approaches or hits the value of MaxSize but the rebalancing operation needs to continue, Auto Scaling allows the total number of ECS instances to momentarily exceed the value of MaxSize by 10%. This temporary surplus condition persists for a duration until equilibrium in the distribution of ECS instances is achieved. Typically, it takes 1 to 6 minutes.
|
|
6793
|
-
* **
|
|
6794
|
-
* **Note** If the 10% increment of the maximum number of instances in a scaling group yield a non-integer value, the decimal portion is always rounded up to ensure an additional instance is accounted for. For example, you have a scaling group that holds a maximum of 15 ECS instances. During a rebalancing operation, Auto Scaling would permit the total number of instances to momentarily surpass this limit by 2, instead of the calculated 10% (which is 1.5).
|
|
6795
|
-
*
|
|
6796
6406
|
* @param request - RebalanceInstancesRequest
|
|
6797
6407
|
* @returns RebalanceInstancesResponse
|
|
6798
6408
|
*/
|
|
@@ -6803,10 +6413,6 @@ class Client extends openapi_core_1.default {
|
|
|
6803
6413
|
/**
|
|
6804
6414
|
* Extends the time window during which Elastic Compute Service (ECS) instances stay in a Pending state. If the current time window during which an ECS instance stays in a Pending state is not sufficient for you to complete custom operations on the ECS instance, you can call the RecordLifecycleActionHeartbeat operation to extend the time window. When you call this operation, you can specify lifecycleHookId, lifecycleActionToken, and heartbeatTimeout to extend the time window for the desired ECS instance.
|
|
6805
6415
|
*
|
|
6806
|
-
* @remarks
|
|
6807
|
-
* You can call this operation only to extend the time window during which Elastic Compute Service (ECS) instances stay in a Pending state.
|
|
6808
|
-
* An ECS instance can stay in a Pending state for up to six hours. Each time an ECS instance enters a Pending state, you can extend the time window during which the ECS instance stays in the Pending state up to 20 times.
|
|
6809
|
-
*
|
|
6810
6416
|
* @param request - RecordLifecycleActionHeartbeatRequest
|
|
6811
6417
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
6812
6418
|
* @returns RecordLifecycleActionHeartbeatResponse
|
|
@@ -6854,10 +6460,6 @@ class Client extends openapi_core_1.default {
|
|
|
6854
6460
|
/**
|
|
6855
6461
|
* Extends the time window during which Elastic Compute Service (ECS) instances stay in a Pending state. If the current time window during which an ECS instance stays in a Pending state is not sufficient for you to complete custom operations on the ECS instance, you can call the RecordLifecycleActionHeartbeat operation to extend the time window. When you call this operation, you can specify lifecycleHookId, lifecycleActionToken, and heartbeatTimeout to extend the time window for the desired ECS instance.
|
|
6856
6462
|
*
|
|
6857
|
-
* @remarks
|
|
6858
|
-
* You can call this operation only to extend the time window during which Elastic Compute Service (ECS) instances stay in a Pending state.
|
|
6859
|
-
* An ECS instance can stay in a Pending state for up to six hours. Each time an ECS instance enters a Pending state, you can extend the time window during which the ECS instance stays in the Pending state up to 20 times.
|
|
6860
|
-
*
|
|
6861
6463
|
* @param request - RecordLifecycleActionHeartbeatRequest
|
|
6862
6464
|
* @returns RecordLifecycleActionHeartbeatResponse
|
|
6863
6465
|
*/
|
|
@@ -6866,17 +6468,17 @@ class Client extends openapi_core_1.default {
|
|
|
6866
6468
|
return await this.recordLifecycleActionHeartbeatWithOptions(request, runtime);
|
|
6867
6469
|
}
|
|
6868
6470
|
/**
|
|
6869
|
-
*
|
|
6471
|
+
* If a scaling group is enabled and has no ongoing scaling activities, you can call the RemoveInstances API to remove one or more instances from the group.
|
|
6870
6472
|
*
|
|
6871
6473
|
* @remarks
|
|
6872
|
-
*
|
|
6873
|
-
*
|
|
6874
|
-
*
|
|
6875
|
-
* >
|
|
6876
|
-
*
|
|
6877
|
-
*
|
|
6878
|
-
*
|
|
6879
|
-
* A successful
|
|
6474
|
+
* - Ensure the following conditions are met before you call this API:
|
|
6475
|
+
* - The scaling group is in the Active state.
|
|
6476
|
+
* - The scaling group has no scaling activities in progress.
|
|
6477
|
+
* > This API can bypass the cooldown (`DefaultCooldown`) if the scaling group has no ongoing scaling activities.
|
|
6478
|
+
* - If an ECS instance is automatically created by Auto Scaling, or is manually added and managed by the scaling group, removing the instance from the scaling group places it in Economical Mode or releases it.
|
|
6479
|
+
* - If an ECS instance is manually added and not managed by the scaling group, removing the instance from the group does not stop or release it.
|
|
6480
|
+
* - The call fails if the number of remaining instances would fall below the minimum number of instances (`MinSize`).
|
|
6481
|
+
* A successful response confirms the Auto Scaling service has accepted the request, but does not guarantee the scaling activity will succeed. You must use the returned `ScalingActivityId` to check the execution status of the scaling activity.
|
|
6880
6482
|
*
|
|
6881
6483
|
* @param tmpReq - RemoveInstancesRequest
|
|
6882
6484
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6946,17 +6548,17 @@ class Client extends openapi_core_1.default {
|
|
|
6946
6548
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RemoveInstancesResponse({}));
|
|
6947
6549
|
}
|
|
6948
6550
|
/**
|
|
6949
|
-
*
|
|
6551
|
+
* If a scaling group is enabled and has no ongoing scaling activities, you can call the RemoveInstances API to remove one or more instances from the group.
|
|
6950
6552
|
*
|
|
6951
6553
|
* @remarks
|
|
6952
|
-
*
|
|
6953
|
-
*
|
|
6954
|
-
*
|
|
6955
|
-
* >
|
|
6956
|
-
*
|
|
6957
|
-
*
|
|
6958
|
-
*
|
|
6959
|
-
* A successful
|
|
6554
|
+
* - Ensure the following conditions are met before you call this API:
|
|
6555
|
+
* - The scaling group is in the Active state.
|
|
6556
|
+
* - The scaling group has no scaling activities in progress.
|
|
6557
|
+
* > This API can bypass the cooldown (`DefaultCooldown`) if the scaling group has no ongoing scaling activities.
|
|
6558
|
+
* - If an ECS instance is automatically created by Auto Scaling, or is manually added and managed by the scaling group, removing the instance from the scaling group places it in Economical Mode or releases it.
|
|
6559
|
+
* - If an ECS instance is manually added and not managed by the scaling group, removing the instance from the group does not stop or release it.
|
|
6560
|
+
* - The call fails if the number of remaining instances would fall below the minimum number of instances (`MinSize`).
|
|
6561
|
+
* A successful response confirms the Auto Scaling service has accepted the request, but does not guarantee the scaling activity will succeed. You must use the returned `ScalingActivityId` to check the execution status of the scaling activity.
|
|
6960
6562
|
*
|
|
6961
6563
|
* @param request - RemoveInstancesRequest
|
|
6962
6564
|
* @returns RemoveInstancesResponse
|
|
@@ -7122,16 +6724,16 @@ class Client extends openapi_core_1.default {
|
|
|
7122
6724
|
return await this.rollbackInstanceRefreshWithOptions(request, runtime);
|
|
7123
6725
|
}
|
|
7124
6726
|
/**
|
|
7125
|
-
*
|
|
6727
|
+
* Unlike the ExecuteScalingRule API, you can use the ScaleWithAdjustment API to trigger elastic scaling based on a specified adjustment rule, without first creating a scaling rule.
|
|
7126
6728
|
*
|
|
7127
6729
|
* @remarks
|
|
7128
|
-
*
|
|
7129
|
-
*
|
|
7130
|
-
*
|
|
7131
|
-
*
|
|
7132
|
-
*
|
|
7133
|
-
*
|
|
7134
|
-
* A successful
|
|
6730
|
+
* - Ensure the following conditions are met before calling this operation:
|
|
6731
|
+
* - The scaling group is in the Active state.
|
|
6732
|
+
* - No scaling activities are in progress in the scaling group.
|
|
6733
|
+
* - This operation bypasses the cooldown to immediately execute a scaling activity, provided no other scaling activities are in progress.
|
|
6734
|
+
* - If adding the specified ECS instances would cause the total capacity to exceed the maximum size, Auto Scaling sets the total capacity to the maximum size.
|
|
6735
|
+
* - If removing the specified ECS instances would reduce the total capacity below the minimum size, Auto Scaling sets the total capacity to the minimum size.
|
|
6736
|
+
* A successful response indicates that the API request was accepted, but this does not guarantee that the scaling activity will succeed. You must use the returned `ScalingActivityId` to check the status of the scaling activity.
|
|
7135
6737
|
*
|
|
7136
6738
|
* @param tmpReq - ScaleWithAdjustmentRequest
|
|
7137
6739
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -7204,16 +6806,16 @@ class Client extends openapi_core_1.default {
|
|
|
7204
6806
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ScaleWithAdjustmentResponse({}));
|
|
7205
6807
|
}
|
|
7206
6808
|
/**
|
|
7207
|
-
*
|
|
6809
|
+
* Unlike the ExecuteScalingRule API, you can use the ScaleWithAdjustment API to trigger elastic scaling based on a specified adjustment rule, without first creating a scaling rule.
|
|
7208
6810
|
*
|
|
7209
6811
|
* @remarks
|
|
7210
|
-
*
|
|
7211
|
-
*
|
|
7212
|
-
*
|
|
7213
|
-
*
|
|
7214
|
-
*
|
|
7215
|
-
*
|
|
7216
|
-
* A successful
|
|
6812
|
+
* - Ensure the following conditions are met before calling this operation:
|
|
6813
|
+
* - The scaling group is in the Active state.
|
|
6814
|
+
* - No scaling activities are in progress in the scaling group.
|
|
6815
|
+
* - This operation bypasses the cooldown to immediately execute a scaling activity, provided no other scaling activities are in progress.
|
|
6816
|
+
* - If adding the specified ECS instances would cause the total capacity to exceed the maximum size, Auto Scaling sets the total capacity to the maximum size.
|
|
6817
|
+
* - If removing the specified ECS instances would reduce the total capacity below the minimum size, Auto Scaling sets the total capacity to the minimum size.
|
|
6818
|
+
* A successful response indicates that the API request was accepted, but this does not guarantee that the scaling activity will succeed. You must use the returned `ScalingActivityId` to check the status of the scaling activity.
|
|
7217
6819
|
*
|
|
7218
6820
|
* @param request - ScaleWithAdjustmentRequest
|
|
7219
6821
|
* @returns ScaleWithAdjustmentResponse
|
|
@@ -7277,7 +6879,7 @@ class Client extends openapi_core_1.default {
|
|
|
7277
6879
|
* Sets instance health. At times, the automatic health check system might not sufficiently determine the precise health status of your Elastic Compute Service (ECS) instances or elastic container instances. To overcome this, you can call the SetInstanceHealth operation to swiftly pinpoint problematic instances and resolve issues. This operation is designed to more precisely align with real-world business requirements and tackle O\\\\\\&M hurdles efficiently.
|
|
7278
6880
|
*
|
|
7279
6881
|
* @remarks
|
|
7280
|
-
*
|
|
6882
|
+
* 伸缩组会检测并移出处于不健康状态的ECS实例或ECI实例,如果您需要保留指定的ECS实例或ECI实例,请将ECS实例或ECI实例转入备用或者保护状态,更多信息,请参见[EnterStandby](https://help.aliyun.com/document_detail/459345.html)和[SetInstancesProtection](https://help.aliyun.com/document_detail/459342.html)。
|
|
7281
6883
|
*
|
|
7282
6884
|
* @param request - SetInstanceHealthRequest
|
|
7283
6885
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -7318,7 +6920,7 @@ class Client extends openapi_core_1.default {
|
|
|
7318
6920
|
* Sets instance health. At times, the automatic health check system might not sufficiently determine the precise health status of your Elastic Compute Service (ECS) instances or elastic container instances. To overcome this, you can call the SetInstanceHealth operation to swiftly pinpoint problematic instances and resolve issues. This operation is designed to more precisely align with real-world business requirements and tackle O\\\\\\&M hurdles efficiently.
|
|
7319
6921
|
*
|
|
7320
6922
|
* @remarks
|
|
7321
|
-
*
|
|
6923
|
+
* 伸缩组会检测并移出处于不健康状态的ECS实例或ECI实例,如果您需要保留指定的ECS实例或ECI实例,请将ECS实例或ECI实例转入备用或者保护状态,更多信息,请参见[EnterStandby](https://help.aliyun.com/document_detail/459345.html)和[SetInstancesProtection](https://help.aliyun.com/document_detail/459342.html)。
|
|
7322
6924
|
*
|
|
7323
6925
|
* @param request - SetInstanceHealthRequest
|
|
7324
6926
|
* @returns SetInstanceHealthResponse
|
|
@@ -7330,12 +6932,6 @@ class Client extends openapi_core_1.default {
|
|
|
7330
6932
|
/**
|
|
7331
6933
|
* Puts or removes Elastic Compute Service (ECS) instances into or from the Protected state. After you put an ECS instance into the Protected state, the ECS instance will not be stopped or released when a scale-in event is triggered. In this case, you can manually delete the ECS instance in the Auto Scaling console or by calling the RemoveInstances operation.
|
|
7332
6934
|
*
|
|
7333
|
-
* @remarks
|
|
7334
|
-
* Once ECS instances enter the Protected state, they become subject to the following restrictions:
|
|
7335
|
-
* * ECS instances will persist in the Protected state, unless you deliberately remove them from this state.
|
|
7336
|
-
* * Even in scenarios where automatic scale-in actions are initiated due to fluctuations in the number of ECS instances or the execution of event-triggered tasks, Auto Scaling does not remove ECS instances that are in the Protected state from their respective scaling groups. Only after being manually removed from their respective scaling groups can ECS instances that are in the Protected state be released. For more information, see [Remove an ECS instance](https://help.aliyun.com/document_detail/459393.html).
|
|
7337
|
-
* * ECS instances in the Protected state maintain their health status even when they undergo stopping or restarting processes.
|
|
7338
|
-
*
|
|
7339
6935
|
* @param request - SetInstancesProtectionRequest
|
|
7340
6936
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
7341
6937
|
* @returns SetInstancesProtectionResponse
|
|
@@ -7377,12 +6973,6 @@ class Client extends openapi_core_1.default {
|
|
|
7377
6973
|
/**
|
|
7378
6974
|
* Puts or removes Elastic Compute Service (ECS) instances into or from the Protected state. After you put an ECS instance into the Protected state, the ECS instance will not be stopped or released when a scale-in event is triggered. In this case, you can manually delete the ECS instance in the Auto Scaling console or by calling the RemoveInstances operation.
|
|
7379
6975
|
*
|
|
7380
|
-
* @remarks
|
|
7381
|
-
* Once ECS instances enter the Protected state, they become subject to the following restrictions:
|
|
7382
|
-
* * ECS instances will persist in the Protected state, unless you deliberately remove them from this state.
|
|
7383
|
-
* * Even in scenarios where automatic scale-in actions are initiated due to fluctuations in the number of ECS instances or the execution of event-triggered tasks, Auto Scaling does not remove ECS instances that are in the Protected state from their respective scaling groups. Only after being manually removed from their respective scaling groups can ECS instances that are in the Protected state be released. For more information, see [Remove an ECS instance](https://help.aliyun.com/document_detail/459393.html).
|
|
7384
|
-
* * ECS instances in the Protected state maintain their health status even when they undergo stopping or restarting processes.
|
|
7385
|
-
*
|
|
7386
6976
|
* @param request - SetInstancesProtectionRequest
|
|
7387
6977
|
* @returns SetInstancesProtectionResponse
|
|
7388
6978
|
*/
|
|
@@ -7391,13 +6981,13 @@ class Client extends openapi_core_1.default {
|
|
|
7391
6981
|
return await this.setInstancesProtectionWithOptions(request, runtime);
|
|
7392
6982
|
}
|
|
7393
6983
|
/**
|
|
7394
|
-
*
|
|
6984
|
+
* Refreshes instances in a scaling group when you need to apply a new scaling configuration or update the image used by instances in the scaling group.
|
|
7395
6985
|
*
|
|
7396
6986
|
* @remarks
|
|
7397
|
-
*
|
|
7398
|
-
*
|
|
7399
|
-
*
|
|
7400
|
-
*
|
|
6987
|
+
* - Only one instance refresh node can run in a scaling group at a time.
|
|
6988
|
+
* - This feature is supported only for ECS scaling groups whose scale-out policy is set to **Priority Policy**. Scaling groups that use **vCPU-based capacity calculation** and scaling groups whose instance revoke pattern is set to **Shutdown and Revoke Pattern** or **Forced Shutdown and Revoke Pattern** do not support this feature.
|
|
6989
|
+
* - During an instance refresh, normal scale-out and scale-in operations can proceed. However, scale-out operations use the desired configuration specified in the instance refresh node.
|
|
6990
|
+
* - Instances that are manually added to the scaling group, or instances in the standby state or protection status, are ignored by the instance refresh node and do not participate in the refresh.
|
|
7401
6991
|
*
|
|
7402
6992
|
* @param request - StartInstanceRefreshRequest
|
|
7403
6993
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -7439,6 +7029,9 @@ class Client extends openapi_core_1.default {
|
|
|
7439
7029
|
if (!$dara.isNull(request.skipMatching)) {
|
|
7440
7030
|
query["SkipMatching"] = request.skipMatching;
|
|
7441
7031
|
}
|
|
7032
|
+
if (!$dara.isNull(request.strategy)) {
|
|
7033
|
+
query["Strategy"] = request.strategy;
|
|
7034
|
+
}
|
|
7442
7035
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
7443
7036
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
7444
7037
|
});
|
|
@@ -7456,13 +7049,13 @@ class Client extends openapi_core_1.default {
|
|
|
7456
7049
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.StartInstanceRefreshResponse({}));
|
|
7457
7050
|
}
|
|
7458
7051
|
/**
|
|
7459
|
-
*
|
|
7052
|
+
* Refreshes instances in a scaling group when you need to apply a new scaling configuration or update the image used by instances in the scaling group.
|
|
7460
7053
|
*
|
|
7461
7054
|
* @remarks
|
|
7462
|
-
*
|
|
7463
|
-
*
|
|
7464
|
-
*
|
|
7465
|
-
*
|
|
7055
|
+
* - Only one instance refresh node can run in a scaling group at a time.
|
|
7056
|
+
* - This feature is supported only for ECS scaling groups whose scale-out policy is set to **Priority Policy**. Scaling groups that use **vCPU-based capacity calculation** and scaling groups whose instance revoke pattern is set to **Shutdown and Revoke Pattern** or **Forced Shutdown and Revoke Pattern** do not support this feature.
|
|
7057
|
+
* - During an instance refresh, normal scale-out and scale-in operations can proceed. However, scale-out operations use the desired configuration specified in the instance refresh node.
|
|
7058
|
+
* - Instances that are manually added to the scaling group, or instances in the standby state or protection status, are ignored by the instance refresh node and do not participate in the refresh.
|
|
7466
7059
|
*
|
|
7467
7060
|
* @param request - StartInstanceRefreshRequest
|
|
7468
7061
|
* @returns StartInstanceRefreshResponse
|