Invokes the DescribeAutoProvisioningGroupHistory operation to query the scheduling node information of an auto provisioning group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeAutoProvisioningGroupHistory |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the auto provisioning group resides. |
cn-hangzhou |
| PageNumber |
integer |
No |
The page number of the current page in a paged query. Minimum value: 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page in a paged query. Maximum value: 100. Default value: 10. |
5 |
| AutoProvisioningGroupId |
string |
Yes |
The ID of the auto provisioning group. |
apg-bp67acfmxazb4p**** |
| StartTime |
string |
No |
The start time for querying the scheduling history. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2019-04-01T15:10:20Z |
| EndTime |
string |
No |
The end time for querying the scheduling history. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2019-06-20T15:10:20Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries per page. |
10 |
| RequestId |
string |
The request ID. |
B48A12CD-1295-4A38-A8F0-0E92C937**** |
| PageNumber |
integer |
The page number. |
1 |
| TotalCount |
integer |
The total number of queried scheduling tasks. |
10 |
| AutoProvisioningGroupHistories |
object |
||
| AutoProvisioningGroupHistory |
array<object> |
The information about all scheduling tasks. |
|
|
array<object> |
|||
| Status |
string |
The status of a single scheduling task. Valid values:
|
success |
| StartTime |
string |
The time when the single scheduling task started to be executed. The time is in the ISO 8601 standard in UTC. |
2019-04-01T15:10:20Z |
| TaskId |
string |
The ID of the single scheduling task. |
apg-task-bp67acfmxazb4p**** |
| LastEventTime |
string |
The time when the last instance creation activity of the single scheduling task was executed. The time is in the ISO 8601 standard in UTC. |
2019-04-01T15:10:20Z |
| ActivityDetails |
object |
||
| ActivityDetail |
array<object> |
The details of the single scheduling task. |
|
|
array<object> |
|||
| Status |
string |
The execution status of an instance creation activity in the single scheduling task. Valid values:
|
Successful |
| Detail |
string |
The execution details of an instance creation activity in the single scheduling task. |
New ECS instances "i-bp67acfmxazb4p****, i-bp67acfmxazb5p****" created. |
| CreatedInstanceIds |
object |
||
| CreatedInstanceId |
array |
The list of instances created by the scheduling task. |
|
|
string |
The list of instances created by the scheduling task. |
i-123xxxyyy |
|
| DestroyedInstanceIds |
object |
||
| DestroyedInstanceId |
array |
The list of instances released by the scheduling task. |
|
|
string |
The list of instances released by the scheduling task. |
i-werq2xxdfs |
|
| ErrorMessages |
object |
||
| ErrorMessage |
array<object> |
The error reason for the scheduling task failure. |
|
|
array<object> |
The error reason for the scheduling task failure. |
||
| Code |
string |
The error code for the scheduling task failure. |
InvalidSecurityGroupId.NotFound |
| Message |
string |
The error message for the scheduling task failure. |
The specified SecurityGroupId "sg-bp1d8modxxxxx" is not found. |
| FailedInstanceIds |
object |
||
| FailedInstanceId |
array |
The list of instances that failed to be released by the scheduling task. |
|
|
string |
The list of instances that failed to be released by the scheduling task. |
i-sdf234sdf23 |
Examples
Success response
JSON format
{
"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"
]
}
}
]
}
}
]
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The specified parameter "AutoProvisioningGroupId" should not be null. | Elastic Supply Group Id(AutoProvisioningGroupId) must be filled in. |
| 400 | MissingParamter.RegionId | The regionId should not be null. | The RegionId parameter is required. |
| 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. | The current operation is not authorized. Contact the Alibaba Cloud account owner to grant the required permissions before performing this operation. |
| 404 | InvalidAutoProvisioningGroupId.NotFound | The specified AutoProvisioningGroupId does not exist. | The specified elastic supply group does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.