@alicloud/ess20220222 1.5.2 → 1.5.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 +18923 -716
- package/dist/client.js +819 -708
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +19206 -985
package/dist/client.js
CHANGED
|
@@ -38,7 +38,6 @@ exports.ModifyScalingConfigurationRequestPrivatePoolOptions = exports.ModifyScal
|
|
|
38
38
|
exports.TagResourcesRequestTags = exports.ScaleWithAdjustmentRequestOverrides = exports.ScaleWithAdjustmentRequestOverridesContainerOverrides = exports.ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars = exports.ScaleWithAdjustmentRequestLifecycleHookContext = exports.ModifyScalingRuleRequestStepAdjustments = exports.ModifyScalingRuleRequestAlarmDimensions = exports.ModifyScalingGroupRequestLaunchTemplateOverrides = exports.ModifyScalingConfigurationShrinkRequestSpotPriceLimits = exports.ModifyScalingConfigurationShrinkRequestNetworkInterfaces = exports.ModifyScalingConfigurationShrinkRequestInstanceTypeOverrides = exports.ModifyScalingConfigurationShrinkRequestInstancePatternInfos = exports.ModifyScalingConfigurationShrinkRequestDataDisks = exports.ModifyScalingConfigurationShrinkRequestCustomPriorities = exports.ModifyScalingConfigurationShrinkRequestSystemDisk = exports.ModifyScalingConfigurationShrinkRequestPrivatePoolOptions = exports.ModifyScalingConfigurationShrinkRequestImageOptions = exports.ModifyScalingConfigurationRequestSpotPriceLimits = exports.ModifyScalingConfigurationRequestNetworkInterfaces = exports.ModifyScalingConfigurationRequestInstanceTypeOverrides = exports.ModifyScalingConfigurationRequestInstancePatternInfos = exports.ModifyScalingConfigurationRequestDataDisks = exports.ModifyScalingConfigurationRequestCustomPriorities = exports.ModifyScalingConfigurationRequestSystemDisk = void 0;
|
|
39
39
|
// This file is auto-generated, don't edit it
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
42
41
|
*/
|
|
43
42
|
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
|
|
44
43
|
const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
|
|
@@ -1020,6 +1019,7 @@ class CreateNotificationConfigurationRequest extends $tea.Model {
|
|
|
1020
1019
|
regionId: 'RegionId',
|
|
1021
1020
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
1022
1021
|
scalingGroupId: 'ScalingGroupId',
|
|
1022
|
+
timeZone: 'TimeZone',
|
|
1023
1023
|
};
|
|
1024
1024
|
}
|
|
1025
1025
|
static types() {
|
|
@@ -1030,6 +1030,7 @@ class CreateNotificationConfigurationRequest extends $tea.Model {
|
|
|
1030
1030
|
regionId: 'string',
|
|
1031
1031
|
resourceOwnerAccount: 'string',
|
|
1032
1032
|
scalingGroupId: 'string',
|
|
1033
|
+
timeZone: 'string',
|
|
1033
1034
|
};
|
|
1034
1035
|
}
|
|
1035
1036
|
constructor(map) {
|
|
@@ -5170,6 +5171,7 @@ class ModifyNotificationConfigurationRequest extends $tea.Model {
|
|
|
5170
5171
|
regionId: 'RegionId',
|
|
5171
5172
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
5172
5173
|
scalingGroupId: 'ScalingGroupId',
|
|
5174
|
+
timeZone: 'TimeZone',
|
|
5173
5175
|
};
|
|
5174
5176
|
}
|
|
5175
5177
|
static types() {
|
|
@@ -5180,6 +5182,7 @@ class ModifyNotificationConfigurationRequest extends $tea.Model {
|
|
|
5180
5182
|
regionId: 'string',
|
|
5181
5183
|
resourceOwnerAccount: 'string',
|
|
5182
5184
|
scalingGroupId: 'string',
|
|
5185
|
+
timeZone: 'string',
|
|
5183
5186
|
};
|
|
5184
5187
|
}
|
|
5185
5188
|
constructor(map) {
|
|
@@ -9587,6 +9590,7 @@ class DescribeNotificationConfigurationsResponseBodyNotificationConfigurationMod
|
|
|
9587
9590
|
notificationArn: 'NotificationArn',
|
|
9588
9591
|
notificationTypes: 'NotificationTypes',
|
|
9589
9592
|
scalingGroupId: 'ScalingGroupId',
|
|
9593
|
+
timeZone: 'TimeZone',
|
|
9590
9594
|
};
|
|
9591
9595
|
}
|
|
9592
9596
|
static types() {
|
|
@@ -9594,6 +9598,7 @@ class DescribeNotificationConfigurationsResponseBodyNotificationConfigurationMod
|
|
|
9594
9598
|
notificationArn: 'string',
|
|
9595
9599
|
notificationTypes: { 'type': 'array', 'itemType': 'string' },
|
|
9596
9600
|
scalingGroupId: 'string',
|
|
9601
|
+
timeZone: 'string',
|
|
9597
9602
|
};
|
|
9598
9603
|
}
|
|
9599
9604
|
constructor(map) {
|
|
@@ -12576,15 +12581,16 @@ class Client extends openapi_client_1.default {
|
|
|
12576
12581
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
12577
12582
|
}
|
|
12578
12583
|
/**
|
|
12579
|
-
*
|
|
12584
|
+
* 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.
|
|
12580
12585
|
*
|
|
12581
|
-
* @
|
|
12586
|
+
* @remarks
|
|
12587
|
+
* Before you use a YAML configuration file to manage scaling configurations of the Elastic Container Instance type, you must take note of the following items:
|
|
12582
12588
|
* * If you include a scaling configuration ID within your request, the system updates the scaling configuration based on the YAML configuration file.
|
|
12583
12589
|
* * If you do not include a scaling configuration ID within your request, the system creates a scaling configuration of the Elastic Container Instance type based on the YAML configuration file.
|
|
12584
12590
|
*
|
|
12585
|
-
* @param request ApplyEciScalingConfigurationRequest
|
|
12586
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
12587
|
-
* @
|
|
12591
|
+
* @param request - ApplyEciScalingConfigurationRequest
|
|
12592
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
12593
|
+
* @returns ApplyEciScalingConfigurationResponse
|
|
12588
12594
|
*/
|
|
12589
12595
|
async applyEciScalingConfigurationWithOptions(request, runtime) {
|
|
12590
12596
|
tea_util_1.default.validateModel(request);
|
|
@@ -12621,23 +12627,25 @@ class Client extends openapi_client_1.default {
|
|
|
12621
12627
|
return $tea.cast(await this.callApi(params, req, runtime), new ApplyEciScalingConfigurationResponse({}));
|
|
12622
12628
|
}
|
|
12623
12629
|
/**
|
|
12624
|
-
*
|
|
12630
|
+
* 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.
|
|
12625
12631
|
*
|
|
12626
|
-
* @
|
|
12632
|
+
* @remarks
|
|
12633
|
+
* Before you use a YAML configuration file to manage scaling configurations of the Elastic Container Instance type, you must take note of the following items:
|
|
12627
12634
|
* * If you include a scaling configuration ID within your request, the system updates the scaling configuration based on the YAML configuration file.
|
|
12628
12635
|
* * If you do not include a scaling configuration ID within your request, the system creates a scaling configuration of the Elastic Container Instance type based on the YAML configuration file.
|
|
12629
12636
|
*
|
|
12630
|
-
* @param request ApplyEciScalingConfigurationRequest
|
|
12631
|
-
* @
|
|
12637
|
+
* @param request - ApplyEciScalingConfigurationRequest
|
|
12638
|
+
* @returns ApplyEciScalingConfigurationResponse
|
|
12632
12639
|
*/
|
|
12633
12640
|
async applyEciScalingConfiguration(request) {
|
|
12634
12641
|
let runtime = new $Util.RuntimeOptions({});
|
|
12635
12642
|
return await this.applyEciScalingConfigurationWithOptions(request, runtime);
|
|
12636
12643
|
}
|
|
12637
12644
|
/**
|
|
12638
|
-
*
|
|
12645
|
+
* Creates and manages scaling groups by using configuration files. You can call the ApplyScalingGroup operation to create and manage scaling groups by using configuration files with efficiency.
|
|
12639
12646
|
*
|
|
12640
|
-
* @
|
|
12647
|
+
* @remarks
|
|
12648
|
+
* You can call the ApplyScalingGroup operation to create scaling groups of the Elastic Container Instance type with ease. The resources of the scaling groups are defined in Kubernetes Deployment YAML files. You can also call this operation to extend annotations for elastic container instances in Kubernetes Deployment YAML files. For more information, see "Supported annotations" in this topic.
|
|
12641
12649
|
* Mapping between YAML files and scaling groups: You can map the triplet of namespace, kind, and name in a YAML file to a scaling group name. A YAML file and a scaling group have a one-to-one mapping relationship in a region. For example, if you use the Kubernetes Deployment YAML file whose name is NGINX in the default namespace to create a scaling group in a region, the unique name of the mapped scaling group is k8s_default_Deployment_nginx.
|
|
12642
12650
|
* You can use a Kubernetes Deployment YAML file to manage a scaling group based on the following logic:
|
|
12643
12651
|
* * If an existing scaling group has a mapping relationship with your Kubernetes Deployment YAML file, you can update the scaling group by using the YAML file.
|
|
@@ -12671,9 +12679,9 @@ class Client extends openapi_client_1.default {
|
|
|
12671
12679
|
* If you configure this annotation, the cloud disk that is created by using the specified DataCache is of the ESSD AutoPL type.|
|
|
12672
12680
|
* |k8s.aliyun.com/eci-custom-tags|"env:test,name:alice"|The tags that you want to add to each elastic container instance. You can add up to three tags for each elastic container instance. Separate a tag key and a tag value with a colon (:). Separate multiple tags with commas (,).|
|
|
12673
12681
|
*
|
|
12674
|
-
* @param request ApplyScalingGroupRequest
|
|
12675
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
12676
|
-
* @
|
|
12682
|
+
* @param request - ApplyScalingGroupRequest
|
|
12683
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
12684
|
+
* @returns ApplyScalingGroupResponse
|
|
12677
12685
|
*/
|
|
12678
12686
|
async applyScalingGroupWithOptions(request, runtime) {
|
|
12679
12687
|
tea_util_1.default.validateModel(request);
|
|
@@ -12704,9 +12712,10 @@ class Client extends openapi_client_1.default {
|
|
|
12704
12712
|
return $tea.cast(await this.callApi(params, req, runtime), new ApplyScalingGroupResponse({}));
|
|
12705
12713
|
}
|
|
12706
12714
|
/**
|
|
12707
|
-
*
|
|
12715
|
+
* Creates and manages scaling groups by using configuration files. You can call the ApplyScalingGroup operation to create and manage scaling groups by using configuration files with efficiency.
|
|
12708
12716
|
*
|
|
12709
|
-
* @
|
|
12717
|
+
* @remarks
|
|
12718
|
+
* You can call the ApplyScalingGroup operation to create scaling groups of the Elastic Container Instance type with ease. The resources of the scaling groups are defined in Kubernetes Deployment YAML files. You can also call this operation to extend annotations for elastic container instances in Kubernetes Deployment YAML files. For more information, see "Supported annotations" in this topic.
|
|
12710
12719
|
* Mapping between YAML files and scaling groups: You can map the triplet of namespace, kind, and name in a YAML file to a scaling group name. A YAML file and a scaling group have a one-to-one mapping relationship in a region. For example, if you use the Kubernetes Deployment YAML file whose name is NGINX in the default namespace to create a scaling group in a region, the unique name of the mapped scaling group is k8s_default_Deployment_nginx.
|
|
12711
12720
|
* You can use a Kubernetes Deployment YAML file to manage a scaling group based on the following logic:
|
|
12712
12721
|
* * If an existing scaling group has a mapping relationship with your Kubernetes Deployment YAML file, you can update the scaling group by using the YAML file.
|
|
@@ -12740,23 +12749,24 @@ class Client extends openapi_client_1.default {
|
|
|
12740
12749
|
* If you configure this annotation, the cloud disk that is created by using the specified DataCache is of the ESSD AutoPL type.|
|
|
12741
12750
|
* |k8s.aliyun.com/eci-custom-tags|"env:test,name:alice"|The tags that you want to add to each elastic container instance. You can add up to three tags for each elastic container instance. Separate a tag key and a tag value with a colon (:). Separate multiple tags with commas (,).|
|
|
12742
12751
|
*
|
|
12743
|
-
* @param request ApplyScalingGroupRequest
|
|
12744
|
-
* @
|
|
12752
|
+
* @param request - ApplyScalingGroupRequest
|
|
12753
|
+
* @returns ApplyScalingGroupResponse
|
|
12745
12754
|
*/
|
|
12746
12755
|
async applyScalingGroup(request) {
|
|
12747
12756
|
let runtime = new $Util.RuntimeOptions({});
|
|
12748
12757
|
return await this.applyScalingGroupWithOptions(request, runtime);
|
|
12749
12758
|
}
|
|
12750
12759
|
/**
|
|
12751
|
-
*
|
|
12760
|
+
* 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.
|
|
12752
12761
|
*
|
|
12753
|
-
* @
|
|
12762
|
+
* @remarks
|
|
12763
|
+
* Before you call the operation to attach an ALB server group to your scaling group, make sure that the following requirements are met:
|
|
12754
12764
|
* * The scaling group and the ALB server group share the same virtual private cloud (VPC).
|
|
12755
12765
|
* * The ALB server group is in the Available state.
|
|
12756
12766
|
*
|
|
12757
|
-
* @param request AttachAlbServerGroupsRequest
|
|
12758
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
12759
|
-
* @
|
|
12767
|
+
* @param request - AttachAlbServerGroupsRequest
|
|
12768
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
12769
|
+
* @returns AttachAlbServerGroupsResponse
|
|
12760
12770
|
*/
|
|
12761
12771
|
async attachAlbServerGroupsWithOptions(request, runtime) {
|
|
12762
12772
|
tea_util_1.default.validateModel(request);
|
|
@@ -12799,31 +12809,33 @@ class Client extends openapi_client_1.default {
|
|
|
12799
12809
|
return $tea.cast(await this.callApi(params, req, runtime), new AttachAlbServerGroupsResponse({}));
|
|
12800
12810
|
}
|
|
12801
12811
|
/**
|
|
12802
|
-
*
|
|
12812
|
+
* 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.
|
|
12803
12813
|
*
|
|
12804
|
-
* @
|
|
12814
|
+
* @remarks
|
|
12815
|
+
* Before you call the operation to attach an ALB server group to your scaling group, make sure that the following requirements are met:
|
|
12805
12816
|
* * The scaling group and the ALB server group share the same virtual private cloud (VPC).
|
|
12806
12817
|
* * The ALB server group is in the Available state.
|
|
12807
12818
|
*
|
|
12808
|
-
* @param request AttachAlbServerGroupsRequest
|
|
12809
|
-
* @
|
|
12819
|
+
* @param request - AttachAlbServerGroupsRequest
|
|
12820
|
+
* @returns AttachAlbServerGroupsResponse
|
|
12810
12821
|
*/
|
|
12811
12822
|
async attachAlbServerGroups(request) {
|
|
12812
12823
|
let runtime = new $Util.RuntimeOptions({});
|
|
12813
12824
|
return await this.attachAlbServerGroupsWithOptions(request, runtime);
|
|
12814
12825
|
}
|
|
12815
12826
|
/**
|
|
12816
|
-
*
|
|
12827
|
+
* Associates one or more ApsaraDB RDS instances with a scaling group.
|
|
12817
12828
|
*
|
|
12818
|
-
* @
|
|
12829
|
+
* @remarks
|
|
12830
|
+
* Before you associate an ApsaraDB RDS instance with a scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
|
|
12819
12831
|
* * The ApsaraDB RDS instance and the scaling group must belong to the same Alibaba Cloud account.
|
|
12820
12832
|
* * The ApsaraDB RDS instance must be unlocked. For more information about the lock policy, see [ApsaraDB RDS usage notes](https://help.aliyun.com/document_detail/41872.html).
|
|
12821
12833
|
* * The ApsaraDB RDS instance must be in the Running state.
|
|
12822
12834
|
* After an ApsaraDB RDS instance is associated with the scaling group, the default IP address whitelist of the ApsaraDB RDS instance can contain no more than 1,000 IP addresses. For more information, see [Set the whitelist](https://help.aliyun.com/document_detail/43185.html).
|
|
12823
12835
|
*
|
|
12824
|
-
* @param request AttachDBInstancesRequest
|
|
12825
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
12826
|
-
* @
|
|
12836
|
+
* @param request - AttachDBInstancesRequest
|
|
12837
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
12838
|
+
* @returns AttachDBInstancesResponse
|
|
12827
12839
|
*/
|
|
12828
12840
|
async attachDBInstancesWithOptions(request, runtime) {
|
|
12829
12841
|
tea_util_1.default.validateModel(request);
|
|
@@ -12872,25 +12884,27 @@ class Client extends openapi_client_1.default {
|
|
|
12872
12884
|
return $tea.cast(await this.callApi(params, req, runtime), new AttachDBInstancesResponse({}));
|
|
12873
12885
|
}
|
|
12874
12886
|
/**
|
|
12875
|
-
*
|
|
12887
|
+
* Associates one or more ApsaraDB RDS instances with a scaling group.
|
|
12876
12888
|
*
|
|
12877
|
-
* @
|
|
12889
|
+
* @remarks
|
|
12890
|
+
* Before you associate an ApsaraDB RDS instance with a scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
|
|
12878
12891
|
* * The ApsaraDB RDS instance and the scaling group must belong to the same Alibaba Cloud account.
|
|
12879
12892
|
* * The ApsaraDB RDS instance must be unlocked. For more information about the lock policy, see [ApsaraDB RDS usage notes](https://help.aliyun.com/document_detail/41872.html).
|
|
12880
12893
|
* * The ApsaraDB RDS instance must be in the Running state.
|
|
12881
12894
|
* After an ApsaraDB RDS instance is associated with the scaling group, the default IP address whitelist of the ApsaraDB RDS instance can contain no more than 1,000 IP addresses. For more information, see [Set the whitelist](https://help.aliyun.com/document_detail/43185.html).
|
|
12882
12895
|
*
|
|
12883
|
-
* @param request AttachDBInstancesRequest
|
|
12884
|
-
* @
|
|
12896
|
+
* @param request - AttachDBInstancesRequest
|
|
12897
|
+
* @returns AttachDBInstancesResponse
|
|
12885
12898
|
*/
|
|
12886
12899
|
async attachDBInstances(request) {
|
|
12887
12900
|
let runtime = new $Util.RuntimeOptions({});
|
|
12888
12901
|
return await this.attachDBInstancesWithOptions(request, runtime);
|
|
12889
12902
|
}
|
|
12890
12903
|
/**
|
|
12891
|
-
*
|
|
12904
|
+
* 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.
|
|
12892
12905
|
*
|
|
12893
|
-
* @
|
|
12906
|
+
* @remarks
|
|
12907
|
+
* Before you call this operation, take note of the following items:
|
|
12894
12908
|
* * The scaling group is in the Active state.
|
|
12895
12909
|
* * No scaling activities in the scaling group are in progress.
|
|
12896
12910
|
* The ECS instances or the elastic container instances that you want to add to a scaling group must meet the following requirements:
|
|
@@ -12905,9 +12919,9 @@ class Client extends openapi_client_1.default {
|
|
|
12905
12919
|
* 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.
|
|
12906
12920
|
* Instances that are manually added by calling the AttachInstances operation are not associated with the active scaling configuration of the scaling group.
|
|
12907
12921
|
*
|
|
12908
|
-
* @param request AttachInstancesRequest
|
|
12909
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
12910
|
-
* @
|
|
12922
|
+
* @param request - AttachInstancesRequest
|
|
12923
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
12924
|
+
* @returns AttachInstancesResponse
|
|
12911
12925
|
*/
|
|
12912
12926
|
async attachInstancesWithOptions(request, runtime) {
|
|
12913
12927
|
tea_util_1.default.validateModel(request);
|
|
@@ -12962,9 +12976,10 @@ class Client extends openapi_client_1.default {
|
|
|
12962
12976
|
return $tea.cast(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
|
|
12963
12977
|
}
|
|
12964
12978
|
/**
|
|
12965
|
-
*
|
|
12979
|
+
* 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.
|
|
12966
12980
|
*
|
|
12967
|
-
* @
|
|
12981
|
+
* @remarks
|
|
12982
|
+
* Before you call this operation, take note of the following items:
|
|
12968
12983
|
* * The scaling group is in the Active state.
|
|
12969
12984
|
* * No scaling activities in the scaling group are in progress.
|
|
12970
12985
|
* The ECS instances or the elastic container instances that you want to add to a scaling group must meet the following requirements:
|
|
@@ -12979,17 +12994,18 @@ class Client extends openapi_client_1.default {
|
|
|
12979
12994
|
* 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.
|
|
12980
12995
|
* Instances that are manually added by calling the AttachInstances operation are not associated with the active scaling configuration of the scaling group.
|
|
12981
12996
|
*
|
|
12982
|
-
* @param request AttachInstancesRequest
|
|
12983
|
-
* @
|
|
12997
|
+
* @param request - AttachInstancesRequest
|
|
12998
|
+
* @returns AttachInstancesResponse
|
|
12984
12999
|
*/
|
|
12985
13000
|
async attachInstances(request) {
|
|
12986
13001
|
let runtime = new $Util.RuntimeOptions({});
|
|
12987
13002
|
return await this.attachInstancesWithOptions(request, runtime);
|
|
12988
13003
|
}
|
|
12989
13004
|
/**
|
|
12990
|
-
*
|
|
13005
|
+
* 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.
|
|
12991
13006
|
*
|
|
12992
|
-
* @
|
|
13007
|
+
* @remarks
|
|
13008
|
+
* Before you call this operation, make sure that the following requirements are met:
|
|
12993
13009
|
* * The load balancer and the scaling group belong to the same Alibaba Cloud account and region.
|
|
12994
13010
|
* * The load balancer is in the `Running` state.
|
|
12995
13011
|
* * At least one listener is configured for the load balancer, and the health check feature is enabled for the load balancer.
|
|
@@ -12997,9 +13013,9 @@ class Client extends openapi_client_1.default {
|
|
|
12997
13013
|
* * 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.
|
|
12998
13014
|
* * 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).
|
|
12999
13015
|
*
|
|
13000
|
-
* @param request AttachLoadBalancersRequest
|
|
13001
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
13002
|
-
* @
|
|
13016
|
+
* @param request - AttachLoadBalancersRequest
|
|
13017
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13018
|
+
* @returns AttachLoadBalancersResponse
|
|
13003
13019
|
*/
|
|
13004
13020
|
async attachLoadBalancersWithOptions(request, runtime) {
|
|
13005
13021
|
tea_util_1.default.validateModel(request);
|
|
@@ -13045,9 +13061,10 @@ class Client extends openapi_client_1.default {
|
|
|
13045
13061
|
return $tea.cast(await this.callApi(params, req, runtime), new AttachLoadBalancersResponse({}));
|
|
13046
13062
|
}
|
|
13047
13063
|
/**
|
|
13048
|
-
*
|
|
13064
|
+
* 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.
|
|
13049
13065
|
*
|
|
13050
|
-
* @
|
|
13066
|
+
* @remarks
|
|
13067
|
+
* Before you call this operation, make sure that the following requirements are met:
|
|
13051
13068
|
* * The load balancer and the scaling group belong to the same Alibaba Cloud account and region.
|
|
13052
13069
|
* * The load balancer is in the `Running` state.
|
|
13053
13070
|
* * At least one listener is configured for the load balancer, and the health check feature is enabled for the load balancer.
|
|
@@ -13055,19 +13072,19 @@ class Client extends openapi_client_1.default {
|
|
|
13055
13072
|
* * 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.
|
|
13056
13073
|
* * 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).
|
|
13057
13074
|
*
|
|
13058
|
-
* @param request AttachLoadBalancersRequest
|
|
13059
|
-
* @
|
|
13075
|
+
* @param request - AttachLoadBalancersRequest
|
|
13076
|
+
* @returns AttachLoadBalancersResponse
|
|
13060
13077
|
*/
|
|
13061
13078
|
async attachLoadBalancers(request) {
|
|
13062
13079
|
let runtime = new $Util.RuntimeOptions({});
|
|
13063
13080
|
return await this.attachLoadBalancersWithOptions(request, runtime);
|
|
13064
13081
|
}
|
|
13065
13082
|
/**
|
|
13066
|
-
*
|
|
13083
|
+
* Attaches 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 AttachServerGroups operation. By attaching Application Load Balancer (ALB) or Network Load Balancer (NLB) 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.
|
|
13067
13084
|
*
|
|
13068
|
-
* @param request AttachServerGroupsRequest
|
|
13069
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
13070
|
-
* @
|
|
13085
|
+
* @param request - AttachServerGroupsRequest
|
|
13086
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13087
|
+
* @returns AttachServerGroupsResponse
|
|
13071
13088
|
*/
|
|
13072
13089
|
async attachServerGroupsWithOptions(request, runtime) {
|
|
13073
13090
|
tea_util_1.default.validateModel(request);
|
|
@@ -13110,19 +13127,20 @@ class Client extends openapi_client_1.default {
|
|
|
13110
13127
|
return $tea.cast(await this.callApi(params, req, runtime), new AttachServerGroupsResponse({}));
|
|
13111
13128
|
}
|
|
13112
13129
|
/**
|
|
13113
|
-
*
|
|
13130
|
+
* Attaches 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 AttachServerGroups operation. By attaching Application Load Balancer (ALB) or Network Load Balancer (NLB) 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.
|
|
13114
13131
|
*
|
|
13115
|
-
* @param request AttachServerGroupsRequest
|
|
13116
|
-
* @
|
|
13132
|
+
* @param request - AttachServerGroupsRequest
|
|
13133
|
+
* @returns AttachServerGroupsResponse
|
|
13117
13134
|
*/
|
|
13118
13135
|
async attachServerGroups(request) {
|
|
13119
13136
|
let runtime = new $Util.RuntimeOptions({});
|
|
13120
13137
|
return await this.attachServerGroupsWithOptions(request, runtime);
|
|
13121
13138
|
}
|
|
13122
13139
|
/**
|
|
13123
|
-
*
|
|
13140
|
+
* 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.
|
|
13124
13141
|
*
|
|
13125
|
-
* @
|
|
13142
|
+
* @remarks
|
|
13143
|
+
* Before you call this operation, make sure that the following requirements are met:
|
|
13126
13144
|
* * The CLB instance and the scaling group belong to the same Alibaba Cloud account.
|
|
13127
13145
|
* * The CLB instance and the scaling group reside in the same region.
|
|
13128
13146
|
* * The CLB instance is in the Running state.
|
|
@@ -13138,9 +13156,9 @@ class Client extends openapi_client_1.default {
|
|
|
13138
13156
|
* **
|
|
13139
13157
|
* **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.
|
|
13140
13158
|
*
|
|
13141
|
-
* @param request AttachVServerGroupsRequest
|
|
13142
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
13143
|
-
* @
|
|
13159
|
+
* @param request - AttachVServerGroupsRequest
|
|
13160
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13161
|
+
* @returns AttachVServerGroupsResponse
|
|
13144
13162
|
*/
|
|
13145
13163
|
async attachVServerGroupsWithOptions(request, runtime) {
|
|
13146
13164
|
tea_util_1.default.validateModel(request);
|
|
@@ -13183,9 +13201,10 @@ class Client extends openapi_client_1.default {
|
|
|
13183
13201
|
return $tea.cast(await this.callApi(params, req, runtime), new AttachVServerGroupsResponse({}));
|
|
13184
13202
|
}
|
|
13185
13203
|
/**
|
|
13186
|
-
*
|
|
13204
|
+
* 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.
|
|
13187
13205
|
*
|
|
13188
|
-
* @
|
|
13206
|
+
* @remarks
|
|
13207
|
+
* Before you call this operation, make sure that the following requirements are met:
|
|
13189
13208
|
* * The CLB instance and the scaling group belong to the same Alibaba Cloud account.
|
|
13190
13209
|
* * The CLB instance and the scaling group reside in the same region.
|
|
13191
13210
|
* * The CLB instance is in the Running state.
|
|
@@ -13201,22 +13220,23 @@ class Client extends openapi_client_1.default {
|
|
|
13201
13220
|
* **
|
|
13202
13221
|
* **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.
|
|
13203
13222
|
*
|
|
13204
|
-
* @param request AttachVServerGroupsRequest
|
|
13205
|
-
* @
|
|
13223
|
+
* @param request - AttachVServerGroupsRequest
|
|
13224
|
+
* @returns AttachVServerGroupsResponse
|
|
13206
13225
|
*/
|
|
13207
13226
|
async attachVServerGroups(request) {
|
|
13208
13227
|
let runtime = new $Util.RuntimeOptions({});
|
|
13209
13228
|
return await this.attachVServerGroupsWithOptions(request, runtime);
|
|
13210
13229
|
}
|
|
13211
13230
|
/**
|
|
13212
|
-
*
|
|
13231
|
+
* Changes a resource group. Resource groups are a means to categorize and manage cloud resources, such as scaling groups, based on specific objectives, permissions, or ownership. In large, multifaceted organizations that manage numerous projects and users, this feature adopts a tiered management approach, simplifying management tasks and improving the effectiveness and oversight of resource allocation. You can call the ChangeResourceGroup operation to move your scaling groups from one resource group to another resource group, which facilitates streamlined monitoring and management within the context of the new group. This operation eliminates the need for repetitive and time-consuming cross-service resource queries, thereby enhancing operational efficiency.
|
|
13213
13232
|
*
|
|
13214
|
-
* @
|
|
13233
|
+
* @remarks
|
|
13234
|
+
* A resource is an entity of cloud services that you create on Alibaba Cloud. For example, a scaling group is a resource.
|
|
13215
13235
|
* * A resource group serves as a powerful organizational tool within your Alibaba Cloud account, enabling you to manage and monitor multiple resources collectively. It effectively addresses complexities surrounding resource categorization and permission control under a single Alibaba Cloud account, thereby enhancing management efficiency and control. For more information, see [What is resource management?](https://help.aliyun.com/document_detail/94475.html)
|
|
13216
13236
|
*
|
|
13217
|
-
* @param request ChangeResourceGroupRequest
|
|
13218
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
13219
|
-
* @
|
|
13237
|
+
* @param request - ChangeResourceGroupRequest
|
|
13238
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13239
|
+
* @returns ChangeResourceGroupResponse
|
|
13220
13240
|
*/
|
|
13221
13241
|
async changeResourceGroupWithOptions(request, runtime) {
|
|
13222
13242
|
tea_util_1.default.validateModel(request);
|
|
@@ -13256,26 +13276,28 @@ class Client extends openapi_client_1.default {
|
|
|
13256
13276
|
return $tea.cast(await this.callApi(params, req, runtime), new ChangeResourceGroupResponse({}));
|
|
13257
13277
|
}
|
|
13258
13278
|
/**
|
|
13259
|
-
*
|
|
13279
|
+
* Changes a resource group. Resource groups are a means to categorize and manage cloud resources, such as scaling groups, based on specific objectives, permissions, or ownership. In large, multifaceted organizations that manage numerous projects and users, this feature adopts a tiered management approach, simplifying management tasks and improving the effectiveness and oversight of resource allocation. You can call the ChangeResourceGroup operation to move your scaling groups from one resource group to another resource group, which facilitates streamlined monitoring and management within the context of the new group. This operation eliminates the need for repetitive and time-consuming cross-service resource queries, thereby enhancing operational efficiency.
|
|
13260
13280
|
*
|
|
13261
|
-
* @
|
|
13281
|
+
* @remarks
|
|
13282
|
+
* A resource is an entity of cloud services that you create on Alibaba Cloud. For example, a scaling group is a resource.
|
|
13262
13283
|
* * A resource group serves as a powerful organizational tool within your Alibaba Cloud account, enabling you to manage and monitor multiple resources collectively. It effectively addresses complexities surrounding resource categorization and permission control under a single Alibaba Cloud account, thereby enhancing management efficiency and control. For more information, see [What is resource management?](https://help.aliyun.com/document_detail/94475.html)
|
|
13263
13284
|
*
|
|
13264
|
-
* @param request ChangeResourceGroupRequest
|
|
13265
|
-
* @
|
|
13285
|
+
* @param request - ChangeResourceGroupRequest
|
|
13286
|
+
* @returns ChangeResourceGroupResponse
|
|
13266
13287
|
*/
|
|
13267
13288
|
async changeResourceGroup(request) {
|
|
13268
13289
|
let runtime = new $Util.RuntimeOptions({});
|
|
13269
13290
|
return await this.changeResourceGroupWithOptions(request, runtime);
|
|
13270
13291
|
}
|
|
13271
13292
|
/**
|
|
13272
|
-
*
|
|
13293
|
+
* 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.
|
|
13273
13294
|
*
|
|
13274
|
-
* @
|
|
13295
|
+
* @remarks
|
|
13296
|
+
* 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.
|
|
13275
13297
|
*
|
|
13276
|
-
* @param request CompleteLifecycleActionRequest
|
|
13277
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
13278
|
-
* @
|
|
13298
|
+
* @param request - CompleteLifecycleActionRequest
|
|
13299
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13300
|
+
* @returns CompleteLifecycleActionResponse
|
|
13279
13301
|
*/
|
|
13280
13302
|
async completeLifecycleActionWithOptions(request, runtime) {
|
|
13281
13303
|
tea_util_1.default.validateModel(request);
|
|
@@ -13321,29 +13343,31 @@ class Client extends openapi_client_1.default {
|
|
|
13321
13343
|
return $tea.cast(await this.callApi(params, req, runtime), new CompleteLifecycleActionResponse({}));
|
|
13322
13344
|
}
|
|
13323
13345
|
/**
|
|
13324
|
-
*
|
|
13346
|
+
* 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.
|
|
13325
13347
|
*
|
|
13326
|
-
* @
|
|
13348
|
+
* @remarks
|
|
13349
|
+
* 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.
|
|
13327
13350
|
*
|
|
13328
|
-
* @param request CompleteLifecycleActionRequest
|
|
13329
|
-
* @
|
|
13351
|
+
* @param request - CompleteLifecycleActionRequest
|
|
13352
|
+
* @returns CompleteLifecycleActionResponse
|
|
13330
13353
|
*/
|
|
13331
13354
|
async completeLifecycleAction(request) {
|
|
13332
13355
|
let runtime = new $Util.RuntimeOptions({});
|
|
13333
13356
|
return await this.completeLifecycleActionWithOptions(request, runtime);
|
|
13334
13357
|
}
|
|
13335
13358
|
/**
|
|
13336
|
-
*
|
|
13359
|
+
* Creates event-triggered tasks. If your business encounters unexpected traffic surges or has no specific patterns, you can call the CreateAlarm operation to create an event-triggered task and associate a CloudMonitor metric with the task. This allows you to dynamically adjust the number of Elastic Compute Service (ECS) instances or elastic container instances in your scaling group and keep updated on the real-time metric data, which facilitates cloud resource management and maintenance.
|
|
13337
13360
|
*
|
|
13338
|
-
* @
|
|
13361
|
+
* @remarks
|
|
13362
|
+
* If you set MetricType to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Event-triggered tasks of the custom monitoring type](https://help.aliyun.com/document_detail/74861.html).
|
|
13339
13363
|
* * When you create an event-triggered task, you must specify MetricName, Dimensions.DimensionKey, and Dimensions.DimensionValue to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify user_id and scaling_group for an event-triggered task to aggregate monitoring data of all ECS instances or elastic container instances in a scaling group within an Alibaba Cloud account.
|
|
13340
13364
|
* * If you create an event-triggered task of the custom monitoring type, you can specify only custom metrics in the task.
|
|
13341
13365
|
* * If you create an event-triggered task of the system monitoring type, you can specify the system metrics described in [Event-triggered tasks of the system monitoring type](https://help.aliyun.com/document_detail/74854.html) in the task.
|
|
13342
13366
|
* > user_id and scaling_group are automatically populated. You need to only specify device and state. For more information, see `Dimensions.DimensionKey` and `Dimensions.DimensionValue` in the "Request parameters" section of this topic.
|
|
13343
13367
|
*
|
|
13344
|
-
* @param request CreateAlarmRequest
|
|
13345
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
13346
|
-
* @
|
|
13368
|
+
* @param request - CreateAlarmRequest
|
|
13369
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13370
|
+
* @returns CreateAlarmResponse
|
|
13347
13371
|
*/
|
|
13348
13372
|
async createAlarmWithOptions(request, runtime) {
|
|
13349
13373
|
tea_util_1.default.validateModel(request);
|
|
@@ -13422,30 +13446,32 @@ class Client extends openapi_client_1.default {
|
|
|
13422
13446
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateAlarmResponse({}));
|
|
13423
13447
|
}
|
|
13424
13448
|
/**
|
|
13425
|
-
*
|
|
13449
|
+
* Creates event-triggered tasks. If your business encounters unexpected traffic surges or has no specific patterns, you can call the CreateAlarm operation to create an event-triggered task and associate a CloudMonitor metric with the task. This allows you to dynamically adjust the number of Elastic Compute Service (ECS) instances or elastic container instances in your scaling group and keep updated on the real-time metric data, which facilitates cloud resource management and maintenance.
|
|
13426
13450
|
*
|
|
13427
|
-
* @
|
|
13451
|
+
* @remarks
|
|
13452
|
+
* If you set MetricType to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Event-triggered tasks of the custom monitoring type](https://help.aliyun.com/document_detail/74861.html).
|
|
13428
13453
|
* * When you create an event-triggered task, you must specify MetricName, Dimensions.DimensionKey, and Dimensions.DimensionValue to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify user_id and scaling_group for an event-triggered task to aggregate monitoring data of all ECS instances or elastic container instances in a scaling group within an Alibaba Cloud account.
|
|
13429
13454
|
* * If you create an event-triggered task of the custom monitoring type, you can specify only custom metrics in the task.
|
|
13430
13455
|
* * If you create an event-triggered task of the system monitoring type, you can specify the system metrics described in [Event-triggered tasks of the system monitoring type](https://help.aliyun.com/document_detail/74854.html) in the task.
|
|
13431
13456
|
* > user_id and scaling_group are automatically populated. You need to only specify device and state. For more information, see `Dimensions.DimensionKey` and `Dimensions.DimensionValue` in the "Request parameters" section of this topic.
|
|
13432
13457
|
*
|
|
13433
|
-
* @param request CreateAlarmRequest
|
|
13434
|
-
* @
|
|
13458
|
+
* @param request - CreateAlarmRequest
|
|
13459
|
+
* @returns CreateAlarmResponse
|
|
13435
13460
|
*/
|
|
13436
13461
|
async createAlarm(request) {
|
|
13437
13462
|
let runtime = new $Util.RuntimeOptions({});
|
|
13438
13463
|
return await this.createAlarmWithOptions(request, runtime);
|
|
13439
13464
|
}
|
|
13440
13465
|
/**
|
|
13441
|
-
*
|
|
13466
|
+
* 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-outs.
|
|
13442
13467
|
*
|
|
13443
|
-
* @
|
|
13468
|
+
* @remarks
|
|
13469
|
+
* A scaling configuration is a template that is used to create elastic container instances during scale-out activities.
|
|
13444
13470
|
* You can specify the Cpu and Memory parameters to determine the range of instance types. If you specify the parameters, Auto Scaling determines the available instance types based on factors such as I/O optimization requirements and zones. Auto Scaling preferentially creates elastic container instances of the instance type that is provided at the lowest price. This scaling mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
|
|
13445
13471
|
*
|
|
13446
|
-
* @param request CreateEciScalingConfigurationRequest
|
|
13447
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
13448
|
-
* @
|
|
13472
|
+
* @param request - CreateEciScalingConfigurationRequest
|
|
13473
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13474
|
+
* @returns CreateEciScalingConfigurationResponse
|
|
13449
13475
|
*/
|
|
13450
13476
|
async createEciScalingConfigurationWithOptions(request, runtime) {
|
|
13451
13477
|
tea_util_1.default.validateModel(request);
|
|
@@ -13614,29 +13640,31 @@ class Client extends openapi_client_1.default {
|
|
|
13614
13640
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateEciScalingConfigurationResponse({}));
|
|
13615
13641
|
}
|
|
13616
13642
|
/**
|
|
13617
|
-
*
|
|
13643
|
+
* 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-outs.
|
|
13618
13644
|
*
|
|
13619
|
-
* @
|
|
13645
|
+
* @remarks
|
|
13646
|
+
* A scaling configuration is a template that is used to create elastic container instances during scale-out activities.
|
|
13620
13647
|
* You can specify the Cpu and Memory parameters to determine the range of instance types. If you specify the parameters, Auto Scaling determines the available instance types based on factors such as I/O optimization requirements and zones. Auto Scaling preferentially creates elastic container instances of the instance type that is provided at the lowest price. This scaling mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
|
|
13621
13648
|
*
|
|
13622
|
-
* @param request CreateEciScalingConfigurationRequest
|
|
13623
|
-
* @
|
|
13649
|
+
* @param request - CreateEciScalingConfigurationRequest
|
|
13650
|
+
* @returns CreateEciScalingConfigurationResponse
|
|
13624
13651
|
*/
|
|
13625
13652
|
async createEciScalingConfiguration(request) {
|
|
13626
13653
|
let runtime = new $Util.RuntimeOptions({});
|
|
13627
13654
|
return await this.createEciScalingConfigurationWithOptions(request, runtime);
|
|
13628
13655
|
}
|
|
13629
13656
|
/**
|
|
13630
|
-
*
|
|
13657
|
+
* 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.
|
|
13631
13658
|
*
|
|
13632
|
-
* @
|
|
13659
|
+
* @remarks
|
|
13660
|
+
* You can create up to six lifecycle hooks for each scaling group. After a lifecycle hook is created for a scaling group, Elastic Compute Service (ECS) instances in the scaling group waits to be added to or removed from the scaling group during scaling activities. You can use the HeartbeatTimeout parameter to specify the timeout period of the lifecycle hook. During the timeout period of a lifecycle hook, you can perform custom operations such as initialize ECS instance configurations and download ECS instance data on the ECS instances for which the lifecycle hook is applied.
|
|
13633
13661
|
* During a scale-out activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be added to the associated whitelist that manages access to the ApsaraDB RDS instance. The ECS instances also wait to be added to the backend server group of the associated Classic Load Balancer (CLB) instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are added to the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also added to the backend server group of the associated CLB instance. During a scale-in activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances also wait to be removed from the backend server group of the associated CLB instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also removed from the backend server group of the associated CLB instance.
|
|
13634
13662
|
* You can configure a notification method for a lifecycle hook. When the lifecycle hook is triggered, a notification can be sent to the specified Message Service (MNS) topic or queue, or an operation can be performed based on the specified Operation Orchestration Service (OOS) template. If you want to configure an OOS template, you must create a Resource Access Management (RAM) role for OOS. For more information, see [Grant RAM permissions to OOS](https://help.aliyun.com/document_detail/120810.html).
|
|
13635
13663
|
* > If your scaling group has existing ECS instances and you configured an OOS template that is used to add the private IP addresses of ECS instances to or remove the private IP addresses of ECS instances from the whitelists that manage access to cloud databases that are not ApsaraDB RDS databases, you must manually add the private IP addresses of the ECS instances to or remove the private IP addresses of the ECS instances from the whitelists that manage access to the cloud databases.
|
|
13636
13664
|
*
|
|
13637
|
-
* @param request CreateLifecycleHookRequest
|
|
13638
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
13639
|
-
* @
|
|
13665
|
+
* @param request - CreateLifecycleHookRequest
|
|
13666
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13667
|
+
* @returns CreateLifecycleHookResponse
|
|
13640
13668
|
*/
|
|
13641
13669
|
async createLifecycleHookWithOptions(request, runtime) {
|
|
13642
13670
|
tea_util_1.default.validateModel(request);
|
|
@@ -13688,29 +13716,31 @@ class Client extends openapi_client_1.default {
|
|
|
13688
13716
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateLifecycleHookResponse({}));
|
|
13689
13717
|
}
|
|
13690
13718
|
/**
|
|
13691
|
-
*
|
|
13719
|
+
* 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.
|
|
13692
13720
|
*
|
|
13693
|
-
* @
|
|
13721
|
+
* @remarks
|
|
13722
|
+
* You can create up to six lifecycle hooks for each scaling group. After a lifecycle hook is created for a scaling group, Elastic Compute Service (ECS) instances in the scaling group waits to be added to or removed from the scaling group during scaling activities. You can use the HeartbeatTimeout parameter to specify the timeout period of the lifecycle hook. During the timeout period of a lifecycle hook, you can perform custom operations such as initialize ECS instance configurations and download ECS instance data on the ECS instances for which the lifecycle hook is applied.
|
|
13694
13723
|
* During a scale-out activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be added to the associated whitelist that manages access to the ApsaraDB RDS instance. The ECS instances also wait to be added to the backend server group of the associated Classic Load Balancer (CLB) instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are added to the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also added to the backend server group of the associated CLB instance. During a scale-in activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances also wait to be removed from the backend server group of the associated CLB instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also removed from the backend server group of the associated CLB instance.
|
|
13695
13724
|
* You can configure a notification method for a lifecycle hook. When the lifecycle hook is triggered, a notification can be sent to the specified Message Service (MNS) topic or queue, or an operation can be performed based on the specified Operation Orchestration Service (OOS) template. If you want to configure an OOS template, you must create a Resource Access Management (RAM) role for OOS. For more information, see [Grant RAM permissions to OOS](https://help.aliyun.com/document_detail/120810.html).
|
|
13696
13725
|
* > If your scaling group has existing ECS instances and you configured an OOS template that is used to add the private IP addresses of ECS instances to or remove the private IP addresses of ECS instances from the whitelists that manage access to cloud databases that are not ApsaraDB RDS databases, you must manually add the private IP addresses of the ECS instances to or remove the private IP addresses of the ECS instances from the whitelists that manage access to the cloud databases.
|
|
13697
13726
|
*
|
|
13698
|
-
* @param request CreateLifecycleHookRequest
|
|
13699
|
-
* @
|
|
13727
|
+
* @param request - CreateLifecycleHookRequest
|
|
13728
|
+
* @returns CreateLifecycleHookResponse
|
|
13700
13729
|
*/
|
|
13701
13730
|
async createLifecycleHook(request) {
|
|
13702
13731
|
let runtime = new $Util.RuntimeOptions({});
|
|
13703
13732
|
return await this.createLifecycleHookWithOptions(request, runtime);
|
|
13704
13733
|
}
|
|
13705
13734
|
/**
|
|
13706
|
-
*
|
|
13735
|
+
* 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.
|
|
13707
13736
|
*
|
|
13708
|
-
* @
|
|
13737
|
+
* @remarks
|
|
13738
|
+
* ## Description
|
|
13709
13739
|
* You can configure CloudMonitor system events, Message Service (MNS) queues, or MNS topics to receive notifications. When a specified type of scaling activity or resource change occurs in a scaling group, Auto Scaling sends notifications by using CloudMonitor or MNS.
|
|
13710
13740
|
*
|
|
13711
|
-
* @param request CreateNotificationConfigurationRequest
|
|
13712
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
13713
|
-
* @
|
|
13741
|
+
* @param request - CreateNotificationConfigurationRequest
|
|
13742
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13743
|
+
* @returns CreateNotificationConfigurationResponse
|
|
13714
13744
|
*/
|
|
13715
13745
|
async createNotificationConfigurationWithOptions(request, runtime) {
|
|
13716
13746
|
tea_util_1.default.validateModel(request);
|
|
@@ -13733,6 +13763,9 @@ class Client extends openapi_client_1.default {
|
|
|
13733
13763
|
if (!tea_util_1.default.isUnset(request.scalingGroupId)) {
|
|
13734
13764
|
query["ScalingGroupId"] = request.scalingGroupId;
|
|
13735
13765
|
}
|
|
13766
|
+
if (!tea_util_1.default.isUnset(request.timeZone)) {
|
|
13767
|
+
query["TimeZone"] = request.timeZone;
|
|
13768
|
+
}
|
|
13736
13769
|
let req = new $OpenApi.OpenApiRequest({
|
|
13737
13770
|
query: openapi_util_1.default.query(query),
|
|
13738
13771
|
});
|
|
@@ -13750,22 +13783,24 @@ class Client extends openapi_client_1.default {
|
|
|
13750
13783
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateNotificationConfigurationResponse({}));
|
|
13751
13784
|
}
|
|
13752
13785
|
/**
|
|
13753
|
-
*
|
|
13786
|
+
* 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.
|
|
13754
13787
|
*
|
|
13755
|
-
* @
|
|
13788
|
+
* @remarks
|
|
13789
|
+
* ## Description
|
|
13756
13790
|
* You can configure CloudMonitor system events, Message Service (MNS) queues, or MNS topics to receive notifications. When a specified type of scaling activity or resource change occurs in a scaling group, Auto Scaling sends notifications by using CloudMonitor or MNS.
|
|
13757
13791
|
*
|
|
13758
|
-
* @param request CreateNotificationConfigurationRequest
|
|
13759
|
-
* @
|
|
13792
|
+
* @param request - CreateNotificationConfigurationRequest
|
|
13793
|
+
* @returns CreateNotificationConfigurationResponse
|
|
13760
13794
|
*/
|
|
13761
13795
|
async createNotificationConfiguration(request) {
|
|
13762
13796
|
let runtime = new $Util.RuntimeOptions({});
|
|
13763
13797
|
return await this.createNotificationConfigurationWithOptions(request, runtime);
|
|
13764
13798
|
}
|
|
13765
13799
|
/**
|
|
13766
|
-
*
|
|
13800
|
+
* Creates a scaling configuration.
|
|
13767
13801
|
*
|
|
13768
|
-
* @
|
|
13802
|
+
* @remarks
|
|
13803
|
+
* Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
|
|
13769
13804
|
* * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the instance type that has the lowest price based on the configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces scale-out failures caused by insufficient inventory of instance types.
|
|
13770
13805
|
* * InstanceType: In this mode, you must specify one instance type.
|
|
13771
13806
|
* * InstanceTypes: In this mode, you can specify more than one instance type.
|
|
@@ -13773,9 +13808,9 @@ class Client extends openapi_client_1.default {
|
|
|
13773
13808
|
* * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances by using the lowest-priced instance type. This mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
|
|
13774
13809
|
* > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-outs. If the instance types that are specified by InstanceType or InstanceTypes do not have sufficient inventory, Auto Scaling uses the instance types that are specified by InstancePatternInfos for scale-outs.
|
|
13775
13810
|
*
|
|
13776
|
-
* @param tmpReq CreateScalingConfigurationRequest
|
|
13777
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
13778
|
-
* @
|
|
13811
|
+
* @param tmpReq - CreateScalingConfigurationRequest
|
|
13812
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13813
|
+
* @returns CreateScalingConfigurationResponse
|
|
13779
13814
|
*/
|
|
13780
13815
|
async createScalingConfigurationWithOptions(tmpReq, runtime) {
|
|
13781
13816
|
tea_util_1.default.validateModel(tmpReq);
|
|
@@ -13973,9 +14008,10 @@ class Client extends openapi_client_1.default {
|
|
|
13973
14008
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateScalingConfigurationResponse({}));
|
|
13974
14009
|
}
|
|
13975
14010
|
/**
|
|
13976
|
-
*
|
|
14011
|
+
* Creates a scaling configuration.
|
|
13977
14012
|
*
|
|
13978
|
-
* @
|
|
14013
|
+
* @remarks
|
|
14014
|
+
* Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
|
|
13979
14015
|
* * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the instance type that has the lowest price based on the configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces scale-out failures caused by insufficient inventory of instance types.
|
|
13980
14016
|
* * InstanceType: In this mode, you must specify one instance type.
|
|
13981
14017
|
* * InstanceTypes: In this mode, you can specify more than one instance type.
|
|
@@ -13983,42 +14019,43 @@ class Client extends openapi_client_1.default {
|
|
|
13983
14019
|
* * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances by using the lowest-priced instance type. This mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
|
|
13984
14020
|
* > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-outs. If the instance types that are specified by InstanceType or InstanceTypes do not have sufficient inventory, Auto Scaling uses the instance types that are specified by InstancePatternInfos for scale-outs.
|
|
13985
14021
|
*
|
|
13986
|
-
* @param request CreateScalingConfigurationRequest
|
|
13987
|
-
* @
|
|
14022
|
+
* @param request - CreateScalingConfigurationRequest
|
|
14023
|
+
* @returns CreateScalingConfigurationResponse
|
|
13988
14024
|
*/
|
|
13989
14025
|
async createScalingConfiguration(request) {
|
|
13990
14026
|
let runtime = new $Util.RuntimeOptions({});
|
|
13991
14027
|
return await this.createScalingConfigurationWithOptions(request, runtime);
|
|
13992
14028
|
}
|
|
13993
14029
|
/**
|
|
13994
|
-
*
|
|
14030
|
+
* Creates a scaling group. You can call the CreateScalingGroup operation to automate the adjustment of computing power of a specific type based on your business requirements and scaling polices.
|
|
13995
14031
|
*
|
|
13996
|
-
* @
|
|
14032
|
+
* @remarks
|
|
14033
|
+
* A scaling group is a group of Elastic Compute Service (ECS) instances that can be used for similar purposes.
|
|
13997
14034
|
* You can create only a limited number of scaling groups in a region. To check the quota of the scaling groups, go to Quota Center.
|
|
13998
14035
|
* A scaling group does not immediately take effect after you create the scaling group. You can call the [EnableScalingGroup](https://help.aliyun.com/document_detail/25939.html) operation to enable a scaling group. You can trigger scaling events and execute scaling rules only in scaling groups that are in the Enabled state.
|
|
13999
14036
|
* If you want to attach a Classic Load Balancer (CLB, formerly known as SLB) instance and an ApsaraDB RDS instance to the scaling group that you want to create, the scaling group, the CLB instance, and the ApsaraDB RDS instance must reside in the same region. For more information, see [Regions and zones](https://help.aliyun.com/document_detail/40654.html).
|
|
14000
|
-
* If you attach a CLB instance to the scaling group that you want to create, Auto Scaling
|
|
14037
|
+
* If you attach a CLB instance to the scaling group that you want to create, Auto Scaling automatically adds the ECS instances in the scaling group to the backend server groups of the CLB instance. You can specify the following types of server groups to add ECS instances:
|
|
14001
14038
|
* * Default server group: ECS instances in this group process frontend requests. If no listeners are configured for vServer groups or primary/secondary server groups, the frontend requests are forwarded to the ECS instances in the default server group.
|
|
14002
|
-
* * vServer group: If you want to forward different requests to different backend servers, or you want to forward requests based on domain names
|
|
14003
|
-
* > If you specify both the default server group and multiple server groups simultaneously, Auto Scaling
|
|
14039
|
+
* * vServer group: If you want to forward different requests to different backend servers, or you want to forward requests based on domain names or URLs, you can specify vServer groups.
|
|
14040
|
+
* > If you specify both the default server group and multiple server groups simultaneously, Auto Scaling adds the ECS instances in your scaling group to these server groups concurrently.
|
|
14004
14041
|
* The default weight of each ECS instance as a backend server is 50. If you want to attach a CLB instance to the scaling group that you want to create, make sure that the CLB instance meets the following requirements:
|
|
14005
14042
|
* * The CLB instance is in the Active state. You can call the [DescribeLoadBalancers](https://help.aliyun.com/document_detail/2401696.html) operation to query the status of CLB instances.
|
|
14006
14043
|
* * Health check must be enabled on all listener ports configured for the CLB instance. Otherwise, the scaling group will fail to be created.
|
|
14007
|
-
* If you attach Application Load Balancer (ALB) or Network Load Balancer (NLB) server groups to the scaling group that you want to create, Auto Scaling
|
|
14008
|
-
* If you attach an ApsaraDB RDS instance to the scaling group that you want to create, Auto Scaling
|
|
14044
|
+
* If you attach Application Load Balancer (ALB) or Network Load Balancer (NLB) server groups to the scaling group that you want to create, Auto Scaling adds the ECS instances in your scaling group to the ALB or NLB server groups to process the access requests forwarded by the corresponding ALB or NLB instances. You can attach multiple ALB or NLB server groups to a scaling group. Make sure that the ALB or NLB server groups belong to the same virtual private cloud (VPC). For more information, see [AttachAlbServerGroups](https://help.aliyun.com/document_detail/266800.html) or [AttachServerGroups](https://help.aliyun.com/document_detail/600535.html).
|
|
14045
|
+
* If you attach an ApsaraDB RDS instance to the scaling group that you want to create, Auto Scaling automatically adds the private IP addresses of the ECS instances in your scaling group to the IP address whitelist of the ApsaraDB RDS instance. Before you attach an ApsaraDB RDS instance to your scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
|
|
14009
14046
|
* * The ApsaraDB RDS instance is in the Running state. You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/610396.html) state to query the status of ApsaraDB RDS instances.
|
|
14010
14047
|
* * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance does not reach its upper limit. For more information, see [Configure a whitelist](https://help.aliyun.com/document_detail/43185.html).
|
|
14011
14048
|
* If you set MultiAZPolicy for the scaling group that you want to create to COST_OPTIMIZED, the following rules apply:
|
|
14012
|
-
* * If you use OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, and SpotInstancePools to specify the instance allocation mode under the cost optimization policy, Auto Scaling
|
|
14013
|
-
* * If you do not specify OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, or SpotInstancePools, Auto Scaling
|
|
14049
|
+
* * If you use OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, and SpotInstancePools to specify the instance allocation mode under the cost optimization policy, Auto Scaling prioritizes the implementation of the specified instance allocation mode during scale-out events.
|
|
14050
|
+
* * If you do not specify OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, or SpotInstancePools, Auto Scaling preferentially creates instances of the lowest-priced instance type based on the cost optimization policy.
|
|
14014
14051
|
* If you set `Tags.Propagate` to true, the following rules will apply:
|
|
14015
14052
|
* * Tags that you add to the scaling group cannot be propagated to existing instances in the scaling group. Tags that you add to the scaling group are propagated to only new instances.
|
|
14016
14053
|
* * If you specify instance tags in the scaling configuration that is used to create instances and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
|
|
14017
14054
|
* * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group of the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
|
|
14018
14055
|
*
|
|
14019
|
-
* @param request CreateScalingGroupRequest
|
|
14020
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
14021
|
-
* @
|
|
14056
|
+
* @param request - CreateScalingGroupRequest
|
|
14057
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14058
|
+
* @returns CreateScalingGroupResponse
|
|
14022
14059
|
*/
|
|
14023
14060
|
async createScalingGroupWithOptions(request, runtime) {
|
|
14024
14061
|
tea_util_1.default.validateModel(request);
|
|
@@ -14175,42 +14212,44 @@ class Client extends openapi_client_1.default {
|
|
|
14175
14212
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateScalingGroupResponse({}));
|
|
14176
14213
|
}
|
|
14177
14214
|
/**
|
|
14178
|
-
*
|
|
14215
|
+
* Creates a scaling group. You can call the CreateScalingGroup operation to automate the adjustment of computing power of a specific type based on your business requirements and scaling polices.
|
|
14179
14216
|
*
|
|
14180
|
-
* @
|
|
14217
|
+
* @remarks
|
|
14218
|
+
* A scaling group is a group of Elastic Compute Service (ECS) instances that can be used for similar purposes.
|
|
14181
14219
|
* You can create only a limited number of scaling groups in a region. To check the quota of the scaling groups, go to Quota Center.
|
|
14182
14220
|
* A scaling group does not immediately take effect after you create the scaling group. You can call the [EnableScalingGroup](https://help.aliyun.com/document_detail/25939.html) operation to enable a scaling group. You can trigger scaling events and execute scaling rules only in scaling groups that are in the Enabled state.
|
|
14183
14221
|
* If you want to attach a Classic Load Balancer (CLB, formerly known as SLB) instance and an ApsaraDB RDS instance to the scaling group that you want to create, the scaling group, the CLB instance, and the ApsaraDB RDS instance must reside in the same region. For more information, see [Regions and zones](https://help.aliyun.com/document_detail/40654.html).
|
|
14184
|
-
* If you attach a CLB instance to the scaling group that you want to create, Auto Scaling
|
|
14222
|
+
* If you attach a CLB instance to the scaling group that you want to create, Auto Scaling automatically adds the ECS instances in the scaling group to the backend server groups of the CLB instance. You can specify the following types of server groups to add ECS instances:
|
|
14185
14223
|
* * Default server group: ECS instances in this group process frontend requests. If no listeners are configured for vServer groups or primary/secondary server groups, the frontend requests are forwarded to the ECS instances in the default server group.
|
|
14186
|
-
* * vServer group: If you want to forward different requests to different backend servers, or you want to forward requests based on domain names
|
|
14187
|
-
* > If you specify both the default server group and multiple server groups simultaneously, Auto Scaling
|
|
14224
|
+
* * vServer group: If you want to forward different requests to different backend servers, or you want to forward requests based on domain names or URLs, you can specify vServer groups.
|
|
14225
|
+
* > If you specify both the default server group and multiple server groups simultaneously, Auto Scaling adds the ECS instances in your scaling group to these server groups concurrently.
|
|
14188
14226
|
* The default weight of each ECS instance as a backend server is 50. If you want to attach a CLB instance to the scaling group that you want to create, make sure that the CLB instance meets the following requirements:
|
|
14189
14227
|
* * The CLB instance is in the Active state. You can call the [DescribeLoadBalancers](https://help.aliyun.com/document_detail/2401696.html) operation to query the status of CLB instances.
|
|
14190
14228
|
* * Health check must be enabled on all listener ports configured for the CLB instance. Otherwise, the scaling group will fail to be created.
|
|
14191
|
-
* If you attach Application Load Balancer (ALB) or Network Load Balancer (NLB) server groups to the scaling group that you want to create, Auto Scaling
|
|
14192
|
-
* If you attach an ApsaraDB RDS instance to the scaling group that you want to create, Auto Scaling
|
|
14229
|
+
* If you attach Application Load Balancer (ALB) or Network Load Balancer (NLB) server groups to the scaling group that you want to create, Auto Scaling adds the ECS instances in your scaling group to the ALB or NLB server groups to process the access requests forwarded by the corresponding ALB or NLB instances. You can attach multiple ALB or NLB server groups to a scaling group. Make sure that the ALB or NLB server groups belong to the same virtual private cloud (VPC). For more information, see [AttachAlbServerGroups](https://help.aliyun.com/document_detail/266800.html) or [AttachServerGroups](https://help.aliyun.com/document_detail/600535.html).
|
|
14230
|
+
* If you attach an ApsaraDB RDS instance to the scaling group that you want to create, Auto Scaling automatically adds the private IP addresses of the ECS instances in your scaling group to the IP address whitelist of the ApsaraDB RDS instance. Before you attach an ApsaraDB RDS instance to your scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
|
|
14193
14231
|
* * The ApsaraDB RDS instance is in the Running state. You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/610396.html) state to query the status of ApsaraDB RDS instances.
|
|
14194
14232
|
* * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance does not reach its upper limit. For more information, see [Configure a whitelist](https://help.aliyun.com/document_detail/43185.html).
|
|
14195
14233
|
* If you set MultiAZPolicy for the scaling group that you want to create to COST_OPTIMIZED, the following rules apply:
|
|
14196
|
-
* * If you use OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, and SpotInstancePools to specify the instance allocation mode under the cost optimization policy, Auto Scaling
|
|
14197
|
-
* * If you do not specify OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, or SpotInstancePools, Auto Scaling
|
|
14234
|
+
* * If you use OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, and SpotInstancePools to specify the instance allocation mode under the cost optimization policy, Auto Scaling prioritizes the implementation of the specified instance allocation mode during scale-out events.
|
|
14235
|
+
* * If you do not specify OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, or SpotInstancePools, Auto Scaling preferentially creates instances of the lowest-priced instance type based on the cost optimization policy.
|
|
14198
14236
|
* If you set `Tags.Propagate` to true, the following rules will apply:
|
|
14199
14237
|
* * Tags that you add to the scaling group cannot be propagated to existing instances in the scaling group. Tags that you add to the scaling group are propagated to only new instances.
|
|
14200
14238
|
* * If you specify instance tags in the scaling configuration that is used to create instances and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
|
|
14201
14239
|
* * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group of the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
|
|
14202
14240
|
*
|
|
14203
|
-
* @param request CreateScalingGroupRequest
|
|
14204
|
-
* @
|
|
14241
|
+
* @param request - CreateScalingGroupRequest
|
|
14242
|
+
* @returns CreateScalingGroupResponse
|
|
14205
14243
|
*/
|
|
14206
14244
|
async createScalingGroup(request) {
|
|
14207
14245
|
let runtime = new $Util.RuntimeOptions({});
|
|
14208
14246
|
return await this.createScalingGroupWithOptions(request, runtime);
|
|
14209
14247
|
}
|
|
14210
14248
|
/**
|
|
14211
|
-
*
|
|
14249
|
+
* Creates a scaling rule. The purpose of a scaling rule varies based on its type. You can use a scaling rule to trigger a scaling activity or adjust the boundary values for a scaling group. You can call the CreateScalingRule operation to create different types of scaling rules based on your business requirements. For example, if your business requires only automatic adjustment of the boundary values for your scaling group, you can call this operation to create a predictive scaling rule.
|
|
14212
14250
|
*
|
|
14213
|
-
* @
|
|
14251
|
+
* @remarks
|
|
14252
|
+
* A scaling rule defines the specific scaling action. For example, you can use a scaling rule to define N instances to add or remove. If the execution of a scaling rule causes the total number of Elastic Compute Service (ECS) instances or elastic container instances in the scaling group to drop below the value of MinSize or to exceed the value of MaxSize, Auto Scaling adjusts the number of instances to add or remove, which ensures that the total number of instances stays within the valid range. Take note that Auto Scaling does not adjust the number of instances that you defined in the scaling rule. Examples:
|
|
14214
14253
|
* * The maximum number of instances (MaxSize) that can be contained in a scaling group is 3 and the current number of instances (Total Capacity) in the scaling group is 2. In this example, the Add3 scaling rule is created to add three ECS instances to the scaling group. However, after you execute Add3, Auto Scaling adds only one ECS instance to the scaling group. In addition, the number of ECS instances to add in the Add3 scaling rule remains unchanged.
|
|
14215
14254
|
* * The minimum number of instances (MinSize) that must be contained in a scaling group is 2 and the current number of instances (Total Capacity) is 3. In this example, the Remove5 scaling rule is created to remove five ECS instances from the scaling group. However, after you execute Remove5, Auto Scaling only removes one ECS instance from the scaling group. In addition, the number of ECS instances to remove in the Remove5 scaling rule remains unchanged.
|
|
14216
14255
|
* Before you call this operation, take note of the following items:
|
|
@@ -14223,9 +14262,9 @@ class Client extends openapi_client_1.default {
|
|
|
14223
14262
|
* * ExecuteScalingRule: You can call this operation to manually execute a scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to execute.
|
|
14224
14263
|
* * CreateScheduledTask: You can call this operation to create a scheduled task for a scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule for which you want to create a scheduled task.
|
|
14225
14264
|
*
|
|
14226
|
-
* @param request CreateScalingRuleRequest
|
|
14227
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
14228
|
-
* @
|
|
14265
|
+
* @param request - CreateScalingRuleRequest
|
|
14266
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14267
|
+
* @returns CreateScalingRuleResponse
|
|
14229
14268
|
*/
|
|
14230
14269
|
async createScalingRuleWithOptions(request, runtime) {
|
|
14231
14270
|
tea_util_1.default.validateModel(request);
|
|
@@ -14319,9 +14358,10 @@ class Client extends openapi_client_1.default {
|
|
|
14319
14358
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateScalingRuleResponse({}));
|
|
14320
14359
|
}
|
|
14321
14360
|
/**
|
|
14322
|
-
*
|
|
14361
|
+
* Creates a scaling rule. The purpose of a scaling rule varies based on its type. You can use a scaling rule to trigger a scaling activity or adjust the boundary values for a scaling group. You can call the CreateScalingRule operation to create different types of scaling rules based on your business requirements. For example, if your business requires only automatic adjustment of the boundary values for your scaling group, you can call this operation to create a predictive scaling rule.
|
|
14323
14362
|
*
|
|
14324
|
-
* @
|
|
14363
|
+
* @remarks
|
|
14364
|
+
* A scaling rule defines the specific scaling action. For example, you can use a scaling rule to define N instances to add or remove. If the execution of a scaling rule causes the total number of Elastic Compute Service (ECS) instances or elastic container instances in the scaling group to drop below the value of MinSize or to exceed the value of MaxSize, Auto Scaling adjusts the number of instances to add or remove, which ensures that the total number of instances stays within the valid range. Take note that Auto Scaling does not adjust the number of instances that you defined in the scaling rule. Examples:
|
|
14325
14365
|
* * The maximum number of instances (MaxSize) that can be contained in a scaling group is 3 and the current number of instances (Total Capacity) in the scaling group is 2. In this example, the Add3 scaling rule is created to add three ECS instances to the scaling group. However, after you execute Add3, Auto Scaling adds only one ECS instance to the scaling group. In addition, the number of ECS instances to add in the Add3 scaling rule remains unchanged.
|
|
14326
14366
|
* * The minimum number of instances (MinSize) that must be contained in a scaling group is 2 and the current number of instances (Total Capacity) is 3. In this example, the Remove5 scaling rule is created to remove five ECS instances from the scaling group. However, after you execute Remove5, Auto Scaling only removes one ECS instance from the scaling group. In addition, the number of ECS instances to remove in the Remove5 scaling rule remains unchanged.
|
|
14327
14367
|
* Before you call this operation, take note of the following items:
|
|
@@ -14334,17 +14374,18 @@ class Client extends openapi_client_1.default {
|
|
|
14334
14374
|
* * ExecuteScalingRule: You can call this operation to manually execute a scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to execute.
|
|
14335
14375
|
* * CreateScheduledTask: You can call this operation to create a scheduled task for a scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule for which you want to create a scheduled task.
|
|
14336
14376
|
*
|
|
14337
|
-
* @param request CreateScalingRuleRequest
|
|
14338
|
-
* @
|
|
14377
|
+
* @param request - CreateScalingRuleRequest
|
|
14378
|
+
* @returns CreateScalingRuleResponse
|
|
14339
14379
|
*/
|
|
14340
14380
|
async createScalingRule(request) {
|
|
14341
14381
|
let runtime = new $Util.RuntimeOptions({});
|
|
14342
14382
|
return await this.createScalingRuleWithOptions(request, runtime);
|
|
14343
14383
|
}
|
|
14344
14384
|
/**
|
|
14345
|
-
*
|
|
14385
|
+
* 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.
|
|
14346
14386
|
*
|
|
14347
|
-
* @
|
|
14387
|
+
* @remarks
|
|
14388
|
+
* 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.
|
|
14348
14389
|
* * If several scheduled tasks concurrently attempt to execute the same scaling rule within a scaling group, the following rules apply:
|
|
14349
14390
|
* * 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.
|
|
14350
14391
|
* * 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.
|
|
@@ -14354,9 +14395,9 @@ class Client extends openapi_client_1.default {
|
|
|
14354
14395
|
* **
|
|
14355
14396
|
* **Note** You cannot specify ScheduledAction and ScalingGroupId at the same time.
|
|
14356
14397
|
*
|
|
14357
|
-
* @param request CreateScheduledTaskRequest
|
|
14358
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
14359
|
-
* @
|
|
14398
|
+
* @param request - CreateScheduledTaskRequest
|
|
14399
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14400
|
+
* @returns CreateScheduledTaskResponse
|
|
14360
14401
|
*/
|
|
14361
14402
|
async createScheduledTaskWithOptions(request, runtime) {
|
|
14362
14403
|
tea_util_1.default.validateModel(request);
|
|
@@ -14429,9 +14470,10 @@ class Client extends openapi_client_1.default {
|
|
|
14429
14470
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateScheduledTaskResponse({}));
|
|
14430
14471
|
}
|
|
14431
14472
|
/**
|
|
14432
|
-
*
|
|
14473
|
+
* 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.
|
|
14433
14474
|
*
|
|
14434
|
-
* @
|
|
14475
|
+
* @remarks
|
|
14476
|
+
* 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.
|
|
14435
14477
|
* * If several scheduled tasks concurrently attempt to execute the same scaling rule within a scaling group, the following rules apply:
|
|
14436
14478
|
* * 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.
|
|
14437
14479
|
* * 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.
|
|
@@ -14441,21 +14483,22 @@ class Client extends openapi_client_1.default {
|
|
|
14441
14483
|
* **
|
|
14442
14484
|
* **Note** You cannot specify ScheduledAction and ScalingGroupId at the same time.
|
|
14443
14485
|
*
|
|
14444
|
-
* @param request CreateScheduledTaskRequest
|
|
14445
|
-
* @
|
|
14486
|
+
* @param request - CreateScheduledTaskRequest
|
|
14487
|
+
* @returns CreateScheduledTaskResponse
|
|
14446
14488
|
*/
|
|
14447
14489
|
async createScheduledTask(request) {
|
|
14448
14490
|
let runtime = new $Util.RuntimeOptions({});
|
|
14449
14491
|
return await this.createScheduledTaskWithOptions(request, runtime);
|
|
14450
14492
|
}
|
|
14451
14493
|
/**
|
|
14452
|
-
*
|
|
14494
|
+
* Deactivates a scaling configuration.
|
|
14453
14495
|
*
|
|
14454
|
-
* @
|
|
14496
|
+
* @remarks
|
|
14497
|
+
* You can call this operation to deactivate a scaling configuration only in a disabled scaling group.
|
|
14455
14498
|
*
|
|
14456
|
-
* @param request DeactivateScalingConfigurationRequest
|
|
14457
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
14458
|
-
* @
|
|
14499
|
+
* @param request - DeactivateScalingConfigurationRequest
|
|
14500
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14501
|
+
* @returns DeactivateScalingConfigurationResponse
|
|
14459
14502
|
*/
|
|
14460
14503
|
async deactivateScalingConfigurationWithOptions(request, runtime) {
|
|
14461
14504
|
tea_util_1.default.validateModel(request);
|
|
@@ -14489,23 +14532,24 @@ class Client extends openapi_client_1.default {
|
|
|
14489
14532
|
return $tea.cast(await this.callApi(params, req, runtime), new DeactivateScalingConfigurationResponse({}));
|
|
14490
14533
|
}
|
|
14491
14534
|
/**
|
|
14492
|
-
*
|
|
14535
|
+
* Deactivates a scaling configuration.
|
|
14493
14536
|
*
|
|
14494
|
-
* @
|
|
14537
|
+
* @remarks
|
|
14538
|
+
* You can call this operation to deactivate a scaling configuration only in a disabled scaling group.
|
|
14495
14539
|
*
|
|
14496
|
-
* @param request DeactivateScalingConfigurationRequest
|
|
14497
|
-
* @
|
|
14540
|
+
* @param request - DeactivateScalingConfigurationRequest
|
|
14541
|
+
* @returns DeactivateScalingConfigurationResponse
|
|
14498
14542
|
*/
|
|
14499
14543
|
async deactivateScalingConfiguration(request) {
|
|
14500
14544
|
let runtime = new $Util.RuntimeOptions({});
|
|
14501
14545
|
return await this.deactivateScalingConfigurationWithOptions(request, runtime);
|
|
14502
14546
|
}
|
|
14503
14547
|
/**
|
|
14504
|
-
*
|
|
14548
|
+
* Deletes 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 no longer need an event-triggered task, you can call the DeleteAlarm operation to delete it.
|
|
14505
14549
|
*
|
|
14506
|
-
* @param request DeleteAlarmRequest
|
|
14507
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
14508
|
-
* @
|
|
14550
|
+
* @param request - DeleteAlarmRequest
|
|
14551
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14552
|
+
* @returns DeleteAlarmResponse
|
|
14509
14553
|
*/
|
|
14510
14554
|
async deleteAlarmWithOptions(request, runtime) {
|
|
14511
14555
|
tea_util_1.default.validateModel(request);
|
|
@@ -14539,25 +14583,26 @@ class Client extends openapi_client_1.default {
|
|
|
14539
14583
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteAlarmResponse({}));
|
|
14540
14584
|
}
|
|
14541
14585
|
/**
|
|
14542
|
-
*
|
|
14586
|
+
* Deletes 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 no longer need an event-triggered task, you can call the DeleteAlarm operation to delete it.
|
|
14543
14587
|
*
|
|
14544
|
-
* @param request DeleteAlarmRequest
|
|
14545
|
-
* @
|
|
14588
|
+
* @param request - DeleteAlarmRequest
|
|
14589
|
+
* @returns DeleteAlarmResponse
|
|
14546
14590
|
*/
|
|
14547
14591
|
async deleteAlarm(request) {
|
|
14548
14592
|
let runtime = new $Util.RuntimeOptions({});
|
|
14549
14593
|
return await this.deleteAlarmWithOptions(request, runtime);
|
|
14550
14594
|
}
|
|
14551
14595
|
/**
|
|
14552
|
-
*
|
|
14596
|
+
* 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.
|
|
14553
14597
|
*
|
|
14554
|
-
* @
|
|
14598
|
+
* @remarks
|
|
14599
|
+
* You cannot call this operation to delete a scaling configuration in the following scenarios:
|
|
14555
14600
|
* * The scaling configuration is in the Active state.
|
|
14556
14601
|
* * The scaling group contains elastic container instances created from the scaling configuration.
|
|
14557
14602
|
*
|
|
14558
|
-
* @param request DeleteEciScalingConfigurationRequest
|
|
14559
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
14560
|
-
* @
|
|
14603
|
+
* @param request - DeleteEciScalingConfigurationRequest
|
|
14604
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14605
|
+
* @returns DeleteEciScalingConfigurationResponse
|
|
14561
14606
|
*/
|
|
14562
14607
|
async deleteEciScalingConfigurationWithOptions(request, runtime) {
|
|
14563
14608
|
tea_util_1.default.validateModel(request);
|
|
@@ -14594,29 +14639,31 @@ class Client extends openapi_client_1.default {
|
|
|
14594
14639
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteEciScalingConfigurationResponse({}));
|
|
14595
14640
|
}
|
|
14596
14641
|
/**
|
|
14597
|
-
*
|
|
14642
|
+
* 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.
|
|
14598
14643
|
*
|
|
14599
|
-
* @
|
|
14644
|
+
* @remarks
|
|
14645
|
+
* You cannot call this operation to delete a scaling configuration in the following scenarios:
|
|
14600
14646
|
* * The scaling configuration is in the Active state.
|
|
14601
14647
|
* * The scaling group contains elastic container instances created from the scaling configuration.
|
|
14602
14648
|
*
|
|
14603
|
-
* @param request DeleteEciScalingConfigurationRequest
|
|
14604
|
-
* @
|
|
14649
|
+
* @param request - DeleteEciScalingConfigurationRequest
|
|
14650
|
+
* @returns DeleteEciScalingConfigurationResponse
|
|
14605
14651
|
*/
|
|
14606
14652
|
async deleteEciScalingConfiguration(request) {
|
|
14607
14653
|
let runtime = new $Util.RuntimeOptions({});
|
|
14608
14654
|
return await this.deleteEciScalingConfigurationWithOptions(request, runtime);
|
|
14609
14655
|
}
|
|
14610
14656
|
/**
|
|
14611
|
-
*
|
|
14657
|
+
* 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.
|
|
14612
14658
|
*
|
|
14613
|
-
* @
|
|
14659
|
+
* @remarks
|
|
14660
|
+
* 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:
|
|
14614
14661
|
* * Include `LifecycleHookId` within your request to specify the lifecycle hook that you want to delete. In this case, `ScalingGroupId` and `LifecycleHookName` are ignored.
|
|
14615
14662
|
* * Include `ScalingGroupId` and `LifecycleHookName` within your request to specify the lifecycle hook that you want to delete.
|
|
14616
14663
|
*
|
|
14617
|
-
* @param request DeleteLifecycleHookRequest
|
|
14618
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
14619
|
-
* @
|
|
14664
|
+
* @param request - DeleteLifecycleHookRequest
|
|
14665
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14666
|
+
* @returns DeleteLifecycleHookResponse
|
|
14620
14667
|
*/
|
|
14621
14668
|
async deleteLifecycleHookWithOptions(request, runtime) {
|
|
14622
14669
|
tea_util_1.default.validateModel(request);
|
|
@@ -14659,25 +14706,26 @@ class Client extends openapi_client_1.default {
|
|
|
14659
14706
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteLifecycleHookResponse({}));
|
|
14660
14707
|
}
|
|
14661
14708
|
/**
|
|
14662
|
-
*
|
|
14709
|
+
* 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.
|
|
14663
14710
|
*
|
|
14664
|
-
* @
|
|
14711
|
+
* @remarks
|
|
14712
|
+
* 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:
|
|
14665
14713
|
* * Include `LifecycleHookId` within your request to specify the lifecycle hook that you want to delete. In this case, `ScalingGroupId` and `LifecycleHookName` are ignored.
|
|
14666
14714
|
* * Include `ScalingGroupId` and `LifecycleHookName` within your request to specify the lifecycle hook that you want to delete.
|
|
14667
14715
|
*
|
|
14668
|
-
* @param request DeleteLifecycleHookRequest
|
|
14669
|
-
* @
|
|
14716
|
+
* @param request - DeleteLifecycleHookRequest
|
|
14717
|
+
* @returns DeleteLifecycleHookResponse
|
|
14670
14718
|
*/
|
|
14671
14719
|
async deleteLifecycleHook(request) {
|
|
14672
14720
|
let runtime = new $Util.RuntimeOptions({});
|
|
14673
14721
|
return await this.deleteLifecycleHookWithOptions(request, runtime);
|
|
14674
14722
|
}
|
|
14675
14723
|
/**
|
|
14676
|
-
*
|
|
14724
|
+
* Deletes event notification rules. The event notification feature facilitates efficient issue identification and event management by automatically forwarding notifications from Auto Scaling to designated endpoints such as CloudMonitor or Message Service (MNS) topics and queues. If you no longer require an event notification rule, you can call the DeleteNotificationConfiguration operation to delete it.
|
|
14677
14725
|
*
|
|
14678
|
-
* @param request DeleteNotificationConfigurationRequest
|
|
14679
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
14680
|
-
* @
|
|
14726
|
+
* @param request - DeleteNotificationConfigurationRequest
|
|
14727
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14728
|
+
* @returns DeleteNotificationConfigurationResponse
|
|
14681
14729
|
*/
|
|
14682
14730
|
async deleteNotificationConfigurationWithOptions(request, runtime) {
|
|
14683
14731
|
tea_util_1.default.validateModel(request);
|
|
@@ -14714,25 +14762,26 @@ class Client extends openapi_client_1.default {
|
|
|
14714
14762
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteNotificationConfigurationResponse({}));
|
|
14715
14763
|
}
|
|
14716
14764
|
/**
|
|
14717
|
-
*
|
|
14765
|
+
* Deletes event notification rules. The event notification feature facilitates efficient issue identification and event management by automatically forwarding notifications from Auto Scaling to designated endpoints such as CloudMonitor or Message Service (MNS) topics and queues. If you no longer require an event notification rule, you can call the DeleteNotificationConfiguration operation to delete it.
|
|
14718
14766
|
*
|
|
14719
|
-
* @param request DeleteNotificationConfigurationRequest
|
|
14720
|
-
* @
|
|
14767
|
+
* @param request - DeleteNotificationConfigurationRequest
|
|
14768
|
+
* @returns DeleteNotificationConfigurationResponse
|
|
14721
14769
|
*/
|
|
14722
14770
|
async deleteNotificationConfiguration(request) {
|
|
14723
14771
|
let runtime = new $Util.RuntimeOptions({});
|
|
14724
14772
|
return await this.deleteNotificationConfigurationWithOptions(request, runtime);
|
|
14725
14773
|
}
|
|
14726
14774
|
/**
|
|
14727
|
-
*
|
|
14775
|
+
* Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
|
|
14728
14776
|
*
|
|
14729
|
-
* @
|
|
14777
|
+
* @remarks
|
|
14778
|
+
* You cannot delete a scaling configuration in one of the following scenarios:
|
|
14730
14779
|
* * The scaling configuration in your scaling group is in the Active state.
|
|
14731
14780
|
* * The scaling group contains ECS instances that were created based on the scaling configuration.
|
|
14732
14781
|
*
|
|
14733
|
-
* @param request DeleteScalingConfigurationRequest
|
|
14734
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
14735
|
-
* @
|
|
14782
|
+
* @param request - DeleteScalingConfigurationRequest
|
|
14783
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14784
|
+
* @returns DeleteScalingConfigurationResponse
|
|
14736
14785
|
*/
|
|
14737
14786
|
async deleteScalingConfigurationWithOptions(request, runtime) {
|
|
14738
14787
|
tea_util_1.default.validateModel(request);
|
|
@@ -14766,23 +14815,25 @@ class Client extends openapi_client_1.default {
|
|
|
14766
14815
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteScalingConfigurationResponse({}));
|
|
14767
14816
|
}
|
|
14768
14817
|
/**
|
|
14769
|
-
*
|
|
14818
|
+
* Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
|
|
14770
14819
|
*
|
|
14771
|
-
* @
|
|
14820
|
+
* @remarks
|
|
14821
|
+
* You cannot delete a scaling configuration in one of the following scenarios:
|
|
14772
14822
|
* * The scaling configuration in your scaling group is in the Active state.
|
|
14773
14823
|
* * The scaling group contains ECS instances that were created based on the scaling configuration.
|
|
14774
14824
|
*
|
|
14775
|
-
* @param request DeleteScalingConfigurationRequest
|
|
14776
|
-
* @
|
|
14825
|
+
* @param request - DeleteScalingConfigurationRequest
|
|
14826
|
+
* @returns DeleteScalingConfigurationResponse
|
|
14777
14827
|
*/
|
|
14778
14828
|
async deleteScalingConfiguration(request) {
|
|
14779
14829
|
let runtime = new $Util.RuntimeOptions({});
|
|
14780
14830
|
return await this.deleteScalingConfigurationWithOptions(request, runtime);
|
|
14781
14831
|
}
|
|
14782
14832
|
/**
|
|
14783
|
-
*
|
|
14833
|
+
* 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.
|
|
14784
14834
|
*
|
|
14785
|
-
* @
|
|
14835
|
+
* @remarks
|
|
14836
|
+
* Before you call the DeleteScalingGroup operation, take note of the following items:
|
|
14786
14837
|
* * If you delete a scaling group, the scaling configurations, scaling rules, scaling activities, and scaling requests related to the scaling group are also deleted.
|
|
14787
14838
|
* * 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.
|
|
14788
14839
|
* * 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.
|
|
@@ -14793,9 +14844,9 @@ class Client extends openapi_client_1.default {
|
|
|
14793
14844
|
* **
|
|
14794
14845
|
* **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).
|
|
14795
14846
|
*
|
|
14796
|
-
* @param request DeleteScalingGroupRequest
|
|
14797
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
14798
|
-
* @
|
|
14847
|
+
* @param request - DeleteScalingGroupRequest
|
|
14848
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14849
|
+
* @returns DeleteScalingGroupResponse
|
|
14799
14850
|
*/
|
|
14800
14851
|
async deleteScalingGroupWithOptions(request, runtime) {
|
|
14801
14852
|
tea_util_1.default.validateModel(request);
|
|
@@ -14835,9 +14886,10 @@ class Client extends openapi_client_1.default {
|
|
|
14835
14886
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteScalingGroupResponse({}));
|
|
14836
14887
|
}
|
|
14837
14888
|
/**
|
|
14838
|
-
*
|
|
14889
|
+
* 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.
|
|
14839
14890
|
*
|
|
14840
|
-
* @
|
|
14891
|
+
* @remarks
|
|
14892
|
+
* Before you call the DeleteScalingGroup operation, take note of the following items:
|
|
14841
14893
|
* * If you delete a scaling group, the scaling configurations, scaling rules, scaling activities, and scaling requests related to the scaling group are also deleted.
|
|
14842
14894
|
* * 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.
|
|
14843
14895
|
* * 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.
|
|
@@ -14848,19 +14900,19 @@ class Client extends openapi_client_1.default {
|
|
|
14848
14900
|
* **
|
|
14849
14901
|
* **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).
|
|
14850
14902
|
*
|
|
14851
|
-
* @param request DeleteScalingGroupRequest
|
|
14852
|
-
* @
|
|
14903
|
+
* @param request - DeleteScalingGroupRequest
|
|
14904
|
+
* @returns DeleteScalingGroupResponse
|
|
14853
14905
|
*/
|
|
14854
14906
|
async deleteScalingGroup(request) {
|
|
14855
14907
|
let runtime = new $Util.RuntimeOptions({});
|
|
14856
14908
|
return await this.deleteScalingGroupWithOptions(request, runtime);
|
|
14857
14909
|
}
|
|
14858
14910
|
/**
|
|
14859
|
-
*
|
|
14911
|
+
* Deletes a scaling rule.
|
|
14860
14912
|
*
|
|
14861
|
-
* @param request DeleteScalingRuleRequest
|
|
14862
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
14863
|
-
* @
|
|
14913
|
+
* @param request - DeleteScalingRuleRequest
|
|
14914
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14915
|
+
* @returns DeleteScalingRuleResponse
|
|
14864
14916
|
*/
|
|
14865
14917
|
async deleteScalingRuleWithOptions(request, runtime) {
|
|
14866
14918
|
tea_util_1.default.validateModel(request);
|
|
@@ -14897,21 +14949,21 @@ class Client extends openapi_client_1.default {
|
|
|
14897
14949
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteScalingRuleResponse({}));
|
|
14898
14950
|
}
|
|
14899
14951
|
/**
|
|
14900
|
-
*
|
|
14952
|
+
* Deletes a scaling rule.
|
|
14901
14953
|
*
|
|
14902
|
-
* @param request DeleteScalingRuleRequest
|
|
14903
|
-
* @
|
|
14954
|
+
* @param request - DeleteScalingRuleRequest
|
|
14955
|
+
* @returns DeleteScalingRuleResponse
|
|
14904
14956
|
*/
|
|
14905
14957
|
async deleteScalingRule(request) {
|
|
14906
14958
|
let runtime = new $Util.RuntimeOptions({});
|
|
14907
14959
|
return await this.deleteScalingRuleWithOptions(request, runtime);
|
|
14908
14960
|
}
|
|
14909
14961
|
/**
|
|
14910
|
-
*
|
|
14962
|
+
* Deletes scheduled tasks. For workloads with predictable patterns, you can create scheduled tasks to align with your business requirements and optimize resource utilization for cost savings. These tasks automatically ensure that sufficient computing resources are provisioned in anticipation of peak hours and efficiently release unused resources during off-peak hours, thereby streamlining operational efficiency and reducing expenses. If you no longer require a scheduled task, you can call the DeleteScheduledTask operation to delete it.
|
|
14911
14963
|
*
|
|
14912
|
-
* @param request DeleteScheduledTaskRequest
|
|
14913
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
14914
|
-
* @
|
|
14964
|
+
* @param request - DeleteScheduledTaskRequest
|
|
14965
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14966
|
+
* @returns DeleteScheduledTaskResponse
|
|
14915
14967
|
*/
|
|
14916
14968
|
async deleteScheduledTaskWithOptions(request, runtime) {
|
|
14917
14969
|
tea_util_1.default.validateModel(request);
|
|
@@ -14948,21 +15000,21 @@ class Client extends openapi_client_1.default {
|
|
|
14948
15000
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteScheduledTaskResponse({}));
|
|
14949
15001
|
}
|
|
14950
15002
|
/**
|
|
14951
|
-
*
|
|
15003
|
+
* Deletes scheduled tasks. For workloads with predictable patterns, you can create scheduled tasks to align with your business requirements and optimize resource utilization for cost savings. These tasks automatically ensure that sufficient computing resources are provisioned in anticipation of peak hours and efficiently release unused resources during off-peak hours, thereby streamlining operational efficiency and reducing expenses. If you no longer require a scheduled task, you can call the DeleteScheduledTask operation to delete it.
|
|
14952
15004
|
*
|
|
14953
|
-
* @param request DeleteScheduledTaskRequest
|
|
14954
|
-
* @
|
|
15005
|
+
* @param request - DeleteScheduledTaskRequest
|
|
15006
|
+
* @returns DeleteScheduledTaskResponse
|
|
14955
15007
|
*/
|
|
14956
15008
|
async deleteScheduledTask(request) {
|
|
14957
15009
|
let runtime = new $Util.RuntimeOptions({});
|
|
14958
15010
|
return await this.deleteScheduledTaskWithOptions(request, runtime);
|
|
14959
15011
|
}
|
|
14960
15012
|
/**
|
|
14961
|
-
*
|
|
15013
|
+
* Queries event-triggered tasks. You can call the DescribeAlarms operation to learn about the configurations of event-triggered tasks and keep updated on monitoring data changes. This helps you troubleshoot system resource issues at the earliest opportunity and ensures system stability and reliability.
|
|
14962
15014
|
*
|
|
14963
|
-
* @param request DescribeAlarmsRequest
|
|
14964
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
14965
|
-
* @
|
|
15015
|
+
* @param request - DescribeAlarmsRequest
|
|
15016
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15017
|
+
* @returns DescribeAlarmsResponse
|
|
14966
15018
|
*/
|
|
14967
15019
|
async describeAlarmsWithOptions(request, runtime) {
|
|
14968
15020
|
tea_util_1.default.validateModel(request);
|
|
@@ -15017,21 +15069,21 @@ class Client extends openapi_client_1.default {
|
|
|
15017
15069
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeAlarmsResponse({}));
|
|
15018
15070
|
}
|
|
15019
15071
|
/**
|
|
15020
|
-
*
|
|
15072
|
+
* Queries event-triggered tasks. You can call the DescribeAlarms operation to learn about the configurations of event-triggered tasks and keep updated on monitoring data changes. This helps you troubleshoot system resource issues at the earliest opportunity and ensures system stability and reliability.
|
|
15021
15073
|
*
|
|
15022
|
-
* @param request DescribeAlarmsRequest
|
|
15023
|
-
* @
|
|
15074
|
+
* @param request - DescribeAlarmsRequest
|
|
15075
|
+
* @returns DescribeAlarmsResponse
|
|
15024
15076
|
*/
|
|
15025
15077
|
async describeAlarms(request) {
|
|
15026
15078
|
let runtime = new $Util.RuntimeOptions({});
|
|
15027
15079
|
return await this.describeAlarmsWithOptions(request, runtime);
|
|
15028
15080
|
}
|
|
15029
15081
|
/**
|
|
15030
|
-
*
|
|
15082
|
+
* Queries the status of scaling activities that trigger text message, internal message, or email-based notifications. When you call the DescribeAlertConfiguration operation, you must specify the scaling group ID and region ID to query the status of the desired scaling activities. A scaling activity can be in one of the following states: Successful, Failed, and Rejected.
|
|
15031
15083
|
*
|
|
15032
|
-
* @param request DescribeAlertConfigurationRequest
|
|
15033
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15034
|
-
* @
|
|
15084
|
+
* @param request - DescribeAlertConfigurationRequest
|
|
15085
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15086
|
+
* @returns DescribeAlertConfigurationResponse
|
|
15035
15087
|
*/
|
|
15036
15088
|
async describeAlertConfigurationWithOptions(request, runtime) {
|
|
15037
15089
|
tea_util_1.default.validateModel(request);
|
|
@@ -15065,21 +15117,21 @@ class Client extends openapi_client_1.default {
|
|
|
15065
15117
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeAlertConfigurationResponse({}));
|
|
15066
15118
|
}
|
|
15067
15119
|
/**
|
|
15068
|
-
*
|
|
15120
|
+
* Queries the status of scaling activities that trigger text message, internal message, or email-based notifications. When you call the DescribeAlertConfiguration operation, you must specify the scaling group ID and region ID to query the status of the desired scaling activities. A scaling activity can be in one of the following states: Successful, Failed, and Rejected.
|
|
15069
15121
|
*
|
|
15070
|
-
* @param request DescribeAlertConfigurationRequest
|
|
15071
|
-
* @
|
|
15122
|
+
* @param request - DescribeAlertConfigurationRequest
|
|
15123
|
+
* @returns DescribeAlertConfigurationResponse
|
|
15072
15124
|
*/
|
|
15073
15125
|
async describeAlertConfiguration(request) {
|
|
15074
15126
|
let runtime = new $Util.RuntimeOptions({});
|
|
15075
15127
|
return await this.describeAlertConfigurationWithOptions(request, runtime);
|
|
15076
15128
|
}
|
|
15077
15129
|
/**
|
|
15078
|
-
*
|
|
15130
|
+
* Queries the details of a scaling configuration. You can query a scaling configuration by its ID to learn about its details such as the temporary storage size, number of IPv6 addresses, and bandwidth of the elastic IP address (EIP). The scaling configuration details can be obtained as a YAML file.
|
|
15079
15131
|
*
|
|
15080
|
-
* @param request DescribeEciScalingConfigurationDetailRequest
|
|
15081
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15082
|
-
* @
|
|
15132
|
+
* @param request - DescribeEciScalingConfigurationDetailRequest
|
|
15133
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15134
|
+
* @returns DescribeEciScalingConfigurationDetailResponse
|
|
15083
15135
|
*/
|
|
15084
15136
|
async describeEciScalingConfigurationDetailWithOptions(request, runtime) {
|
|
15085
15137
|
tea_util_1.default.validateModel(request);
|
|
@@ -15113,21 +15165,21 @@ class Client extends openapi_client_1.default {
|
|
|
15113
15165
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEciScalingConfigurationDetailResponse({}));
|
|
15114
15166
|
}
|
|
15115
15167
|
/**
|
|
15116
|
-
*
|
|
15168
|
+
* Queries the details of a scaling configuration. You can query a scaling configuration by its ID to learn about its details such as the temporary storage size, number of IPv6 addresses, and bandwidth of the elastic IP address (EIP). The scaling configuration details can be obtained as a YAML file.
|
|
15117
15169
|
*
|
|
15118
|
-
* @param request DescribeEciScalingConfigurationDetailRequest
|
|
15119
|
-
* @
|
|
15170
|
+
* @param request - DescribeEciScalingConfigurationDetailRequest
|
|
15171
|
+
* @returns DescribeEciScalingConfigurationDetailResponse
|
|
15120
15172
|
*/
|
|
15121
15173
|
async describeEciScalingConfigurationDetail(request) {
|
|
15122
15174
|
let runtime = new $Util.RuntimeOptions({});
|
|
15123
15175
|
return await this.describeEciScalingConfigurationDetailWithOptions(request, runtime);
|
|
15124
15176
|
}
|
|
15125
15177
|
/**
|
|
15126
|
-
*
|
|
15178
|
+
* Queries scaling configurations of the Elastic Container Instance type. When you call the DescribeEciScalingConfigurations operation, you can specify ScalingGroupId, ScalingConfigurationIds, or ScalingConfigurationNames to query details about the desired scaling configurations, such as the instance bidding policy, instance type, image pulling policy, and load balancing weight of each elastic container instance. This can help you select a suitable template for creating elastic container instances or reference existing scaling configurations before you modify the automatic scaling policy for elastic container instances.
|
|
15127
15179
|
*
|
|
15128
|
-
* @param request DescribeEciScalingConfigurationsRequest
|
|
15129
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15130
|
-
* @
|
|
15180
|
+
* @param request - DescribeEciScalingConfigurationsRequest
|
|
15181
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15182
|
+
* @returns DescribeEciScalingConfigurationsResponse
|
|
15131
15183
|
*/
|
|
15132
15184
|
async describeEciScalingConfigurationsWithOptions(request, runtime) {
|
|
15133
15185
|
tea_util_1.default.validateModel(request);
|
|
@@ -15179,27 +15231,28 @@ class Client extends openapi_client_1.default {
|
|
|
15179
15231
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEciScalingConfigurationsResponse({}));
|
|
15180
15232
|
}
|
|
15181
15233
|
/**
|
|
15182
|
-
*
|
|
15234
|
+
* Queries scaling configurations of the Elastic Container Instance type. When you call the DescribeEciScalingConfigurations operation, you can specify ScalingGroupId, ScalingConfigurationIds, or ScalingConfigurationNames to query details about the desired scaling configurations, such as the instance bidding policy, instance type, image pulling policy, and load balancing weight of each elastic container instance. This can help you select a suitable template for creating elastic container instances or reference existing scaling configurations before you modify the automatic scaling policy for elastic container instances.
|
|
15183
15235
|
*
|
|
15184
|
-
* @param request DescribeEciScalingConfigurationsRequest
|
|
15185
|
-
* @
|
|
15236
|
+
* @param request - DescribeEciScalingConfigurationsRequest
|
|
15237
|
+
* @returns DescribeEciScalingConfigurationsResponse
|
|
15186
15238
|
*/
|
|
15187
15239
|
async describeEciScalingConfigurations(request) {
|
|
15188
15240
|
let runtime = new $Util.RuntimeOptions({});
|
|
15189
15241
|
return await this.describeEciScalingConfigurationsWithOptions(request, runtime);
|
|
15190
15242
|
}
|
|
15191
15243
|
/**
|
|
15192
|
-
*
|
|
15244
|
+
* Queries the details of a lifecycle hook. If you want to query the details of a lifecycle hook, you can call the DescribeLifecycleActions operation. For example, you can query the execution status and ID of a lifecycle hook, along with the Elastic Compute Service (ECS) instances on which the lifecycle hook takes effect. When you call this operation, you can specify parameters such as ScalingActivityId, LifecycleActionToken, and MaxResults to query the details of a lifecycle hook.
|
|
15193
15245
|
*
|
|
15194
|
-
* @
|
|
15246
|
+
* @remarks
|
|
15247
|
+
* 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:
|
|
15195
15248
|
* * 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.
|
|
15196
15249
|
* * 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.
|
|
15197
15250
|
* * If a lifecycle action is in the Completed state, you manually end the lifecycle hook that triggers the lifecycle action ahead of schedule.
|
|
15198
15251
|
* 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.
|
|
15199
15252
|
*
|
|
15200
|
-
* @param request DescribeLifecycleActionsRequest
|
|
15201
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15202
|
-
* @
|
|
15253
|
+
* @param request - DescribeLifecycleActionsRequest
|
|
15254
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15255
|
+
* @returns DescribeLifecycleActionsResponse
|
|
15203
15256
|
*/
|
|
15204
15257
|
async describeLifecycleActionsWithOptions(request, runtime) {
|
|
15205
15258
|
tea_util_1.default.validateModel(request);
|
|
@@ -15242,32 +15295,34 @@ class Client extends openapi_client_1.default {
|
|
|
15242
15295
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeLifecycleActionsResponse({}));
|
|
15243
15296
|
}
|
|
15244
15297
|
/**
|
|
15245
|
-
*
|
|
15298
|
+
* Queries the details of a lifecycle hook. If you want to query the details of a lifecycle hook, you can call the DescribeLifecycleActions operation. For example, you can query the execution status and ID of a lifecycle hook, along with the Elastic Compute Service (ECS) instances on which the lifecycle hook takes effect. When you call this operation, you can specify parameters such as ScalingActivityId, LifecycleActionToken, and MaxResults to query the details of a lifecycle hook.
|
|
15246
15299
|
*
|
|
15247
|
-
* @
|
|
15300
|
+
* @remarks
|
|
15301
|
+
* 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:
|
|
15248
15302
|
* * 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.
|
|
15249
15303
|
* * 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.
|
|
15250
15304
|
* * If a lifecycle action is in the Completed state, you manually end the lifecycle hook that triggers the lifecycle action ahead of schedule.
|
|
15251
15305
|
* 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.
|
|
15252
15306
|
*
|
|
15253
|
-
* @param request DescribeLifecycleActionsRequest
|
|
15254
|
-
* @
|
|
15307
|
+
* @param request - DescribeLifecycleActionsRequest
|
|
15308
|
+
* @returns DescribeLifecycleActionsResponse
|
|
15255
15309
|
*/
|
|
15256
15310
|
async describeLifecycleActions(request) {
|
|
15257
15311
|
let runtime = new $Util.RuntimeOptions({});
|
|
15258
15312
|
return await this.describeLifecycleActionsWithOptions(request, runtime);
|
|
15259
15313
|
}
|
|
15260
15314
|
/**
|
|
15261
|
-
*
|
|
15315
|
+
* Queries lifecycle hooks. If you want to check whether the configurations of your lifecycle hooks are correct or you want to query the details of multiple lifecycle hooks at the same time, you can call the DescribeLifecycleHooks operation. You can specify lifecycle hook IDs or scaling group IDs when you call this operation. This operation returns details such as the default actions, scaling activities, Alibaba Cloud Resource Names (ARNs) of notification recipients, and timeout periods of lifecycle hooks.
|
|
15262
15316
|
*
|
|
15263
|
-
* @
|
|
15317
|
+
* @remarks
|
|
15318
|
+
* You can use one of the following methods to query lifecycle hooks:
|
|
15264
15319
|
* * 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.
|
|
15265
15320
|
* * Specify the scaling group ID by using the ScalingGroupId parameter.
|
|
15266
15321
|
* * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
|
|
15267
15322
|
*
|
|
15268
|
-
* @param request DescribeLifecycleHooksRequest
|
|
15269
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15270
|
-
* @
|
|
15323
|
+
* @param request - DescribeLifecycleHooksRequest
|
|
15324
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15325
|
+
* @returns DescribeLifecycleHooksResponse
|
|
15271
15326
|
*/
|
|
15272
15327
|
async describeLifecycleHooksWithOptions(request, runtime) {
|
|
15273
15328
|
tea_util_1.default.validateModel(request);
|
|
@@ -15316,26 +15371,27 @@ class Client extends openapi_client_1.default {
|
|
|
15316
15371
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeLifecycleHooksResponse({}));
|
|
15317
15372
|
}
|
|
15318
15373
|
/**
|
|
15319
|
-
*
|
|
15374
|
+
* Queries lifecycle hooks. If you want to check whether the configurations of your lifecycle hooks are correct or you want to query the details of multiple lifecycle hooks at the same time, you can call the DescribeLifecycleHooks operation. You can specify lifecycle hook IDs or scaling group IDs when you call this operation. This operation returns details such as the default actions, scaling activities, Alibaba Cloud Resource Names (ARNs) of notification recipients, and timeout periods of lifecycle hooks.
|
|
15320
15375
|
*
|
|
15321
|
-
* @
|
|
15376
|
+
* @remarks
|
|
15377
|
+
* You can use one of the following methods to query lifecycle hooks:
|
|
15322
15378
|
* * 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.
|
|
15323
15379
|
* * Specify the scaling group ID by using the ScalingGroupId parameter.
|
|
15324
15380
|
* * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
|
|
15325
15381
|
*
|
|
15326
|
-
* @param request DescribeLifecycleHooksRequest
|
|
15327
|
-
* @
|
|
15382
|
+
* @param request - DescribeLifecycleHooksRequest
|
|
15383
|
+
* @returns DescribeLifecycleHooksResponse
|
|
15328
15384
|
*/
|
|
15329
15385
|
async describeLifecycleHooks(request) {
|
|
15330
15386
|
let runtime = new $Util.RuntimeOptions({});
|
|
15331
15387
|
return await this.describeLifecycleHooksWithOptions(request, runtime);
|
|
15332
15388
|
}
|
|
15333
15389
|
/**
|
|
15334
|
-
*
|
|
15390
|
+
* Queries resource quotas. For example, you can call the DescribeLimitation operation to query the maximum numbers of scheduled tasks that you can create in a scaling group, load balancers that you can attach to a scaling group, instances that you can add to a scaling group, and scaling configurations that you can create in a scaling group.
|
|
15335
15391
|
*
|
|
15336
|
-
* @param request DescribeLimitationRequest
|
|
15337
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15338
|
-
* @
|
|
15392
|
+
* @param request - DescribeLimitationRequest
|
|
15393
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15394
|
+
* @returns DescribeLimitationResponse
|
|
15339
15395
|
*/
|
|
15340
15396
|
async describeLimitationWithOptions(request, runtime) {
|
|
15341
15397
|
tea_util_1.default.validateModel(request);
|
|
@@ -15363,21 +15419,21 @@ class Client extends openapi_client_1.default {
|
|
|
15363
15419
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeLimitationResponse({}));
|
|
15364
15420
|
}
|
|
15365
15421
|
/**
|
|
15366
|
-
*
|
|
15422
|
+
* Queries resource quotas. For example, you can call the DescribeLimitation operation to query the maximum numbers of scheduled tasks that you can create in a scaling group, load balancers that you can attach to a scaling group, instances that you can add to a scaling group, and scaling configurations that you can create in a scaling group.
|
|
15367
15423
|
*
|
|
15368
|
-
* @param request DescribeLimitationRequest
|
|
15369
|
-
* @
|
|
15424
|
+
* @param request - DescribeLimitationRequest
|
|
15425
|
+
* @returns DescribeLimitationResponse
|
|
15370
15426
|
*/
|
|
15371
15427
|
async describeLimitation(request) {
|
|
15372
15428
|
let runtime = new $Util.RuntimeOptions({});
|
|
15373
15429
|
return await this.describeLimitationWithOptions(request, runtime);
|
|
15374
15430
|
}
|
|
15375
15431
|
/**
|
|
15376
|
-
*
|
|
15432
|
+
* Queries notifications. If you want to learn about a notification regarding the status of a scaling event or resource changes, you can call the DescribeNotificationConfigurations operation. This operation enables you to retrieve notification details, analyze resource change data, and refine scaling policies to efficiently utilize resources and fulfill business needs.
|
|
15377
15433
|
*
|
|
15378
|
-
* @param request DescribeNotificationConfigurationsRequest
|
|
15379
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15380
|
-
* @
|
|
15434
|
+
* @param request - DescribeNotificationConfigurationsRequest
|
|
15435
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15436
|
+
* @returns DescribeNotificationConfigurationsResponse
|
|
15381
15437
|
*/
|
|
15382
15438
|
async describeNotificationConfigurationsWithOptions(request, runtime) {
|
|
15383
15439
|
tea_util_1.default.validateModel(request);
|
|
@@ -15411,21 +15467,21 @@ class Client extends openapi_client_1.default {
|
|
|
15411
15467
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeNotificationConfigurationsResponse({}));
|
|
15412
15468
|
}
|
|
15413
15469
|
/**
|
|
15414
|
-
*
|
|
15470
|
+
* Queries notifications. If you want to learn about a notification regarding the status of a scaling event or resource changes, you can call the DescribeNotificationConfigurations operation. This operation enables you to retrieve notification details, analyze resource change data, and refine scaling policies to efficiently utilize resources and fulfill business needs.
|
|
15415
15471
|
*
|
|
15416
|
-
* @param request DescribeNotificationConfigurationsRequest
|
|
15417
|
-
* @
|
|
15472
|
+
* @param request - DescribeNotificationConfigurationsRequest
|
|
15473
|
+
* @returns DescribeNotificationConfigurationsResponse
|
|
15418
15474
|
*/
|
|
15419
15475
|
async describeNotificationConfigurations(request) {
|
|
15420
15476
|
let runtime = new $Util.RuntimeOptions({});
|
|
15421
15477
|
return await this.describeNotificationConfigurationsWithOptions(request, runtime);
|
|
15422
15478
|
}
|
|
15423
15479
|
/**
|
|
15424
|
-
*
|
|
15480
|
+
* Queries notification types. You can call the DescribeNotificationTypes operation to query the types of notifications on scaling events or resource changes occurred in your scaling groups. Notifications are triggered in scenarios such as successful scale-out events, successful scale-in events, expiration of scheduled tasks, and partially successful scale-out events.
|
|
15425
15481
|
*
|
|
15426
|
-
* @param request DescribeNotificationTypesRequest
|
|
15427
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15428
|
-
* @
|
|
15482
|
+
* @param request - DescribeNotificationTypesRequest
|
|
15483
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15484
|
+
* @returns DescribeNotificationTypesResponse
|
|
15429
15485
|
*/
|
|
15430
15486
|
async describeNotificationTypesWithOptions(request, runtime) {
|
|
15431
15487
|
tea_util_1.default.validateModel(request);
|
|
@@ -15453,21 +15509,21 @@ class Client extends openapi_client_1.default {
|
|
|
15453
15509
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeNotificationTypesResponse({}));
|
|
15454
15510
|
}
|
|
15455
15511
|
/**
|
|
15456
|
-
*
|
|
15512
|
+
* Queries notification types. You can call the DescribeNotificationTypes operation to query the types of notifications on scaling events or resource changes occurred in your scaling groups. Notifications are triggered in scenarios such as successful scale-out events, successful scale-in events, expiration of scheduled tasks, and partially successful scale-out events.
|
|
15457
15513
|
*
|
|
15458
|
-
* @param request DescribeNotificationTypesRequest
|
|
15459
|
-
* @
|
|
15514
|
+
* @param request - DescribeNotificationTypesRequest
|
|
15515
|
+
* @returns DescribeNotificationTypesResponse
|
|
15460
15516
|
*/
|
|
15461
15517
|
async describeNotificationTypes(request) {
|
|
15462
15518
|
let runtime = new $Util.RuntimeOptions({});
|
|
15463
15519
|
return await this.describeNotificationTypesWithOptions(request, runtime);
|
|
15464
15520
|
}
|
|
15465
15521
|
/**
|
|
15466
|
-
*
|
|
15522
|
+
* Queries instance types. When you call the DescribePatternTypes operation, you can specify attributes such as the vSwitch ID, number of vCPUs, memory size, instance family, and maximum acceptable price to filer instance types that meet your business requirements.
|
|
15467
15523
|
*
|
|
15468
|
-
* @param request DescribePatternTypesRequest
|
|
15469
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15470
|
-
* @
|
|
15524
|
+
* @param request - DescribePatternTypesRequest
|
|
15525
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15526
|
+
* @returns DescribePatternTypesResponse
|
|
15471
15527
|
*/
|
|
15472
15528
|
async describePatternTypesWithOptions(request, runtime) {
|
|
15473
15529
|
tea_util_1.default.validateModel(request);
|
|
@@ -15489,21 +15545,21 @@ class Client extends openapi_client_1.default {
|
|
|
15489
15545
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribePatternTypesResponse({}));
|
|
15490
15546
|
}
|
|
15491
15547
|
/**
|
|
15492
|
-
*
|
|
15548
|
+
* Queries instance types. When you call the DescribePatternTypes operation, you can specify attributes such as the vSwitch ID, number of vCPUs, memory size, instance family, and maximum acceptable price to filer instance types that meet your business requirements.
|
|
15493
15549
|
*
|
|
15494
|
-
* @param request DescribePatternTypesRequest
|
|
15495
|
-
* @
|
|
15550
|
+
* @param request - DescribePatternTypesRequest
|
|
15551
|
+
* @returns DescribePatternTypesResponse
|
|
15496
15552
|
*/
|
|
15497
15553
|
async describePatternTypes(request) {
|
|
15498
15554
|
let runtime = new $Util.RuntimeOptions({});
|
|
15499
15555
|
return await this.describePatternTypesWithOptions(request, runtime);
|
|
15500
15556
|
}
|
|
15501
15557
|
/**
|
|
15502
|
-
*
|
|
15558
|
+
* Queries regions. Before you activate Auto Scaling, you can call the DescribeRegions operation to query the regions where Auto Scaling is officially launched. This preliminary step facilitates the strategic selection of both the optimal region and availability zones for activating Auto Scaling, thereby guaranteeing the finest access speeds and operational efficiency within your chosen geographical area.
|
|
15503
15559
|
*
|
|
15504
|
-
* @param request DescribeRegionsRequest
|
|
15505
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15506
|
-
* @
|
|
15560
|
+
* @param request - DescribeRegionsRequest
|
|
15561
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15562
|
+
* @returns DescribeRegionsResponse
|
|
15507
15563
|
*/
|
|
15508
15564
|
async describeRegionsWithOptions(request, runtime) {
|
|
15509
15565
|
tea_util_1.default.validateModel(request);
|
|
@@ -15537,25 +15593,26 @@ class Client extends openapi_client_1.default {
|
|
|
15537
15593
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeRegionsResponse({}));
|
|
15538
15594
|
}
|
|
15539
15595
|
/**
|
|
15540
|
-
*
|
|
15596
|
+
* Queries regions. Before you activate Auto Scaling, you can call the DescribeRegions operation to query the regions where Auto Scaling is officially launched. This preliminary step facilitates the strategic selection of both the optimal region and availability zones for activating Auto Scaling, thereby guaranteeing the finest access speeds and operational efficiency within your chosen geographical area.
|
|
15541
15597
|
*
|
|
15542
|
-
* @param request DescribeRegionsRequest
|
|
15543
|
-
* @
|
|
15598
|
+
* @param request - DescribeRegionsRequest
|
|
15599
|
+
* @returns DescribeRegionsResponse
|
|
15544
15600
|
*/
|
|
15545
15601
|
async describeRegions(request) {
|
|
15546
15602
|
let runtime = new $Util.RuntimeOptions({});
|
|
15547
15603
|
return await this.describeRegionsWithOptions(request, runtime);
|
|
15548
15604
|
}
|
|
15549
15605
|
/**
|
|
15550
|
-
*
|
|
15606
|
+
* Queries scaling activities.
|
|
15551
15607
|
*
|
|
15552
|
-
* @
|
|
15608
|
+
* @remarks
|
|
15609
|
+
* You can specify a scaling group ID to query all scaling activities in the scaling group.
|
|
15553
15610
|
* You can filter query results based on the status of scaling activities.
|
|
15554
15611
|
* You can query scaling activities that are executed in the previous 30 days.
|
|
15555
15612
|
*
|
|
15556
|
-
* @param request DescribeScalingActivitiesRequest
|
|
15557
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15558
|
-
* @
|
|
15613
|
+
* @param request - DescribeScalingActivitiesRequest
|
|
15614
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15615
|
+
* @returns DescribeScalingActivitiesResponse
|
|
15559
15616
|
*/
|
|
15560
15617
|
async describeScalingActivitiesWithOptions(request, runtime) {
|
|
15561
15618
|
tea_util_1.default.validateModel(request);
|
|
@@ -15607,25 +15664,26 @@ class Client extends openapi_client_1.default {
|
|
|
15607
15664
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeScalingActivitiesResponse({}));
|
|
15608
15665
|
}
|
|
15609
15666
|
/**
|
|
15610
|
-
*
|
|
15667
|
+
* Queries scaling activities.
|
|
15611
15668
|
*
|
|
15612
|
-
* @
|
|
15669
|
+
* @remarks
|
|
15670
|
+
* You can specify a scaling group ID to query all scaling activities in the scaling group.
|
|
15613
15671
|
* You can filter query results based on the status of scaling activities.
|
|
15614
15672
|
* You can query scaling activities that are executed in the previous 30 days.
|
|
15615
15673
|
*
|
|
15616
|
-
* @param request DescribeScalingActivitiesRequest
|
|
15617
|
-
* @
|
|
15674
|
+
* @param request - DescribeScalingActivitiesRequest
|
|
15675
|
+
* @returns DescribeScalingActivitiesResponse
|
|
15618
15676
|
*/
|
|
15619
15677
|
async describeScalingActivities(request) {
|
|
15620
15678
|
let runtime = new $Util.RuntimeOptions({});
|
|
15621
15679
|
return await this.describeScalingActivitiesWithOptions(request, runtime);
|
|
15622
15680
|
}
|
|
15623
15681
|
/**
|
|
15624
|
-
*
|
|
15682
|
+
* Queries the details of a scaling activity. The DescribeScalingActivityDetail operation enables you to access and monitor the details of a scaling activity, which is beneficial for troubleshooting and performance analysis purposes.
|
|
15625
15683
|
*
|
|
15626
|
-
* @param request DescribeScalingActivityDetailRequest
|
|
15627
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15628
|
-
* @
|
|
15684
|
+
* @param request - DescribeScalingActivityDetailRequest
|
|
15685
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15686
|
+
* @returns DescribeScalingActivityDetailResponse
|
|
15629
15687
|
*/
|
|
15630
15688
|
async describeScalingActivityDetailWithOptions(request, runtime) {
|
|
15631
15689
|
tea_util_1.default.validateModel(request);
|
|
@@ -15659,21 +15717,21 @@ class Client extends openapi_client_1.default {
|
|
|
15659
15717
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeScalingActivityDetailResponse({}));
|
|
15660
15718
|
}
|
|
15661
15719
|
/**
|
|
15662
|
-
*
|
|
15720
|
+
* Queries the details of a scaling activity. The DescribeScalingActivityDetail operation enables you to access and monitor the details of a scaling activity, which is beneficial for troubleshooting and performance analysis purposes.
|
|
15663
15721
|
*
|
|
15664
|
-
* @param request DescribeScalingActivityDetailRequest
|
|
15665
|
-
* @
|
|
15722
|
+
* @param request - DescribeScalingActivityDetailRequest
|
|
15723
|
+
* @returns DescribeScalingActivityDetailResponse
|
|
15666
15724
|
*/
|
|
15667
15725
|
async describeScalingActivityDetail(request) {
|
|
15668
15726
|
let runtime = new $Util.RuntimeOptions({});
|
|
15669
15727
|
return await this.describeScalingActivityDetailWithOptions(request, runtime);
|
|
15670
15728
|
}
|
|
15671
15729
|
/**
|
|
15672
|
-
*
|
|
15730
|
+
* Queries scaling configurations.
|
|
15673
15731
|
*
|
|
15674
|
-
* @param request DescribeScalingConfigurationsRequest
|
|
15675
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15676
|
-
* @
|
|
15732
|
+
* @param request - DescribeScalingConfigurationsRequest
|
|
15733
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15734
|
+
* @returns DescribeScalingConfigurationsResponse
|
|
15677
15735
|
*/
|
|
15678
15736
|
async describeScalingConfigurationsWithOptions(request, runtime) {
|
|
15679
15737
|
tea_util_1.default.validateModel(request);
|
|
@@ -15725,21 +15783,21 @@ class Client extends openapi_client_1.default {
|
|
|
15725
15783
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeScalingConfigurationsResponse({}));
|
|
15726
15784
|
}
|
|
15727
15785
|
/**
|
|
15728
|
-
*
|
|
15786
|
+
* Queries scaling configurations.
|
|
15729
15787
|
*
|
|
15730
|
-
* @param request DescribeScalingConfigurationsRequest
|
|
15731
|
-
* @
|
|
15788
|
+
* @param request - DescribeScalingConfigurationsRequest
|
|
15789
|
+
* @returns DescribeScalingConfigurationsResponse
|
|
15732
15790
|
*/
|
|
15733
15791
|
async describeScalingConfigurations(request) {
|
|
15734
15792
|
let runtime = new $Util.RuntimeOptions({});
|
|
15735
15793
|
return await this.describeScalingConfigurationsWithOptions(request, runtime);
|
|
15736
15794
|
}
|
|
15737
15795
|
/**
|
|
15738
|
-
*
|
|
15796
|
+
* Queries a scaling group. You can call the DescribeScalingGroupDetail operation to query the basic information, instances, and scaling configurations of a scaling group. If you set OutputFormat to yaml, the output is a Kubernetes Deployment file in the YAML format.
|
|
15739
15797
|
*
|
|
15740
|
-
* @param request DescribeScalingGroupDetailRequest
|
|
15741
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15742
|
-
* @
|
|
15798
|
+
* @param request - DescribeScalingGroupDetailRequest
|
|
15799
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15800
|
+
* @returns DescribeScalingGroupDetailResponse
|
|
15743
15801
|
*/
|
|
15744
15802
|
async describeScalingGroupDetailWithOptions(request, runtime) {
|
|
15745
15803
|
tea_util_1.default.validateModel(request);
|
|
@@ -15773,21 +15831,21 @@ class Client extends openapi_client_1.default {
|
|
|
15773
15831
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeScalingGroupDetailResponse({}));
|
|
15774
15832
|
}
|
|
15775
15833
|
/**
|
|
15776
|
-
*
|
|
15834
|
+
* Queries a scaling group. You can call the DescribeScalingGroupDetail operation to query the basic information, instances, and scaling configurations of a scaling group. If you set OutputFormat to yaml, the output is a Kubernetes Deployment file in the YAML format.
|
|
15777
15835
|
*
|
|
15778
|
-
* @param request DescribeScalingGroupDetailRequest
|
|
15779
|
-
* @
|
|
15836
|
+
* @param request - DescribeScalingGroupDetailRequest
|
|
15837
|
+
* @returns DescribeScalingGroupDetailResponse
|
|
15780
15838
|
*/
|
|
15781
15839
|
async describeScalingGroupDetail(request) {
|
|
15782
15840
|
let runtime = new $Util.RuntimeOptions({});
|
|
15783
15841
|
return await this.describeScalingGroupDetailWithOptions(request, runtime);
|
|
15784
15842
|
}
|
|
15785
15843
|
/**
|
|
15786
|
-
*
|
|
15844
|
+
* Queries scaling groups. If you want to query the basic information, instances, and scaling configurations of a scaling group, you can call the DescribeScalingGroups operation.
|
|
15787
15845
|
*
|
|
15788
|
-
* @param request DescribeScalingGroupsRequest
|
|
15789
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15790
|
-
* @
|
|
15846
|
+
* @param request - DescribeScalingGroupsRequest
|
|
15847
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15848
|
+
* @returns DescribeScalingGroupsResponse
|
|
15791
15849
|
*/
|
|
15792
15850
|
async describeScalingGroupsWithOptions(request, runtime) {
|
|
15793
15851
|
tea_util_1.default.validateModel(request);
|
|
@@ -15848,21 +15906,21 @@ class Client extends openapi_client_1.default {
|
|
|
15848
15906
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeScalingGroupsResponse({}));
|
|
15849
15907
|
}
|
|
15850
15908
|
/**
|
|
15851
|
-
*
|
|
15909
|
+
* Queries scaling groups. If you want to query the basic information, instances, and scaling configurations of a scaling group, you can call the DescribeScalingGroups operation.
|
|
15852
15910
|
*
|
|
15853
|
-
* @param request DescribeScalingGroupsRequest
|
|
15854
|
-
* @
|
|
15911
|
+
* @param request - DescribeScalingGroupsRequest
|
|
15912
|
+
* @returns DescribeScalingGroupsResponse
|
|
15855
15913
|
*/
|
|
15856
15914
|
async describeScalingGroups(request) {
|
|
15857
15915
|
let runtime = new $Util.RuntimeOptions({});
|
|
15858
15916
|
return await this.describeScalingGroupsWithOptions(request, runtime);
|
|
15859
15917
|
}
|
|
15860
15918
|
/**
|
|
15861
|
-
*
|
|
15919
|
+
* Queries instances in a scaling group. You can call the DescribeScalingInstances operation to query instance details such as the number of preemptible instances in the Running state, the number of Elastic Compute Service (ECS) instances, the warm-up status of ECS instances, and the lifecycle status of ECS instances in a scaling group. You can specify the desired scaling group whose instances you want to query by scaling group ID. In addition, if you want to filter instances based on conditions such as the instance health status, lifecycle status, or creation method, you can also call this operation.
|
|
15862
15920
|
*
|
|
15863
|
-
* @param request DescribeScalingInstancesRequest
|
|
15864
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15865
|
-
* @
|
|
15921
|
+
* @param request - DescribeScalingInstancesRequest
|
|
15922
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15923
|
+
* @returns DescribeScalingInstancesResponse
|
|
15866
15924
|
*/
|
|
15867
15925
|
async describeScalingInstancesWithOptions(request, runtime) {
|
|
15868
15926
|
tea_util_1.default.validateModel(request);
|
|
@@ -15932,23 +15990,24 @@ class Client extends openapi_client_1.default {
|
|
|
15932
15990
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeScalingInstancesResponse({}));
|
|
15933
15991
|
}
|
|
15934
15992
|
/**
|
|
15935
|
-
*
|
|
15993
|
+
* Queries instances in a scaling group. You can call the DescribeScalingInstances operation to query instance details such as the number of preemptible instances in the Running state, the number of Elastic Compute Service (ECS) instances, the warm-up status of ECS instances, and the lifecycle status of ECS instances in a scaling group. You can specify the desired scaling group whose instances you want to query by scaling group ID. In addition, if you want to filter instances based on conditions such as the instance health status, lifecycle status, or creation method, you can also call this operation.
|
|
15936
15994
|
*
|
|
15937
|
-
* @param request DescribeScalingInstancesRequest
|
|
15938
|
-
* @
|
|
15995
|
+
* @param request - DescribeScalingInstancesRequest
|
|
15996
|
+
* @returns DescribeScalingInstancesResponse
|
|
15939
15997
|
*/
|
|
15940
15998
|
async describeScalingInstances(request) {
|
|
15941
15999
|
let runtime = new $Util.RuntimeOptions({});
|
|
15942
16000
|
return await this.describeScalingInstancesWithOptions(request, runtime);
|
|
15943
16001
|
}
|
|
15944
16002
|
/**
|
|
15945
|
-
*
|
|
16003
|
+
* 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.
|
|
15946
16004
|
*
|
|
15947
|
-
* @
|
|
16005
|
+
* @remarks
|
|
16006
|
+
* 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.
|
|
15948
16007
|
*
|
|
15949
|
-
* @param request DescribeScalingRulesRequest
|
|
15950
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
15951
|
-
* @
|
|
16008
|
+
* @param request - DescribeScalingRulesRequest
|
|
16009
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16010
|
+
* @returns DescribeScalingRulesResponse
|
|
15952
16011
|
*/
|
|
15953
16012
|
async describeScalingRulesWithOptions(request, runtime) {
|
|
15954
16013
|
tea_util_1.default.validateModel(request);
|
|
@@ -16009,25 +16068,27 @@ class Client extends openapi_client_1.default {
|
|
|
16009
16068
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeScalingRulesResponse({}));
|
|
16010
16069
|
}
|
|
16011
16070
|
/**
|
|
16012
|
-
*
|
|
16071
|
+
* 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.
|
|
16013
16072
|
*
|
|
16014
|
-
* @
|
|
16073
|
+
* @remarks
|
|
16074
|
+
* 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.
|
|
16015
16075
|
*
|
|
16016
|
-
* @param request DescribeScalingRulesRequest
|
|
16017
|
-
* @
|
|
16076
|
+
* @param request - DescribeScalingRulesRequest
|
|
16077
|
+
* @returns DescribeScalingRulesResponse
|
|
16018
16078
|
*/
|
|
16019
16079
|
async describeScalingRules(request) {
|
|
16020
16080
|
let runtime = new $Util.RuntimeOptions({});
|
|
16021
16081
|
return await this.describeScalingRulesWithOptions(request, runtime);
|
|
16022
16082
|
}
|
|
16023
16083
|
/**
|
|
16024
|
-
*
|
|
16084
|
+
* 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.
|
|
16025
16085
|
*
|
|
16026
|
-
* @
|
|
16086
|
+
* @remarks
|
|
16087
|
+
* You can query scheduled tasks by scaling rule, task ID, or task name.
|
|
16027
16088
|
*
|
|
16028
|
-
* @param request DescribeScheduledTasksRequest
|
|
16029
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16030
|
-
* @
|
|
16089
|
+
* @param request - DescribeScheduledTasksRequest
|
|
16090
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16091
|
+
* @returns DescribeScheduledTasksResponse
|
|
16031
16092
|
*/
|
|
16032
16093
|
async describeScheduledTasksWithOptions(request, runtime) {
|
|
16033
16094
|
tea_util_1.default.validateModel(request);
|
|
@@ -16094,23 +16155,24 @@ class Client extends openapi_client_1.default {
|
|
|
16094
16155
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeScheduledTasksResponse({}));
|
|
16095
16156
|
}
|
|
16096
16157
|
/**
|
|
16097
|
-
*
|
|
16158
|
+
* 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.
|
|
16098
16159
|
*
|
|
16099
|
-
* @
|
|
16160
|
+
* @remarks
|
|
16161
|
+
* You can query scheduled tasks by scaling rule, task ID, or task name.
|
|
16100
16162
|
*
|
|
16101
|
-
* @param request DescribeScheduledTasksRequest
|
|
16102
|
-
* @
|
|
16163
|
+
* @param request - DescribeScheduledTasksRequest
|
|
16164
|
+
* @returns DescribeScheduledTasksResponse
|
|
16103
16165
|
*/
|
|
16104
16166
|
async describeScheduledTasks(request) {
|
|
16105
16167
|
let runtime = new $Util.RuntimeOptions({});
|
|
16106
16168
|
return await this.describeScheduledTasksWithOptions(request, runtime);
|
|
16107
16169
|
}
|
|
16108
16170
|
/**
|
|
16109
|
-
*
|
|
16171
|
+
* Detaches Application Load Balancer (ALB) server groups from a scaling group. When you call the DetachAlbServerGroups operation, you can specify the scaling group ID, ALB server group ID, and port used by Elastic Compute Service (ECS) instances in the desired ALB server group to detach one or more ALB server groups from your scaling group.
|
|
16110
16172
|
*
|
|
16111
|
-
* @param request DetachAlbServerGroupsRequest
|
|
16112
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16113
|
-
* @
|
|
16173
|
+
* @param request - DetachAlbServerGroupsRequest
|
|
16174
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16175
|
+
* @returns DetachAlbServerGroupsResponse
|
|
16114
16176
|
*/
|
|
16115
16177
|
async detachAlbServerGroupsWithOptions(request, runtime) {
|
|
16116
16178
|
tea_util_1.default.validateModel(request);
|
|
@@ -16153,21 +16215,21 @@ class Client extends openapi_client_1.default {
|
|
|
16153
16215
|
return $tea.cast(await this.callApi(params, req, runtime), new DetachAlbServerGroupsResponse({}));
|
|
16154
16216
|
}
|
|
16155
16217
|
/**
|
|
16156
|
-
*
|
|
16218
|
+
* Detaches Application Load Balancer (ALB) server groups from a scaling group. When you call the DetachAlbServerGroups operation, you can specify the scaling group ID, ALB server group ID, and port used by Elastic Compute Service (ECS) instances in the desired ALB server group to detach one or more ALB server groups from your scaling group.
|
|
16157
16219
|
*
|
|
16158
|
-
* @param request DetachAlbServerGroupsRequest
|
|
16159
|
-
* @
|
|
16220
|
+
* @param request - DetachAlbServerGroupsRequest
|
|
16221
|
+
* @returns DetachAlbServerGroupsResponse
|
|
16160
16222
|
*/
|
|
16161
16223
|
async detachAlbServerGroups(request) {
|
|
16162
16224
|
let runtime = new $Util.RuntimeOptions({});
|
|
16163
16225
|
return await this.detachAlbServerGroupsWithOptions(request, runtime);
|
|
16164
16226
|
}
|
|
16165
16227
|
/**
|
|
16166
|
-
*
|
|
16228
|
+
* Disassociates one or more ApsaraDB RDS instances from a scaling group.
|
|
16167
16229
|
*
|
|
16168
|
-
* @param request DetachDBInstancesRequest
|
|
16169
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16170
|
-
* @
|
|
16230
|
+
* @param request - DetachDBInstancesRequest
|
|
16231
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16232
|
+
* @returns DetachDBInstancesResponse
|
|
16171
16233
|
*/
|
|
16172
16234
|
async detachDBInstancesWithOptions(request, runtime) {
|
|
16173
16235
|
tea_util_1.default.validateModel(request);
|
|
@@ -16213,19 +16275,20 @@ class Client extends openapi_client_1.default {
|
|
|
16213
16275
|
return $tea.cast(await this.callApi(params, req, runtime), new DetachDBInstancesResponse({}));
|
|
16214
16276
|
}
|
|
16215
16277
|
/**
|
|
16216
|
-
*
|
|
16278
|
+
* Disassociates one or more ApsaraDB RDS instances from a scaling group.
|
|
16217
16279
|
*
|
|
16218
|
-
* @param request DetachDBInstancesRequest
|
|
16219
|
-
* @
|
|
16280
|
+
* @param request - DetachDBInstancesRequest
|
|
16281
|
+
* @returns DetachDBInstancesResponse
|
|
16220
16282
|
*/
|
|
16221
16283
|
async detachDBInstances(request) {
|
|
16222
16284
|
let runtime = new $Util.RuntimeOptions({});
|
|
16223
16285
|
return await this.detachDBInstancesWithOptions(request, runtime);
|
|
16224
16286
|
}
|
|
16225
16287
|
/**
|
|
16226
|
-
*
|
|
16288
|
+
* 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.
|
|
16227
16289
|
*
|
|
16228
|
-
* @
|
|
16290
|
+
* @remarks
|
|
16291
|
+
* Before you call the DetachInstances operation, make sure that the following conditions are met:
|
|
16229
16292
|
* * The specified scaling group is enabled.
|
|
16230
16293
|
* * The specified scaling group does not have any ongoing scaling activities.
|
|
16231
16294
|
* **
|
|
@@ -16236,9 +16299,9 @@ class Client extends openapi_client_1.default {
|
|
|
16236
16299
|
* * 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.
|
|
16237
16300
|
* * 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.
|
|
16238
16301
|
*
|
|
16239
|
-
* @param request DetachInstancesRequest
|
|
16240
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16241
|
-
* @
|
|
16302
|
+
* @param request - DetachInstancesRequest
|
|
16303
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16304
|
+
* @returns DetachInstancesResponse
|
|
16242
16305
|
*/
|
|
16243
16306
|
async detachInstancesWithOptions(request, runtime) {
|
|
16244
16307
|
tea_util_1.default.validateModel(request);
|
|
@@ -16293,9 +16356,10 @@ class Client extends openapi_client_1.default {
|
|
|
16293
16356
|
return $tea.cast(await this.callApi(params, req, runtime), new DetachInstancesResponse({}));
|
|
16294
16357
|
}
|
|
16295
16358
|
/**
|
|
16296
|
-
*
|
|
16359
|
+
* 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.
|
|
16297
16360
|
*
|
|
16298
|
-
* @
|
|
16361
|
+
* @remarks
|
|
16362
|
+
* Before you call the DetachInstances operation, make sure that the following conditions are met:
|
|
16299
16363
|
* * The specified scaling group is enabled.
|
|
16300
16364
|
* * The specified scaling group does not have any ongoing scaling activities.
|
|
16301
16365
|
* **
|
|
@@ -16306,19 +16370,19 @@ class Client extends openapi_client_1.default {
|
|
|
16306
16370
|
* * 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.
|
|
16307
16371
|
* * 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.
|
|
16308
16372
|
*
|
|
16309
|
-
* @param request DetachInstancesRequest
|
|
16310
|
-
* @
|
|
16373
|
+
* @param request - DetachInstancesRequest
|
|
16374
|
+
* @returns DetachInstancesResponse
|
|
16311
16375
|
*/
|
|
16312
16376
|
async detachInstances(request) {
|
|
16313
16377
|
let runtime = new $Util.RuntimeOptions({});
|
|
16314
16378
|
return await this.detachInstancesWithOptions(request, runtime);
|
|
16315
16379
|
}
|
|
16316
16380
|
/**
|
|
16317
|
-
*
|
|
16381
|
+
* Detaches Classic Load Balancer (CLB, formerly known as Server Load Balancer or SLB) instances from a scaling group. If the current CLB instance no longer meets your business requirements, you can call the DetachLoadBalancers operation to detach it from your scaling group. When you call this operation, you can use ScalingGroupId, LoadBalancer.N, and ForceDetach to specify one or more CLB instances to detach. You can also determine whether to call this operation asynchronously and whether to remove the Elastic Compute Service (ECS) instances acting as backend servers from the backend server groups of the CLB instance. You can call this operation to detach only CLB instances from a scaling group.
|
|
16318
16382
|
*
|
|
16319
|
-
* @param request DetachLoadBalancersRequest
|
|
16320
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16321
|
-
* @
|
|
16383
|
+
* @param request - DetachLoadBalancersRequest
|
|
16384
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16385
|
+
* @returns DetachLoadBalancersResponse
|
|
16322
16386
|
*/
|
|
16323
16387
|
async detachLoadBalancersWithOptions(request, runtime) {
|
|
16324
16388
|
tea_util_1.default.validateModel(request);
|
|
@@ -16364,21 +16428,21 @@ class Client extends openapi_client_1.default {
|
|
|
16364
16428
|
return $tea.cast(await this.callApi(params, req, runtime), new DetachLoadBalancersResponse({}));
|
|
16365
16429
|
}
|
|
16366
16430
|
/**
|
|
16367
|
-
*
|
|
16431
|
+
* Detaches Classic Load Balancer (CLB, formerly known as Server Load Balancer or SLB) instances from a scaling group. If the current CLB instance no longer meets your business requirements, you can call the DetachLoadBalancers operation to detach it from your scaling group. When you call this operation, you can use ScalingGroupId, LoadBalancer.N, and ForceDetach to specify one or more CLB instances to detach. You can also determine whether to call this operation asynchronously and whether to remove the Elastic Compute Service (ECS) instances acting as backend servers from the backend server groups of the CLB instance. You can call this operation to detach only CLB instances from a scaling group.
|
|
16368
16432
|
*
|
|
16369
|
-
* @param request DetachLoadBalancersRequest
|
|
16370
|
-
* @
|
|
16433
|
+
* @param request - DetachLoadBalancersRequest
|
|
16434
|
+
* @returns DetachLoadBalancersResponse
|
|
16371
16435
|
*/
|
|
16372
16436
|
async detachLoadBalancers(request) {
|
|
16373
16437
|
let runtime = new $Util.RuntimeOptions({});
|
|
16374
16438
|
return await this.detachLoadBalancersWithOptions(request, runtime);
|
|
16375
16439
|
}
|
|
16376
16440
|
/**
|
|
16377
|
-
*
|
|
16441
|
+
* Detach server groups from 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 DetachServerGroups operation. By detaching Application Load Balancer (ALB) or Network Load Balancer (NLB) server groups from 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.
|
|
16378
16442
|
*
|
|
16379
|
-
* @param request DetachServerGroupsRequest
|
|
16380
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16381
|
-
* @
|
|
16443
|
+
* @param request - DetachServerGroupsRequest
|
|
16444
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16445
|
+
* @returns DetachServerGroupsResponse
|
|
16382
16446
|
*/
|
|
16383
16447
|
async detachServerGroupsWithOptions(request, runtime) {
|
|
16384
16448
|
tea_util_1.default.validateModel(request);
|
|
@@ -16421,28 +16485,29 @@ class Client extends openapi_client_1.default {
|
|
|
16421
16485
|
return $tea.cast(await this.callApi(params, req, runtime), new DetachServerGroupsResponse({}));
|
|
16422
16486
|
}
|
|
16423
16487
|
/**
|
|
16424
|
-
*
|
|
16488
|
+
* Detach server groups from 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 DetachServerGroups operation. By detaching Application Load Balancer (ALB) or Network Load Balancer (NLB) server groups from 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.
|
|
16425
16489
|
*
|
|
16426
|
-
* @param request DetachServerGroupsRequest
|
|
16427
|
-
* @
|
|
16490
|
+
* @param request - DetachServerGroupsRequest
|
|
16491
|
+
* @returns DetachServerGroupsResponse
|
|
16428
16492
|
*/
|
|
16429
16493
|
async detachServerGroups(request) {
|
|
16430
16494
|
let runtime = new $Util.RuntimeOptions({});
|
|
16431
16495
|
return await this.detachServerGroupsWithOptions(request, runtime);
|
|
16432
16496
|
}
|
|
16433
16497
|
/**
|
|
16434
|
-
*
|
|
16498
|
+
* 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.
|
|
16435
16499
|
*
|
|
16436
|
-
* @
|
|
16500
|
+
* @remarks
|
|
16501
|
+
* 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:
|
|
16437
16502
|
* * LoadBalancerId: the ID of the load balancer
|
|
16438
16503
|
* * VServerGroupId: the ID of the vServer group
|
|
16439
16504
|
* * Port: the port number of the vServer group
|
|
16440
16505
|
* * 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.
|
|
16441
16506
|
* * 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.
|
|
16442
16507
|
*
|
|
16443
|
-
* @param request DetachVServerGroupsRequest
|
|
16444
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16445
|
-
* @
|
|
16508
|
+
* @param request - DetachVServerGroupsRequest
|
|
16509
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16510
|
+
* @returns DetachVServerGroupsResponse
|
|
16446
16511
|
*/
|
|
16447
16512
|
async detachVServerGroupsWithOptions(request, runtime) {
|
|
16448
16513
|
tea_util_1.default.validateModel(request);
|
|
@@ -16485,30 +16550,32 @@ class Client extends openapi_client_1.default {
|
|
|
16485
16550
|
return $tea.cast(await this.callApi(params, req, runtime), new DetachVServerGroupsResponse({}));
|
|
16486
16551
|
}
|
|
16487
16552
|
/**
|
|
16488
|
-
*
|
|
16553
|
+
* 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.
|
|
16489
16554
|
*
|
|
16490
|
-
* @
|
|
16555
|
+
* @remarks
|
|
16556
|
+
* 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:
|
|
16491
16557
|
* * LoadBalancerId: the ID of the load balancer
|
|
16492
16558
|
* * VServerGroupId: the ID of the vServer group
|
|
16493
16559
|
* * Port: the port number of the vServer group
|
|
16494
16560
|
* * 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.
|
|
16495
16561
|
* * 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.
|
|
16496
16562
|
*
|
|
16497
|
-
* @param request DetachVServerGroupsRequest
|
|
16498
|
-
* @
|
|
16563
|
+
* @param request - DetachVServerGroupsRequest
|
|
16564
|
+
* @returns DetachVServerGroupsResponse
|
|
16499
16565
|
*/
|
|
16500
16566
|
async detachVServerGroups(request) {
|
|
16501
16567
|
let runtime = new $Util.RuntimeOptions({});
|
|
16502
16568
|
return await this.detachVServerGroupsWithOptions(request, runtime);
|
|
16503
16569
|
}
|
|
16504
16570
|
/**
|
|
16505
|
-
*
|
|
16571
|
+
* 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.
|
|
16506
16572
|
*
|
|
16507
|
-
* @
|
|
16573
|
+
* @remarks
|
|
16574
|
+
* Before you disable an event-triggered task, make sure that the task is in the `Normal`, `Alert`, or `Insufficient Data` state.
|
|
16508
16575
|
*
|
|
16509
|
-
* @param request DisableAlarmRequest
|
|
16510
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16511
|
-
* @
|
|
16576
|
+
* @param request - DisableAlarmRequest
|
|
16577
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16578
|
+
* @returns DisableAlarmResponse
|
|
16512
16579
|
*/
|
|
16513
16580
|
async disableAlarmWithOptions(request, runtime) {
|
|
16514
16581
|
tea_util_1.default.validateModel(request);
|
|
@@ -16542,27 +16609,29 @@ class Client extends openapi_client_1.default {
|
|
|
16542
16609
|
return $tea.cast(await this.callApi(params, req, runtime), new DisableAlarmResponse({}));
|
|
16543
16610
|
}
|
|
16544
16611
|
/**
|
|
16545
|
-
*
|
|
16612
|
+
* 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.
|
|
16546
16613
|
*
|
|
16547
|
-
* @
|
|
16614
|
+
* @remarks
|
|
16615
|
+
* Before you disable an event-triggered task, make sure that the task is in the `Normal`, `Alert`, or `Insufficient Data` state.
|
|
16548
16616
|
*
|
|
16549
|
-
* @param request DisableAlarmRequest
|
|
16550
|
-
* @
|
|
16617
|
+
* @param request - DisableAlarmRequest
|
|
16618
|
+
* @returns DisableAlarmResponse
|
|
16551
16619
|
*/
|
|
16552
16620
|
async disableAlarm(request) {
|
|
16553
16621
|
let runtime = new $Util.RuntimeOptions({});
|
|
16554
16622
|
return await this.disableAlarmWithOptions(request, runtime);
|
|
16555
16623
|
}
|
|
16556
16624
|
/**
|
|
16557
|
-
*
|
|
16625
|
+
* 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.
|
|
16558
16626
|
*
|
|
16559
|
-
* @
|
|
16627
|
+
* @remarks
|
|
16628
|
+
* Before you call this operation to disable a scaling group, take note of the following items:
|
|
16560
16629
|
* * 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.
|
|
16561
16630
|
* * This operation can be called only when the scaling group is in the Active state.
|
|
16562
16631
|
*
|
|
16563
|
-
* @param request DisableScalingGroupRequest
|
|
16564
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16565
|
-
* @
|
|
16632
|
+
* @param request - DisableScalingGroupRequest
|
|
16633
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16634
|
+
* @returns DisableScalingGroupResponse
|
|
16566
16635
|
*/
|
|
16567
16636
|
async disableScalingGroupWithOptions(request, runtime) {
|
|
16568
16637
|
tea_util_1.default.validateModel(request);
|
|
@@ -16599,25 +16668,26 @@ class Client extends openapi_client_1.default {
|
|
|
16599
16668
|
return $tea.cast(await this.callApi(params, req, runtime), new DisableScalingGroupResponse({}));
|
|
16600
16669
|
}
|
|
16601
16670
|
/**
|
|
16602
|
-
*
|
|
16671
|
+
* 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.
|
|
16603
16672
|
*
|
|
16604
|
-
* @
|
|
16673
|
+
* @remarks
|
|
16674
|
+
* Before you call this operation to disable a scaling group, take note of the following items:
|
|
16605
16675
|
* * 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.
|
|
16606
16676
|
* * This operation can be called only when the scaling group is in the Active state.
|
|
16607
16677
|
*
|
|
16608
|
-
* @param request DisableScalingGroupRequest
|
|
16609
|
-
* @
|
|
16678
|
+
* @param request - DisableScalingGroupRequest
|
|
16679
|
+
* @returns DisableScalingGroupResponse
|
|
16610
16680
|
*/
|
|
16611
16681
|
async disableScalingGroup(request) {
|
|
16612
16682
|
let runtime = new $Util.RuntimeOptions({});
|
|
16613
16683
|
return await this.disableScalingGroupWithOptions(request, runtime);
|
|
16614
16684
|
}
|
|
16615
16685
|
/**
|
|
16616
|
-
*
|
|
16686
|
+
* Enables 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 want to reuse an event-triggered task that is in the Disabled state, you can call the EnableAlarm operation to enable it.
|
|
16617
16687
|
*
|
|
16618
|
-
* @param request EnableAlarmRequest
|
|
16619
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16620
|
-
* @
|
|
16688
|
+
* @param request - EnableAlarmRequest
|
|
16689
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16690
|
+
* @returns EnableAlarmResponse
|
|
16621
16691
|
*/
|
|
16622
16692
|
async enableAlarmWithOptions(request, runtime) {
|
|
16623
16693
|
tea_util_1.default.validateModel(request);
|
|
@@ -16651,28 +16721,29 @@ class Client extends openapi_client_1.default {
|
|
|
16651
16721
|
return $tea.cast(await this.callApi(params, req, runtime), new EnableAlarmResponse({}));
|
|
16652
16722
|
}
|
|
16653
16723
|
/**
|
|
16654
|
-
*
|
|
16724
|
+
* Enables 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 want to reuse an event-triggered task that is in the Disabled state, you can call the EnableAlarm operation to enable it.
|
|
16655
16725
|
*
|
|
16656
|
-
* @param request EnableAlarmRequest
|
|
16657
|
-
* @
|
|
16726
|
+
* @param request - EnableAlarmRequest
|
|
16727
|
+
* @returns EnableAlarmResponse
|
|
16658
16728
|
*/
|
|
16659
16729
|
async enableAlarm(request) {
|
|
16660
16730
|
let runtime = new $Util.RuntimeOptions({});
|
|
16661
16731
|
return await this.enableAlarmWithOptions(request, runtime);
|
|
16662
16732
|
}
|
|
16663
16733
|
/**
|
|
16664
|
-
*
|
|
16734
|
+
* 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.
|
|
16665
16735
|
*
|
|
16666
|
-
* @
|
|
16736
|
+
* @remarks
|
|
16737
|
+
* 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.
|
|
16667
16738
|
* **
|
|
16668
16739
|
* **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.
|
|
16669
16740
|
* * 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.
|
|
16670
16741
|
* * 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.
|
|
16671
16742
|
* * If the call results in the total number of ECS instances exceeding the value of MaxSize, the operation fails.
|
|
16672
16743
|
*
|
|
16673
|
-
* @param request EnableScalingGroupRequest
|
|
16674
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16675
|
-
* @
|
|
16744
|
+
* @param request - EnableScalingGroupRequest
|
|
16745
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16746
|
+
* @returns EnableScalingGroupResponse
|
|
16676
16747
|
*/
|
|
16677
16748
|
async enableScalingGroupWithOptions(request, runtime) {
|
|
16678
16749
|
tea_util_1.default.validateModel(request);
|
|
@@ -16730,34 +16801,36 @@ class Client extends openapi_client_1.default {
|
|
|
16730
16801
|
return $tea.cast(await this.callApi(params, req, runtime), new EnableScalingGroupResponse({}));
|
|
16731
16802
|
}
|
|
16732
16803
|
/**
|
|
16733
|
-
*
|
|
16804
|
+
* 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.
|
|
16734
16805
|
*
|
|
16735
|
-
* @
|
|
16806
|
+
* @remarks
|
|
16807
|
+
* 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.
|
|
16736
16808
|
* **
|
|
16737
16809
|
* **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.
|
|
16738
16810
|
* * 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.
|
|
16739
16811
|
* * 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.
|
|
16740
16812
|
* * If the call results in the total number of ECS instances exceeding the value of MaxSize, the operation fails.
|
|
16741
16813
|
*
|
|
16742
|
-
* @param request EnableScalingGroupRequest
|
|
16743
|
-
* @
|
|
16814
|
+
* @param request - EnableScalingGroupRequest
|
|
16815
|
+
* @returns EnableScalingGroupResponse
|
|
16744
16816
|
*/
|
|
16745
16817
|
async enableScalingGroup(request) {
|
|
16746
16818
|
let runtime = new $Util.RuntimeOptions({});
|
|
16747
16819
|
return await this.enableScalingGroupWithOptions(request, runtime);
|
|
16748
16820
|
}
|
|
16749
16821
|
/**
|
|
16750
|
-
*
|
|
16822
|
+
* Puts an Elastic Compute Service (ECS) instance into the Standby state.
|
|
16751
16823
|
*
|
|
16752
|
-
* @
|
|
16824
|
+
* @remarks
|
|
16825
|
+
* ## Description
|
|
16753
16826
|
* * 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.
|
|
16754
16827
|
* * You can remove an instance that is in the Standby state from a scaling group, and then release the instance.
|
|
16755
16828
|
* * ECS instances that are in the Standby state are not removed from the scaling group during scale-in activities triggered by event-triggered tasks.
|
|
16756
16829
|
* * 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.
|
|
16757
16830
|
*
|
|
16758
|
-
* @param request EnterStandbyRequest
|
|
16759
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16760
|
-
* @
|
|
16831
|
+
* @param request - EnterStandbyRequest
|
|
16832
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16833
|
+
* @returns EnterStandbyResponse
|
|
16761
16834
|
*/
|
|
16762
16835
|
async enterStandbyWithOptions(request, runtime) {
|
|
16763
16836
|
tea_util_1.default.validateModel(request);
|
|
@@ -16797,25 +16870,27 @@ class Client extends openapi_client_1.default {
|
|
|
16797
16870
|
return $tea.cast(await this.callApi(params, req, runtime), new EnterStandbyResponse({}));
|
|
16798
16871
|
}
|
|
16799
16872
|
/**
|
|
16800
|
-
*
|
|
16873
|
+
* Puts an Elastic Compute Service (ECS) instance into the Standby state.
|
|
16801
16874
|
*
|
|
16802
|
-
* @
|
|
16875
|
+
* @remarks
|
|
16876
|
+
* ## Description
|
|
16803
16877
|
* * 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.
|
|
16804
16878
|
* * You can remove an instance that is in the Standby state from a scaling group, and then release the instance.
|
|
16805
16879
|
* * ECS instances that are in the Standby state are not removed from the scaling group during scale-in activities triggered by event-triggered tasks.
|
|
16806
16880
|
* * 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.
|
|
16807
16881
|
*
|
|
16808
|
-
* @param request EnterStandbyRequest
|
|
16809
|
-
* @
|
|
16882
|
+
* @param request - EnterStandbyRequest
|
|
16883
|
+
* @returns EnterStandbyResponse
|
|
16810
16884
|
*/
|
|
16811
16885
|
async enterStandby(request) {
|
|
16812
16886
|
let runtime = new $Util.RuntimeOptions({});
|
|
16813
16887
|
return await this.enterStandbyWithOptions(request, runtime);
|
|
16814
16888
|
}
|
|
16815
16889
|
/**
|
|
16816
|
-
*
|
|
16890
|
+
* 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.
|
|
16817
16891
|
*
|
|
16818
|
-
* @
|
|
16892
|
+
* @remarks
|
|
16893
|
+
* Before you call this operation, take note of the following items:
|
|
16819
16894
|
* * The scaling group is in the Active state.
|
|
16820
16895
|
* * No scaling activities in the scaling group are in progress.
|
|
16821
16896
|
* If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
@@ -16824,9 +16899,9 @@ class Client extends openapi_client_1.default {
|
|
|
16824
16899
|
* 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.
|
|
16825
16900
|
* 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.
|
|
16826
16901
|
*
|
|
16827
|
-
* @param request ExecuteScalingRuleRequest
|
|
16828
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16829
|
-
* @
|
|
16902
|
+
* @param request - ExecuteScalingRuleRequest
|
|
16903
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16904
|
+
* @returns ExecuteScalingRuleResponse
|
|
16830
16905
|
*/
|
|
16831
16906
|
async executeScalingRuleWithOptions(request, runtime) {
|
|
16832
16907
|
tea_util_1.default.validateModel(request);
|
|
@@ -16875,9 +16950,10 @@ class Client extends openapi_client_1.default {
|
|
|
16875
16950
|
return $tea.cast(await this.callApi(params, req, runtime), new ExecuteScalingRuleResponse({}));
|
|
16876
16951
|
}
|
|
16877
16952
|
/**
|
|
16878
|
-
*
|
|
16953
|
+
* 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.
|
|
16879
16954
|
*
|
|
16880
|
-
* @
|
|
16955
|
+
* @remarks
|
|
16956
|
+
* Before you call this operation, take note of the following items:
|
|
16881
16957
|
* * The scaling group is in the Active state.
|
|
16882
16958
|
* * No scaling activities in the scaling group are in progress.
|
|
16883
16959
|
* If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
@@ -16886,25 +16962,26 @@ class Client extends openapi_client_1.default {
|
|
|
16886
16962
|
* 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.
|
|
16887
16963
|
* 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.
|
|
16888
16964
|
*
|
|
16889
|
-
* @param request ExecuteScalingRuleRequest
|
|
16890
|
-
* @
|
|
16965
|
+
* @param request - ExecuteScalingRuleRequest
|
|
16966
|
+
* @returns ExecuteScalingRuleResponse
|
|
16891
16967
|
*/
|
|
16892
16968
|
async executeScalingRule(request) {
|
|
16893
16969
|
let runtime = new $Util.RuntimeOptions({});
|
|
16894
16970
|
return await this.executeScalingRuleWithOptions(request, runtime);
|
|
16895
16971
|
}
|
|
16896
16972
|
/**
|
|
16897
|
-
*
|
|
16973
|
+
* 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.
|
|
16898
16974
|
*
|
|
16899
|
-
* @
|
|
16975
|
+
* @remarks
|
|
16976
|
+
* After ECS instances or elastic container instances are removed from the Standby state, the following rules apply:
|
|
16900
16977
|
* * The ECS instances or elastic container instances enter the In Service state.
|
|
16901
16978
|
* * The default weight of each ECS instance or elastic container instance as a backend server of the attached load balancer is 50.
|
|
16902
16979
|
* * If you stop or restart the ECS instances or elastic container instances, the health check status of the instances will be updated.
|
|
16903
16980
|
* * When a scale-in event is triggered, Auto Scaling may remove the ECS instances or elastic container instances from the scaling group.
|
|
16904
16981
|
*
|
|
16905
|
-
* @param request ExitStandbyRequest
|
|
16906
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16907
|
-
* @
|
|
16982
|
+
* @param request - ExitStandbyRequest
|
|
16983
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16984
|
+
* @returns ExitStandbyResponse
|
|
16908
16985
|
*/
|
|
16909
16986
|
async exitStandbyWithOptions(request, runtime) {
|
|
16910
16987
|
tea_util_1.default.validateModel(request);
|
|
@@ -16947,27 +17024,28 @@ class Client extends openapi_client_1.default {
|
|
|
16947
17024
|
return $tea.cast(await this.callApi(params, req, runtime), new ExitStandbyResponse({}));
|
|
16948
17025
|
}
|
|
16949
17026
|
/**
|
|
16950
|
-
*
|
|
17027
|
+
* 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.
|
|
16951
17028
|
*
|
|
16952
|
-
* @
|
|
17029
|
+
* @remarks
|
|
17030
|
+
* After ECS instances or elastic container instances are removed from the Standby state, the following rules apply:
|
|
16953
17031
|
* * The ECS instances or elastic container instances enter the In Service state.
|
|
16954
17032
|
* * The default weight of each ECS instance or elastic container instance as a backend server of the attached load balancer is 50.
|
|
16955
17033
|
* * If you stop or restart the ECS instances or elastic container instances, the health check status of the instances will be updated.
|
|
16956
17034
|
* * When a scale-in event is triggered, Auto Scaling may remove the ECS instances or elastic container instances from the scaling group.
|
|
16957
17035
|
*
|
|
16958
|
-
* @param request ExitStandbyRequest
|
|
16959
|
-
* @
|
|
17036
|
+
* @param request - ExitStandbyRequest
|
|
17037
|
+
* @returns ExitStandbyResponse
|
|
16960
17038
|
*/
|
|
16961
17039
|
async exitStandby(request) {
|
|
16962
17040
|
let runtime = new $Util.RuntimeOptions({});
|
|
16963
17041
|
return await this.exitStandbyWithOptions(request, runtime);
|
|
16964
17042
|
}
|
|
16965
17043
|
/**
|
|
16966
|
-
*
|
|
17044
|
+
* Queries the tag keys added to Auto Scaling resources. Querying tag keys facilitates easier classification, identification, and monitoring of your Auto Scaling resources, thereby enhancing the flexibility and convenience of your resource management processes.
|
|
16967
17045
|
*
|
|
16968
|
-
* @param request ListTagKeysRequest
|
|
16969
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
16970
|
-
* @
|
|
17046
|
+
* @param request - ListTagKeysRequest
|
|
17047
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17048
|
+
* @returns ListTagKeysResponse
|
|
16971
17049
|
*/
|
|
16972
17050
|
async listTagKeysWithOptions(request, runtime) {
|
|
16973
17051
|
tea_util_1.default.validateModel(request);
|
|
@@ -17007,24 +17085,25 @@ class Client extends openapi_client_1.default {
|
|
|
17007
17085
|
return $tea.cast(await this.callApi(params, req, runtime), new ListTagKeysResponse({}));
|
|
17008
17086
|
}
|
|
17009
17087
|
/**
|
|
17010
|
-
*
|
|
17088
|
+
* Queries the tag keys added to Auto Scaling resources. Querying tag keys facilitates easier classification, identification, and monitoring of your Auto Scaling resources, thereby enhancing the flexibility and convenience of your resource management processes.
|
|
17011
17089
|
*
|
|
17012
|
-
* @param request ListTagKeysRequest
|
|
17013
|
-
* @
|
|
17090
|
+
* @param request - ListTagKeysRequest
|
|
17091
|
+
* @returns ListTagKeysResponse
|
|
17014
17092
|
*/
|
|
17015
17093
|
async listTagKeys(request) {
|
|
17016
17094
|
let runtime = new $Util.RuntimeOptions({});
|
|
17017
17095
|
return await this.listTagKeysWithOptions(request, runtime);
|
|
17018
17096
|
}
|
|
17019
17097
|
/**
|
|
17020
|
-
*
|
|
17098
|
+
* Queries tags. You can call the ListTagResources operation to query tags that are added to Auto Scaling resources, thereby clarifying resource utilization and facilitating efficient management. This operation aids in the automation of resource categorization and permission management processes.
|
|
17021
17099
|
*
|
|
17022
|
-
* @
|
|
17100
|
+
* @remarks
|
|
17101
|
+
* Specify at least one of the following request parameters: `ResourceIds` and `Tags`. `Tags.Key` and `Tags.Value` are used to specify the query objects.
|
|
17023
17102
|
* * If you provide both `ResourceIds` and `Tags` in your request, the response will exclusively include Auto Scaling resources that satisfy the criteria set by these parameters, ensuring targeted and precise information retrieval.
|
|
17024
17103
|
*
|
|
17025
|
-
* @param request ListTagResourcesRequest
|
|
17026
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
17027
|
-
* @
|
|
17104
|
+
* @param request - ListTagResourcesRequest
|
|
17105
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17106
|
+
* @returns ListTagResourcesResponse
|
|
17028
17107
|
*/
|
|
17029
17108
|
async listTagResourcesWithOptions(request, runtime) {
|
|
17030
17109
|
tea_util_1.default.validateModel(request);
|
|
@@ -17067,24 +17146,25 @@ class Client extends openapi_client_1.default {
|
|
|
17067
17146
|
return $tea.cast(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
17068
17147
|
}
|
|
17069
17148
|
/**
|
|
17070
|
-
*
|
|
17149
|
+
* Queries tags. You can call the ListTagResources operation to query tags that are added to Auto Scaling resources, thereby clarifying resource utilization and facilitating efficient management. This operation aids in the automation of resource categorization and permission management processes.
|
|
17071
17150
|
*
|
|
17072
|
-
* @
|
|
17151
|
+
* @remarks
|
|
17152
|
+
* Specify at least one of the following request parameters: `ResourceIds` and `Tags`. `Tags.Key` and `Tags.Value` are used to specify the query objects.
|
|
17073
17153
|
* * If you provide both `ResourceIds` and `Tags` in your request, the response will exclusively include Auto Scaling resources that satisfy the criteria set by these parameters, ensuring targeted and precise information retrieval.
|
|
17074
17154
|
*
|
|
17075
|
-
* @param request ListTagResourcesRequest
|
|
17076
|
-
* @
|
|
17155
|
+
* @param request - ListTagResourcesRequest
|
|
17156
|
+
* @returns ListTagResourcesResponse
|
|
17077
17157
|
*/
|
|
17078
17158
|
async listTagResources(request) {
|
|
17079
17159
|
let runtime = new $Util.RuntimeOptions({});
|
|
17080
17160
|
return await this.listTagResourcesWithOptions(request, runtime);
|
|
17081
17161
|
}
|
|
17082
17162
|
/**
|
|
17083
|
-
*
|
|
17163
|
+
* Queries the tag keys associated with Auto Scaling resources to facilitate a deeper comprehension of those resources. By doing so, you can categorize and manage your Auto Scaling resources more efficiently.
|
|
17084
17164
|
*
|
|
17085
|
-
* @param request ListTagValuesRequest
|
|
17086
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
17087
|
-
* @
|
|
17165
|
+
* @param request - ListTagValuesRequest
|
|
17166
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17167
|
+
* @returns ListTagValuesResponse
|
|
17088
17168
|
*/
|
|
17089
17169
|
async listTagValuesWithOptions(request, runtime) {
|
|
17090
17170
|
tea_util_1.default.validateModel(request);
|
|
@@ -17127,27 +17207,28 @@ class Client extends openapi_client_1.default {
|
|
|
17127
17207
|
return $tea.cast(await this.callApi(params, req, runtime), new ListTagValuesResponse({}));
|
|
17128
17208
|
}
|
|
17129
17209
|
/**
|
|
17130
|
-
*
|
|
17210
|
+
* Queries the tag keys associated with Auto Scaling resources to facilitate a deeper comprehension of those resources. By doing so, you can categorize and manage your Auto Scaling resources more efficiently.
|
|
17131
17211
|
*
|
|
17132
|
-
* @param request ListTagValuesRequest
|
|
17133
|
-
* @
|
|
17212
|
+
* @param request - ListTagValuesRequest
|
|
17213
|
+
* @returns ListTagValuesResponse
|
|
17134
17214
|
*/
|
|
17135
17215
|
async listTagValues(request) {
|
|
17136
17216
|
let runtime = new $Util.RuntimeOptions({});
|
|
17137
17217
|
return await this.listTagValuesWithOptions(request, runtime);
|
|
17138
17218
|
}
|
|
17139
17219
|
/**
|
|
17140
|
-
*
|
|
17220
|
+
* Modifies an event-triggered task.
|
|
17141
17221
|
*
|
|
17142
|
-
* @
|
|
17222
|
+
* @remarks
|
|
17223
|
+
* If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](https://help.aliyun.com/document_detail/74861.html).
|
|
17143
17224
|
* * When you create an event-triggered task, you must specify the MetricName, DimensionKey, and DimensionValue parameters to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances or elastic container instances in a scaling group within an Alibaba Cloud account.
|
|
17144
17225
|
* * If you set the MetricType parameter to custom, the valid values are your custom metrics.
|
|
17145
17226
|
* * For information about the metrics that are supported if you set the MetricType parameter to system, see[ Event-triggered task for system monitoring](https://help.aliyun.com/document_detail/74854.html).
|
|
17146
17227
|
* > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see the `DimensionKey` and `DimensionValue` parameters in the "Request parameters" section of this topic.
|
|
17147
17228
|
*
|
|
17148
|
-
* @param request ModifyAlarmRequest
|
|
17149
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
17150
|
-
* @
|
|
17229
|
+
* @param request - ModifyAlarmRequest
|
|
17230
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17231
|
+
* @returns ModifyAlarmResponse
|
|
17151
17232
|
*/
|
|
17152
17233
|
async modifyAlarmWithOptions(request, runtime) {
|
|
17153
17234
|
tea_util_1.default.validateModel(request);
|
|
@@ -17226,27 +17307,28 @@ class Client extends openapi_client_1.default {
|
|
|
17226
17307
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyAlarmResponse({}));
|
|
17227
17308
|
}
|
|
17228
17309
|
/**
|
|
17229
|
-
*
|
|
17310
|
+
* Modifies an event-triggered task.
|
|
17230
17311
|
*
|
|
17231
|
-
* @
|
|
17312
|
+
* @remarks
|
|
17313
|
+
* If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](https://help.aliyun.com/document_detail/74861.html).
|
|
17232
17314
|
* * When you create an event-triggered task, you must specify the MetricName, DimensionKey, and DimensionValue parameters to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances or elastic container instances in a scaling group within an Alibaba Cloud account.
|
|
17233
17315
|
* * If you set the MetricType parameter to custom, the valid values are your custom metrics.
|
|
17234
17316
|
* * For information about the metrics that are supported if you set the MetricType parameter to system, see[ Event-triggered task for system monitoring](https://help.aliyun.com/document_detail/74854.html).
|
|
17235
17317
|
* > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see the `DimensionKey` and `DimensionValue` parameters in the "Request parameters" section of this topic.
|
|
17236
17318
|
*
|
|
17237
|
-
* @param request ModifyAlarmRequest
|
|
17238
|
-
* @
|
|
17319
|
+
* @param request - ModifyAlarmRequest
|
|
17320
|
+
* @returns ModifyAlarmResponse
|
|
17239
17321
|
*/
|
|
17240
17322
|
async modifyAlarm(request) {
|
|
17241
17323
|
let runtime = new $Util.RuntimeOptions({});
|
|
17242
17324
|
return await this.modifyAlarmWithOptions(request, runtime);
|
|
17243
17325
|
}
|
|
17244
17326
|
/**
|
|
17245
|
-
*
|
|
17327
|
+
* Sets the status of scaling activities that prompt text message or email notifications.
|
|
17246
17328
|
*
|
|
17247
|
-
* @param request ModifyAlertConfigurationRequest
|
|
17248
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
17249
|
-
* @
|
|
17329
|
+
* @param request - ModifyAlertConfigurationRequest
|
|
17330
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17331
|
+
* @returns ModifyAlertConfigurationResponse
|
|
17250
17332
|
*/
|
|
17251
17333
|
async modifyAlertConfigurationWithOptions(request, runtime) {
|
|
17252
17334
|
tea_util_1.default.validateModel(request);
|
|
@@ -17283,23 +17365,25 @@ class Client extends openapi_client_1.default {
|
|
|
17283
17365
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyAlertConfigurationResponse({}));
|
|
17284
17366
|
}
|
|
17285
17367
|
/**
|
|
17286
|
-
*
|
|
17368
|
+
* Sets the status of scaling activities that prompt text message or email notifications.
|
|
17287
17369
|
*
|
|
17288
|
-
* @param request ModifyAlertConfigurationRequest
|
|
17289
|
-
* @
|
|
17370
|
+
* @param request - ModifyAlertConfigurationRequest
|
|
17371
|
+
* @returns ModifyAlertConfigurationResponse
|
|
17290
17372
|
*/
|
|
17291
17373
|
async modifyAlertConfiguration(request) {
|
|
17292
17374
|
let runtime = new $Util.RuntimeOptions({});
|
|
17293
17375
|
return await this.modifyAlertConfigurationWithOptions(request, runtime);
|
|
17294
17376
|
}
|
|
17295
17377
|
/**
|
|
17296
|
-
*
|
|
17378
|
+
* Modifies scaling configurations of the Elastic Container Instance type. When you call the ModifyEciScalingConfiguration operation, you can specify the ID, name, and instance properties of the desired scaling configuration to modify information such as the instance restart policy, instance bidding policy, and elastic IP address (EIP) bandwidth.
|
|
17297
17379
|
*
|
|
17298
|
-
* @
|
|
17380
|
+
* @remarks
|
|
17381
|
+
* If you want to change the name of a scaling configuration in a scaling group, make sure that the new name is unique within the scaling group.
|
|
17382
|
+
* * You can call the [ModifyEciScalingConfiguration](https://help.aliyun.com/document_detail/459378.html) operation to verify the modification result.
|
|
17299
17383
|
*
|
|
17300
|
-
* @param request ModifyEciScalingConfigurationRequest
|
|
17301
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
17302
|
-
* @
|
|
17384
|
+
* @param request - ModifyEciScalingConfigurationRequest
|
|
17385
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17386
|
+
* @returns ModifyEciScalingConfigurationResponse
|
|
17303
17387
|
*/
|
|
17304
17388
|
async modifyEciScalingConfigurationWithOptions(request, runtime) {
|
|
17305
17389
|
tea_util_1.default.validateModel(request);
|
|
@@ -17471,23 +17555,25 @@ class Client extends openapi_client_1.default {
|
|
|
17471
17555
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyEciScalingConfigurationResponse({}));
|
|
17472
17556
|
}
|
|
17473
17557
|
/**
|
|
17474
|
-
*
|
|
17558
|
+
* Modifies scaling configurations of the Elastic Container Instance type. When you call the ModifyEciScalingConfiguration operation, you can specify the ID, name, and instance properties of the desired scaling configuration to modify information such as the instance restart policy, instance bidding policy, and elastic IP address (EIP) bandwidth.
|
|
17475
17559
|
*
|
|
17476
|
-
* @
|
|
17560
|
+
* @remarks
|
|
17561
|
+
* If you want to change the name of a scaling configuration in a scaling group, make sure that the new name is unique within the scaling group.
|
|
17562
|
+
* * You can call the [ModifyEciScalingConfiguration](https://help.aliyun.com/document_detail/459378.html) operation to verify the modification result.
|
|
17477
17563
|
*
|
|
17478
|
-
* @param request ModifyEciScalingConfigurationRequest
|
|
17479
|
-
* @
|
|
17564
|
+
* @param request - ModifyEciScalingConfigurationRequest
|
|
17565
|
+
* @returns ModifyEciScalingConfigurationResponse
|
|
17480
17566
|
*/
|
|
17481
17567
|
async modifyEciScalingConfiguration(request) {
|
|
17482
17568
|
let runtime = new $Util.RuntimeOptions({});
|
|
17483
17569
|
return await this.modifyEciScalingConfigurationWithOptions(request, runtime);
|
|
17484
17570
|
}
|
|
17485
17571
|
/**
|
|
17486
|
-
*
|
|
17572
|
+
* Modifies the information of an Elastic Compute Service (ECS) instance. When you call the ModifyInstanceAttribute operation, you can specify attributes such as the instance ID, scaling group ID, and region ID to modify the attributes of an ECS instance in a scaling group. You can modify only the hosting attributes of instances that are manually added to scaling groups.
|
|
17487
17573
|
*
|
|
17488
|
-
* @param request ModifyInstanceAttributeRequest
|
|
17489
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
17490
|
-
* @
|
|
17574
|
+
* @param request - ModifyInstanceAttributeRequest
|
|
17575
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17576
|
+
* @returns ModifyInstanceAttributeResponse
|
|
17491
17577
|
*/
|
|
17492
17578
|
async modifyInstanceAttributeWithOptions(request, runtime) {
|
|
17493
17579
|
tea_util_1.default.validateModel(request);
|
|
@@ -17527,25 +17613,26 @@ class Client extends openapi_client_1.default {
|
|
|
17527
17613
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceAttributeResponse({}));
|
|
17528
17614
|
}
|
|
17529
17615
|
/**
|
|
17530
|
-
*
|
|
17616
|
+
* Modifies the information of an Elastic Compute Service (ECS) instance. When you call the ModifyInstanceAttribute operation, you can specify attributes such as the instance ID, scaling group ID, and region ID to modify the attributes of an ECS instance in a scaling group. You can modify only the hosting attributes of instances that are manually added to scaling groups.
|
|
17531
17617
|
*
|
|
17532
|
-
* @param request ModifyInstanceAttributeRequest
|
|
17533
|
-
* @
|
|
17618
|
+
* @param request - ModifyInstanceAttributeRequest
|
|
17619
|
+
* @returns ModifyInstanceAttributeResponse
|
|
17534
17620
|
*/
|
|
17535
17621
|
async modifyInstanceAttribute(request) {
|
|
17536
17622
|
let runtime = new $Util.RuntimeOptions({});
|
|
17537
17623
|
return await this.modifyInstanceAttributeWithOptions(request, runtime);
|
|
17538
17624
|
}
|
|
17539
17625
|
/**
|
|
17540
|
-
*
|
|
17626
|
+
* 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.
|
|
17541
17627
|
*
|
|
17542
|
-
* @
|
|
17628
|
+
* @remarks
|
|
17629
|
+
* You can use one of the following methods to locate the lifecycle hook that you want to modify:
|
|
17543
17630
|
* * Specify LifecycleHookId. In this case, ScalingGroupId and LifecycleHookName are ignored.
|
|
17544
17631
|
* * Specify ScalingGroupId and LifecycleHookName. Each lifecycle hook within a scaling group has a unique name.
|
|
17545
17632
|
*
|
|
17546
|
-
* @param request ModifyLifecycleHookRequest
|
|
17547
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
17548
|
-
* @
|
|
17633
|
+
* @param request - ModifyLifecycleHookRequest
|
|
17634
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17635
|
+
* @returns ModifyLifecycleHookResponse
|
|
17549
17636
|
*/
|
|
17550
17637
|
async modifyLifecycleHookWithOptions(request, runtime) {
|
|
17551
17638
|
tea_util_1.default.validateModel(request);
|
|
@@ -17606,25 +17693,26 @@ class Client extends openapi_client_1.default {
|
|
|
17606
17693
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyLifecycleHookResponse({}));
|
|
17607
17694
|
}
|
|
17608
17695
|
/**
|
|
17609
|
-
*
|
|
17696
|
+
* 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.
|
|
17610
17697
|
*
|
|
17611
|
-
* @
|
|
17698
|
+
* @remarks
|
|
17699
|
+
* You can use one of the following methods to locate the lifecycle hook that you want to modify:
|
|
17612
17700
|
* * Specify LifecycleHookId. In this case, ScalingGroupId and LifecycleHookName are ignored.
|
|
17613
17701
|
* * Specify ScalingGroupId and LifecycleHookName. Each lifecycle hook within a scaling group has a unique name.
|
|
17614
17702
|
*
|
|
17615
|
-
* @param request ModifyLifecycleHookRequest
|
|
17616
|
-
* @
|
|
17703
|
+
* @param request - ModifyLifecycleHookRequest
|
|
17704
|
+
* @returns ModifyLifecycleHookResponse
|
|
17617
17705
|
*/
|
|
17618
17706
|
async modifyLifecycleHook(request) {
|
|
17619
17707
|
let runtime = new $Util.RuntimeOptions({});
|
|
17620
17708
|
return await this.modifyLifecycleHookWithOptions(request, runtime);
|
|
17621
17709
|
}
|
|
17622
17710
|
/**
|
|
17623
|
-
*
|
|
17711
|
+
* Modifies event notification rules. Event notification rules support automatic sending of notifications to CloudMonitor, Message Service (MNS) topics, or MNS queues when a specified type of events occur. This helps you learn about the dynamics of your scaling group at the earliest opportunity and further automate resource management. If an existing event notification rule does not meet your business requirements, you can call the ModifyNotificationConfiguration operation to modify the event notification rule, without the need to create a new rule. Take not that you cannot modify the notification method of an event notification rule by calling this operation.
|
|
17624
17712
|
*
|
|
17625
|
-
* @param request ModifyNotificationConfigurationRequest
|
|
17626
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
17627
|
-
* @
|
|
17713
|
+
* @param request - ModifyNotificationConfigurationRequest
|
|
17714
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17715
|
+
* @returns ModifyNotificationConfigurationResponse
|
|
17628
17716
|
*/
|
|
17629
17717
|
async modifyNotificationConfigurationWithOptions(request, runtime) {
|
|
17630
17718
|
tea_util_1.default.validateModel(request);
|
|
@@ -17647,6 +17735,9 @@ class Client extends openapi_client_1.default {
|
|
|
17647
17735
|
if (!tea_util_1.default.isUnset(request.scalingGroupId)) {
|
|
17648
17736
|
query["ScalingGroupId"] = request.scalingGroupId;
|
|
17649
17737
|
}
|
|
17738
|
+
if (!tea_util_1.default.isUnset(request.timeZone)) {
|
|
17739
|
+
query["TimeZone"] = request.timeZone;
|
|
17740
|
+
}
|
|
17650
17741
|
let req = new $OpenApi.OpenApiRequest({
|
|
17651
17742
|
query: openapi_util_1.default.query(query),
|
|
17652
17743
|
});
|
|
@@ -17664,23 +17755,24 @@ class Client extends openapi_client_1.default {
|
|
|
17664
17755
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyNotificationConfigurationResponse({}));
|
|
17665
17756
|
}
|
|
17666
17757
|
/**
|
|
17667
|
-
*
|
|
17758
|
+
* Modifies event notification rules. Event notification rules support automatic sending of notifications to CloudMonitor, Message Service (MNS) topics, or MNS queues when a specified type of events occur. This helps you learn about the dynamics of your scaling group at the earliest opportunity and further automate resource management. If an existing event notification rule does not meet your business requirements, you can call the ModifyNotificationConfiguration operation to modify the event notification rule, without the need to create a new rule. Take not that you cannot modify the notification method of an event notification rule by calling this operation.
|
|
17668
17759
|
*
|
|
17669
|
-
* @param request ModifyNotificationConfigurationRequest
|
|
17670
|
-
* @
|
|
17760
|
+
* @param request - ModifyNotificationConfigurationRequest
|
|
17761
|
+
* @returns ModifyNotificationConfigurationResponse
|
|
17671
17762
|
*/
|
|
17672
17763
|
async modifyNotificationConfiguration(request) {
|
|
17673
17764
|
let runtime = new $Util.RuntimeOptions({});
|
|
17674
17765
|
return await this.modifyNotificationConfigurationWithOptions(request, runtime);
|
|
17675
17766
|
}
|
|
17676
17767
|
/**
|
|
17677
|
-
*
|
|
17768
|
+
* Modifies a scaling configuration.
|
|
17678
17769
|
*
|
|
17679
|
-
* @
|
|
17770
|
+
* @remarks
|
|
17771
|
+
* You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
|
|
17680
17772
|
*
|
|
17681
|
-
* @param tmpReq ModifyScalingConfigurationRequest
|
|
17682
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
17683
|
-
* @
|
|
17773
|
+
* @param tmpReq - ModifyScalingConfigurationRequest
|
|
17774
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17775
|
+
* @returns ModifyScalingConfigurationResponse
|
|
17684
17776
|
*/
|
|
17685
17777
|
async modifyScalingConfigurationWithOptions(tmpReq, runtime) {
|
|
17686
17778
|
tea_util_1.default.validateModel(tmpReq);
|
|
@@ -17869,21 +17961,23 @@ class Client extends openapi_client_1.default {
|
|
|
17869
17961
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyScalingConfigurationResponse({}));
|
|
17870
17962
|
}
|
|
17871
17963
|
/**
|
|
17872
|
-
*
|
|
17964
|
+
* Modifies a scaling configuration.
|
|
17873
17965
|
*
|
|
17874
|
-
* @
|
|
17966
|
+
* @remarks
|
|
17967
|
+
* You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
|
|
17875
17968
|
*
|
|
17876
|
-
* @param request ModifyScalingConfigurationRequest
|
|
17877
|
-
* @
|
|
17969
|
+
* @param request - ModifyScalingConfigurationRequest
|
|
17970
|
+
* @returns ModifyScalingConfigurationResponse
|
|
17878
17971
|
*/
|
|
17879
17972
|
async modifyScalingConfiguration(request) {
|
|
17880
17973
|
let runtime = new $Util.RuntimeOptions({});
|
|
17881
17974
|
return await this.modifyScalingConfigurationWithOptions(request, runtime);
|
|
17882
17975
|
}
|
|
17883
17976
|
/**
|
|
17884
|
-
*
|
|
17977
|
+
* 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.
|
|
17885
17978
|
*
|
|
17886
|
-
* @
|
|
17979
|
+
* @remarks
|
|
17980
|
+
* You cannot modify the following parameters by calling this operation:
|
|
17887
17981
|
* * RegionId
|
|
17888
17982
|
* * LoadBalancerId
|
|
17889
17983
|
* **
|
|
@@ -17897,9 +17991,9 @@ class Client extends openapi_client_1.default {
|
|
|
17897
17991
|
* * 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.
|
|
17898
17992
|
* * 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.
|
|
17899
17993
|
*
|
|
17900
|
-
* @param request ModifyScalingGroupRequest
|
|
17901
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
17902
|
-
* @
|
|
17994
|
+
* @param request - ModifyScalingGroupRequest
|
|
17995
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17996
|
+
* @returns ModifyScalingGroupResponse
|
|
17903
17997
|
*/
|
|
17904
17998
|
async modifyScalingGroupWithOptions(request, runtime) {
|
|
17905
17999
|
tea_util_1.default.validateModel(request);
|
|
@@ -18017,9 +18111,10 @@ class Client extends openapi_client_1.default {
|
|
|
18017
18111
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyScalingGroupResponse({}));
|
|
18018
18112
|
}
|
|
18019
18113
|
/**
|
|
18020
|
-
*
|
|
18114
|
+
* 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.
|
|
18021
18115
|
*
|
|
18022
|
-
* @
|
|
18116
|
+
* @remarks
|
|
18117
|
+
* You cannot modify the following parameters by calling this operation:
|
|
18023
18118
|
* * RegionId
|
|
18024
18119
|
* * LoadBalancerId
|
|
18025
18120
|
* **
|
|
@@ -18033,19 +18128,19 @@ class Client extends openapi_client_1.default {
|
|
|
18033
18128
|
* * 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.
|
|
18034
18129
|
* * 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.
|
|
18035
18130
|
*
|
|
18036
|
-
* @param request ModifyScalingGroupRequest
|
|
18037
|
-
* @
|
|
18131
|
+
* @param request - ModifyScalingGroupRequest
|
|
18132
|
+
* @returns ModifyScalingGroupResponse
|
|
18038
18133
|
*/
|
|
18039
18134
|
async modifyScalingGroup(request) {
|
|
18040
18135
|
let runtime = new $Util.RuntimeOptions({});
|
|
18041
18136
|
return await this.modifyScalingGroupWithOptions(request, runtime);
|
|
18042
18137
|
}
|
|
18043
18138
|
/**
|
|
18044
|
-
*
|
|
18139
|
+
* Modifies a scaling rule. If an existing scaling rule cannot meet your business requirements, you can call the ModifyScalingRule operation to modify the scaling rule, without the need to create a new one. This streamlines your workflow, enhancing operational efficiency while also contributing to cost optimization by avoiding redundant steps.
|
|
18045
18140
|
*
|
|
18046
|
-
* @param request ModifyScalingRuleRequest
|
|
18047
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18048
|
-
* @
|
|
18141
|
+
* @param request - ModifyScalingRuleRequest
|
|
18142
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
18143
|
+
* @returns ModifyScalingRuleResponse
|
|
18049
18144
|
*/
|
|
18050
18145
|
async modifyScalingRuleWithOptions(request, runtime) {
|
|
18051
18146
|
tea_util_1.default.validateModel(request);
|
|
@@ -18136,26 +18231,27 @@ class Client extends openapi_client_1.default {
|
|
|
18136
18231
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyScalingRuleResponse({}));
|
|
18137
18232
|
}
|
|
18138
18233
|
/**
|
|
18139
|
-
*
|
|
18234
|
+
* Modifies a scaling rule. If an existing scaling rule cannot meet your business requirements, you can call the ModifyScalingRule operation to modify the scaling rule, without the need to create a new one. This streamlines your workflow, enhancing operational efficiency while also contributing to cost optimization by avoiding redundant steps.
|
|
18140
18235
|
*
|
|
18141
|
-
* @param request ModifyScalingRuleRequest
|
|
18142
|
-
* @
|
|
18236
|
+
* @param request - ModifyScalingRuleRequest
|
|
18237
|
+
* @returns ModifyScalingRuleResponse
|
|
18143
18238
|
*/
|
|
18144
18239
|
async modifyScalingRule(request) {
|
|
18145
18240
|
let runtime = new $Util.RuntimeOptions({});
|
|
18146
18241
|
return await this.modifyScalingRuleWithOptions(request, runtime);
|
|
18147
18242
|
}
|
|
18148
18243
|
/**
|
|
18149
|
-
*
|
|
18244
|
+
* 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.
|
|
18150
18245
|
*
|
|
18151
|
-
* @
|
|
18246
|
+
* @remarks
|
|
18247
|
+
* You can use the following parameters to specify the scaling method of a scheduled task:
|
|
18152
18248
|
* * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
|
|
18153
18249
|
* * If you use the `ScalingGroupId` parameter, you must specify the minimum number, maximum number, or expected number of instances in the scheduled task.
|
|
18154
18250
|
* > You cannot specify the `ScheduledAction` and `ScalingGroupId` parameters at the same time.
|
|
18155
18251
|
*
|
|
18156
|
-
* @param request ModifyScheduledTaskRequest
|
|
18157
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18158
|
-
* @
|
|
18252
|
+
* @param request - ModifyScheduledTaskRequest
|
|
18253
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
18254
|
+
* @returns ModifyScheduledTaskResponse
|
|
18159
18255
|
*/
|
|
18160
18256
|
async modifyScheduledTaskWithOptions(request, runtime) {
|
|
18161
18257
|
tea_util_1.default.validateModel(request);
|
|
@@ -18231,24 +18327,26 @@ class Client extends openapi_client_1.default {
|
|
|
18231
18327
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyScheduledTaskResponse({}));
|
|
18232
18328
|
}
|
|
18233
18329
|
/**
|
|
18234
|
-
*
|
|
18330
|
+
* 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.
|
|
18235
18331
|
*
|
|
18236
|
-
* @
|
|
18332
|
+
* @remarks
|
|
18333
|
+
* You can use the following parameters to specify the scaling method of a scheduled task:
|
|
18237
18334
|
* * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
|
|
18238
18335
|
* * If you use the `ScalingGroupId` parameter, you must specify the minimum number, maximum number, or expected number of instances in the scheduled task.
|
|
18239
18336
|
* > You cannot specify the `ScheduledAction` and `ScalingGroupId` parameters at the same time.
|
|
18240
18337
|
*
|
|
18241
|
-
* @param request ModifyScheduledTaskRequest
|
|
18242
|
-
* @
|
|
18338
|
+
* @param request - ModifyScheduledTaskRequest
|
|
18339
|
+
* @returns ModifyScheduledTaskResponse
|
|
18243
18340
|
*/
|
|
18244
18341
|
async modifyScheduledTask(request) {
|
|
18245
18342
|
let runtime = new $Util.RuntimeOptions({});
|
|
18246
18343
|
return await this.modifyScheduledTaskWithOptions(request, runtime);
|
|
18247
18344
|
}
|
|
18248
18345
|
/**
|
|
18249
|
-
*
|
|
18346
|
+
* 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.
|
|
18250
18347
|
*
|
|
18251
|
-
* @
|
|
18348
|
+
* @remarks
|
|
18349
|
+
* ## [](#)Usage notes
|
|
18252
18350
|
* 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.
|
|
18253
18351
|
* * This operation is supported by only multi-zone scaling groups whose `MultiAZPolicy` is set to `BALANCE`.
|
|
18254
18352
|
* * 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.
|
|
@@ -18256,9 +18354,9 @@ class Client extends openapi_client_1.default {
|
|
|
18256
18354
|
* **
|
|
18257
18355
|
* **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).
|
|
18258
18356
|
*
|
|
18259
|
-
* @param request RebalanceInstancesRequest
|
|
18260
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18261
|
-
* @
|
|
18357
|
+
* @param request - RebalanceInstancesRequest
|
|
18358
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
18359
|
+
* @returns RebalanceInstancesResponse
|
|
18262
18360
|
*/
|
|
18263
18361
|
async rebalanceInstancesWithOptions(request, runtime) {
|
|
18264
18362
|
tea_util_1.default.validateModel(request);
|
|
@@ -18298,9 +18396,10 @@ class Client extends openapi_client_1.default {
|
|
|
18298
18396
|
return $tea.cast(await this.callApi(params, req, runtime), new RebalanceInstancesResponse({}));
|
|
18299
18397
|
}
|
|
18300
18398
|
/**
|
|
18301
|
-
*
|
|
18399
|
+
* 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.
|
|
18302
18400
|
*
|
|
18303
|
-
* @
|
|
18401
|
+
* @remarks
|
|
18402
|
+
* ## [](#)Usage notes
|
|
18304
18403
|
* 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.
|
|
18305
18404
|
* * This operation is supported by only multi-zone scaling groups whose `MultiAZPolicy` is set to `BALANCE`.
|
|
18306
18405
|
* * 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.
|
|
@@ -18308,22 +18407,23 @@ class Client extends openapi_client_1.default {
|
|
|
18308
18407
|
* **
|
|
18309
18408
|
* **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).
|
|
18310
18409
|
*
|
|
18311
|
-
* @param request RebalanceInstancesRequest
|
|
18312
|
-
* @
|
|
18410
|
+
* @param request - RebalanceInstancesRequest
|
|
18411
|
+
* @returns RebalanceInstancesResponse
|
|
18313
18412
|
*/
|
|
18314
18413
|
async rebalanceInstances(request) {
|
|
18315
18414
|
let runtime = new $Util.RuntimeOptions({});
|
|
18316
18415
|
return await this.rebalanceInstancesWithOptions(request, runtime);
|
|
18317
18416
|
}
|
|
18318
18417
|
/**
|
|
18319
|
-
*
|
|
18418
|
+
* 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.
|
|
18320
18419
|
*
|
|
18321
|
-
* @
|
|
18420
|
+
* @remarks
|
|
18421
|
+
* You can call this operation only when the desired ECS instance enters a Pending state.\\
|
|
18322
18422
|
* 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 a Pending state up to 20 times.
|
|
18323
18423
|
*
|
|
18324
|
-
* @param request RecordLifecycleActionHeartbeatRequest
|
|
18325
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18326
|
-
* @
|
|
18424
|
+
* @param request - RecordLifecycleActionHeartbeatRequest
|
|
18425
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
18426
|
+
* @returns RecordLifecycleActionHeartbeatResponse
|
|
18327
18427
|
*/
|
|
18328
18428
|
async recordLifecycleActionHeartbeatWithOptions(request, runtime) {
|
|
18329
18429
|
tea_util_1.default.validateModel(request);
|
|
@@ -18366,22 +18466,24 @@ class Client extends openapi_client_1.default {
|
|
|
18366
18466
|
return $tea.cast(await this.callApi(params, req, runtime), new RecordLifecycleActionHeartbeatResponse({}));
|
|
18367
18467
|
}
|
|
18368
18468
|
/**
|
|
18369
|
-
*
|
|
18469
|
+
* 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.
|
|
18370
18470
|
*
|
|
18371
|
-
* @
|
|
18471
|
+
* @remarks
|
|
18472
|
+
* You can call this operation only when the desired ECS instance enters a Pending state.\\
|
|
18372
18473
|
* 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 a Pending state up to 20 times.
|
|
18373
18474
|
*
|
|
18374
|
-
* @param request RecordLifecycleActionHeartbeatRequest
|
|
18375
|
-
* @
|
|
18475
|
+
* @param request - RecordLifecycleActionHeartbeatRequest
|
|
18476
|
+
* @returns RecordLifecycleActionHeartbeatResponse
|
|
18376
18477
|
*/
|
|
18377
18478
|
async recordLifecycleActionHeartbeat(request) {
|
|
18378
18479
|
let runtime = new $Util.RuntimeOptions({});
|
|
18379
18480
|
return await this.recordLifecycleActionHeartbeatWithOptions(request, runtime);
|
|
18380
18481
|
}
|
|
18381
18482
|
/**
|
|
18382
|
-
*
|
|
18483
|
+
* Removes one or more instances from a scaling group. If your scaling group is enabled and contains no ongoing scaling activities, you can call the RemoveInstances operation to remove instances that you no longer require from the scaling group.
|
|
18383
18484
|
*
|
|
18384
|
-
* @
|
|
18485
|
+
* @remarks
|
|
18486
|
+
* Before you call this operation, make sure that the following requirements are met:
|
|
18385
18487
|
* * The scaling group is in the Active state.
|
|
18386
18488
|
* * No scaling activity is in progress within the scaling group.
|
|
18387
18489
|
* > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
|
|
@@ -18390,9 +18492,9 @@ class Client extends openapi_client_1.default {
|
|
|
18390
18492
|
* * If the difference between the number of existing ECS instances specified by the TotalCapacity parameter and the number of ECS instances that you call this operation to remove is less than the value of the MinSize parameter, the call fails.
|
|
18391
18493
|
* A successful call only means that Auto Scaling accepts the request. The scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
|
|
18392
18494
|
*
|
|
18393
|
-
* @param request RemoveInstancesRequest
|
|
18394
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18395
|
-
* @
|
|
18495
|
+
* @param request - RemoveInstancesRequest
|
|
18496
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
18497
|
+
* @returns RemoveInstancesResponse
|
|
18396
18498
|
*/
|
|
18397
18499
|
async removeInstancesWithOptions(request, runtime) {
|
|
18398
18500
|
tea_util_1.default.validateModel(request);
|
|
@@ -18447,9 +18549,10 @@ class Client extends openapi_client_1.default {
|
|
|
18447
18549
|
return $tea.cast(await this.callApi(params, req, runtime), new RemoveInstancesResponse({}));
|
|
18448
18550
|
}
|
|
18449
18551
|
/**
|
|
18450
|
-
*
|
|
18552
|
+
* Removes one or more instances from a scaling group. If your scaling group is enabled and contains no ongoing scaling activities, you can call the RemoveInstances operation to remove instances that you no longer require from the scaling group.
|
|
18451
18553
|
*
|
|
18452
|
-
* @
|
|
18554
|
+
* @remarks
|
|
18555
|
+
* Before you call this operation, make sure that the following requirements are met:
|
|
18453
18556
|
* * The scaling group is in the Active state.
|
|
18454
18557
|
* * No scaling activity is in progress within the scaling group.
|
|
18455
18558
|
* > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
|
|
@@ -18458,19 +18561,19 @@ class Client extends openapi_client_1.default {
|
|
|
18458
18561
|
* * If the difference between the number of existing ECS instances specified by the TotalCapacity parameter and the number of ECS instances that you call this operation to remove is less than the value of the MinSize parameter, the call fails.
|
|
18459
18562
|
* A successful call only means that Auto Scaling accepts the request. The scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
|
|
18460
18563
|
*
|
|
18461
|
-
* @param request RemoveInstancesRequest
|
|
18462
|
-
* @
|
|
18564
|
+
* @param request - RemoveInstancesRequest
|
|
18565
|
+
* @returns RemoveInstancesResponse
|
|
18463
18566
|
*/
|
|
18464
18567
|
async removeInstances(request) {
|
|
18465
18568
|
let runtime = new $Util.RuntimeOptions({});
|
|
18466
18569
|
return await this.removeInstancesWithOptions(request, runtime);
|
|
18467
18570
|
}
|
|
18468
18571
|
/**
|
|
18469
|
-
*
|
|
18572
|
+
* Resumes suspended processes in a scaling group.
|
|
18470
18573
|
*
|
|
18471
|
-
* @param request ResumeProcessesRequest
|
|
18472
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18473
|
-
* @
|
|
18574
|
+
* @param request - ResumeProcessesRequest
|
|
18575
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
18576
|
+
* @returns ResumeProcessesResponse
|
|
18474
18577
|
*/
|
|
18475
18578
|
async resumeProcessesWithOptions(request, runtime) {
|
|
18476
18579
|
tea_util_1.default.validateModel(request);
|
|
@@ -18510,19 +18613,20 @@ class Client extends openapi_client_1.default {
|
|
|
18510
18613
|
return $tea.cast(await this.callApi(params, req, runtime), new ResumeProcessesResponse({}));
|
|
18511
18614
|
}
|
|
18512
18615
|
/**
|
|
18513
|
-
*
|
|
18616
|
+
* Resumes suspended processes in a scaling group.
|
|
18514
18617
|
*
|
|
18515
|
-
* @param request ResumeProcessesRequest
|
|
18516
|
-
* @
|
|
18618
|
+
* @param request - ResumeProcessesRequest
|
|
18619
|
+
* @returns ResumeProcessesResponse
|
|
18517
18620
|
*/
|
|
18518
18621
|
async resumeProcesses(request) {
|
|
18519
18622
|
let runtime = new $Util.RuntimeOptions({});
|
|
18520
18623
|
return await this.resumeProcessesWithOptions(request, runtime);
|
|
18521
18624
|
}
|
|
18522
18625
|
/**
|
|
18523
|
-
*
|
|
18626
|
+
* Scales instances. The ScaleWithAdjustment operation differs from the ExecuteScalingRule operation in that ScaleWithAdjust can directly scale instances without requiring you to create a scaling rule in advance.
|
|
18524
18627
|
*
|
|
18525
|
-
* @
|
|
18628
|
+
* @remarks
|
|
18629
|
+
* Before you call this operation, take note of the following items:
|
|
18526
18630
|
* * The scaling group is in the Active state.
|
|
18527
18631
|
* * The scaling group has no ongoing scaling activities.
|
|
18528
18632
|
* * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities before the cooldown period of the scaling group expires.
|
|
@@ -18530,9 +18634,9 @@ class Client extends openapi_client_1.default {
|
|
|
18530
18634
|
* * If the removal of a specific number of ECS instances from the scaling group causes the total number of ECS instances in the scaling group to be less than the minimum allowed number, Auto Scaling removes ECS instances from the scaling group until the total number of instances is equal to the minimum allowed number.
|
|
18531
18635
|
* 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 based on the value of `ScalingActivityId` in the response.
|
|
18532
18636
|
*
|
|
18533
|
-
* @param tmpReq ScaleWithAdjustmentRequest
|
|
18534
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18535
|
-
* @
|
|
18637
|
+
* @param tmpReq - ScaleWithAdjustmentRequest
|
|
18638
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
18639
|
+
* @returns ScaleWithAdjustmentResponse
|
|
18536
18640
|
*/
|
|
18537
18641
|
async scaleWithAdjustmentWithOptions(tmpReq, runtime) {
|
|
18538
18642
|
tea_util_1.default.validateModel(tmpReq);
|
|
@@ -18595,9 +18699,10 @@ class Client extends openapi_client_1.default {
|
|
|
18595
18699
|
return $tea.cast(await this.callApi(params, req, runtime), new ScaleWithAdjustmentResponse({}));
|
|
18596
18700
|
}
|
|
18597
18701
|
/**
|
|
18598
|
-
*
|
|
18702
|
+
* Scales instances. The ScaleWithAdjustment operation differs from the ExecuteScalingRule operation in that ScaleWithAdjust can directly scale instances without requiring you to create a scaling rule in advance.
|
|
18599
18703
|
*
|
|
18600
|
-
* @
|
|
18704
|
+
* @remarks
|
|
18705
|
+
* Before you call this operation, take note of the following items:
|
|
18601
18706
|
* * The scaling group is in the Active state.
|
|
18602
18707
|
* * The scaling group has no ongoing scaling activities.
|
|
18603
18708
|
* * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities before the cooldown period of the scaling group expires.
|
|
@@ -18605,19 +18710,19 @@ class Client extends openapi_client_1.default {
|
|
|
18605
18710
|
* * If the removal of a specific number of ECS instances from the scaling group causes the total number of ECS instances in the scaling group to be less than the minimum allowed number, Auto Scaling removes ECS instances from the scaling group until the total number of instances is equal to the minimum allowed number.
|
|
18606
18711
|
* 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 based on the value of `ScalingActivityId` in the response.
|
|
18607
18712
|
*
|
|
18608
|
-
* @param request ScaleWithAdjustmentRequest
|
|
18609
|
-
* @
|
|
18713
|
+
* @param request - ScaleWithAdjustmentRequest
|
|
18714
|
+
* @returns ScaleWithAdjustmentResponse
|
|
18610
18715
|
*/
|
|
18611
18716
|
async scaleWithAdjustment(request) {
|
|
18612
18717
|
let runtime = new $Util.RuntimeOptions({});
|
|
18613
18718
|
return await this.scaleWithAdjustmentWithOptions(request, runtime);
|
|
18614
18719
|
}
|
|
18615
18720
|
/**
|
|
18616
|
-
*
|
|
18721
|
+
* Sets deletion protection for a scaling group. If you enable deletion protection for a scaling group, you cannot delete the scaling group. If you disable deletion protection for a scaling group, you can directly delete the scaling group. You can call the SetGroupDeletionProtection operation to enable or disable deletion protection.
|
|
18617
18722
|
*
|
|
18618
|
-
* @param request SetGroupDeletionProtectionRequest
|
|
18619
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18620
|
-
* @
|
|
18723
|
+
* @param request - SetGroupDeletionProtectionRequest
|
|
18724
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
18725
|
+
* @returns SetGroupDeletionProtectionResponse
|
|
18621
18726
|
*/
|
|
18622
18727
|
async setGroupDeletionProtectionWithOptions(request, runtime) {
|
|
18623
18728
|
tea_util_1.default.validateModel(request);
|
|
@@ -18654,23 +18759,24 @@ class Client extends openapi_client_1.default {
|
|
|
18654
18759
|
return $tea.cast(await this.callApi(params, req, runtime), new SetGroupDeletionProtectionResponse({}));
|
|
18655
18760
|
}
|
|
18656
18761
|
/**
|
|
18657
|
-
*
|
|
18762
|
+
* Sets deletion protection for a scaling group. If you enable deletion protection for a scaling group, you cannot delete the scaling group. If you disable deletion protection for a scaling group, you can directly delete the scaling group. You can call the SetGroupDeletionProtection operation to enable or disable deletion protection.
|
|
18658
18763
|
*
|
|
18659
|
-
* @param request SetGroupDeletionProtectionRequest
|
|
18660
|
-
* @
|
|
18764
|
+
* @param request - SetGroupDeletionProtectionRequest
|
|
18765
|
+
* @returns SetGroupDeletionProtectionResponse
|
|
18661
18766
|
*/
|
|
18662
18767
|
async setGroupDeletionProtection(request) {
|
|
18663
18768
|
let runtime = new $Util.RuntimeOptions({});
|
|
18664
18769
|
return await this.setGroupDeletionProtectionWithOptions(request, runtime);
|
|
18665
18770
|
}
|
|
18666
18771
|
/**
|
|
18667
|
-
*
|
|
18772
|
+
* 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.
|
|
18668
18773
|
*
|
|
18669
|
-
* @
|
|
18774
|
+
* @remarks
|
|
18775
|
+
* Auto Scaling detects and removes unhealthy ECS instances or elastic container instances from the corresponding scaling groups. If you want to retain a specific instance in the corresponding scaling group, you can put the instance into the Standby or Protected state. For more information, see [EnterStandby](~~EnterStandby~~) and [SetInstancesProtection](~~SetInstancesProtection~~).
|
|
18670
18776
|
*
|
|
18671
|
-
* @param request SetInstanceHealthRequest
|
|
18672
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18673
|
-
* @
|
|
18777
|
+
* @param request - SetInstanceHealthRequest
|
|
18778
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
18779
|
+
* @returns SetInstanceHealthResponse
|
|
18674
18780
|
*/
|
|
18675
18781
|
async setInstanceHealthWithOptions(request, runtime) {
|
|
18676
18782
|
tea_util_1.default.validateModel(request);
|
|
@@ -18704,28 +18810,30 @@ class Client extends openapi_client_1.default {
|
|
|
18704
18810
|
return $tea.cast(await this.callApi(params, req, runtime), new SetInstanceHealthResponse({}));
|
|
18705
18811
|
}
|
|
18706
18812
|
/**
|
|
18707
|
-
*
|
|
18813
|
+
* 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.
|
|
18708
18814
|
*
|
|
18709
|
-
* @
|
|
18815
|
+
* @remarks
|
|
18816
|
+
* Auto Scaling detects and removes unhealthy ECS instances or elastic container instances from the corresponding scaling groups. If you want to retain a specific instance in the corresponding scaling group, you can put the instance into the Standby or Protected state. For more information, see [EnterStandby](~~EnterStandby~~) and [SetInstancesProtection](~~SetInstancesProtection~~).
|
|
18710
18817
|
*
|
|
18711
|
-
* @param request SetInstanceHealthRequest
|
|
18712
|
-
* @
|
|
18818
|
+
* @param request - SetInstanceHealthRequest
|
|
18819
|
+
* @returns SetInstanceHealthResponse
|
|
18713
18820
|
*/
|
|
18714
18821
|
async setInstanceHealth(request) {
|
|
18715
18822
|
let runtime = new $Util.RuntimeOptions({});
|
|
18716
18823
|
return await this.setInstanceHealthWithOptions(request, runtime);
|
|
18717
18824
|
}
|
|
18718
18825
|
/**
|
|
18719
|
-
*
|
|
18826
|
+
* Puts Elastic Compute Service (ECS) instances into the Protected state. When ECS instances are put into the Protected state, they become immune to manual deletion attempts by using the Auto Scaling console or API operations. This operation serves as a robust safeguard, efficiently preventing any inadvertent instance release that could lead to irreversible consequences.
|
|
18720
18827
|
*
|
|
18721
|
-
* @
|
|
18828
|
+
* @remarks
|
|
18829
|
+
* Once ECS instances enter the Protected state, they become subject to the following restrictions:
|
|
18722
18830
|
* * ECS instances will persist in the Protected state, unless you deliberately remove them from this state.
|
|
18723
18831
|
* * 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/25955.html).
|
|
18724
18832
|
* * ECS instances in the Protected state maintain their existing health status even when they undergo stopping or restarting processes.
|
|
18725
18833
|
*
|
|
18726
|
-
* @param request SetInstancesProtectionRequest
|
|
18727
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18728
|
-
* @
|
|
18834
|
+
* @param request - SetInstancesProtectionRequest
|
|
18835
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
18836
|
+
* @returns SetInstancesProtectionResponse
|
|
18729
18837
|
*/
|
|
18730
18838
|
async setInstancesProtectionWithOptions(request, runtime) {
|
|
18731
18839
|
tea_util_1.default.validateModel(request);
|
|
@@ -18762,26 +18870,27 @@ class Client extends openapi_client_1.default {
|
|
|
18762
18870
|
return $tea.cast(await this.callApi(params, req, runtime), new SetInstancesProtectionResponse({}));
|
|
18763
18871
|
}
|
|
18764
18872
|
/**
|
|
18765
|
-
*
|
|
18873
|
+
* Puts Elastic Compute Service (ECS) instances into the Protected state. When ECS instances are put into the Protected state, they become immune to manual deletion attempts by using the Auto Scaling console or API operations. This operation serves as a robust safeguard, efficiently preventing any inadvertent instance release that could lead to irreversible consequences.
|
|
18766
18874
|
*
|
|
18767
|
-
* @
|
|
18875
|
+
* @remarks
|
|
18876
|
+
* Once ECS instances enter the Protected state, they become subject to the following restrictions:
|
|
18768
18877
|
* * ECS instances will persist in the Protected state, unless you deliberately remove them from this state.
|
|
18769
18878
|
* * 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/25955.html).
|
|
18770
18879
|
* * ECS instances in the Protected state maintain their existing health status even when they undergo stopping or restarting processes.
|
|
18771
18880
|
*
|
|
18772
|
-
* @param request SetInstancesProtectionRequest
|
|
18773
|
-
* @
|
|
18881
|
+
* @param request - SetInstancesProtectionRequest
|
|
18882
|
+
* @returns SetInstancesProtectionResponse
|
|
18774
18883
|
*/
|
|
18775
18884
|
async setInstancesProtection(request) {
|
|
18776
18885
|
let runtime = new $Util.RuntimeOptions({});
|
|
18777
18886
|
return await this.setInstancesProtectionWithOptions(request, runtime);
|
|
18778
18887
|
}
|
|
18779
18888
|
/**
|
|
18780
|
-
*
|
|
18889
|
+
* Suspends scaling processes. This operation empowers you to selectively pause distinct scaling processes within a particular scaling group, enabling you to carry out alternative tasks and achieve more granular management over your scaling operations.
|
|
18781
18890
|
*
|
|
18782
|
-
* @param request SuspendProcessesRequest
|
|
18783
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18784
|
-
* @
|
|
18891
|
+
* @param request - SuspendProcessesRequest
|
|
18892
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
18893
|
+
* @returns SuspendProcessesResponse
|
|
18785
18894
|
*/
|
|
18786
18895
|
async suspendProcessesWithOptions(request, runtime) {
|
|
18787
18896
|
tea_util_1.default.validateModel(request);
|
|
@@ -18821,19 +18930,20 @@ class Client extends openapi_client_1.default {
|
|
|
18821
18930
|
return $tea.cast(await this.callApi(params, req, runtime), new SuspendProcessesResponse({}));
|
|
18822
18931
|
}
|
|
18823
18932
|
/**
|
|
18824
|
-
*
|
|
18933
|
+
* Suspends scaling processes. This operation empowers you to selectively pause distinct scaling processes within a particular scaling group, enabling you to carry out alternative tasks and achieve more granular management over your scaling operations.
|
|
18825
18934
|
*
|
|
18826
|
-
* @param request SuspendProcessesRequest
|
|
18827
|
-
* @
|
|
18935
|
+
* @param request - SuspendProcessesRequest
|
|
18936
|
+
* @returns SuspendProcessesResponse
|
|
18828
18937
|
*/
|
|
18829
18938
|
async suspendProcesses(request) {
|
|
18830
18939
|
let runtime = new $Util.RuntimeOptions({});
|
|
18831
18940
|
return await this.suspendProcessesWithOptions(request, runtime);
|
|
18832
18941
|
}
|
|
18833
18942
|
/**
|
|
18834
|
-
*
|
|
18943
|
+
* Creates and attaches tags. You can call the TagResources operation to uniformly create and attach tags to your Auto Scaling resources, streamlining resource management. This capability empowers you to categorize resources based on tags, thereby enhancing the overall efficiency of resource allocation and utilization.
|
|
18835
18944
|
*
|
|
18836
|
-
* @
|
|
18945
|
+
* @remarks
|
|
18946
|
+
* You can attach up to 20 tags to a scaling group.
|
|
18837
18947
|
* **
|
|
18838
18948
|
* **Note** Before you attach tags to a specific Auto Scaling resource, Alibaba Cloud automatically verifies the current number of tags attached to that resource. In the event the proposed addition would exceed the maximum allowed number of tags, an error message will be promptly returned after you call this operation.
|
|
18839
18949
|
* * If you set `Tags.Propagate` to `true`, any tags attached to your scaling group will be automatically propagated to new instances that are subsequently created in the scaling group, without affecting existing instances.
|
|
@@ -18841,9 +18951,9 @@ class Client extends openapi_client_1.default {
|
|
|
18841
18951
|
* * Instances set to join the scaling group will inherit the following tags: tags attached to the scaling configuration that initiates the instance creation and tags attached to the scaling group that are allowed to propagate to these instances upon instance creation.
|
|
18842
18952
|
* * If the tag keys of the scaling configuration and those attached to the scaling group and propagated to the instances are identical, the tags attached to the scaling group and propagated to the instances will be overwritten by the tags of the scaling configuration.
|
|
18843
18953
|
*
|
|
18844
|
-
* @param request TagResourcesRequest
|
|
18845
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18846
|
-
* @
|
|
18954
|
+
* @param request - TagResourcesRequest
|
|
18955
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
18956
|
+
* @returns TagResourcesResponse
|
|
18847
18957
|
*/
|
|
18848
18958
|
async tagResourcesWithOptions(request, runtime) {
|
|
18849
18959
|
tea_util_1.default.validateModel(request);
|
|
@@ -18883,9 +18993,10 @@ class Client extends openapi_client_1.default {
|
|
|
18883
18993
|
return $tea.cast(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
|
|
18884
18994
|
}
|
|
18885
18995
|
/**
|
|
18886
|
-
*
|
|
18996
|
+
* Creates and attaches tags. You can call the TagResources operation to uniformly create and attach tags to your Auto Scaling resources, streamlining resource management. This capability empowers you to categorize resources based on tags, thereby enhancing the overall efficiency of resource allocation and utilization.
|
|
18887
18997
|
*
|
|
18888
|
-
* @
|
|
18998
|
+
* @remarks
|
|
18999
|
+
* You can attach up to 20 tags to a scaling group.
|
|
18889
19000
|
* **
|
|
18890
19001
|
* **Note** Before you attach tags to a specific Auto Scaling resource, Alibaba Cloud automatically verifies the current number of tags attached to that resource. In the event the proposed addition would exceed the maximum allowed number of tags, an error message will be promptly returned after you call this operation.
|
|
18891
19002
|
* * If you set `Tags.Propagate` to `true`, any tags attached to your scaling group will be automatically propagated to new instances that are subsequently created in the scaling group, without affecting existing instances.
|
|
@@ -18893,19 +19004,19 @@ class Client extends openapi_client_1.default {
|
|
|
18893
19004
|
* * Instances set to join the scaling group will inherit the following tags: tags attached to the scaling configuration that initiates the instance creation and tags attached to the scaling group that are allowed to propagate to these instances upon instance creation.
|
|
18894
19005
|
* * If the tag keys of the scaling configuration and those attached to the scaling group and propagated to the instances are identical, the tags attached to the scaling group and propagated to the instances will be overwritten by the tags of the scaling configuration.
|
|
18895
19006
|
*
|
|
18896
|
-
* @param request TagResourcesRequest
|
|
18897
|
-
* @
|
|
19007
|
+
* @param request - TagResourcesRequest
|
|
19008
|
+
* @returns TagResourcesResponse
|
|
18898
19009
|
*/
|
|
18899
19010
|
async tagResources(request) {
|
|
18900
19011
|
let runtime = new $Util.RuntimeOptions({});
|
|
18901
19012
|
return await this.tagResourcesWithOptions(request, runtime);
|
|
18902
19013
|
}
|
|
18903
19014
|
/**
|
|
18904
|
-
*
|
|
19015
|
+
* Removes tags from Auto Scaling resources simultaneously. This operation streamlines resource management activities, enhances system efficiency, and mitigates potential security vulnerabilities. Once a tag is removed from a particular resource, and if it is not re-added to any other resource, the system will automatically delete the unused tag.
|
|
18905
19016
|
*
|
|
18906
|
-
* @param request UntagResourcesRequest
|
|
18907
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18908
|
-
* @
|
|
19017
|
+
* @param request - UntagResourcesRequest
|
|
19018
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
19019
|
+
* @returns UntagResourcesResponse
|
|
18909
19020
|
*/
|
|
18910
19021
|
async untagResourcesWithOptions(request, runtime) {
|
|
18911
19022
|
tea_util_1.default.validateModel(request);
|
|
@@ -18948,21 +19059,21 @@ class Client extends openapi_client_1.default {
|
|
|
18948
19059
|
return $tea.cast(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
18949
19060
|
}
|
|
18950
19061
|
/**
|
|
18951
|
-
*
|
|
19062
|
+
* Removes tags from Auto Scaling resources simultaneously. This operation streamlines resource management activities, enhances system efficiency, and mitigates potential security vulnerabilities. Once a tag is removed from a particular resource, and if it is not re-added to any other resource, the system will automatically delete the unused tag.
|
|
18952
19063
|
*
|
|
18953
|
-
* @param request UntagResourcesRequest
|
|
18954
|
-
* @
|
|
19064
|
+
* @param request - UntagResourcesRequest
|
|
19065
|
+
* @returns UntagResourcesResponse
|
|
18955
19066
|
*/
|
|
18956
19067
|
async untagResources(request) {
|
|
18957
19068
|
let runtime = new $Util.RuntimeOptions({});
|
|
18958
19069
|
return await this.untagResourcesWithOptions(request, runtime);
|
|
18959
19070
|
}
|
|
18960
19071
|
/**
|
|
18961
|
-
*
|
|
19072
|
+
* Checks whether Auto Scaling is authorized to access Elastic Compute Service (ECS) and Elastic Container Instance resources.
|
|
18962
19073
|
*
|
|
18963
|
-
* @param request VerifyAuthenticationRequest
|
|
18964
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
18965
|
-
* @
|
|
19074
|
+
* @param request - VerifyAuthenticationRequest
|
|
19075
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
19076
|
+
* @returns VerifyAuthenticationResponse
|
|
18966
19077
|
*/
|
|
18967
19078
|
async verifyAuthenticationWithOptions(request, runtime) {
|
|
18968
19079
|
tea_util_1.default.validateModel(request);
|
|
@@ -18999,21 +19110,21 @@ class Client extends openapi_client_1.default {
|
|
|
18999
19110
|
return $tea.cast(await this.callApi(params, req, runtime), new VerifyAuthenticationResponse({}));
|
|
19000
19111
|
}
|
|
19001
19112
|
/**
|
|
19002
|
-
*
|
|
19113
|
+
* Checks whether Auto Scaling is authorized to access Elastic Compute Service (ECS) and Elastic Container Instance resources.
|
|
19003
19114
|
*
|
|
19004
|
-
* @param request VerifyAuthenticationRequest
|
|
19005
|
-
* @
|
|
19115
|
+
* @param request - VerifyAuthenticationRequest
|
|
19116
|
+
* @returns VerifyAuthenticationResponse
|
|
19006
19117
|
*/
|
|
19007
19118
|
async verifyAuthentication(request) {
|
|
19008
19119
|
let runtime = new $Util.RuntimeOptions({});
|
|
19009
19120
|
return await this.verifyAuthenticationWithOptions(request, runtime);
|
|
19010
19121
|
}
|
|
19011
19122
|
/**
|
|
19012
|
-
*
|
|
19123
|
+
* Verifies whether Auto Scaling is activated. This operation guarantees that in response to shifts in business workloads or variations in incoming traffic, the system will automatically adjust resource provisioning. This auto-scaling capability enhances the overall system performance, ensuring high availability and improved flexibility to accommodate dynamic demands.
|
|
19013
19124
|
*
|
|
19014
|
-
* @param request VerifyUserRequest
|
|
19015
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
19016
|
-
* @
|
|
19125
|
+
* @param request - VerifyUserRequest
|
|
19126
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
19127
|
+
* @returns VerifyUserResponse
|
|
19017
19128
|
*/
|
|
19018
19129
|
async verifyUserWithOptions(request, runtime) {
|
|
19019
19130
|
tea_util_1.default.validateModel(request);
|
|
@@ -19047,10 +19158,10 @@ class Client extends openapi_client_1.default {
|
|
|
19047
19158
|
return $tea.cast(await this.callApi(params, req, runtime), new VerifyUserResponse({}));
|
|
19048
19159
|
}
|
|
19049
19160
|
/**
|
|
19050
|
-
*
|
|
19161
|
+
* Verifies whether Auto Scaling is activated. This operation guarantees that in response to shifts in business workloads or variations in incoming traffic, the system will automatically adjust resource provisioning. This auto-scaling capability enhances the overall system performance, ensuring high availability and improved flexibility to accommodate dynamic demands.
|
|
19051
19162
|
*
|
|
19052
|
-
* @param request VerifyUserRequest
|
|
19053
|
-
* @
|
|
19163
|
+
* @param request - VerifyUserRequest
|
|
19164
|
+
* @returns VerifyUserResponse
|
|
19054
19165
|
*/
|
|
19055
19166
|
async verifyUser(request) {
|
|
19056
19167
|
let runtime = new $Util.RuntimeOptions({});
|