查詢指定地區內全部事件列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cs:DescribeEventsForRegion |
list |
*全部資源
|
無 | 無 |
請求文法
GET /regions/{region_id}/events HTTP/1.1
路徑參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| region_id |
string |
是 |
地區 ID。 |
cn-hangzhou |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| cluster_id |
string |
否 |
叢集 ID。 |
cf62854ac2130470897be7a27ed1f**** |
| page_size |
integer |
否 |
每頁顯示的最大結果數。 取值範圍:[1,100]。 預設值:50。 |
50 |
| page_number |
integer |
否 |
分頁頁數。 |
1 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回體參數。 |
||
| events |
array<object> |
事件列表。 |
|
|
array<object> |
事件詳情。 |
||
| event_id |
string |
事件 ID。 |
e-9ad04f72-8ee7-46bf-a02c-e4a06b39**** |
| type |
string |
事件類型。 |
nodePool_upgrade |
| source |
string |
事件來源。 |
task |
| subject |
string |
事件關聯對象。 |
npdd89dc2b76c04f14b06774883b****** |
| time |
string |
事件產生時間。 |
2025-05-14T10:00:56+08:00 |
| cluster_id |
string |
叢集 ID。 |
c82e6987e2961451182edacd74faf**** |
| data |
object |
事件描述。 |
|
| level |
string |
事件層級。 |
info |
| reason |
string |
事件狀態。 |
Started |
| message |
string |
事件詳情。 |
Start to upgrade NodePool nodePool/nodePool-A |
| page_info |
object |
分頁資訊。 |
|
| page_size |
integer |
每頁顯示的最大結果數。 |
50 |
| page_number |
integer |
分頁頁數。 |
1 |
| total_count |
integer |
結果總數。 |
3 |
樣本
正常返回樣本
JSON格式
{
"events": [
{
"event_id": "e-9ad04f72-8ee7-46bf-a02c-e4a06b39****\n",
"type": "nodePool_upgrade",
"source": "task",
"subject": "npdd89dc2b76c04f14b06774883b******",
"time": "2025-05-14T10:00:56+08:00",
"cluster_id": "c82e6987e2961451182edacd74faf****",
"data": {
"level": "info",
"reason": "Started",
"message": "Start to upgrade NodePool nodePool/nodePool-A"
}
}
],
"page_info": {
"page_size": 50,
"page_number": 1,
"total_count": 3
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。