全部產品
Search
文件中心

Elastic Compute Service:DescribeAutoProvisioningGroupHistory - 查詢彈性供應組的調度任務資訊

更新時間:Apr 28, 2026

調用 DescribeAutoProvisioningGroupHistory 查詢彈性供應組的調度任務資訊。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

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

單次調度任務的狀態。可能值:

  • prepare:調度任務執行中。

  • success:調度任務執行成功。

  • failed:調度任務執行失敗。

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:執行個體建立成功。

  • Failed:執行個體建立失敗。

  • InProgress:執行個體建立中。

  • Warning:執行個體部分建立成功。

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. 指定的彈性供應組不存在。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情