A scaling group's configuration is key to successful scale-outs. Auto Scaling uses elasticity strength to quantify the effectiveness of a Scaling Configuration, helping you make targeted optimizations.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:DescribeElasticStrength |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the scaling group is located. |
cn-qingdao |
| ScalingGroupId |
string |
No |
The ID of the scaling group. |
asg-bp18p2yfxow2dloq**** |
| InstanceTypes |
array |
No |
A list of ECS instance types. If specified, this parameter overrides the instance types in the scaling configuration. |
|
|
string |
No |
The ECS instance type. |
ecs.g6.large |
|
| PriorityStrategy |
string |
No |
Warning This parameter is deprecated. Use SpotStrategy instead.
Default value: |
NoSpot |
| SystemDiskCategories |
array |
No |
A list of system disk categories. If specified, this parameter overrides the system disk categories in the scaling configuration. Valid values:
Note
This parameter is required if |
|
|
string |
No |
The category of the system disk. Valid values:
|
cloud |
|
| ScalingGroupIds |
array |
No |
The IDs of one or more scaling groups to query in a batch operation. |
|
|
string |
No |
The ID of a scaling group. |
asg-bp14wlu85wrpchm0**** |
|
| SpotStrategy |
string |
No |
The spot strategy for instances. Valid values:
Default value: |
NoSpot |
| VSwitchIds |
array |
No |
A list of VSwitch IDs. Note
This parameter is required if |
|
|
string |
No |
The VSwitch ID. |
vsw-bp1whw2u46cn8zubm**** |
|
| ImageId |
string |
No |
The ID of the image used to create instances. Note
If |
centos6u5_64_20G_aliaegis****.vhd |
| ImageName |
string |
No |
The name of the image. The name must be unique within a region. If you specify You cannot use this parameter to specify a Marketplace image. Note
If |
ubuntu_18_04_x64_20G_alibase_20231225.vhd |
| ImageFamily |
string |
No |
The name of the image family. You can set this parameter to use the latest available image from the specified image family to create instances. If you specify ImageId, this parameter is ignored. Note
If |
CentOS7 |
| DataDiskCategories |
array |
No |
A list of data disk categories used to evaluate elastic strength. If a category is incompatible, the response identifies the specific mismatched category. Note
You can specify this parameter if |
|
|
string |
No |
The category of the data disk. Valid values:
|
cloud_essd |
|
| Ipv6AddressCount |
integer |
No |
The number of IPv6 addresses to be configured for each instance. The elastic strength is lowered for instance types that do not support the specified number of IPv6 addresses. Note
You can specify this parameter if |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
73469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| TotalStrength |
number |
The total elastic strength of the scaling group. The strength is the sum of scores from all configured instance type and zone combinations. Each combination is scored from 0 (low strength) to 1 (high strength) based on resource availability. Warning This parameter is deprecated. |
1.5 |
| ElasticStrength |
string |
The elastic strength of the current scaling group. Valid values:
|
Strong |
| ResourcePools |
array<object> |
An array of resource pools. This parameter is returned when the API call targets a single scaling group. |
|
|
array<object> |
|||
| Strength |
number |
The elastic strength of the resource pool. |
0.6 |
| InstanceType |
string |
The instance type of the resource pool. |
ecs.c7t.xlarge |
| ZoneId |
string |
The zone ID of the resource pool. |
cn-hangzhou-g |
| VSwitchIds |
array |
The VSwitches in the zone of the resource pool. |
|
|
string |
The VSwitch ID. |
vsw-2ze0uc933kantv****** |
|
| Code |
string |
The error code returned when the elastic strength is 0. |
IMG_NOT_SUPPORTED |
| Msg |
string |
The error message returned when the elastic strength is 0. |
The instanceType does not support the image in the configuration. |
| Status |
string |
The availability of the resource pool. Valid values:
|
Available |
| InventoryHealth |
object |
The inventory health. |
|
| HealthScore |
integer |
The health score.
The health score is calculated using the formula: |
3 |
| AdequacyScore |
integer |
The adequacy score. Valid values: 0 to 3. |
3 |
| SupplyScore |
integer |
The supply score. Valid values: 0 to 3. |
3 |
| HotScore |
integer |
The hot score. Valid values: 0 to 3. |
3 |
| ElasticStrength |
string |
The elastic strength of the resource pool, which is based on its inventory health and current stock. Valid values:
|
Medium |
| ElasticStrengthModels |
array<object> |
An array of elastic strength details, returned when the API call targets multiple scaling groups. |
|
|
array<object> |
|||
| ScalingGroupId |
string |
The scaling group ID. |
asg-wz98mnj7nblv9gc**** |
| ElasticStrength |
string |
The elastic strength of the current scaling group. Valid values:
|
Strong |
| TotalStrength |
number |
The total elastic strength of the scaling group. The strength is the sum of scores from all configured instance type and zone combinations. Each combination is scored from 0 (low strength) to 1 (high strength) based on resource availability. Warning This parameter is deprecated. |
1.5 |
| ResourcePools |
array<object> |
Details of the resource pools within the scaling group. |
|
|
array<object> |
|||
| InstanceType |
string |
The instance type of the resource pool. |
ecs.r7.large |
| Strength |
number |
The elastic strength of the resource pool. Warning This parameter is deprecated. |
0.6 |
| ZoneId |
string |
The zone ID of the resource pool. |
cn-hangzhou-g |
| VSwitchIds |
array |
The VSwitches in the zone of the resource pool. |
|
|
string |
The VSwitch ID. |
vsw-2ze6e8p4****** |
|
| Code |
string |
The error code returned when the elastic strength is 0. |
InstanceTypesOrDiskTypesNotSupported |
| Msg |
string |
The error message returned when the elastic strength is 0. |
The instanceTypes or diskTypes are not supported. |
| Status |
string |
The availability of the resource pool. Valid values:
|
Available |
| InventoryHealth |
object |
The inventory health. |
|
| HealthScore |
integer |
The health score.
The health score is calculated using the formula: |
3 |
| AdequacyScore |
integer |
The adequacy score. Valid values: 0 to 3. |
3 |
| SupplyScore |
integer |
The supply score. Valid values: 0 to 3. |
2 |
| HotScore |
integer |
The hot score. Valid values: 0 to 3. |
0 |
| ElasticStrength |
string |
The elastic strength of the resource pool, which is based on its inventory health and current stock. Valid values:
|
Strong |
Examples
Success response
JSON format
{
"RequestId": "73469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"TotalStrength": 1.5,
"ElasticStrength": "Strong",
"ResourcePools": [
{
"Strength": 0.6,
"InstanceType": "ecs.c7t.xlarge",
"ZoneId": "cn-hangzhou-g",
"VSwitchIds": [
"vsw-2ze0uc933kantv******"
],
"Code": "IMG_NOT_SUPPORTED",
"Msg": "The instanceType does not support the image in the configuration.",
"Status": "Available",
"InventoryHealth": {
"HealthScore": 3,
"AdequacyScore": 3,
"SupplyScore": 3,
"HotScore": 3
},
"ElasticStrength": "Medium"
}
],
"ElasticStrengthModels": [
{
"ScalingGroupId": "asg-wz98mnj7nblv9gc****",
"ElasticStrength": "Strong",
"TotalStrength": 1.5,
"ResourcePools": [
{
"InstanceType": "ecs.r7.large",
"Strength": 0.6,
"ZoneId": "cn-hangzhou-g",
"VSwitchIds": [
"vsw-2ze6e8p4******"
],
"Code": "InstanceTypesOrDiskTypesNotSupported",
"Msg": "The instanceTypes or diskTypes are not supported.",
"Status": "Available",
"InventoryHealth": {
"HealthScore": 3,
"AdequacyScore": 3,
"SupplyScore": 2,
"HotScore": 0
},
"ElasticStrength": "Strong"
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.