该接口根据任务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"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。