全部產品
Search
文件中心

Elastic Compute Service:DescribeAutoProvisioningGroupHistory

更新時間:Sep 20, 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

開始執行單次排程任務的時間。格式為 ISO 8601,時區為 UTC。

2019-04-01T15:10:20Z

TaskId

string

單次排程任務的 ID。

apg-task-bp67acfmxazb4p****

LastEventTime

string

單次排程任務最後一次執行個體建立活動的執行時間。格式為 ISO 8601,時區為 UTC。

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

排程任務執行失敗的 code。

InvalidSecurityGroupId.NotFound

Message

string

排程任務執行失敗的 Message。

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

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

變更歷史

更多資訊,參考變更詳情。