查詢雲端硬碟風險事件。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ebs:DescribeEvents |
none |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
地域 ID。您可以呼叫 DescribeRegions 查詢區塊儲存資料洞察支援的地域清單。 |
cn-hangzhou |
| EventName |
string |
否 |
事件名稱。取值範圍:
|
DiskIOHang |
| ResourceId |
string |
否 |
資源 ID。 |
d-bp67acfmxazb4p**** |
| ResourceType |
string |
否 |
資源類型。取值範圍:
|
disk |
| Status |
string |
否 |
事件狀態。取值範圍:
|
WillExecute |
| StartTime |
string |
否 |
事件開始時間點。按照 ISO8601 標準表示,並使用 UTC+0 時間,格式為 yyyy-MM-ddTHH:mm:ssZ。 |
2023-06-01T03:00:00Z |
| EndTime |
string |
否 |
事件結束時間點。按照 ISO8601 標準表示,並使用 UTC+0 時間,格式為 yyyy-MM-ddTHH:mm:ssZ。 |
2023-06-01T04:00:00Z |
| MaxResults |
integer |
否 |
分頁查詢時每頁的最大條目數。一旦設定該參數,即表示使用 取值範圍:1~100。 預設值:10。 |
10 |
| NextToken |
string |
否 |
查詢憑證(Token),取值為上一次 API 呼叫返回的 NextToken 參數值。 |
AAAAAdDWBF2**** |
| EventLevel |
string |
否 |
事件層級,取值說明:
|
WARN |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| TotalCount |
integer |
分頁查詢時的結果總條數。 |
1 |
| NextToken |
string |
下一個查詢開始的 Token,NextToken 為空表示沒有下一個。 |
AAAAAdDWBF2**** |
| ResourceEvents |
array<object> |
事件清單。 |
|
|
object |
|||
| EventType |
string |
事件類型。可能值:
|
Alert |
| EventName |
string |
事件名稱。可能值:
|
DiskIOHang |
| ResourceId |
string |
資源 ID。 |
d-bp67acfmxazb4p**** |
| ResourceType |
string |
資源類型。 |
disk |
| Status |
string |
事件狀態。可能值:
|
WillExecute |
| StartTime |
string |
事件開始時間戳記(毫秒級)。 |
1684204822000 |
| Description |
string |
事件描述。 |
可透過購買4296預配置IOPS以獲得成本最佳化,根據您過往7天使用情況,預計成本可以下降16% |
| RecommendAction |
string |
事件發生後的建議操作。可能值:
|
AdjustProvision |
| RecommendParams |
string |
事件發生後的建議操作的參數。 |
4296 |
| EventLevel |
string |
事件層級,可能值:
|
INFO |
| EndTime |
string |
事件結束時間戳記(毫秒級)。 |
1679538083000 |
| ExtraAttributes |
string |
附加屬性,可能的欄位有:
|
{\"EcsInstanceId\":\"i-uf6dkn9qpcw6y94g7ag7\",\"Adapter\":\"hda\"} |
樣本
正常返回樣本
JSON格式
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"TotalCount": 1,
"NextToken": "AAAAAdDWBF2****",
"ResourceEvents": [
{
"EventType": "Alert",
"EventName": "DiskIOHang",
"ResourceId": "d-bp67acfmxazb4p****\n",
"ResourceType": "disk",
"Status": "WillExecute",
"StartTime": "1684204822000",
"Description": "可通过购买4296预配置IOPS以获得成本优化,根据您过往7天使用情况,预计成本可以下降16%。",
"RecommendAction": "AdjustProvision",
"RecommendParams": "4296",
"EventLevel": "INFO",
"EndTime": "1679538083000",
"ExtraAttributes": "{\\\"EcsInstanceId\\\":\\\"i-uf6dkn9qpcw6y94g7ag7\\\",\\\"Adapter\\\":\\\"hda\\\"}"
}
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | App.NumberExceed | The number of apps exceeded. | |
| 400 | DocumentConvertFailed.ExceedFileSizeLimit | The conversion has been failed, exceed file size limit. | |
| 400 | Duplicate.TagKey | The Tag.N.Key contain duplicate key. | |
| 400 | IdempotentParameterMismatch | The specified parameter has changed while using an already used clientToken. | |
| 400 | InvalidDiskSize.NotSupported | The specified parameter size is not valid. | |
| 400 | InvalidParameter | The parameter %s is invalid. | |
| 400 | InvalidParameter.Conflict | The specified parameter %s and %s are not blank at the same time. | |
| 400 | InvalidParameter.EndTime | The specified parameter EndTime is earlier than StartTime. | |
| 400 | InvalidParameter.Format | Specified parameter format is not valid. | |
| 400 | InvalidParameter.TooManyDataQueried | Too many data queried. | |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 403 | AliCroup2CloudUserCannotBuyNotInnerCommodity | There is no group cloud commodity label, and users within the group are not allowed to purchase. | |
| 403 | Forbidden | User is not authorized to operate. | |
| 403 | Forbidden.Action | User is not authorized to operate this action. | |
| 403 | IncorrectDiskStatus.CreatingSnapshot | A previous snapshot creation is in process. | |
| 403 | InvalidAccountStatus.NotEnoughBalance | Your account does not have enough balance. | |
| 403 | InvalidDiskCategory.NotSupported | The specified disk category is not supported. | |
| 404 | InvalidApi.NotFound | Specified api is not found, please check your url and method. | |
| 404 | NoSuchResource | The specified resource does not exist. | |
| 504 | RequestTimeout | The request is timeout, please try again later. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。