ListSubTasks - 获取子任务信息
获取子任务信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-aisc:ListSubTasks |
none |
*全部资源
|
无 | 无 |
请求语法
GET HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RootTaskId |
string |
否 |
提交任务返回的主任务 ID。 |
110146ac282314fe4f7cd11afc7540eb |
| TaskType |
string |
否 |
任务类型。 |
SKILL_CHECK |
| CurrentPage |
integer |
否 |
当前页码。 |
1 |
| PageSize |
integer |
否 |
分页大小。 |
10 |
| OnlyRunning |
boolean |
否 |
是否仅查询运行中的子任务。为 true 时跨根任务查询当前租户全部进行中的子任务,此时可以不传 RootTaskId。 |
|
| ResourceDirectoryAccountId |
integer |
否 |
资源目录账户 ID |
123456789 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
9FDE3D6F-26BD-5937-B0E5-8F47962B**** |
| Data |
array<object> |
任务结果列表。 |
|
|
array<object> |
任务结果。 |
||
| Id |
integer |
任务 ID。 |
4190063324899520 |
| TaskStatus |
string |
任务状态。 |
success |
| TaskResultMessage |
object |
任务结果信息。 |
|
| SkillCheckResult |
object |
Skill 检测任务结果。 |
|
| RiskInfo |
array<object> |
文件检测风险信息。 |
|
|
array<object> |
风险详情列表。 |
||
| Path |
string |
文件路径。 |
/home/97e55e6af371836f/ |
| ResultType |
string |
检测结果类型。取值:
|
1 |
| Ext |
object |
文件检测风险列表。 |
|
| Virus |
array<object> |
病毒检测风险。 |
|
|
object |
风险详情列表。 |
||
| Ext |
string |
扩展信息字段,备用参数。 |
{} |
| Score |
integer |
风险分数,满分 100。 |
100 |
| Type |
string |
病毒类型。 |
Backdoor |
| Guardrail |
object |
安全护栏检测风险。 |
|
| Suggestion |
string |
处理建议。 |
block |
| Detail |
array<object> |
风险详情列表。 |
|
|
array<object> |
风险详情。 |
||
| Level |
string |
风险等级,枚举值:
|
high |
| Suggestion |
string |
处理建议。 |
block |
| Type |
string |
风险类型。 |
promptAttack |
| Result |
array<object> |
结果详情列表。 |
|
|
object |
结果详情。 |
||
| Confidence |
number |
置信度,取值范围为 0 到 100。 |
25 |
| Description |
string |
结果描述信息。 |
Suspicious attacks. |
| Label |
string |
标签信息。 |
attack |
| Level |
string |
风险等级,枚举值:
|
high |
| Sensitive |
object |
敏感信息风险。 |
|
| Detail |
array<object> |
风险详情列表。 |
|
|
object |
风险详情。 |
||
| Desc |
string |
描述信息。 |
aliyun_ak_24 |
| Result |
array |
敏感信息列表。 |
|
|
string |
敏感信息。 |
LTAIvdi11f0b**** |
|
| Config |
object |
配置检测风险。 |
|
| Detail |
array<object> |
风险详情列表。 |
|
|
object |
风险详情。 |
||
| Line |
string |
检测命中内容的行数。 |
2555 |
| Description |
string |
描述信息。 |
The skill configuration allows Bash execution via agent-browser:* pattern without requiring user confirmation. This enables potentially dangerous command execution through the browser automation CLI. |
| Content |
string |
检测命中内容。 |
allowed-tools: Bash(agent-browser:*) |
| ItemName |
string |
检查项名称。 |
Dangerous Tools Without Confirmation |
| Score |
integer |
Skill 包的检测分数 |
95 |
| EnRiskName |
string |
Skill 包的英文风险名称 |
Medium-Risk Skill |
| ZhReportUrl |
string |
Skill 包的中文报告临时下载链接 |
https://skill-**** |
| EnReportUrl |
string |
Skill 包的英文报告临时下载链接 |
https://skill-**** |
| FullCheckResult |
object |
全面体检任务的检查结果,按检查项分别给出状态和说明。 |
|
| VulScan |
object |
漏洞扫描检查项的结果。 |
|
| Status |
string |
检查项状态,取值包括 init、running、success、failed、timeout 和 skipped。 |
success |
| Message |
string |
检查项的结果说明,例如失败原因、跳过原因或下发的策略 ID。 |
submitted |
| StrategyId |
integer |
检查项对应的策略 ID,仅健康检查项使用该字段。 |
1001 |
| Percent |
integer |
检查项进度百分比,取值范围为 0 到 100,当前版本暂未使用。 |
100 |
| HealthCheck |
object |
健康检查检查项的结果。 |
|
| Status |
string |
检查项状态,取值包括 init、running、success、failed、timeout 和 skipped。 |
success |
| Message |
string |
检查项的结果说明,例如失败原因、跳过原因或下发的策略 ID。 |
strategyId=1001 |
| StrategyId |
integer |
检查项对应的策略 ID,仅健康检查项使用该字段。 |
1001 |
| Percent |
integer |
检查项进度百分比,取值范围为 0 到 100,当前版本暂未使用。 |
100 |
| AssetScan |
object |
资产扫描检查项的结果。 |
|
| Status |
string |
检查项状态,取值包括 init、running、success、failed、timeout 和 skipped。 |
success |
| Message |
string |
检查项的结果说明,例如失败原因、跳过原因或下发的策略 ID。 |
dispatched |
| StrategyId |
integer |
检查项对应的策略 ID,仅健康检查项使用该字段。 |
1001 |
| Percent |
integer |
检查项进度百分比,取值范围为 0 到 100,当前版本暂未使用。 |
100 |
| SkillCheck |
object |
Skill 文件检测检查项的结果。 |
|
| Status |
string |
检查项状态,取值包括 init、running、success、failed、timeout 和 skipped。 |
success |
| Message |
string |
检查项的结果说明,例如失败原因、跳过原因或下发的策略 ID。 |
dispatched |
| StrategyId |
integer |
检查项对应的策略 ID,仅健康检查项使用该字段。 |
1001 |
| Percent |
integer |
检查项进度百分比,取值范围为 0 到 100,当前版本暂未使用。 |
100 |
| MemoryCheck |
object |
内存检测检查项的结果,检测器尚未接入时按成功结果收敛。 |
|
| Status |
string |
检查项状态,取值包括 init、running、success、failed、timeout 和 skipped。 |
success |
| Message |
string |
检查项的结果说明,例如失败原因、跳过原因或下发的策略 ID。 |
memory check task created, detector not implemented yet |
| StrategyId |
integer |
检查项对应的策略 ID,仅健康检查项使用该字段。 |
1001 |
| Percent |
integer |
检查项进度百分比,取值范围为 0 到 100,当前版本暂未使用。 |
100 |
| SessionCheck |
object |
会话检测检查项的结果,检测器尚未接入时按成功结果收敛。 |
|
| Status |
string |
检查项状态,取值包括 init、running、success、failed、timeout 和 skipped。 |
success |
| Message |
string |
检查项的结果说明,例如失败原因、跳过原因或下发的策略 ID。 |
session check task created, detector not implemented yet |
| StrategyId |
integer |
检查项对应的策略 ID,仅健康检查项使用该字段。 |
1001 |
| Percent |
integer |
检查项进度百分比,取值范围为 0 到 100,当前版本暂未使用。 |
100 |
| McpCheck |
object |
MCP 检测检查项的结果,检测器尚未接入时按成功结果收敛。 |
|
| Status |
string |
检查项状态,取值包括 init、running、success、failed、timeout 和 skipped。 |
success |
| Message |
string |
检查项的结果说明,例如失败原因、跳过原因或下发的策略 ID。 |
mcp check task created, detector not implemented yet |
| StrategyId |
integer |
检查项对应的策略 ID,仅健康检查项使用该字段。 |
1001 |
| Percent |
integer |
检查项进度百分比,取值范围为 0 到 100,当前版本暂未使用。 |
100 |
| Target |
string |
检测对象。 |
c7acb2f1264e4467887ef8f4c36c44ca1 |
| FileHash |
string |
上传文件的 Hash 值。 |
03d1f08455e965cac0351eaa59256fd9 |
| AgentName |
string |
Agent 的显示名称,按子任务的目标从应用信息中解析,应用记录缺失时为空。 |
agent-01 |
| GmtTaskStart |
integer |
子任务开始执行的毫秒级时间戳,未开始时为空。 |
1764036000000 |
| GmtTaskFinished |
integer |
子任务结束的毫秒级时间戳,未结束时为空。 |
1764036120000 |
| PageInfo |
object |
分页信息。 |
|
| CurrentPage |
integer |
当前页码。 |
1 |
| PageSize |
integer |
分页大小。 |
10 |
| TotalCount |
integer |
查询结果的总记录数。 |
1 |
| Count |
string |
当前页显示的数据条数。 |
1 |
示例
正常返回示例
JSON格式
{
"RequestId": "9FDE3D6F-26BD-5937-B0E5-8F47962B****",
"Data": [
{
"Id": 4190063324899520,
"TaskStatus": "success",
"TaskResultMessage": {
"SkillCheckResult": {
"RiskInfo": [
{
"Path": "/home/97e55e6af371836f/",
"ResultType": "1",
"Ext": {
"Virus": [
{
"Ext": "{}",
"Score": 100,
"Type": "Backdoor"
}
],
"Guardrail": {
"Suggestion": "block",
"Detail": [
{
"Level": "high",
"Suggestion": "block",
"Type": "promptAttack",
"Result": [
{
"Confidence": 25,
"Description": "Suspicious attacks.",
"Label": "attack",
"Level": "high"
}
]
}
]
},
"Sensitive": {
"Detail": [
{
"Desc": "aliyun_ak_24",
"Result": [
"LTAIvdi11f0b****"
]
}
]
},
"Config": {
"Detail": [
{
"Line": "2555",
"Description": "The skill configuration allows Bash execution via agent-browser:* pattern without requiring user confirmation. This enables potentially dangerous command execution through the browser automation CLI.",
"Content": "allowed-tools: Bash(agent-browser:*)",
"ItemName": "Dangerous Tools Without Confirmation"
}
]
}
}
}
],
"Score": 95,
"EnRiskName": "Medium-Risk Skill",
"ZhReportUrl": "https://skill-****",
"EnReportUrl": "https://skill-****"
},
"FullCheckResult": {
"VulScan": {
"Status": "success",
"Message": "submitted",
"StrategyId": 1001,
"Percent": 100
},
"HealthCheck": {
"Status": "success",
"Message": "strategyId=1001",
"StrategyId": 1001,
"Percent": 100
},
"AssetScan": {
"Status": "success",
"Message": "dispatched",
"StrategyId": 1001,
"Percent": 100
},
"SkillCheck": {
"Status": "success",
"Message": "dispatched",
"StrategyId": 1001,
"Percent": 100
},
"MemoryCheck": {
"Status": "success",
"Message": "memory check task created, detector not implemented yet",
"StrategyId": 1001,
"Percent": 100
},
"SessionCheck": {
"Status": "success",
"Message": "session check task created, detector not implemented yet",
"StrategyId": 1001,
"Percent": 100
},
"McpCheck": {
"Status": "success",
"Message": "mcp check task created, detector not implemented yet",
"StrategyId": 1001,
"Percent": 100
}
}
},
"Target": "c7acb2f1264e4467887ef8f4c36c44ca1",
"FileHash": "03d1f08455e965cac0351eaa59256fd9",
"AgentName": "agent-01",
"GmtTaskStart": 1764036000000,
"GmtTaskFinished": 1764036120000
}
],
"PageInfo": {
"CurrentPage": 1,
"PageSize": 10,
"TotalCount": 1,
"Count": "1"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | RdCheckNoPermission | Resource directory account verification has no permission. | 资源目录账号校验无权限。 |
| 500 | RdCheckInnerError | Resource directory account service internal error. | 资源目录账号服务内部错误。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。