該介面根據任務ID查詢對應的任務執行狀態和診斷結果。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
sysom:GetVmcoreDiagnosisTask |
none |
*全部資源。
|
無 | 無 |
請求文法
GET /api/v1/crashAgent/diagnosis/queryTask HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| taskId |
string |
是 |
任務 ID。 |
bbe94a98-4192-4172-b856-95777e0a55d7 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| code |
string |
狀態碼。
|
Success |
| data |
object |
傳回結果。 |
|
| createdAt |
string |
任務建立時間。 |
2025-12-02T17:36:12 |
| diagnoseResult |
string |
診斷結果。 |
result |
| errorMsg |
string |
診斷錯誤資訊。 |
error message |
| taskId |
string |
任務 ID。 |
bbe94a98-4192-4172-b856-95777e0a55d7 |
| taskStatus |
string |
任務狀態。 枚舉值:
|
running |
| taskType |
string |
任務類型。 枚舉值:
|
vmcore |
| urls |
object |
任務攜帶的相關檔案下載連結。 |
|
| debuginfoCommonUrl |
string |
debuginfo-common rpm 套件下載連結。 |
https://bucket-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/debuginfo-common/file/path |
| debuginfoUrl |
string |
debuginfo rpm 套件下載連結。 |
https://bucket-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/debuginfo/file/path |
| dmesgUrl |
string |
dmesg 日誌下載連結。 |
https://bucket-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/dmesg/file/path |
| vmcoreUrl |
string |
vmcore 檔案下載連結。 |
https://bucket-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/vmcore/file/path |
| message |
string |
錯誤資訊。
|
SysomOpenAPIException: SysomOpenAPI.InvalidParameter Invalid params, should be json string or dict |
| requestId |
string |
Id of the request |
2D693121-C925-5154-8DF6-C09A8B369822 |
樣本
正常返回樣本
JSON格式
{
"code": "Success",
"data": {
"createdAt": "2025-12-02T17:36:12",
"diagnoseResult": "result",
"errorMsg": "error message",
"taskId": "bbe94a98-4192-4172-b856-95777e0a55d7",
"taskStatus": "running",
"taskType": "vmcore",
"urls": {
"debuginfoCommonUrl": "https://bucket-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/debuginfo-common/file/path",
"debuginfoUrl": "\t\nhttps://bucket-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/debuginfo/file/path",
"dmesgUrl": "https://bucket-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/dmesg/file/path",
"vmcoreUrl": "https://bucket-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/vmcore/file/path"
}
},
"message": "SysomOpenAPIException: SysomOpenAPI.InvalidParameter Invalid params, should be json string or dict",
"requestId": "2D693121-C925-5154-8DF6-C09A8B369822"
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。