If a scaling configuration does not meet your business needs, you can call the ModifyScalingConfiguration operation to modify the scaling configuration. A scaling configuration is a template for creating ECS instances during scale-out events.
Operation description
-
Scaling configurations in the same scaling group cannot have the same name.
-
You can configure the primary elastic network interface (ENI) in one of the following ways. You can use only one method in a single API call. If you use both methods, the call fails and an error message is returned. When you modify the ENI configuration, using one method clears any configuration set by the other method.
-
Directly set the configuration of the primary ENI using parameters such as `SecurityGroupId`, `SecurityGroupIds`, and `Ipv6AddressCount`.
-
Set the configuration of the primary and secondary ENIs using the `NetworkInterfaces` parameter. When you use this parameter, you must configure the primary ENI. To specify the primary ENI, set `NetworkInterface.InstanceType` to `Primary`. To specify a secondary ENI, set `NetworkInterface.InstanceType` to `Secondary` or leave the parameter empty.
-
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:ModifyScalingConfiguration |
update |
*ScalingGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ScalingConfigurationId |
string |
Yes |
The ID of the scaling configuration that you want to modify. |
asc-bp16har3jpj6fjbx**** |
| IoOptimized |
string |
No |
Specifies whether the instance is I/O optimized. Valid values:
|
none |
| SpotStrategy |
string |
No |
The preemption policy for the pay-as-you-go instance. Valid values:
|
NoSpot |
| ScalingConfigurationName |
string |
No |
The name of the scaling configuration. The name must be 2 to 64 English or Chinese characters in length. It must start with a digit, a letter, or a Chinese character. The name can contain digits, underscores (_), hyphens (-), and periods (.). The name of a scaling configuration must be unique within a scaling group in the same region. If you do not specify this parameter, the ID of the scaling configuration is used by default. |
test-modify |
| InstanceName |
string |
No |
The name of the ECS instances that are automatically created using this scaling configuration. |
inst**** |
| HostName |
string |
No |
The hostname of the ECS instance. A period (.) or a hyphen (-) cannot be used as the first or last character of the hostname. Consecutive periods (.) or hyphens (-) are not allowed. The naming conventions for hostnames vary based on the instance operating system:
|
hos**** |
| ImageId |
string |
No |
The ID of the image file that is used to create the instances. Note
If the image that was previously used in the scaling configuration includes a system disk and data disks, the original data disk information is cleared after you change the image. |
centos6u5_64_20G_aliaegis_2014****.vhd |
| ImageName |
string |
No |
The name of the image file. The image name must be unique in a region. If you specify `ImageId`, `ImageName` is ignored. You cannot use `ImageName` to specify a Marketplace image. |
suse11sp3_64_20G_aliaegis_2015****.vhd |
| Cpu |
integer |
No |
The number of vCPUs. Unit: cores. You can specify both `Cpu` and `Memory` to define a range of instance types. For example, if you set `Cpu` to 2 and `Memory` to 16, all instance types with 2 vCPUs and 16 GiB of memory are matched. Auto Scaling determines the available instance types based on factors such as I/O optimization and zone, and then creates the instance of the lowest-priced instance type. Note
This configuration is effective only when the cost optimization mode is enabled and no instance types are specified in the scaling configuration. |
2 |
| Memory |
integer |
No |
The memory size. Unit: GiB. You can specify both `Cpu` and `Memory` to define a range of instance types. For example, if you set `Cpu` to 2 and `Memory` to 16, all instance types with 2 vCPUs and 16 GiB of memory are matched. Auto Scaling determines the available instance types based on factors such as I/O optimization and zone, and then creates the instance of the lowest-priced instance type. Note
This configuration is effective only when the cost optimization mode is enabled and no instance types are specified in the scaling configuration. |
16 |
| InternetChargeType |
string |
No |
The billing method for network usage. Valid values:
|
PayByBandwidth |
| InternetMaxBandwidthOut |
integer |
No |
The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0. |
10 |
| SystemDisk.Category |
string |
No |
The category of the system disk. Valid values:
You cannot specify this parameter and |
cloud_efficiency |
| SystemDisk.Size |
integer |
No |
The size of the system disk. Unit: GiB. Value range:
The value of this parameter must be greater than or equal to max{1, ImageSize}. |
50 |
| SystemDisk.DiskName |
string |
No |
The name of the system disk. The name must be 2 to 128 English or Chinese characters in length. It must start with a letter or a Chinese character and cannot start with http:// or https://. It can contain digits, colons (:), underscores (_), and hyphens (-). Default value: empty |
cloud_ssdSystem |
| SystemDisk.Description |
string |
No |
The description of the system disk. The description must be 2 to 256 English or Chinese characters in length and cannot start with |
Test system disk. |
| SystemDisk.AutoSnapshotPolicyId |
string |
No |
The ID of the automatic snapshot policy used for the system disk. |
sp-bp12m37ccmxvbmi5**** |
| SystemDisk.PerformanceLevel |
string |
No |
The performance level of the ESSD that is used as the system disk. Valid values:
Note
For more information about how to select an ESSD performance level, see ESSDs. |
PL0 |
| LoadBalancerWeight |
integer |
No |
The weight of the backend server. Valid values: 1 to 100. |
50 |
| UserData |
string |
No |
The custom data of the ECS instance. The data must be Base64-encoded. The raw data can be up to 32 KB in size. |
ZWNobyBoZWxsbyBlY3Mh |
| KeyPairName |
string |
No |
The name of the key pair that is used to log on to the ECS instance.
|
KeyPair_Name |
| RamRoleName |
string |
No |
The name of the RAM role of the ECS instance. The RAM role is provided and maintained by RAM. You can call the ListRoles operation to query the available RAM roles. For information about how to create a RAM role, see API CreateRole. |
RamRoleTest |
| PasswordInherit |
boolean |
No |
Specifies whether to use the password that is preset in the image. If you use this parameter, make sure that a password is set for the image. |
false |
| Tags |
string |
No |
The tags of the ECS instance. You can specify up to 20 tags in key-value pairs. The following limits apply to keys and values:
|
{"key1":"value1","key2":"value2", ... "key5":"value5"} |
| DeploymentSetId |
string |
No |
The ID of the deployment set to which the ECS instance belongs. |
ds-bp13v7bjnj9gis**** |
| SecurityGroupId |
string |
No |
The ID of the security group to which the ECS instance belongs. ECS instances in the same security group can access each other. |
sg-F876F**** |
| Override |
boolean |
No |
Specifies whether to overwrite the parameter. Valid values:
|
true |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the ECS instance belongs. |
abcd1234abcd**** |
| HpcClusterId |
string |
No |
The ID of the HPC cluster to which the ECS instance belongs. |
hpc-clusterid |
| InstanceDescription |
string |
No |
The description of the ECS instance. The description must be 2 to 256 English or Chinese characters in length and cannot start with |
Test instance. |
| Ipv6AddressCount |
integer |
No |
The number of randomly generated IPv6 addresses to be assigned to the ENI. |
1 |
| CreditSpecification |
string |
No |
The performance mode of the burstable instance. Valid values:
|
Standard |
| ImageFamily |
string |
No |
The name of the image family. You can set this parameter to obtain the latest available image from the specified image family to create instances. If you have set the |
hangzhou-daily-update |
| ZoneId |
string |
No |
The ID of the zone to which the ECS instance belongs. |
cn-hangzhou-g |
| DedicatedHostId |
string |
No |
Specifies whether to create the ECS instance on a dedicated host. If you specify `DedicatedHostId`, the `SpotStrategy` and `SpotPriceLimit` settings in the request are ignored. This is because dedicated hosts do not support spot instances. You can call the DescribeDedicatedHosts operation to query the list of dedicated host IDs. |
dh-bp67acfmxazb4p**** |
| Affinity |
string |
No |
Specifies whether to associate the instance on a dedicated host with the dedicated host. Valid values:
|
default |
| Tenancy |
string |
No |
Specifies whether to create the instance on a dedicated host. Valid values:
|
default |
| SchedulerOptions |
object |
No |
The scheduling options. |
["testManagedPrivateSpaceId****"] |
| PrivatePoolOptions.MatchCriteria |
string |
No |
The capacity option of the private pool for starting the instance. The private pool is generated after an Elastic Assurance service or a Capacity Reservation service takes effect. You can select a private pool to start an instance. Valid values:
|
Open |
| PrivatePoolOptions.Id |
string |
No |
The ID of the private pool. The private pool can be an Elastic Assurance service or a Capacity Reservation service. |
eap-bp67acfmxazb4**** |
| SpotDuration |
integer |
No |
The protection period of the spot instance. Unit: hours. Valid values:
Note
Alibaba Cloud sends a notification to you through ECS system events 5 minutes before the instance is released. Spot instances are billed by the second. Select a protection period based on the time required to complete your task. Default value: 1. |
1 |
| SpotInterruptionBehavior |
string |
No |
The interruption mode of the spot instance. Currently, only Terminate is supported, which is the default value. This value indicates that the instance is directly released. |
Terminate |
| DataDisks |
array<object> |
No |
The collection of data disk information. |
|
|
object |
No |
The collection of data disk information. |
||
| PerformanceLevel |
string |
No |
The performance level of the ESSD that is used as the data disk. Valid values:
Note
For more information about how to select an ESSD performance level, see ESSDs. |
PL1 |
| AutoSnapshotPolicyId |
string |
No |
The ID of the automatic snapshot policy used for the data disk. |
sp-bp19nq9enxqkomib**** |
| Encrypted |
string |
No |
Specifies whether the system disk is encrypted. Valid values:
|
false |
| Description |
string |
No |
The description of the data disk. The description must be 2 to 256 English or Chinese characters in length and cannot start with |
Test data disk. |
| SnapshotId |
string |
No |
The snapshot that is used to create the data disk. If you specify this parameter, `DataDisk.Size` is ignored, and the size of the created disk is the size of the specified snapshot. If the snapshot was created on or before July 15, 2013, the call is rejected, and the `InvalidSnapshot.TooOld` error is returned. |
s-snapshot**** |
| Categories |
array |
No |
The categories of the data disk. Valid values:
Note
You cannot specify this parameter and |
|
|
string |
No |
The categories of the data disk. If a disk of a category with a higher priority cannot be created, Auto Scaling automatically tries to create a disk of a category with the next priority. Valid values:
Note
You cannot specify this parameter and |
cloud |
|
| Size |
integer |
No |
The size of the data disk. Unit: GiB. Value range:
If you specify this parameter, the disk size must be greater than or equal to the size of the snapshot specified by `SnapshotId`. |
100 |
| Device |
string |
No |
The mount point of the data disk. If you do not specify this parameter, the system allocates a mount point when the ECS instance is automatically created. The mount point starts from /dev/xvdb and goes to /dev/xvdz. |
/dev/xvdd |
| DiskName |
string |
No |
The name of the data disk. The name must be 2 to 128 English or Chinese characters in length. It must start with a letter or a Chinese character and cannot start with |
cloud_ssdData |
| Category |
string |
No |
The category of the data disk. Valid values:
You cannot specify this parameter and
|
cloud_ssd |
| DeleteWithInstance |
boolean |
No |
Specifies whether to release the data disk when the instance is released. Valid values:
You can set this parameter only for independent cloud disks (`DataDisk.Category` is `cloud`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, or `cloud_auto`). Otherwise, an error occurs. |
true |
| KMSKeyId |
string |
No |
The ID of the KMS key for the data disk. |
0e478b7a-4262-4802-b8cb-00d3fb40**** |
| ProvisionedIops |
integer |
No |
The pre-configured IOPS of the data disk. Note
IOPS, or input/output operations per second, is the number of I/O operations that a block storage device can process per second. It indicates the read and write performance of the block storage device. |
100 |
| BurstingEnabled |
boolean |
No |
Specifies whether to enable performance burst for the system disk. Valid values:
Note
This parameter takes effect only when For more information, see ESSD AutoPL cloud disks. |
false |
| SpotPriceLimits |
array<object> |
No |
The information about the spot instance types. |
|
|
object |
No |
The information about the spot instance types. |
||
| PriceLimit |
number |
No |
The bid for the spot instance. This parameter is in effect when `SpotStrategy` is set to `SpotWithPriceLimit`. |
0.125 |
| InstanceType |
string |
No |
The instance type of the spot instance. This parameter is in effect when `SpotStrategy` is set to `SpotWithPriceLimit`. |
ecs.g6.large |
| InstanceTypes |
array |
No |
The instance types. If you use `InstanceTypes`, `InstanceType` is ignored. If an instance cannot be created using the instance type with a higher priority, Auto Scaling automatically uses the instance type with the next priority to create the instance. |
|
|
string |
No |
The instance types. If you use `InstanceTypes`, `InstanceType` is ignored. If an instance cannot be created using the instance type with a higher priority, Auto Scaling automatically uses the instance type with the next priority to create the instance. |
ecs.g6.large |
|
| InstanceTypeOverrides |
array<object> |
No |
The information about the specified instance types. |
|
|
object |
No |
The information about the specified instance types. |
||
| InstanceType |
string |
No |
If you want to specify the capacity of an instance type in a scaling configuration, specify this parameter and `InstanceTypeOverride.WeightedCapacity`. This parameter is used to specify an instance type. You can specify this parameter multiple times. You can use this parameter with the `InstanceTypeOverride.WeightedCapacity` parameter to enable custom weights for multiple instance types. Note
If you specify this parameter, you cannot specify `instanceTypes`. Valid values of InstanceType: available ECS instance types. |
ecs.c5.xlarge |
| WeightedCapacity |
integer |
No |
If you want the scaling group to scale based on the capacity of instance types, specify this parameter after you specify `LaunchTemplateOverride.InstanceType`. This parameter specifies the weight of an instance type, which indicates the capacity of a single instance of the specified instance type in the scaling group. A higher weight indicates that a smaller number of instances of the specified instance type are required to meet the expected capacity. You can set different weights for different instance types as needed because the performance metrics, such as the number of vCPUs and memory size, vary based on the instance type. For example:
To meet the expected capacity, the scaling group scales out two ecs.c5.xlarge instances. Note
The capacity of the scaling group after a scale-out activity cannot exceed the sum of the maximum capacity (MaxSize) and the maximum weight of an instance type. Valid values of WeightedCapacity: 1 to 500. |
4 |
| SecurityGroupIds |
array |
No |
The ID of the security group. |
|
|
string |
No |
The IDs of the security groups. |
sg-bp18kz60mefs**** |
|
| InstancePatternInfos |
array<object> |
No |
The collection of intelligent configuration information that is used to filter instance types that meet the specified requirements. |
|
|
object |
No |
The collection of intelligent configuration information that is used to filter instance types that meet the specified requirements. |
||
| Cores |
integer |
No |
The number of vCPU cores of the instance type in intelligent configuration mode. This parameter is used to filter instance types. For more information, see Instance families. Note the following information:
|
2 |
| InstanceFamilyLevel |
string |
No |
The level of the instance family. This parameter is used to filter instance types. This parameter takes effect only when `CostOptimization` is enabled. Valid values:
|
EnterpriseLevel |
| MaxPrice |
number |
No |
The maximum hourly price that you can accept for a pay-as-you-go or spot instance in intelligent configuration mode. This parameter is used to filter instance types. Note
This parameter is required when `SpotStrategy` is set to `SpotWithPriceLimit`. In other cases, this parameter is optional. |
2 |
| Memory |
number |
No |
The memory size of the instance type in intelligent configuration mode. Unit: GiB. This parameter is used to filter instance types. |
4 |
| Architectures |
array |
No |
The architecture type of the instance type. Valid values:
Default value: all architecture types. |
|
|
string |
No |
The architecture type of the instance type. Valid values:
Default value: all architecture types. |
X86 |
|
| BurstablePerformance |
string |
No |
Specifies whether to include burstable instance types. Valid values:
Default value: Include. |
Include |
| ExcludedInstanceTypes |
array |
No |
The instance types to exclude. You can use a wildcard character (*) to exclude an instance type or an entire instance family. Examples:
|
|
|
string |
No |
The instance types to exclude. You can use a wildcard character (*) to exclude an instance type or an entire instance family. Examples:
|
ecs.n1.small/ecs.n1.*/*7* |
|
| InstanceTypeFamilies |
array |
No |
The instance families to query. You can specify up to 10 instance families. |
|
|
string |
No |
The instance families to query. You can specify up to 10 instance families. |
ecs.g6 |
|
| MinimumCpuCoreCount |
integer |
No |
The minimum number of vCPU cores of the instance. |
2 |
| MaximumCpuCoreCount |
integer |
No |
The maximum number of vCPU cores of the instance type. Note
The value of `MaximumCpuCoreCount` cannot be more than four times the value of `MinimumCpuCoreCount`. |
4 |
| GpuSpecs |
array |
No |
The GPU type. |
|
|
string |
No |
The GPU type. |
NVIDIA V100 |
|
| InstanceCategories |
array |
No |
The category of the instance type. Valid values:
|
|
|
string |
No |
The category of the instance type. Valid values:
|
Compute-optimized with GPU |
|
| CpuArchitectures |
array |
No |
The CPU architecture of the instance. Valid values: Note
You can specify up to two CPU architectures.
|
|
|
string |
No |
The CPU architecture of the instance type. Valid values: Note
You can specify up to two CPU architectures.
|
X86 |
|
| PhysicalProcessorModels |
array |
No |
The processor model of the instance. You can specify up to 10 processor models. |
|
|
string |
No |
The processor model of the instance. You can specify up to 10 processor models. |
Intel Xeon(Ice Lake) Platinum 8369B |
|
| MinimumEniQuantity |
integer |
No |
The minimum number of ENIs that can be attached to the instance. |
2 |
| MinimumEniPrivateIpAddressQuantity |
integer |
No |
The minimum number of IPv4 addresses that can be assigned to a single ENI of the instance. |
2 |
| MinimumEniIpv6AddressQuantity |
integer |
No |
The minimum number of IPv6 addresses that can be assigned to a single ENI of the instance. |
1 |
| MinimumInitialCredit |
integer |
No |
The minimum initial vCPU credit for a t5 or t6 burstable instance. |
12 |
| MinimumBaselineCredit |
integer |
No |
The minimum baseline vCPU computing performance (for all vCPUs) of a t5 or t6 burstable instance. |
12 |
| MinimumMemorySize |
number |
No |
The minimum memory size of the instance. Unit: GiB. |
4 |
| MaximumMemorySize |
number |
No |
The maximum memory size of the instance. Unit: GiB. |
4 |
| MinimumGpuAmount |
integer |
No |
The minimum number of GPUs of the instance. Valid values: positive integers. |
2 |
| MaximumGpuAmount |
integer |
No |
The maximum number of GPUs of the instance. Valid values: positive integers. |
2 |
| SystemDiskCategories |
array |
No |
The categories of the system disk. If a disk of a category with a higher priority cannot be created, Auto Scaling automatically tries to create a disk of a category with the next priority. Valid values:
Note
You cannot specify this parameter and |
|
|
string |
No |
The categories of the system disk. If a disk of a category with a higher priority cannot be created, Auto Scaling automatically tries to create a disk of a category with the next priority. Valid values:
Note
You cannot specify this parameter and |
cloud |
|
| Password |
string |
No |
The password of the ECS instance. The password must be 8 to 30 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters can be: `()~!@#$%^&*-_+=|{}[]:;'<>,.?/ For Windows instances, the password cannot start with a forward slash (/). Note
If you specify the `Password` parameter, we recommend that you send requests over HTTPS to prevent password leaks. |
123abc**** |
| SystemDisk.Encrypted |
boolean |
No |
Specifies whether to encrypt the system disk. Valid values:
Default value: false. |
false |
| SystemDisk.KMSKeyId |
string |
No |
The ID of the KMS key used for the system disk. |
0e478b7a-4262-4802-b8cb-00d3fb40**** |
| SystemDisk.EncryptAlgorithm |
string |
No |
The encryption algorithm used for the system disk. Valid values:
Default value: AES-256. |
AES-256 |
| SystemDisk.ProvisionedIops |
integer |
No |
The pre-configured IOPS of the system disk. Note
IOPS, or input/output operations per second, is the number of I/O operations that a block storage device can process per second. It indicates the read and write performance of the block storage device. |
100 |
| SystemDisk.BurstingEnabled |
boolean |
No |
Specifies whether to enable the performance burst feature for the system disk. Valid values:
Note
This parameter is supported only when For more information, see ESSD AutoPL cloud disks. |
false |
| ImageOptions.LoginAsNonRoot |
boolean |
No |
Specifies whether to log on to the ECS instance as the ecs-user user. For more information, see Manage logon usernames of ECS instances. Valid values: true: yes. false: no. |
false |
| DeletionProtection |
boolean |
No |
The release protection attribute of the instance. This parameter specifies whether you can release the instance using the ECS console or by calling the DeleteInstance operation. This prevents the instance from being accidentally released. Valid values:
Note
This attribute applies only to pay-as-you-go instances. It prevents the instances that are scaled out by Auto Scaling from being accidentally released. This attribute does not affect normal scale-in activities. Instances for which release protection is enabled can be released during scale-in activities. |
false |
| StorageSetId |
string |
No |
The ID of the storage set. |
ss-bp67acfmxazb4p**** |
| StorageSetPartitionNumber |
integer |
No |
The maximum number of partitions in the storage set. The value must be an integer that is greater than or equal to 2. |
2 |
| CustomPriorities |
array<object> |
No |
The custom priority of the ECS instance type and vSwitch. Important This parameter is in effect only when the scaling policy of the scaling group is set to the priority-based policy. If an instance cannot be created using the instance type and vSwitch with a higher priority, Auto Scaling automatically uses the instance type and vSwitch combination with the next priority to create the instance. Note
If you specify custom priorities for only some instance type and vSwitch combinations, the combinations for which you do not specify custom priorities have a lower priority than the combinations for which you specify custom priorities. The priority of the combinations for which you do not specify custom priorities is determined by the order of vSwitches in the scaling group and the order of instance types in the scaling configuration.
|
|
|
object |
No |
|||
| InstanceType |
string |
No |
The instance type of the ECS instance. Note
The instance type must be included in the list of instance types in the scaling configuration. |
ecs.c6a.4xlarge |
| VswitchId |
string |
No |
The ID of the vSwitch. Note
The vSwitch must be included in the list of vSwitches in the scaling group. |
vsw-bp14zolna43z266bq**** |
| NetworkInterfaces |
array<object> |
No |
The list of ENIs. |
|
|
object |
No |
The ENI. |
||
| InstanceType |
string |
No |
The type of the ENI. When you use this parameter, you must use `NetworkInterfaces` to configure the primary ENI. You cannot set the `SecurityGroupId` or `SecurityGroupIds` parameter. Valid values:
Default value: Secondary. |
Primary |
| NetworkInterfaceTrafficMode |
string |
No |
The communication mode of the NIC. Valid values:
Default value: Standard. Note
The number of ENIs in RDMA mode cannot exceed the limit for the instance family. For more information, see Instance families. |
HighPerformance |
| Ipv6AddressCount |
integer |
No |
The number of randomly generated IPv6 addresses to be assigned to the primary ENI. Note: This parameter takes effect only when `NetworkInterface.InstanceType` is set to `Primary`. You cannot set this parameter if `NetworkInterface.InstanceType` is set to `Secondary` or is empty. After you set this parameter, you cannot set `Ipv6AddressCount`. |
1 |
| SecurityGroupIds |
array |
No |
The IDs of one or more security groups to which the ENI belongs. |
|
|
string |
No |
The IDs of one or more security groups to which the ENI belongs. Note:
|
sg-2ze55shrxxxxx |
|
| SecondaryPrivateIpAddressCount |
integer |
No |
The number of secondary private IPv4 addresses to assign to the NIC. Valid values: 1 to 49.
|
6 |
| DedicatedHostClusterId |
string |
No |
The ID of the dedicated host cluster. |
dc-zm04u8r3lohsq**** |
| SecurityOptions |
object |
No |
The security options. |
|
| ConfidentialComputingMode |
string |
No |
The confidential computing mode. Valid values:
|
TDX |
| HttpEndpoint |
string |
No |
Specifies whether to enable the access channel for instance metadata. Valid values:
Default value: enabled. Note
For more information about instance metadata, see Overview of instance metadata. |
enabled |
| HttpTokens |
string |
No |
Specifies whether to enforce the security-hardened mode (IMDSv2) when you access instance metadata. Valid values:
Default value: optional. Note
For more information about how to access instance metadata, see Access modes of instance metadata. |
optional |
| InternetMaxBandwidthIn |
integer |
No |
The maximum inbound public bandwidth. Unit: Mbit/s. Value range:
|
10 |
| ResourcePoolOptions |
object |
No |
The resource pool policy to use when creating an instance. Note the following when you set this parameter:
|
|
| Strategy |
string |
No |
The resource pool includes the private pool generated after an Elastic Assurance service or a Capacity Reservation service takes effect, and the public pool. You can select a resource pool to start an instance. Valid values:
Default value: None. |
PrivatePoolFirst |
| PrivatePoolIds |
array |
No |
The ID of the private pool. The private pool can be an Elastic Assurance service or a Capacity Reservation service. You can only specify the ID of a Target private pool. You cannot specify this parameter and the `PrivatePoolTags` parameter at the same time. |
|
|
string |
No |
The ID of the private pool. The private pool can be an Elastic Assurance service or a Capacity Reservation service. You can only specify the ID of a Target private pool. You cannot specify this parameter and the `PrivatePoolTags` parameter at the same time. You can specify up to 20 private pool IDs. |
eap-bp67acfmxazb4**** |
|
| PrivatePoolTags |
array<object> |
No |
Filter available Target private pools by tag. You can specify up to 20 tags. Description:
|
|
|
object |
No |
Filter available Target private pools by tag. You can specify up to 20 tags. Description:
|
||
| Key |
string |
No |
The tag key of the private pool. |
TestKey |
| Value |
string |
No |
The tag value of the private pool. |
TestValue |
| InstanceTypeCandidateOptions |
object |
No |
After you enable the alternative mode, if issues such as insufficient inventory occur, the system supplements the selected instance types with similar instance types of the same size, or creates vSwitches in alternative zones and adds them to the scaling group. |
|
| Enabled |
boolean |
No |
Specifies whether to enable the alternative mode. |
true |
| MaxPrice |
number |
No |
The maximum price for alternative instance types. |
1.5 |
| AllowDifferentGeneration |
boolean |
No |
Specifies whether to allow supplementing with instance types from other generations.
|
true |
| AllowCrossAz |
boolean |
No |
Specifies whether to allow supplementing with vSwitches from other zones. Note
The instance type remains unchanged, and only new zones are selected as alternatives. When the scaling group cannot be scaled out in any of the selected zones due to issues such as insufficient inventory, the system automatically adds a new vSwitch in another zone to the scaling group based on this configuration. For example, if the scaling group is configured with zones cn-hangzhou-h and cn-hangzhou-g, and scale-out fails in both zones, ESS may create a vSwitch in cn-hangzhou-k and add it to the scaling group based on real-time inventory. |
true |
| AllowCidrBlocks |
array |
No |
When supplementing with vSwitches from other zones is allowed, you must specify the optional CIDR blocks for the vSwitches. |
|
|
string |
No |
When supplementing with vSwitches from other zones is allowed, you must specify the optional CIDR blocks for the vSwitches. |
172.16.0.0/24 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The information returned after the scaling configuration is modified. |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.