ListOperationEvents - 查詢操作事件列表

更新時間:
Copy as MD

擷取指定條件下的操作事件列表,支援分頁和排序。

調試

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

調試

授權資訊

當前API暫無授權資訊透出。

請求文法

POST /api/v1/instances/listOperationEvents HTTP/1.1

請求參數

名稱

類型

必填

描述

樣本值

body

object

請求體。

pageSize

integer

分頁大小,預設 50,最大 100

30

pageNumber

integer

頁編號,預設 1

1

state

string

狀態篩選

success

eventName

string

事件名稱篩選

COLD_UPGRADE

eventType

string

事件類型篩選

SYSTEM_MAINTENANCE

scheduleTimeDesc

boolean

是否按計劃時間降序排序

true

eventNameDesc

boolean

是否按名稱降序排序

true

instanceId

string

執行個體 Id

hgpost-cn-xxx

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

RequestId

string

Id of the request

D3AE84AB-0873-5FC7-A4C4-8CF869D2FA70

Data

array<object>

事件列表

array<object>

返回的結果。

Id

string

Id

1826503661244379138

Cancelable

boolean

是否可取消

true

ChangeScheduleTime

boolean

是否可以修改事件

true

ScheduleTime

string

ScheduleTime

2024-08-22 15:49:28

State

string

State

queued

ResourceId

string

資源 Id

hgpost-cn-sxfsdfsd

EventType

string

事件類型篩選

UPGRADE_ON_CUSTOMERS_BEHALF

EventName

string

事件名稱篩選

HOT_UPGRADE

InstanceName

string

執行個體名稱

haha

ZoneId

string

地區 ID

cn-hangzhou-k

MaintainWindow

string

維護時間視窗

21:00-22:00

FollowerInstances

array<object>

從執行個體列表

object

數組對象

InstanceId

string

執行個體 Id

hgxxxx

InstanceName

string

執行個體名稱

hi

Detail

string

事件詳情

{}

PageSize

integer

分頁大小,預設 50,最大 100

30

PageNumber

integer

頁編號,預設 1

3

TotalCount

integer

總數

120

樣本

正常返回樣本

JSON格式

{
  "RequestId": "D3AE84AB-0873-5FC7-A4C4-8CF869D2FA70",
  "Data": [
    {
      "Id": "1826503661244379138",
      "Cancelable": true,
      "ChangeScheduleTime": true,
      "ScheduleTime": "2024-08-22 15:49:28",
      "State": "queued",
      "ResourceId": "hgpost-cn-sxfsdfsd",
      "EventType": "UPGRADE_ON_CUSTOMERS_BEHALF",
      "EventName": "HOT_UPGRADE",
      "InstanceName": "haha",
      "ZoneId": "cn-hangzhou-k",
      "MaintainWindow": "21:00-22:00",
      "FollowerInstances": [
        {
          "InstanceId": "hgxxxx",
          "InstanceName": "hi"
        }
      ],
      "Detail": "{}"
    }
  ],
  "PageSize": 30,
  "PageNumber": 3,
  "TotalCount": 120
}

錯誤碼

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

變更歷史

更多資訊,參考變更詳情