描述
查询伸缩组的信息。伸缩组具有以下几种状态(LifecycleState):
- Active:生效状态,在该状态下才能接收执行伸缩规则的请求并触发伸缩活动。
- Inacitve:失效状态,在该状态下不接收任何执行伸缩规则的请求。
- Deleting:伸缩组正在删除,在该状态下不接收任何执行伸缩规则的请求。
请求参数
返回参数
ScalingGroupSetType 是由 ScalingGroupItemType 类型组成的集合:
ScalingGroupItemType 类型的属性如下:
RemovalPolicySetType 是由 String 类型组成的集合:
DBInstanceIdSetType 是由 String 类型组成的集合:
错误码
关于所有接口的通用性错误,请参考
客户端错误表或
服务器端错误表。
示例
请求示例
http://ess.aliyuncs.com/?Action=DescribeScalingGroups
&RegionId=cn-qingdao
&PageSize=50
&<公共请求参数>
返回示例
XML格式:
<DescribeScalingGroupsResponse>
<RequestId>6393C3A8-B611-42F2-AFA6-F080FC45D5D0</RequestId>
<TotalCount>1</TotalCount>
<PageNumber>1</PageNumber>
<PageSize>10</PageSize>
<ScalingGroups>
<ScalingGroup>
<ActiveCapacity>1</ActiveCapacity> <ActiveScalingConfigurationId>
dyo713cNYIB4ddEVlKbcpOef
</ActiveScalingConfigurationId>
<DBInstanceIds>
<DBInstanceId>rdszzzyyunybaeu</DBInstanceId>
</DBInstanceIds>
<VSwitchId>vpc-25j4god4l</VSwitchId>
<DefaultCooldown>20</DefaultCooldown>
<LifecycleState>Active</LifecycleState>
<LoadBalancerId>147b46d767c-cn-qingdao-cm5-a01</LoadBalancerId>
<MaxSize>1</MaxSize>
<MinSize>0</MinSize>
<PendingCapacity>0</PendingCapacity>
<RegionId>cn-qingdao</RegionId>
<RemovingCapacity>0</RemovingCapacity>
<ScalingGroupId>dyrSuvBOtO1dEdIlIbplQb8</ScalingGroupId>
<ScalingGroupName>dyrSuvBOtO1dEdIlIbplQb8</ScalingGroupName>
<RemovalPolicies>
<RemovalPolicy>OldestScalingConfiguration</RemovalPolicy>
<RemovalPolicy>OldestInstance</RemovalPolicy>
</RemovalPolicies>
<TotalCapacity>1</TotalCapacity>
<CreationTime>2014-08-14T10:58Z</CreationTime>
</ScalingGroup>
</ScalingGroups>
</DescribeScalingGroupsResponse>
JSON格式:
{
"RequestId": "68386699-8B9E-4D5B-BC4C-75A28F6C2A00",
"TotalCount": 1,
"PageSize": 10,
"PageNumber": 1,
"ScalingGroups": {
"ScalingGroup": [
{
"ScalingGroupId": "b8pYCVbIV5k9cz4PWpbe0k19",
"ScalingGroupName": "b8pYCVbIV5k9cz4PWpbe0k19",
"RegionId": "cn-qingdao",
"RemovingCapacity": 0,
"DefaultCooldown": 300,
"MinSize": 1,
"MaxSize": 2,
"LifecycleState": "Inactive",
"ActiveScalingConfigurationId": " dyo713cNYIB4ddEVlKbcpOef",
"LoadBalancerId": "147b46d767c-cn-qingdao-cm5-a01",
"PendingCapacity": 0,
"TotalCapacity": 0,
"ActiveCapacity": 0,
"CreationTime": "2014-08-14T10:58Z",
"DBInstanceIds": {
"DBInstanceId": [
"rdsia3u3yia3u3y",
"rdszzzyyunybaeu"
]
},
"VSwitchId":"vpc-25j4god4l",
"RemovalPolicies": {
"RemovalPolicy": [
"OldestScalingConfiguration",
"OldestInstance"
]
}
}
]
}
}