调用 DescribeAutoProvisioningGroupHistory 查询弹性供应组的调度任务信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ecs:DescribeAutoProvisioningGroupHistory |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
弹性供应组所在地域的 ID。 |
cn-hangzhou |
| PageNumber |
integer |
否 |
分页查询的当前页码。起始值:1 默认值:1 |
1 |
| PageSize |
integer |
否 |
分页查询时设置的每页行数。最大值:100 默认值:10 |
5 |
| AutoProvisioningGroupId |
string |
是 |
弹性供应组的 ID。 |
apg-bp67acfmxazb4p**** |
| StartTime |
string |
否 |
查询调度历史的起始时间。按照 ISO8601 标准表示,并使用 UTC +0 时间,格式为 yyyy-MM-ddTHH:mm:ssZ。 |
2019-04-01T15:10:20Z |
| EndTime |
string |
否 |
查询调度历史的结束时间。按照 ISO8601 标准表示,并使用 UTC +0 时间,格式为 yyyy-MM-ddTHH:mm:ssZ。 |
2019-06-20T15:10:20Z |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| PageSize |
integer |
每页行数。 |
10 |
| RequestId |
string |
请求 ID。 |
B48A12CD-1295-4A38-A8F0-0E92C937**** |
| PageNumber |
integer |
页码。 |
1 |
| TotalCount |
integer |
查询到的调度任务的总数。 |
10 |
| AutoProvisioningGroupHistories |
object |
||
| AutoProvisioningGroupHistory |
array<object> |
所有调度任务的信息。 |
|
|
array<object> |
|||
| Status |
string |
单次调度任务的状态。可能值:
|
success |
| StartTime |
string |
开始执行单次调度任务的时间。 |
2019-04-01T15:10:20Z |
| TaskId |
string |
单次调度任务的 ID。 |
apg-task-bp67acfmxazb4p**** |
| LastEventTime |
string |
单次调度任务最后一次实例创建活动的执行时间。 |
2019-04-01T15:10:20Z |
| ActivityDetails |
object |
||
| ActivityDetail |
array<object> |
单次调度任务的详细信息。 |
|
|
array<object> |
|||
| Status |
string |
单次调度任务一次实例创建活动的执行状态。可能值:
|
Successful |
| Detail |
string |
单次调度任务一次实例创建活动的执行详情。 |
New ECS instances "i-bp67acfmxazb4p****, i-bp67acfmxazb5p****" created. |
| CreatedInstanceIds |
object |
||
| CreatedInstanceId |
array |
||
|
string |
i-123xxxyyy |
||
| DestroyedInstanceIds |
object |
||
| DestroyedInstanceId |
array |
||
|
string |
i-werq2xxdfs |
||
| ErrorMessages |
object |
||
| ErrorMessage |
array<object> |
||
|
array<object> |
|||
| Code |
string |
InvalidSecurityGroupId.NotFound |
|
| Message |
string |
The specified SecurityGroupId "sg-bp1d8modxxxxx" is not found. |
|
| FailedInstanceIds |
object |
||
| FailedInstanceId |
array |
||
|
string |
i-sdf234sdf23 |
示例
正常返回示例
JSON格式
{
"PageSize": 10,
"RequestId": "B48A12CD-1295-4A38-A8F0-0E92C937****",
"PageNumber": 1,
"TotalCount": 10,
"AutoProvisioningGroupHistories": {
"AutoProvisioningGroupHistory": [
{
"Status": "success",
"StartTime": "2019-04-01T15:10:20Z",
"TaskId": "apg-task-bp67acfmxazb4p****",
"LastEventTime": "2019-04-01T15:10:20Z",
"ActivityDetails": {
"ActivityDetail": [
{
"Status": "Successful",
"Detail": "New ECS instances \"i-bp67acfmxazb4p****, i-bp67acfmxazb5p****\" created.",
"CreatedInstanceIds": {
"CreatedInstanceId": [
"i-123xxxyyy"
]
},
"DestroyedInstanceIds": {
"DestroyedInstanceId": [
"i-werq2xxdfs"
]
},
"ErrorMessages": {
"ErrorMessage": [
{
"Code": "InvalidSecurityGroupId.NotFound",
"Message": "The specified SecurityGroupId \"sg-bp1d8modxxxxx\" is not found.",
"FailedInstanceIds": {
"FailedInstanceId": [
"i-sdf234sdf23"
]
}
}
]
}
}
]
}
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingParameter | The specified parameter "AutoProvisioningGroupId" should not be null. | 弹性供应组Id(AutoProvisioningGroupId)必须填写。 |
| 400 | MissingParamter.RegionId | The regionId should not be null. | 参数 RegionId 不得为空。 |
| 400 | InvalidParameter.periodTime | The format of startTime or endTime is invalid. | |
| 403 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API doesn't support RAM. | 当前用户没有权限对指定资源进行操作 |
| 404 | InvalidAutoProvisioningGroupId.NotFound | The specified AutoProvisioningGroupId does not exist. | 指定的弹性供应组不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。