調用 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. | 指定的彈性供應組不存在。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。