All Products
Search
Document Center

Auto Scaling:DescribeScalingGroups

Last Updated:Apr 10, 2024

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.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action

String

Yes

DescribeScalingGroups

The operation that you want to perform. Set the value to DescribeScalingGroups.

RegionId

String

Yes

cn-qingdao

The region ID of the scaling group.

PageNumber

Integer

No

1

The page number. Pages start from page 1.

Default value: 1.

PageSize

Integer

No

10

The number of entries per page. Maximum value: 50.

Default value: 10.

ScalingGroupName

String

No

scalinggroup****

The name of the scaling group.

ScalingGroupName.1

String

No

scalinggroup****

ScalingGroupName.1 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.2

String

No

scalinggroup****

ScalingGroupName.2 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.3

String

No

scalinggroup****

ScalingGroupName.3 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.4

String

No

scalinggroup****

ScalingGroupName.4 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.5

String

No

scalinggroup****

ScalingGroupName.5 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.6

String

No

scalinggroup****

ScalingGroupName.6 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.7

String

No

scalinggroup****

ScalingGroupName.7 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.8

String

No

scalinggroup****

ScalingGroupName.8 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.9

String

No

scalinggroup****

ScalingGroupName.9 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.10

String

No

scalinggroup****

ScalingGroupName.10 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.11

String

No

scalinggroup****

ScalingGroupName.11 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.12

String

No

scalinggroup****

ScalingGroupName.12 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.13

String

No

scalinggroup****

ScalingGroupName.13 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.14

String

No

scalinggroup****

ScalingGroupName.14 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.15

String

No

scalinggroup****

ScalingGroupName.15 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.16

String

No

scalinggroup****

ScalingGroupName.16 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.17

String

No

scalinggroup****

ScalingGroupName.17 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.18

String

No

scalinggroup****

ScalingGroupName.18 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.19

String

No

scalinggroup****

ScalingGroupName.19 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

ScalingGroupName.20

String

No

scalinggroup****

ScalingGroupName.20 is the name of the scaling group that you want to query. The names of inactive scaling groups are not displayed in the query results, and no error is returned.

GroupType

String

No

ECS

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

  • ECS: Elastic Compute Service (ECS) instances

  • ECI: elastic container instances

ScalingGroupId.N

String

No

asg-bp14wlu85wrpchm0****

The ID of scaling group N that you want to query. Valid values of N: 1 to 20. The IDs of inactive scaling groups are not displayed in the query results, and no error is returned.

ResourceGroupId

String

No

rg-123****

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

Note

If the specified resource group does not contain scaling groups, only null is returned.

Tag.N.Key

String

No

Department

The key of tag N of the scaling group.

Tag.N.Value

String

No

Finance

The value of tag N of the scaling group.

Response parameters

Parameter

Type

Example

Description

RequestId

String

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

The request ID.

PageNumber

Integer

1

The page number.

PageSize

Integer

10

The number of entries per page.

TotalCount

Integer

1

The total number of scaling groups.

ScalingGroups

Array of ScalingGroup

The details of the scaling groups.

ScalingGroup

VpcId

String

vpc-bp1vwnn14rqpyiczj****

The ID of the virtual private cloud (VPC) in which the scaling group resides.

CreationTime

String

2014-08-14T10:58Z

The time when the scaling group was created.

TotalInstanceCount

Integer

1

The total number of ECS instances in the scaling group.

ScalingGroupName

String

dyrSuvBOtO1dEdIlIbp****

The name of the scaling group.

SpotInstancePools

Integer

5

The number of instance types that are specified. Auto Scaling evenly creates preemptible instances of multiple instance types that are provided at the lowest price across the zones of the scaling group. Valid values: 0 to 10.

If you set MultiAZPolicy to COMPOSABLE, the default value is 2.

StoppedCapacity

Integer

1

The number of instances that are in Economical Mode in the scaling group.

OnDemandPercentageAboveBaseCapacity

Integer

20

The percentage of pay-as-you-go instances in the excess instances when the minimum number of pay-as-you-go instances is reached. OnDemandBaseCapacity specifies the minimum number of pay-as-you-go instances that must be contained in the scaling group. Valid values: 0 to 100.

If you set MultiAZPolicy to COMPOSABLE, the default value is 100.

ModificationTime

String

2014-08-14T10:58Z

The time when the scaling group was modified.

MinSize

Integer

1

The minimum number of ECS instances that must be contained in the scaling group.

ScalingGroupId

String

asg-bp14wlu85wrpchm0****

The ID of the scaling group.

CompensateWithOnDemand

Boolean

true

Indicates whether pay-as-you-go instances can be automatically created to meet the requirement on the number of ECS instances when the expected capacity of preemptible instances cannot be provided due to reasons such as cost-related issues and insufficient resources. This parameter is available only if you set MultiAZPolicy to COST_OPTIMIZED. Valid values:

  • true

  • false

ScalingPolicy

String

recycle

The reclaim mode of the scaling group. Valid values:

  • recycle: economical mode

  • release: release mode

  • forcerelease: forced release mode

For information about how to remove instances, see RemoveInstances.

RemovingWaitCapacity

Integer

1

The number of ECS instances that are in the Pending Remove state in the scaling group.

ActiveCapacity

Integer

1

The number of ECS instances that are in the In Service state in the scaling group.

OnDemandBaseCapacity

Integer

30

The minimum number of pay-as-you-go instances that must be contained in the scaling group. Valid values: 0 to 1000. If the number of pay-as-you-go instances in the scaling group is less than the value of this parameter, Auto Scaling preferentially creates pay-as-you-go instances.

If you set MultiAZPolicy to COMPOSABLE, the default value is 0.

ProtectedCapacity

Integer

1

The number of ECS instances that are in the Protected state in the scaling group.

HealthCheckType

String

ECS

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

  • NONE: Auto Scaling does not check the health status of instances in the scaling group.

  • ECS: Auto Scaling checks the health status of ECS instances in the scaling group.

  • LOAD_BALANCER: Auto Scaling checks the health status of instances based on the health check results of load balancers. The health check results of Classic Load Balancer (CLB) instances are not supported as the health check basis for instances in the scaling group.

Note

HealthCheckType has the same effect as HealthCheckTypes. You can specify one of them based on your business requirements. If you specify HealthCheckType, HealthCheckTypes is ignored.

LifecycleState

String

Active

The lifecycle status of the scaling group. Valid values:

  • Active: The scaling group is in the Enabled state. Enabled scaling groups can receive requests to execute scaling rules and trigger scaling activities.

  • Inactive: The scaling group is in the Disabled state. Disabled scaling groups cannot receive requests to execute scaling rules.

  • Deleting: The scaling group is being deleted. Scaling groups that are being deleted cannot receive requests to execute scaling rules, and the parameters of the scaling groups cannot be modified.

GroupDeletionProtection

Boolean

true

Indicates whether Deletion Protection is enabled for the scaling group. Valid values:

  • true: Deletion Protection is enabled for the scaling group. The scaling group cannot be deleted.

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

ActiveScalingConfigurationId

String

asc-bp1et2qekq3ojr33****

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

GroupType

String

ECS

The type of instances that are managed by the scaling group.

MultiAZPolicy

String

PRIORITY

The scaling policy for the multi-zone scaling group of the ECS type. Valid values:

  • PRIORITY: ECS instances are scaled based on the value of VSwitchIds.N. If Auto Scaling fails to scale out ECS instances in the zone where the vSwitch of the highest priority resides, Auto Scaling scales out ECS instances in the zone where the vSwitch of the next highest priority resides.

  • COST_OPTIMIZED: ECS instances are created based on the unit price of the vCPUs. Auto Scaling preferentially creates ECS instances whose vCPUs have the lowest price. Auto Scaling preferentially creates preemptible instances if preemptible instance types are specified in the scaling configuration. You can use CompensateWithOnDemand to specify whether to automatically create pay-as-you-go instances when preemptible instances cannot be created due to insufficient resources.

    Note

    COST_OPTIMIZED is valid when multiple instance types are specified or at least one preemptible instance type is specified.

  • BALANCE: ECS instances are evenly distributed across multiple zones that are specified for the scaling group. If ECS instances are unevenly distributed across the zones due to insufficient resources, you can call the RebalanceInstance operation to balance the distribution of the ECS instances.

  • COMPOSABLE: You can combine the preceding policies based on your business requirements.

RemovingCapacity

Integer

0

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

PendingWaitCapacity

Integer

1

The number of ECS instances that are in the Pending Add state in the scaling group.

StandbyCapacity

Integer

1

The number of instances that are in the Standby state in the scaling group.

PendingCapacity

Integer

0

The number of ECS instances that are being added to the scaling group and still being configured.

LaunchTemplateId

String

lt-m5e3ofjr1zn1aw7****

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

TotalCapacity

Integer

1

The total weighted capacity of all ECS instances in the scaling group if you specified WeightedCapacity. In other cases, the value of this parameter indicates the total number of ECS instances in the scaling group.

DesiredCapacity

Integer

5

The expected number of ECS instances in the scaling group. Auto Scaling automatically maintains the expected number of ECS instances that you specified.

SpotInstanceRemedy

Boolean

true

Indicates whether preemptible instances can be supplemented. If this parameter is set to true, Auto Scaling creates an instance to replace a preemptible instance when Auto Scaling receives a system message which indicates that the preemptible instance is to be reclaimed.

LaunchTemplateVersion

String

Default

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

RegionId

String

cn-qingdao

The region ID of the scaling group.

VSwitchId

String

vsw-bp1whw2u46cn8zubm****

The ID of the vSwitch that is associated with the scaling group.

MaxSize

Integer

2

The maximum number of ECS instances that can be contained in the scaling group.

DefaultCooldown

Integer

60

The default cooldown period of the scaling group. During the cooldown period, Auto Scaling does not execute scaling activities that are triggered by CloudMonitor event-triggered tasks.

VServerGroups

Array of VServerGroup

The list of backend vServer groups.

VServerGroup

LoadBalancerId

String

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

The ID of the load balancer to which the backend vServer group belongs.

VServerGroupAttributes

Array of VServerGroupAttribute

The attributes of the backend vServer group.

VServerGroupAttribute

VServerGroupId

String

rsp-bp12bjrny****

The ID of the backend vServer group.

Weight

Integer

1

The weight of the backend server group.

Port

Integer

22

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

LaunchTemplateOverrides

Array of LaunchTemplateOverride

The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature.

LaunchTemplateOverride

WeightedCapacity

Integer

4

The weight of the instance type. The value for this parameter 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 requirement.

InstanceType

String

ecs.c5.xlarge

The instance type. The instance type that is specified by this parameter overwrites the instance type that is specified in the launch template.

SpotPriceLimit

Float

0.025

The maximum bid price of instance type N that is specified by LaunchTemplateOverride.N.InstanceType. You can specify N instance types by using the Extend Instance Type of Launch Template feature. Valid values of N: 1 to 10.

Note

This parameter is available only if you specify LaunchTemplateId.

AlbServerGroups

Array of AlbServerGroup

The details of the Application Load Balancer (ALB) server groups.

AlbServerGroup

AlbServerGroupId

String

sgp-ddwb0y0g6y9bjm****

The ID of the ALB server group.

Weight

Integer

100

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

Port

Integer

80

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

ServerGroups

Array of ServerGroup

The details of the server groups.

Note

This parameter returns the details of the ALB server groups and Network Load Balancer (NLB) server groups that are associated with the scaling group.

ServerGroup

ServerGroupId

String

sgp-i9ouakeaerr*****

The ID of the server group.

Type

String

ALB

The type of the server group. Valid values:

  • ALB: ALB server group

  • NLB: NLB server group

Weight

Integer

100

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

Port

Integer

80

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

RemovalPolicies

Array of String

OldestScalingConfiguration

The instance removal policies. Valid values:

  • OldestInstance: ECS instances that are created at the earliest point in time are removed.

  • NewestInstance: ECS instances that are created at the most recent point in time are removed.

  • OldestScalingConfiguration: ECS instances that are created based on the earliest scaling configuration are removed.

  • CustomPolicy: ECS instances are removed based on the custom scale-in policy (Function).

DBInstanceIds

Array of String

rm-bp15556qzebg1****

The IDs of the ApsaraDB RDS instances that are associated with the scaling group.

LoadBalancerIds

Array of String

lb-bp19byhscefk3x0li****

The IDs of the load balancers that are associated with the scaling group.

VSwitchIds

Array of String

vsw-bp1whw2u46cn8zubm****

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

SuspendedProcesses

Array of String

ScaleIn

The processes that are suspended. If no process is suspended, null is returned. Valid values:

  • ScaleIn: scale-in

  • ScaleOut: scale-out

  • HealthCheck: health check

  • AlarmNotification: event-triggered task

  • ScheduledAction: scheduled task

SystemSuspended

Boolean

true

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

  • true: If the scaling activities fail for more than seven consecutive days, Auto Scaling stops executing scaling activities in the scaling group. You must modify the scaling group or scaling configuration to resume the execution of scaling activities.

  • false: Auto Scaling does not stop executing scaling activities in the scaling group.

MonitorGroupId

String

1497****

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

AzBalance

Boolean

false

Indicates whether instances in the scaling group are evenly distributed across multiple zones. Valid values:

  • true

  • false

    Note

    This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.

AllocationStrategy

String

priority

The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The allocation policy can be applied to pay-as-you-go and preemptible instances. Valid values:

  • priority: Auto Scaling selects instance types based on the specified order of the instance types to create the required number of instances.

  • lowestPrice: Auto Scaling selects instance types that have the lowest unit price of vCPUs to create the required number of instances.

    Note

    This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.

SpotAllocationStrategy

String

lowestPrice

The allocation policy of preemptible instances. This parameter indicates the manner in which Auto Scaling selects instance types to create the required number of preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE. Valid values:

  • priority: Auto Scaling selects instance types based on the specified order of the instance types to create the required number of preemptible instances.

  • lowestPrice: Auto Scaling selects instance types that have the lowest unit price of vCPUs to create the required number of preemptible instances.

MaxInstanceLifetime

Integer

null

The maximum life span of an ECS instance in the scaling group. Unit: seconds.

Valid values: 0 or from 86400 to the value of Integer.maxValue. A value of 0 indicates that the ECS instance has an unlimited life span in the scaling group.

Default value: null.

Note

This parameter is unavailable for scaling groups of the Elastic Container Instance type or scaling groups whose ScalingPolicy parameter is set to recycle.

CustomPolicyARN

String

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

The Alibaba Cloud Resource Name (ARN) of the custom scale-in policy (Function). This parameter is returned only if you specify CustomPolicy as the first step of the instance removal policy.

InitCapacity

Integer

0

The number of instances that are in the Initialized state and ready to be scaled out in the scaling group.

ResourceGroupId

String

rg-123****

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

LoadBalancerConfigs

Array of LoadBalancerConfig

The configurations of the CLB (formerly known as Server Load Balancer or SLB) instances.

LoadBalancerConfig

LoadBalancerId

String

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

The ID of the CLB instance.

Weight

Integer

10

The weight of an ECS instance as a backend server after Auto Scaling adds the ECS instance to the CLB server group. If you increase the weight of an ECS instance in the CLB server group, the number of access requests that are forwarded to the ECS instance also increases. If you set Weight to 0 for an ECS instance in the CLB server group, no access requests are forwarded to the ECS instance.

Valid values: 0 to 100.

EnableDesiredCapacity

Boolean

false

Indicates whether the Expected Number of Instances feature is enabled. Valid values:

  • true: The Expected Number of Instances feature is enabled. In this case, the response includes the information about the expected number of instances.

  • false: The Expected Number of Instances feature is disabled. In this case, the response does not include the information about the expected number of instances.

Tags

Array of Tag

The details of the tags that are added to the scaling group.

Tag

TagKey

String

Department

The tag key of the scaling group.

TagValue

String

Finance

The tag value of the scaling group.

Propagate

Boolean

false

Indicates whether the tags of the scaling group can be propagated to instances. Valid values:

  • true: The tags of the scaling group can be propagated to only instances that are newly created.

  • false: The tags of the scaling group cannot be propagated to instances.

Default value: false.

HealthCheckTypes

Array of String

ECS

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

  • NONE: Auto Scaling does not check the health status of instances in the scaling group.

  • ECS: Auto Scaling checks the health status of ECS instances in the scaling group.

  • LOAD_BALANCER: Auto Scaling checks the health status of instances based on the health check results of load balancers. The health check results of CLB instances are not supported as a health check basis for instances in the scaling group.

Note

HealthCheckTypes has the same effect as HealthCheckType. The response contains only one of them. If you specify HealthCheckTypes, HealthCheckType is ignored.

Examples

Sample requests

http(s)://ess.aliyuncs.com/?Action=DescribeScalingGroups
&RegionId=cn-qingdao
&PageNumber=1
&PageSize=10
&ScalingGroupName=scalinggroup****
&ScalingGroupName.1=scalinggroup****
&ScalingGroupName.2=scalinggroup****
&ScalingGroupName.3=scalinggroup****
&ScalingGroupName.4=scalinggroup****
&ScalingGroupName.5=scalinggroup****
&ScalingGroupName.6=scalinggroup****
&ScalingGroupName.7=scalinggroup****
&ScalingGroupName.8=scalinggroup****
&ScalingGroupName.9=scalinggroup****
&ScalingGroupName.10=scalinggroup****
&ScalingGroupName.11=scalinggroup****
&ScalingGroupName.12=scalinggroup****
&ScalingGroupName.13=scalinggroup****
&ScalingGroupName.14=scalinggroup****
&ScalingGroupName.15=scalinggroup****
&ScalingGroupName.16=scalinggroup****
&ScalingGroupName.17=scalinggroup****
&ScalingGroupName.18=scalinggroup****
&ScalingGroupName.19=scalinggroup****
&ScalingGroupName.20=scalinggroup****
&GroupType=ECS
&ScalingGroupId=["asg-bp14wlu85wrpchm0****"]
&ResourceGroupId=rg-123****
&Tag=[{"Key":"Department","Value":"Finance"}]
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeScalingGroupsResponse>
    <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3****</RequestId>
    <PageNumber>1</PageNumber>
    <PageSize>10</PageSize>
    <TotalCount>1</TotalCount>
    <ScalingGroups>
        <VpcId>vpc-bp1vwnn14rqpyiczj****</VpcId>
        <CreationTime>2014-08-14T10:58Z</CreationTime>
        <TotalInstanceCount>1</TotalInstanceCount>
        <ScalingGroupName>dyrSuvBOtO1dEdIlIbp****</ScalingGroupName>
        <SpotInstancePools>5</SpotInstancePools>
        <StoppedCapacity>1</StoppedCapacity>
        <OnDemandPercentageAboveBaseCapacity>20</OnDemandPercentageAboveBaseCapacity>
        <ModificationTime>2014-08-14T10:58Z</ModificationTime>
        <MinSize>1</MinSize>
        <ScalingGroupId>asg-bp14wlu85wrpchm0****</ScalingGroupId>
        <CompensateWithOnDemand>true</CompensateWithOnDemand>
        <ScalingPolicy>recycle</ScalingPolicy>
        <RemovingWaitCapacity>1</RemovingWaitCapacity>
        <ActiveCapacity>1</ActiveCapacity>
        <OnDemandBaseCapacity>30</OnDemandBaseCapacity>
        <ProtectedCapacity>1</ProtectedCapacity>
        <HealthCheckType>ECS</HealthCheckType>
        <LifecycleState>Active</LifecycleState>
        <GroupDeletionProtection>true</GroupDeletionProtection>
        <ActiveScalingConfigurationId>asc-bp1et2qekq3ojr33****</ActiveScalingConfigurationId>
        <GroupType>ECS</GroupType>
        <MultiAZPolicy>PRIORITY</MultiAZPolicy>
        <RemovingCapacity>0</RemovingCapacity>
        <PendingWaitCapacity>1</PendingWaitCapacity>
        <StandbyCapacity>1</StandbyCapacity>
        <PendingCapacity>0</PendingCapacity>
        <LaunchTemplateId>lt-m5e3ofjr1zn1aw7****</LaunchTemplateId>
        <TotalCapacity>1</TotalCapacity>
        <DesiredCapacity>5</DesiredCapacity>
        <SpotInstanceRemedy>true</SpotInstanceRemedy>
        <LaunchTemplateVersion>Default</LaunchTemplateVersion>
        <RegionId>cn-qingdao</RegionId>
        <VSwitchId>vsw-bp1whw2u46cn8zubm****</VSwitchId>
        <MaxSize>2</MaxSize>
        <DefaultCooldown>60</DefaultCooldown>
        <VServerGroups>
            <LoadBalancerId>147b46d767c-cn-qingdao-cm5****</LoadBalancerId>
            <VServerGroupAttributes>
                <VServerGroupId>rsp-bp12bjrny****</VServerGroupId>
                <Weight>1</Weight>
                <Port>22</Port>
            </VServerGroupAttributes>
        </VServerGroups>
        <LaunchTemplateOverrides>
            <WeightedCapacity>4</WeightedCapacity>
            <InstanceType>ecs.c5.xlarge</InstanceType>
            <SpotPriceLimit>0.025</SpotPriceLimit>
        </LaunchTemplateOverrides>
        <AlbServerGroups>
            <AlbServerGroupId>sgp-ddwb0y0g6y9bjm****</AlbServerGroupId>
            <Weight>100</Weight>
            <Port>80</Port>
        </AlbServerGroups>
        <ServerGroups>
            <ServerGroupId>sgp-i9ouakeaerr*****</ServerGroupId>
            <Type>ALB</Type>
            <Weight>100</Weight>
            <Port>80</Port>
        </ServerGroups>
        <RemovalPolicies>OldestScalingConfiguration</RemovalPolicies>
        <DBInstanceIds>rm-bp15556qzebg1****</DBInstanceIds>
        <LoadBalancerIds>lb-bp19byhscefk3x0li****</LoadBalancerIds>
        <VSwitchIds>vsw-bp1whw2u46cn8zubm****</VSwitchIds>
        <SuspendedProcesses>ScaleIn</SuspendedProcesses>
        <SystemSuspended>true</SystemSuspended>
        <MonitorGroupId>1497****</MonitorGroupId>
        <AzBalance>false</AzBalance>
        <AllocationStrategy>priority</AllocationStrategy>
        <SpotAllocationStrategy>lowestPrice</SpotAllocationStrategy>
        <CustomPolicyARN>acs:fc:cn-zhangjiakou:16145688****:services/ess_custom_terminate_policy.LATEST/functions/ess_custom_terminate_policy_name</CustomPolicyARN>
        <InitCapacity>0</InitCapacity>
        <ResourceGroupId>rg-123****</ResourceGroupId>
        <LoadBalancerConfigs>
            <LoadBalancerId>147b46d767c-cn-qingdao-cm5****</LoadBalancerId>
            <Weight>10</Weight>
        </LoadBalancerConfigs>
        <EnableDesiredCapacity>false</EnableDesiredCapacity>
        <Tags>
            <TagKey>Department</TagKey>
            <TagValue>Finance</TagValue>
            <Propagate>false</Propagate>
        </Tags>
        <HealthCheckTypes>ECS</HealthCheckTypes>
    </ScalingGroups>
</DescribeScalingGroupsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

Error codes

For a list of error codes, see Service error codes.