擷取歷史風險評估工作清單。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
mse:ListClusterHealthCheckTask |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| InstanceId |
string |
否 |
執行個體 ID。 |
mse_prepaid_public_cn-7pp2o4wfx01 |
| PageNum |
integer |
否 |
查詢第幾頁 |
1 |
| PageSize |
integer |
否 |
每頁展示條數 |
10 |
| RegionId |
string |
否 |
叢集所在地區。 |
cn-hangzhou |
| RequestPars |
string |
否 |
擴充請求參數,JSON 格式。 |
{} |
| AcceptLanguage |
string |
否 |
返回資訊的語言類型:
|
zh |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
RestResult<PageResult |
||
| RequestId |
string |
請求 ID。 |
4E9FDCFE-0738-493B-B801-82BDFBCB**** |
| Success |
boolean |
請求結果,取值如下:
|
true |
| Code |
integer |
Code 僅僅用來和 success 同步 |
200 |
| ErrorCode |
string |
錯誤碼。取值說明如下:
|
mse-100-000 |
| HttpStatusCode |
integer |
HTTP 狀態代碼。 |
200 |
| Message |
string |
返回資訊。 |
請求處理成功 |
| DynamicCode |
string |
動態錯誤資訊中的預留位置 |
code |
| DynamicMessage |
string |
動態錯誤資訊,用於替換返回參數 ErrMessage 錯誤資訊中的**%s**。 說明
如果 ErrMessage 返回The Value of Input Parameter %s is not valid,且 DynamicMessage 返回 DtsJobId,則代表所傳入的請求參數 DtsJobId 不合法。 |
The specified parameter is invalid. |
| Data |
object |
資料概覽。 |
|
| PageNumber |
integer |
列表的頁碼。 |
1 |
| TotalSize |
integer |
查詢到的總數。 |
9 |
| PageSize |
integer |
輸入時設定的每頁行數。 |
10 |
| Result |
array |
風險評估工作清單。 |
|
|
object |
風險評估任務。 |
||
| Id |
integer |
ID。 |
1 |
| Score |
integer |
總得分。 |
60 |
| TotalItem |
integer |
總檢查項數。 |
10 |
| TotalRisk |
integer |
總風險項數。 |
3 |
| InstanceId |
string |
執行個體 ID。 |
mse_ingresspost-cn-0jbvrcex**** |
| ClusterType |
string |
叢集類型。 |
Nacos-Ans |
| Type |
string |
冗餘欄位。 |
null |
| Status |
string |
任務狀態。 |
FINISH |
| PrimaryUser |
string |
叢集歸屬使用者識別碼。 |
123456 |
| Spec |
string |
規格。 |
MSE_SC_2_4_200_c |
| Replica |
string |
叢集節點數量。 |
3 |
| VersionCode |
string |
版本號碼。 |
NACOS_ANS_1_2_1_3 |
| AppVersion |
string |
完整版本號碼。 |
1.2.1 |
| ImageVersion |
string |
冗餘欄位。 |
null |
| CreateTime |
string |
任務建立時間。 |
2022-06-20T06:51:46Z |
| UpdateTime |
string |
最後更新時間。 |
2022-11-12 15:07:55 |
| RiskList |
array |
風險項列表。 |
|
|
object |
風險項資訊。 |
||
| Id |
integer |
ID。 |
3426 |
| TaskId |
integer |
關聯的父任務 ID。 |
1 |
| RiskName |
string |
風險名稱。 |
引擎版本過低 |
| RiskCode |
string |
風險編碼。 |
22020010001 |
| PrimaryUser |
string |
叢集歸屬使用者識別碼。 |
123456 |
| Type |
integer |
冗餘欄位。 |
null |
| Values |
string |
冗餘欄位。 |
null |
| Module |
string |
冗餘欄位。 |
null |
| RiskType |
string |
風險類型。 |
版本風險 |
| RiskLevel |
string |
風險等級,取值:
|
MID |
| Suggestion |
string |
建議。 |
{\"desc\":\"請儘快升級至最新版本\",\"links\":[{\"type\":\"upgrade\",\"desc\":\"點擊升級\"}]} |
| Situation |
string |
現狀。 |
{\"desc\":\"當前引擎版本過低,有大量功能缺失\",\"links\":[{\"type\":\"url\",\"value\":\"https://xxxx"\",\"desc\":\"版本說明\"}]} |
| Description |
string |
描述說明。 |
{\"desc\":\"引擎版本過低,有大量功能缺失,請儘快升級至最新版本!\"} |
| Mute |
boolean |
是否禁用此風險項通知功能。
|
false |
| NoticeFeature |
boolean |
冗餘欄位。 |
null |
| RiskNameEn |
string |
風險英文名 |
Low engine version |
| SuggestionEn |
string |
建議的英文描述 |
Upgrade to the latest version |
| SituationEn |
string |
現狀的英文描述 |
The current engine version is low, and there are many missing features |
| DescriptionEn |
string |
風險徵兆的英文描述 |
Upgrade to the latest version to ensure that all features are available! |
| ChargeType |
string |
付費類型。 |
PREPAY |
樣本
正常返回樣本
JSON格式
{
"RequestId": "4E9FDCFE-0738-493B-B801-82BDFBCB****",
"Success": true,
"Code": 200,
"ErrorCode": "mse-100-000",
"HttpStatusCode": 200,
"Message": "請求處理成功",
"DynamicCode": "code",
"DynamicMessage": "The specified parameter is invalid.",
"Data": {
"PageNumber": 1,
"TotalSize": 9,
"PageSize": 10,
"Result": [
{
"Id": 1,
"Score": 60,
"TotalItem": 10,
"TotalRisk": 3,
"InstanceId": "mse_ingresspost-cn-0jbvrcex****",
"ClusterType": "Nacos-Ans",
"Type": "null\n",
"Status": "FINISH",
"PrimaryUser": "123456",
"Spec": "MSE_SC_2_4_200_c",
"Replica": "3",
"VersionCode": "NACOS_ANS_1_2_1_3",
"AppVersion": "1.2.1",
"ImageVersion": "null",
"CreateTime": "2022-06-20T06:51:46Z",
"UpdateTime": "2022-11-12 15:07:55",
"RiskList": [
{
"Id": 3426,
"TaskId": 1,
"RiskName": "引擎版本過低",
"RiskCode": "22020010001",
"PrimaryUser": "123456",
"Type": 0,
"Values": "null",
"Module": "null",
"RiskType": "版本風險",
"RiskLevel": "MID",
"Suggestion": "{\\\"desc\\\":\\\"請儘快升級至最新版本\\\",\\\"links\\\":[{\\\"type\\\":\\\"upgrade\\\",\\\"desc\\\":\\\"點擊升級\\\"}]}",
"Situation": "{\\\"desc\\\":\\\"當前引擎版本過低,有大量功能缺失\\\",\\\"links\\\":[{\\\"type\\\":\\\"url\\\",\\\"value\\\":\\\"https://xxxx\"\\\",\\\"desc\\\":\\\"版本說明\\\"}]}",
"Description": "{\\\"desc\\\":\\\"引擎版本過低,有大量功能缺失,請儘快升級至最新版本!\\\"}",
"Mute": false,
"NoticeFeature": true,
"RiskNameEn": "Low engine version",
"SuggestionEn": "Upgrade to the latest version",
"SituationEn": "The current engine version is low, and there are many missing features",
"DescriptionEn": "Upgrade to the latest version to ensure that all features are available!"
}
],
"ChargeType": "PREPAY"
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | 非法請求: %s |
| 400 | InvalidParameter | Parameter error:%s | 請求參數錯誤:%s |
| 500 | InternalError | Console error. Try again later:%s | 控制台錯誤.稍後重試:%s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | 沒有許可權使用此介面:%s |
| 404 | NotFound | Not found:%s | 資源不存在:%s |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。