Queries the scheduling tasks of an auto provisioning group.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the auto provisioning group. | cn-hangzhou |
PageNumber | integer | No | The page number of the returned page. Pages start from page 1. Default value: 1 | 1 |
PageSize | integer | No | The number of entries returned per page. Maximum value: 100. Default value: 10. | 5 |
AutoProvisioningGroupId | string | Yes | The ID of the auto provisioning group. | apg-bp67acfmxazb4p**** |
StartTime | string | No | The beginning of the time range of the queried data. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. | 2019-04-01T15:10:20Z |
EndTime | string | No | The end of the time range of the queried data. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. | 2019-06-20T15:10:20Z |
Response parameters
Examples
Sample success responses
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."
}
]
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | MissingParameter | The specified parameter "AutoProvisioningGroupId" should not be null. | - |
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. | - |
For a list of error codes, visit the Service error codes.