描述
查询伸缩活动的信息。
- 查询时可以指定伸缩组 ID 来查询该伸缩组下的所有伸缩活动。
- 查询时可以通过伸缩活动的状态来过滤查询结果。
- 最多只能返回 30 日前的伸缩活动。
请求参数
返回参数
ScalingActivitySetType 是由 ScalingActivityItemType 类型组成的集合:
ScalingActivityItemType类型的属性如下:
错误码
关于所有接口的通用性错误,请参考
客户端错误表或
服务器端错误表。
示例
请求示例
http://ess.aliyuncs.com/?Action=DescribeScalingActivities
&RegionId=cn-qingdao
&PageSize=50
&<公共请求参数>
返回示例
XML格式:
<DescribeScalingActivitiesResponse>
<RequestId>8FAAE99E-EB43-4838-85AD-93F62454904C</RequestId>
<TotalCount>1</TotalCount>
<PageNumber>1</PageNumber>
<PageSize>10</PageSize>
<ScalingActivities>
<ScalingActivity>
<Cause>A scheduled task excuete scaling rule "srtest",changing the Total Capacity from "0" to "1".</Cause>
<Description>Add "1" ECS instance</Description>
<EndTime>2014-08-17T12:39Z</EndTime>
<Progress>100</Progress>
<ScalingActivityId>ebta5WbUzC8gcwUWvfchyT4U</ScalingActivityId>
<ScalingGroupId>AG6CQdPU8OKdwLjgZcJ2eaQ</ScalingGroupId>
<StartTime>2014-08-17T12:39Z</StartTime>
<StatusCode>Successful</StatusCode>
<StatusMessage>"1" ECS instances is added. </StatusMessage>
</ScalingActivity>
</ScalingActivities>
</DescribeScalingActivitiesResponse>
JSON格式:
{
"RequestId":"0A016AD6-A91F-4210-9DEE-D5BBD4270F45",
"TotalCount":2582,
"PageNumber":1,
"PageSize":1,
"ScalingActivities":{
"ScalingActivity":[
{
"ScalingActivityId":"bBxOR5dhKFoccGkbTrcyHE2g",
"StartTime":"2014-08-18T20:49Z",
"EndTime":"2014-08-18T20:49Z",
"Cause":" A scheduled task excuete scaling rule \"srtest\",changing the Total Capacity from \"0\" to \"1\".",
"Description":" Add \"1\" ECS instance ",
"Progress":100,
"ScalingGroupId":"c7acXJbAJmpPcGE7G3bwwbS9",
"StatusCode":"Successful",
"StatusMessage":"\"1\" ECS instances is added. "
}
]
}
}