You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""This API is used to launch CVM instances in the scaling group.
1238
+
* After the instance is launched and in the `IN_SERVICE` status, the desired capacity increases, but the desired capacity cannot exceed the maximum value.
1239
+
* This API supports batch operation. Up to 100 instances can be launched in each request.
1240
+
1241
+
:param request: Request instance for StartAutoScalingInstances.
"""This API is used to shut down CVM instances in the scaling group.
1268
+
* Use the `SOFT_FIRST` shutdown, which means the CVM will be forcibly shut down if the soft shutdown fails.
1269
+
* Shutting down instances in the `IN_SERVICE` status will reduce the desired capacity, but the desired capacity cannot be less than the minimum value.
1270
+
* To use the `STOP_CHARGING` shutdown, the instances you want to shut down must satisfy the conditions of [no charges when shut down](https://cloud.tencent.com/document/product/213/19918).
1271
+
* This API supports batch operation. Up to 100 instances can be shut down in each request.
1272
+
1273
+
:param request: Request instance for StopAutoScalingInstances.
:param AutoScalingGroupName: The scaling group name. It must be unique under your account. The name can only contain Chinese characters, English letters, numbers, underscore, hyphen “-” and periods. It cannot exceed 55 bytes.
401
+
:type AutoScalingGroupName: str
402
+
:param InstanceId: The instance ID.
403
+
:type InstanceId: str
404
+
:param MinSize: The maximum number of instances. Value range: 0-2000.
405
+
:type MinSize: int
406
+
:param MaxSize: The minimum number of instances. Value range: 0-2000.
407
+
:type MaxSize: int
408
+
:param DesiredCapacity: The desired capacity. Its value must be greater than the minimum and smaller than the maximum.
409
+
:type DesiredCapacity: int
410
+
:param InheritInstanceTag: Whether to inherit the instance tag. Default value: False
Common reasons why an availability zone or subnet is unavailable include stock-out of CVM instances or CBS cloud disks in the availability zone, insufficient quota in the availability zone, or insufficient IPs in the subnet.
438
496
If an availability zone or subnet in Zones/SubnetIds does not exist, a verification error will be reported regardless of the value of ZonesCheckPolicy.
439
497
:type ZonesCheckPolicy: str
440
-
:param Tags: List of tag descriptions. This parameter is used to bind a tag to an auto scaling group as well as the corresponding resource instances.
498
+
:param Tags: List of tag descriptions. This parameter is used to bind a tag to a scaling group as well as corresponding resource instances. Each scaling group can have up to 30 tags.
441
499
:type Tags: list of Tag
442
500
:param ServiceSettings: Service settings such as unhealthy instance replacement.
:param HonorCooldown: Whether to check if the auto scaling group is in the cooldown period. Default value: false
2071
2133
:type HonorCooldown: bool
2134
+
:param TriggerSource: Trigger source that executes a scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value `CLOUD_MONITOR` is specific to the Cloud Monitor service.
:param PublicIpAssigned: Whether to assign a public IP. Value range: <br><li>TRUE: Assign a public IP <br><li>FALSE: Do not assign a public IP <br><br>If the public network bandwidth is greater than 0 Mbps, you are free to choose whether to enable the public IP (which is enabled by default). If the public network bandwidth is 0 Mbps, no public IP will be allowed to be assigned.
2337
2403
Note: This field may return null, indicating that no valid values can be obtained.
2338
2404
:type PublicIpAssigned: bool
2405
+
:param BandwidthPackageId: Bandwidth package ID. You can obtain the parameter value from the `BandwidthPackageId` field in the response of the [DescribeBandwidthPackages](https://cloud.tencent.com/document/api/215/19209) API.
2406
+
Note: this field may return null, indicating that no valid value was found.
0 commit comments