查询伸缩组最新一次伸缩活动
最近更新时间: 2026-09-17 00:04:45
1. 接口描述
接口请求域名: as.api3.fincloud.tencent.cn。
本接口(DescribeAutoScalingGroupLastActivities)用于查询伸缩组的最新一次伸缩活动记录。
默认接口请求频率限制:20次/秒。
接口更新时间:2022-07-07 15:18:57。
接口只验签名不鉴权。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数。
| 参数名称 | 必选 | 允许NULL | 类型 | 描述 |
|---|---|---|---|---|
| Action | 是 | 否 | String | 公共参数,本接口取值:DescribeAutoScalingGroupLastActivities |
| Version | 是 | 否 | String | 公共参数,本接口取值:2018-04-19 |
| Region | 是 | 否 | String | 公共参数,地域信息可通过DescribeRegions接口查看产品支持的地域列表 |
| AutoScalingGroupIds | 是 | 否 | Array of String | 伸缩组ID列表 示例值: ["asg-2umy3jbd\n"] |
3. 输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| ActivitySet | Array of Activity | 符合条件的伸缩活动信息集合。说明:伸缩组伸缩活动不存在的则不返回,如传50个伸缩组ID,返回45条数据,说明其中有5个伸缩组伸缩活动不存在。 示例值:查看 |
| RequestId | String | 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 |
4. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码。
| 错误码 | 描述 |
|---|---|
| InvalidParameterValue.NoResourcePermission | 无资源权限。 |
| InvalidParameterValue.LimitExceeded | 取值超出限制。 |
| InternalError | 内部错误 |
5. 示例
示例1 查询伸缩组最新一次伸缩活动列表
输入示例
https://as.api3.fincloud.tencent.cn/?Action=DescribeAutoScalingGroupLastActivities
&AutoScalingGroupIds.0=asg-2umy3jbd
&<公共请求参数>
输出示例
{
"Response": {
"ActivitySet": [
{
"Description": "Activity was launched in response to a difference between desired capacity and actual capacity, scale out 1 instance(s).",
"AutoScalingGroupId": "asg-2umy3jbd",
"ActivityRelatedInstanceSet": [
{
"InstanceId": "ins-q3ss14yo",
"InstanceStatus": "SUCCESSFUL"
}
],
"ActivityType": "SCALE_OUT",
"ActivityId": "asa-o4v87ae9",
"StartTime": "2018-11-20T08:33:56Z",
"CreatedTime": "2018-11-20T08:33:56Z",
"EndTime": "2018-11-20T08:34:52Z",
"Cause": "Activity was launched in response to a difference between desired capacity and actual capacity.",
"StatusMessageSimplified": "Success",
"StatusMessage": "Success",
"StatusCode": "SUCCESSFUL"
}
],
"RequestId": "1082ab5d-c985-4d8c-bb9d-0d05e282b4a7"
}
}