All Products
Search
Document Center

Auto Scaling:DescribeScalingGroups

Last Updated:Nov 02, 2026

Queries the details of scaling groups, including basic information, instances in the scaling groups, and scaling configurations.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ess:DescribeScalingGroups

get

*ScalingGroup

acs:ess:{#regionId}:{#accountId}:scalinggroup/{#ScalingGroupId}

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The ID of the region to which the scaling group belongs.

cn-qingdao

PageNumber

integer

No

The page number of the scaling group list. Pages start from 1.

Default value: 1.

1

PageSize

integer

No

The paging Settings specify the number of entries to return on each page in a paged query. Maximum value: 50.

Default value: 10.

Valid values:

  • 10 :

    10

10

ScalingGroupName

string

No

The name of the scaling group.

scalinggroup****

ScalingGroupName.1

string

No

ScalingGroupName.1 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.2

string

No

ScalingGroupName.2 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.3

string

No

ScalingGroupName.3 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.4

string

No

ScalingGroupName.4 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.5

string

No

ScalingGroupName.5 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.6

string

No

ScalingGroupName.6 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.7

string

No

ScalingGroupName.7 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.8

string

No

ScalingGroupName.8 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.9

string

No

ScalingGroupName.9 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.10

string

No

ScalingGroupName.10 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.11

string

No

ScalingGroupName.11 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.12

string

No

ScalingGroupName.12 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.13

string

No

ScalingGroupName.13 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.14

string

No

ScalingGroupName.14 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.15

string

No

ScalingGroupName.15 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.16

string

No

ScalingGroupName.16 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.17

string

No

ScalingGroupName.17 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.18

string

No

ScalingGroupName.18 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.19

string

No

ScalingGroupName.19 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

ScalingGroupName.20

string

No

ScalingGroupName.20 specifies the name of the scaling group to query. Invalid scaling group names are ignored and no error is returned.

scalinggroup****

GroupType

string

No

The type of instances managed by the scaling group. Valid values:

  • ECS: The scaling group manages ECS instances.

  • ECI: The scaling group manages ECI instances.

ECS

ScalingGroupId

array

No

ScalingGroupId.N specifies the ID of the scaling group to query. Valid values of N: 1 to 20. Invalid scaling group IDs are ignored and no error is returned.

asg-bp14wlu85wrpchm0****

string

No

ScalingGroupId.N specifies the ID of the scaling group to query. Valid values of N: 1 to 20. Invalid scaling group IDs are ignored and no error is returned.

asg-bp14wlu85wrpchm0****

ResourceGroupId

string

No

The ID of the resource group to which the scaling group to query belongs.

Note

If no scaling group belongs to the specified resource group, the query result is empty and no error is returned.

rg-123****

Tag

array<object>

No

The tags of the scaling group.

object

No

The tags of the scaling group.

Key

string

No

The tag key of the scaling group.

Department

Value

string

No

The tag value of the scaling group.

Finance

Response elements

Element

Type

Description

Example

object

PageNumber

integer

The current page number.

1

PageSize

integer

The number of entries per page.

10

RequestId

string

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

ScalingGroups

object

ScalingGroup

array<object>

The scaling group information.

array<object>

The scaling group information.

ActiveCapacity

integer

The number of ECS instances that have been added to the scaling group and are running normally.

1

ActiveScalingConfigurationId

string

The ID of the active scaling configuration in the scaling group.

asc-bp1et2qekq3ojr33****

AlbServerGroups

object

AlbServerGroup

array<object>

The collection of information about the ALB server groups.

object

The collection of information about the ALB server groups.

AlbServerGroupId

string

The ID of the ALB server group.

sgp-ddwb0y0g6y9bjm****

Port

integer

The port number used by the ECS instance after Auto Scaling adds the ECS instance to the ALB server group.

80

Weight

integer

The weight of the ECS instance as a backend server after Auto Scaling adds the ECS instance to the ALB server group.

100

AllocationStrategy

string

The capacity allocation strategy that determines how the scaling group selects available instance types to fulfill the capacity. The capacity distribution strategy applies to both pay-as-you-go and spot capacities. Valid values:

  • priority: Creates instances in the order of the configured instance types.

  • lowestPrice: Creates instances in ascending order of the price per vCPU for the instance types.

Note

This parameter takes effect only when the MultiAZPolicy parameter is set to COMPOSABLE.

priority

AutoRebalance

boolean

Specifies whether to enable auto-rebalancing for the scaling group. This parameter takes effect only when BalancedOnly is enabled for the zone-balanced scaling group. Valid values:

  • false: Does not enable auto-rebalancing for the scaling group.

  • true: Enables auto-rebalancing for the scaling group. When enabled, the scaling group automatically monitors capacity across zones and proactively scales out or in to rebalance the capacity if it becomes unbalanced.

false

AzBalance

boolean

Specifies whether the capacity of the scaling group is evenly distributed across multiple zones. Valid values:

  • true: The capacity of the scaling group is evenly distributed across multiple zones.

  • false: The capacity of the scaling group is not evenly distributed across multiple zones.

Note

This parameter takes effect only when the MultiAZPolicy parameter is set to COMPOSABLE.

false

BalanceMode

string

The zone balancing mode. This parameter takes effect only when the zone balancing mode is enabled. Valid values:

  • BalancedBestEffort: If resource creation fails in a zone, the system falls back to other zones to ensure best-effort delivery of resources.

  • BalancedOnly: If resource creation fails in a zone, the system does not fall back to other zones. The scale-out activity partially succeeds to prevent excessive imbalance of resources across different zones.

BalancedBestEffort

CapacityOptions

object

The capacity options.

CompensateWithOnDemand

boolean

Specifies whether to allow the system to automatically attempt to create pay-as-you-go instances to meet the required number of ECS instances when the MultiAZPolicy parameter is set to COST_OPTIMIZED and sufficient spot instances cannot be created due to price or inventory constraints. Valid values:

  • true: Allowed.

  • false: Not allowed.

true

OnDemandBaseCapacity

integer

The minimum number of pay-as-you-go instances required in the scaling group. When the number of pay-as-you-go instances in the scaling group is less than this value, the system preferentially creates pay-as-you-go instances. Valid values: 0 to 1000.

0

OnDemandPercentageAboveBaseCapacity

integer

The percentage of pay-as-you-go instances among the additional instances after the scaling group meets the minimum number of pay-as-you-go instances specified by OnDemandBaseCapacity. Valid values: 0 to 100.

0

PriceComparisonMode

string

The price comparison mode for the cost optimization strategy of the scaling group. Valid values:

  • PricePerUnit: Compares prices based on the price per unit of capacity. The capacity of an instance in the scaling group is equal to the weight set for the instance type. The default weight is 1, which means one ECS instance accounts for 1 unit of capacity.

  • PricePerVCpu: Compares prices based on the price per vCPU. Default value: PricePerUnit.

PricePerUnit

SpotAutoReplaceOnDemand

boolean

Specifies whether to attempt to replace pay-as-you-go capacity with spot instances when CompensateWithOnDemand is enabled and the proportion of pay-as-you-go instances exceeds the OnDemandPercentageAboveBaseCapacity value. In common scenarios where CompensateWithOnDemand downgrades spot instances to pay-as-you-go instances due to spot inventory or price constraints, this feature attempts to replace the excess pay-as-you-go capacity with spot instances to avoid long-term retention of pay-as-you-go instances. Valid values:

  • true: Allowed.

  • false: Not allowed.

false

CompensateWithOnDemand

boolean

Specifies whether to allow the system to automatically attempt to create pay-as-you-go instances to meet the required number of ECS instances when the MultiAZPolicy parameter is set to COST_OPTIMIZED and sufficient spot instances cannot be created due to price or inventory constraints. Valid values:

  • true: Allowed.

  • false: Not allowed.

true

CreationTime

string

The time when the scaling group was created.

2014-08-14T10:58Z

CustomPolicyARN

string

The ARN of the Function Compute function for the custom scale-in policy. This parameter takes effect only when the first removal policy configured in RemovalPolicies is CustomPolicy.

acs:fc:cn-zhangjiakou:16145688****:services/ess_custom_terminate_policy.LATEST/functions/ess_custom_terminate_policy_name

DBInstanceIds

object

DBInstanceId

array

The ID of the ApsaraDB RDS instance associated with the scaling group.

string

The ID of the ApsaraDB RDS instance associated with the scaling group.

rm-bp15556qzebg1****

DBInstances

object

DBInstance

array<object>

The list of databases associated with the scaling group.

array<object>

The configuration information of the database associated with the scaling group.

DBInstanceId

string

The instance ID of the database.

rm-m5eqju85s45mu0***

SecurityGroupIds

object

SecurityGroupId

array

The list of security group whitelists added to the database by the scaling group.

string

Specifies whether the scaling group removes the security groups in the associated database list from the database security group whitelist. This parameter is valid for the associated database list only when the AttachMode parameter in the CreateScalingGroup operation is set to SecurityGroup. Valid values:

  • true: Removes the security groups in this list from the database security group whitelist.

  • false: Does not remove the security groups in this list from the database security group whitelist.

sg-uf65zt66cf2a0q47***

Type

string

The database type. Valid values:

  • RDS

  • Redis

  • MongoDB

RDS

DefaultCooldown

integer

The default cooldown time of the scaling group. During the cooldown time, the scaling group does not execute any other scaling activity. This parameter applies only to the scaling activity triggered by Cloud Monitoring event-triggered task nodes.

60

DesiredCapacity

integer

The expected number of instances in the scaling group. The scaling group automatically maintains the number of ECS instances at the expected number of instances.

5

EnableDesiredCapacity

boolean

Specifies whether to enable the expected number of instances feature. Valid values:

  • true: Enabled. The expected number of instances is returned after you query the scaling group.

  • false: Disabled. The expected number of instances is not returned after you query the scaling group.

false

GroupDeletionProtection

boolean

Specifies whether deletion protection is enabled for the scaling group. Valid values:

  • true: Deletion protection is enabled for the scaling group. In this case, the scaling group cannot be deleted.

  • false: Deletion protection is disabled for the scaling group.

true

GroupType

string

The type of instances managed by the scaling group.

ECS

HealthCheckType

string

The health check mode of the scaling group. Valid values:

  • NONE: Does not perform health checks.

  • ECS: Performs health checks on instances in the scaling group. This value is used to enable instance health checks for both ECS and ECI scaling groups.

  • LOAD_BALANCER: Determines the health status of instances based on the health check results of load balancing (the CLB load balancing type is not currently supported).

ECS

HealthCheckTypes

object

HealthCheckType

array

The health check mode of the scaling group. Valid values:

  • NONE: Does not perform health checks.

  • ECS: Performs health checks on instances in the scaling group. This value is used to enable instance health checks for both ECS and ECI scaling groups.

  • LOAD_BALANCER: Determines the health status of instances based on the health check results of load balancing (the CLB load balancing type is not currently supported).

string

The health check mode of the scaling group. Valid values:

  • NONE: Does not perform health checks.

  • ECS: Performs health checks on instances in the scaling group. This value is used to enable instance health checks for both ECS and ECI scaling groups.

  • LOAD_BALANCER: Determines the health status of instances based on the health check results of load balancing (the CLB load balancing type is not currently supported).

ECS

InitCapacity

integer

The number of instances in the initialization state before scale-out in the scaling group.

0

LaunchTemplateId

string

The ID of the launch template used by the scaling group.

lt-m5e3ofjr1zn1aw7****

LaunchTemplateOverrides

object

LaunchTemplateOverride

array<object>

The instance type information that extends the launch template.

object

The instance type information that extends the launch template.

InstanceType

string

The specified instance type, which overrides the instance type in the launch template.

ecs.c5.xlarge

SpotPriceLimit

number

The maximum hourly price for the instance type that overrides the launch template (namely, LaunchTemplateOverride.N.InstanceType). You can specify N values for this parameter to extend the launch template with N instance types. Valid values of N: 1 to 10.

Note

This parameter takes effect only when the LaunchTemplateId parameter is specified.

0.025

WeightedCapacity

integer

The weight of the specified instance type, which indicates the capacity that a single instance of this instance type provides in the scaling group. A greater weight indicates that fewer instances of this instance type are required to meet the expected capacity.

4

LaunchTemplateVersion

string

The version of the launch template used by the scaling group.

Default

LifecycleState

string

The lifecycle state of the scaling group. Valid values:

  • Active: The scaling group is active. Only active scaling groups can accept requests to execute scaling rules and trigger a scaling activity.

  • Inactive: The scaling group is inactive. Inactive scaling groups do not receive any requests to execute scaling rules.

  • Deleting: The scaling group is being deleted. Scaling groups in the deleting state do not receive any requests to execute scaling rules, and their parameters cannot be modified.

Active

LoadBalancerConfigs

object

LoadBalancerConfig

array<object>

The list of load balancing CLB (formerly SLB) configurations.

object

The list of load balancing CLB (formerly SLB) configurations.

LoadBalancerId

string

The instance ID of the load balancing CLB (formerly SLB).

147b46d767c-cn-qingdao-cm5****

Weight

integer

The weight of the ECS instance as a backend server after Auto Scaling adds the ECS instance to the load balancing CLB server group. A higher weight indicates that more access requests are allocated to the ECS instance. If the weight is 0, the ECS instance does not receive access requests. Valid values: 0 to 100.

10

LoadBalancerIds

object

LoadBalancerId

array

The list of instance IDs of the load balancing instances associated with the scaling group.

string

The list of instance IDs of the load balancing instances associated with the scaling group.

lb-bp19byhscefk3x0li****

MaxInstanceLifetime

integer

The maximum lifetime of an instance in the scaling group. Unit: seconds. Valid values: 0 or [86400, Integer.maxValue]. A value of 0 indicates that the configured MaxInstanceLifetime value is cleared (namely, MaxInstanceLifetime is not set). Default value: null.

Note

This parameter is not supported for ECI scaling groups or scaling groups that enable the No Fees for Stopped Instances feature.

null

MaxSize

integer

The maximum number of ECS instances in the scaling group.

2

MinSize

integer

The minimum number of ECS instances in the scaling group.

1

ModificationTime

string

The time when the scaling group was last modified.

2014-08-14T10:58Z

MonitorGroupId

string

The ID of the CloudMonitor application group associated with the scaling group.

1497****

MultiAZPolicy

string

The scale-out and scale-in policy for ECS instances in a multi-zone scaling group. Valid values:

  • PRIORITY: Scales instances based on the vSwitches (VSwitchIds.N) that you define. If ECS instances cannot be created in the zone of the vSwitch with the highest priority, the system automatically uses the vSwitch with the next highest priority to create ECS instances.

  • COST_OPTIMIZED: Attempts to create instances in ascending order of the price per vCPU. If the scaling configuration settings specify multiple instance types that use the spot billing method, the system preferentially creates the corresponding spot instances. You can use the CompensateWithOnDemand parameter to specify whether it is to automatically attempt to create pay-as-you-go instances when spot instances cannot be created due to inventory or other reasons.

    Note

    COST_OPTIMIZED takes effect only when the scaling configuration settings specify multiple instance types or use spot instances.

  • BALANCE: Evenly allocates ECS instances across the multiple zones specified for the scaling group. If the instances become unbalanced across zones due to insufficient inventory or other reasons, you can call the RebalanceInstance operation to rebalance the resources.

  • COMPOSABLE: A composable policy that allows you to combine the preceding scale-out and scale-in policies for ECS instances in a multi-zone scaling group based on your requirements.

PRIORITY

OnDemandBaseCapacity

integer

The minimum number of pay-as-you-go instances required in the scaling group. Valid values: 0 to 1000. When the number of pay-as-you-go instances in the scaling group is less than this minimum value, the system preferentially creates pay-as-you-go instances. Default value: 0 when the MultiAZPolicy parameter is set to COMPOSABLE.

30

OnDemandPercentageAboveBaseCapacity

integer

The percentage of pay-as-you-go instances among the additional instances after the scaling group meets the minimum number of pay-as-you-go instances specified by OnDemandBaseCapacity. Valid values: 0 to 100. Default value: 100 when the MultiAZPolicy parameter is set to COMPOSABLE.

20

PendingCapacity

integer

The number of ECS instances that are being added to the scaling group but have not completed the relevant configurations.

0

PendingWaitCapacity

integer

The number of ECS instances in the pending wait state in the scaling group.

1

ProtectedCapacity

integer

The number of ECS instances in the protected state in the scaling group.

1

RegionId

string

The ID of the region to which the scaling group belongs.

cn-qingdao

RemovalPolicies

object

RemovalPolicy

array

The collection of policies for removing ECS instances from the scaling group. Valid values:

  • OldestInstance: Removes the ECS instances that were created earliest.

  • NewestInstance: Removes the ECS instances that were created most recently.

  • OldestScalingConfiguration: Removes the ECS instances that were created earliest by the scaling configuration.

  • CustomPolicy: Removes ECS instances based on the Function Compute function for the custom scale-in policy.

string

The collection of policies for removing ECS instances from the scaling group. Valid values:

  • OldestInstance: Removes the ECS instances that were created earliest.

  • NewestInstance: Removes the ECS instances that were created most recently.

  • OldestScalingConfiguration: Removes the ECS instances that were created earliest by the scaling configuration.

  • CustomPolicy: Removes ECS instances based on the Function Compute function for the custom scale-in policy.

OldestScalingConfiguration

RemovingCapacity

integer

The number of ECS instances that are being removed from the scaling group.

0

RemovingWaitCapacity

integer

The number of ECS instances in the removing wait state in the scaling group.

1

ResourceGroupId

string

The ID of the resource group to which the scaling group belongs.

rg-123****

ScalingGroupId

string

The ID of the scaling group.

asg-bp14wlu85wrpchm0****

ScalingGroupName

string

The name of the scaling group.

dyrSuvBOtO1dEdIlIbp****

ScalingPolicy

string

The reclaim mode of the scaling group. Valid values:

  • recycle: The reclaim mode of the scaling group is shutdown and reclaim.

  • release: The reclaim mode of the scaling group is release.

  • forcerelease: The reclaim mode of the scaling group is force release. For more information about the actions on removed instances, see RemoveInstances.

recycle

ServerGroups

object

ServerGroup

array<object>

The collection of information about the load balancing server groups.

Note

You can use this parameter to obtain the collection of information about the ALB service groups, NLB server groups, and GWLB service groups associated with the scaling group.

object

The collection of information about the load balancing server groups.

Port

integer

The port number used by the ECS instance after Auto Scaling adds the instance to the server group.

80

ServerGroupId

string

The ID of the server group.

sgp-i9ouakeaerr*****

Type

string

The type of the server group. Valid values:

  • ALB: application load balancing (Application Load Balancer).

  • NLB: Network Load Balancer (NLB).

  • GWLB: Gateway Load Balancer (GWLB).

ALB

Weight

integer

The weight of the ECS instance as a backend server after Auto Scaling adds the instance to the server group.

100

SpotAllocationStrategy

string

The distribution policy for spot capacity. You can use this parameter to specify the distribution policy for spot capacity. This parameter takes effect only when the MultiAZPolicy parameter is set to COMPOSABLE. Valid values:

  • priority: Creates instances in the order of the configured instance types.

  • lowestPrice: Creates instances based on the unit price per vCPU of the instance types in ascending order.

lowestPrice

SpotCapacity

integer

The number of spot instances in the scaling group.

0

SpotInstancePools

integer

The number of available instance types. The scaling group creates spot instances evenly across the specified number of instance types with the lowest costs. Valid values: 0 to 10.

Default value: 2 when the MultiAZPolicy parameter is set to COMPOSABLE.

5

SpotInstanceRemedy

boolean

Indicates whether to enable the spot instance replenishment feature. After this feature is enabled, the scaling group attempts to create new instances to replace spot instances that are about to be reclaimed when a system message about the reclamation is received.

true

StandbyCapacity

integer

The number of instances in the standby state in the scaling group.

1

StopInstanceTimeout

integer

The timeout period for waiting for an ECS instance to be stopped during a scale-in process. Unit: seconds.

60

StoppedCapacity

integer

The number of instances in the economical mode in the scaling group.

1

SuspendedProcesses

object

SuspendedProcess

array

The suspended processes. If no process is suspended, an empty value is returned. Valid values:

  • ScaleIn: scale-in process.

  • ScaleOut: scale-out process.

  • HealthCheck: health check.

  • AlarmNotification: event-triggered task.

  • ScheduledAction: scheduled task.

string

The suspended processes. If no process is suspended, an empty value is returned. Valid values:

  • ScaleIn: scale-in process.

  • ScaleOut: scale-out process.

  • HealthCheck: health check.

  • AlarmNotification: event-triggered task.

  • ScheduledAction: scheduled task.

ScaleIn

SystemSuspended

boolean

Indicates whether Auto Scaling stops executing scaling activity in the scaling group. Valid values:

  • true: Auto Scaling stops executing scaling activity in the scaling group. This indicates that the scaling group has failed to execute scale-out or scale-in activities for more than 7 consecutive days. You must modify the scaling group or scaling configuration to recover the execution of scaling activity.

  • false: Auto Scaling executes scaling activity in the scaling group.

true

Tags

object

Tag

array<object>

The tags of the scaling group.

object

The tags of the scaling group.

Propagate

boolean

Indicates whether the tag is propagated. Valid values:

  • true: The tag on the scaling group is propagated only to newly created instances, but not to existing instances in the scaling group.

  • false: The tag on the scaling group is not propagated to instances.

Default value: false.

false

TagKey

string

The tag key of the scaling group.

Department

TagValue

string

The tag value of the scaling group.

Finance

TotalCapacity

integer

The total weighted capacity of all ECS instances in the scaling group if instance type weights are configured. Otherwise, this parameter indicates the total number of ECS instances in the scaling group.

1

TotalInstanceCount

integer

The total number of ECS instances in the scaling group.

1

VServerGroups

object

VServerGroup

array<object>

The list of backend server groups.

array<object>

The list of backend server groups.

LoadBalancerId

string

The ID of the load balancing instance to which the backend server group belongs.

147b46d767c-cn-qingdao-cm5****

VServerGroupAttributes

object

VServerGroupAttribute

array<object>

The attributes of the backend server group.

object

The attributes of the backend server group.

Port

integer

The port number used by the load balancing instance to provide external services.

22

VServerGroupId

string

The ID of the backend server group.

rsp-bp12bjrny****

Weight

integer

The weight of the backend server group.

1

VSwitchId

string

The ID of the vSwitch associated with the scaling group.

vsw-bp1whw2u46cn8zubm****

VSwitchIds

object

VSwitchId

array

The IDs of the vSwitches associated with the scaling group. If you specify the VSwitchIds parameter, the VSwitchId parameter is ignored.

string

The IDs of the vSwitches associated with the scaling group. If you specify the VSwitchIds parameter, the VSwitchId parameter is ignored.

vsw-bp1whw2u46cn8zubm****

VpcId

string

The ID of the virtual private cloud (VPC) to which the scaling group belongs.

vpc-bp1vwnn14rqpyiczj****

WarmPoolCapacity

integer

The number of instances in the warm pool.

5

WarmPoolConfiguration

object

The warm pool configuration of the scaling group.

CapacityOptions

object

The capacity configuration of the warm pool.

DesiredGroupPreparedCapacity

integer

The expected number of warmed instances. The sum of the number of instances in the scaling group and the number of instances in the warm pool is always equal to the expected capacity of the warm pool.

5

MinCapacity

integer

The minimum number of instances to be maintained in the warm pool.

0

InstanceReusePolicy

object

The instance reclaim policy.

ReuseOnScaleIn

boolean

Indicates whether instances are added back to the warm pool during a scale-in process.

PoolState

string

The instance status in the warm pool. Valid values:

  • Stopped: economical mode.

  • Running: running.

Running

Status

string

The status of the warm pool. Valid values:

  • Active: active.

  • Deleting: deleting.

Active

TotalCount

integer

The total number of scaling groups.

1

Examples

Success response

JSON format

{
  "PageNumber": 1,
  "PageSize": 10,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
  "ScalingGroups": {
    "ScalingGroup": [
      {
        "ActiveCapacity": 1,
        "ActiveScalingConfigurationId": "asc-bp1et2qekq3ojr33****",
        "AlbServerGroups": {
          "AlbServerGroup": [
            {
              "AlbServerGroupId": "sgp-ddwb0y0g6y9bjm****",
              "Port": 80,
              "Weight": 100
            }
          ]
        },
        "AllocationStrategy": "priority",
        "AutoRebalance": false,
        "AzBalance": false,
        "BalanceMode": "BalancedBestEffort",
        "CapacityOptions": {
          "CompensateWithOnDemand": true,
          "OnDemandBaseCapacity": 0,
          "OnDemandPercentageAboveBaseCapacity": 0,
          "PriceComparisonMode": "PricePerUnit",
          "SpotAutoReplaceOnDemand": false
        },
        "CompensateWithOnDemand": true,
        "CreationTime": "2014-08-14T10:58Z",
        "CustomPolicyARN": "acs:fc:cn-zhangjiakou:16145688****:services/ess_custom_terminate_policy.LATEST/functions/ess_custom_terminate_policy_name",
        "DBInstanceIds": {
          "DBInstanceId": [
            "rm-bp15556qzebg1****"
          ]
        },
        "DBInstances": {
          "DBInstance": [
            {
              "DBInstanceId": "rm-m5eqju85s45mu0***",
              "SecurityGroupIds": {
                "SecurityGroupId": [
                  "sg-uf65zt66cf2a0q47***"
                ]
              },
              "Type": "RDS"
            }
          ]
        },
        "DefaultCooldown": 60,
        "DesiredCapacity": 5,
        "EnableDesiredCapacity": false,
        "GroupDeletionProtection": true,
        "GroupType": "ECS",
        "HealthCheckType": "ECS",
        "HealthCheckTypes": {
          "HealthCheckType": [
            "ECS"
          ]
        },
        "InitCapacity": 0,
        "LaunchTemplateId": "lt-m5e3ofjr1zn1aw7****",
        "LaunchTemplateOverrides": {
          "LaunchTemplateOverride": [
            {
              "InstanceType": "ecs.c5.xlarge",
              "SpotPriceLimit": 0.025,
              "WeightedCapacity": 4
            }
          ]
        },
        "LaunchTemplateVersion": "Default",
        "LifecycleState": "Active",
        "LoadBalancerConfigs": {
          "LoadBalancerConfig": [
            {
              "LoadBalancerId": "147b46d767c-cn-qingdao-cm5****",
              "Weight": 10
            }
          ]
        },
        "LoadBalancerIds": {
          "LoadBalancerId": [
            "lb-bp19byhscefk3x0li****"
          ]
        },
        "MaxInstanceLifetime": 0,
        "MaxSize": 2,
        "MinSize": 1,
        "ModificationTime": "2014-08-14T10:58Z",
        "MonitorGroupId": "1497****",
        "MultiAZPolicy": "PRIORITY",
        "OnDemandBaseCapacity": 30,
        "OnDemandPercentageAboveBaseCapacity": 20,
        "PendingCapacity": 0,
        "PendingWaitCapacity": 1,
        "ProtectedCapacity": 1,
        "RegionId": "cn-qingdao",
        "RemovalPolicies": {
          "RemovalPolicy": [
            "OldestScalingConfiguration"
          ]
        },
        "RemovingCapacity": 0,
        "RemovingWaitCapacity": 1,
        "ResourceGroupId": "rg-123****",
        "ScalingGroupId": "asg-bp14wlu85wrpchm0****",
        "ScalingGroupName": "dyrSuvBOtO1dEdIlIbp****",
        "ScalingPolicy": "recycle",
        "ServerGroups": {
          "ServerGroup": [
            {
              "Port": 80,
              "ServerGroupId": "sgp-i9ouakeaerr*****",
              "Type": "ALB",
              "Weight": 100
            }
          ]
        },
        "SpotAllocationStrategy": "lowestPrice",
        "SpotCapacity": 0,
        "SpotInstancePools": 5,
        "SpotInstanceRemedy": true,
        "StandbyCapacity": 1,
        "StopInstanceTimeout": 60,
        "StoppedCapacity": 1,
        "SuspendedProcesses": {
          "SuspendedProcess": [
            "ScaleIn"
          ]
        },
        "SystemSuspended": true,
        "Tags": {
          "Tag": [
            {
              "Propagate": false,
              "TagKey": "Department",
              "TagValue": "Finance"
            }
          ]
        },
        "TotalCapacity": 1,
        "TotalInstanceCount": 1,
        "VServerGroups": {
          "VServerGroup": [
            {
              "LoadBalancerId": "147b46d767c-cn-qingdao-cm5****",
              "VServerGroupAttributes": {
                "VServerGroupAttribute": [
                  {
                    "Port": 22,
                    "VServerGroupId": "rsp-bp12bjrny****",
                    "Weight": 1
                  }
                ]
              }
            }
          ]
        },
        "VSwitchId": "vsw-bp1whw2u46cn8zubm****",
        "VSwitchIds": {
          "VSwitchId": [
            "vsw-bp1whw2u46cn8zubm****"
          ]
        },
        "VpcId": "vpc-bp1vwnn14rqpyiczj****",
        "WarmPoolCapacity": 5,
        "WarmPoolConfiguration": {
          "CapacityOptions": {
            "DesiredGroupPreparedCapacity": 5,
            "MinCapacity": 0
          },
          "InstanceReusePolicy": {
            "ReuseOnScaleIn": false
          },
          "PoolState": "Running",
          "Status": "Active"
        }
      }
    ]
  },
  "TotalCount": 1
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.