通用参数

接口参数

字段 类型 必选 描述
bk_biz_id string 所属业务ID
task_id string 任务ID
node_id string 节点 ID
component_code string 标准插件编码,请求标准插件执行详情必填
subprocess_stack string 子流程堆栈,json 格式的列表
scope string bk_biz_id 检索的作用域。默认为 cmdb_biz,此时检索的是绑定的 CMDB 业务 ID 为 bk_biz_id 的项目;当值为 project 时则检索项目 ID 为 bk_biz_id 的项目
  1. "message": "",
  2. "data": {
  3. "inputs": {
  4. "job_account": "root",
  5. "job_script_timeout": "",
  6. "job_script_source": "manual",
  7. "job_script_list_public": "",
  8. "job_content": "echo 0\nexit 0",
  9. "job_script_param": "",
  10. "job_script_list_general": "",
  11. "job_ip_list": "127.0.0.1"
  12. },
  13. "retry": 0,
  14. "name": "<class "pipeline.core.flow.activity.ServiceActivity">",
  15. "skip": false,
  16. "start_time": "2019-01-17 22:02:37 +0800",
  17. "children": {},
  18. "histories": [],
  19. "ex_data": null,
  20. "elapsed_time": 9,
  21. "outputs": [
  22. {
  23. "value": 407584,
  24. "name": "JOB任务ID",
  25. "key": "job_inst_id"
  26. {
  27. "value": "",
  28. "name": "JOB任务链接",
  29. },
  30. {
  31. "value": true,
  32. "name": "执行结果",
  33. "key": "_result"
  34. }
  35. ],
  36. "state": "FINISHED",
  37. "version": "23ac8c29f62b3337aafcf1f538d277f8",
  38. "error_ignorable": false,
  39. "id": "node0df0431f8f553925af01a94854bd",
  40. "loop": 1
  41. },
  42. "result": true

data

字段 类型 描述
id string 节点 ID
start_time string 最后一次执行开始时间
finish_time string 最后一次执行结束时间
elapsed_time int 最后一次执行耗时,单位秒
state string 最后一次执行状态,CREATED:未执行,RUNNING:执行中,FAILED:失败,NODE_SUSPENDED:暂停,SUSPENDED:成功
skip bool 是否手动跳过
retry int 重试次数
inputs dict 输入参数,key:value格式
outputs list 输出参数,详情见下面说明
ex_data string 节点执行失败详情,json字符串或者HTML字符串、普通字符串
histories list 重试记录详情,详情见下面说明

outputs[]

histories[]

名称 类型 说明
start_time string 执行开始时间
finish_time string 执行结束时间
elapsed_time int 执行耗时
state string 执行状态,CREATED:未执行,RUNNING:执行中,FAILED:失败,NODE_SUSPENDED:暂停,SUSPENDED:成功
skip bool 是否手动跳过
retry int 重试次数
histories list 重试记录详情,详情见下面说明
inputs dict 输入参数,key:value格式
outputs dict 输出参数,key:value格式
ex_data string 节点执行失败详情,json字符串或者HTML字符串、普通字符串