功能描述

快速新建一次性任务

请求参数

通用参数

字段 类型 必选 描述
bk_app_code string 应用ID
bk_app_secret string 安全密钥(应用 TOKEN),可以通过 蓝鲸智云开发者中心 -> 点击应用ID -> 基本信息 获取
bk_token string 当前用户登录态,bk_token与bk_username必须一个有效,bk_token可以通过Cookie获取
bk_username string 当前用户用户名,应用免登录态验证白名单中的应用,用此字段指定当前用户

接口参数

字段 类型 必选 描述
project_id int 项目ID
name string 任务名称
pipeline_tree dict 任务实例树,详细信息请见下面说明
flow_type string 任务流程类型,common: 常规流程,common_func:职能化流程,默认值为common
description string 任务描述
category string 任务分类,详细信息请见下面说明
scope string project_id 检索的作用域。默认为 cmdb_biz,此时检索的是绑定的 CMDB 业务 ID 为 bk_biz_id 的项目;当值为 project 时则检索项目 ID 为 project_id 的项目

category

描述
OpsTools 运维工具
MonitorAlarm 监控告警
ConfManage 配置管理
DevTools 开发工具
EnterpriseIT 企业IT
OfficeApp 办公应用
Other 其它

pipeline_tree

字段 类型 必选 描述
start_event dict 开始节点,详细信息请见下面说明
end_event dict 结束节点,详细信息请见下面说明
activities dict 任务节点(标准插件和子流程),详细信息请见下面说明
flows dict 顺序流(节点连线),详细信息请见下面说明
gateways dict 网关节点(并行网关、分支网关和汇聚网关),详细信息请见下面说明
constants dict 全局变量,详细信息请见下面说明
outputs list 输出参数,标记 constants 中的输出字段

pipeline_tree.start_event

字段 类型 必选 描述
id string 开始节点 ID,在 pipeline_tree 所有ID中全局唯一
type string 开始节点类型,当前只支持 EmptyStartEvent: 空开始类
name string 开始节点名称,可为空
incoming string 入度顺序流 ID,必须为空字符串
outgoing string 出度顺序流 ID

pipeline_tree.end_event

字段 类型 必选 描述
id string 结束节点 ID,在 pipeline_tree 所有ID中全局唯一
type string 结束节点类型,当前只支持 EmptyEndEvent:空结束类
name string 结束节点名称,可为空
incoming string 入度顺序流 ID
outgoing string 出度顺序流 ID,必须为空字符串

pipeline_tree.activities KEY、pipeline_tree.flows KEY、pipeline_tree.gateways KEY

流程元素 ID,string 类型,在 pipeline_tree 所有 ID 中全局唯一,用来标识拓扑关系

pipeline_tree.activities VALUE

字段 类型 必选 描述
id string 任务节点 ID,同 KEY 一致
type string 任务节点类型,当前只支持 ServiceActivity:标准插件节点
name string 任务节点名称
component dict 插件配置,详细信息请见下面说明
error_ignorable bool 节点失败是否自动忽略
retryable bool 节点失败后是否可以重试,error_ignorable 为 true 时该参数无效
skippable bool 节点失败后是否可以跳过,error_ignorable 为 true 时该参数无效
incoming string 入度顺序流 ID
outgoing string 出度顺序流 ID
stage_name string 步骤分组名称

pipeline_tree.activities VALUE.component

字段 类型 必选 描述
code string 标准插件编码
data dict 标准插件输入参数

pipeline_tree.flows VALUE

字段 类型 必选 描述
id string 顺序流 ID,同 KEY 一致
is_default bool 是否默认分支
source string 来源节点 ID
target string 目的节点 ID

pipeline_tree.gateways VALUE

字段 类型 必选 描述
id string 网关节点 ID,同 KEY 一致
type string 网关类型,ParallelGateway:并行网关,ExclusiveGateway:分支网关,ConvergeGateway:汇聚网关
name string 网关节点名称,可为空
incoming string/list 入度顺序流 ID,type 为 ConvergeGateway 时是 list,否则是 string
outgoing string/list 出度顺序流 ID,type 为 ConvergeGateway 时是 string,否则是 list
conditions dict 分支条件,type 为 ExclusiveGateway 必填, 详细信息请见下面说明

pipeline_tree.gateways VALUE.conditions KEY

网关出度顺序流 ID,和 outgoing 列表中一一对应

pipeline_tree.gateways VALUE.conditions VALUE

字段 类型 必选 描述
evaluate string 分支表达式,支持的语法请参考产品白皮书等文档

pipeline_tree.constants KEY

全局变量 KEY,”${key}” 格式

pipeline_tree.constants VALUE

字段 类型 必选 描述
key string 同 KEY 一致
name string 变量名字
index int 变量在任务中的显示顺序
desc string 变量说明
source_type string 变量来源, 取值范围 custom: 自定义变量,component_inputs: 从标准插件输入参数勾选,component_outputs:从标准插件输出结果中勾选
custom_type string source_type=custom 时有效,自定义变量类型, 取值范围 input: 输入框,textarea: 文本框,datetime: 日期时间,int: 整数
source_tag string source_type=component_inputs 或 component_outputs 时有效,变量的来源插件和 Tag
source_info dict source_type=component_inputs 或 component_outputs 时有效,变量的来源节点信息

请求参数示例

  1. {
  2. "project_id": "1",
  3. "bk_app_code": "esb_test",
  4. "bk_app_secret": "xxx",
  5. "bk_token": "xxx",
  6. "name": "tasktest",
  7. "flow_type": "common",
  8. "pipeline_tree":{
  9. "start_event": {
  10. "incoming": "",
  11. "outgoing": "line7ed74aa679d19063b6d7037ce6db",
  12. "type": "EmptyStartEvent",
  13. "id": "node20cbeaa5379d08e8d8ed7bb44fdc",
  14. "name": ""
  15. },
  16. "activities": {
  17. "node5310ec36c0364d3094d515f8f5ef": {
  18. "outgoing": "linec02d1e77e1076aa9c7c2c57238e4",
  19. "incoming": "line7ed74aa679d19063b6d7037ce6db",
  20. "name": "node1",
  21. "error_ignorable": false,
  22. "component": {
  23. "code": "sleep_timer",
  24. "data": {
  25. "bk_timing": {
  26. "hook": true,
  27. "value": "${bk_timing}"
  28. }
  29. }
  30. },
  31. "stage_name": "stage1",
  32. "retryable": true,
  33. "skippable": true,
  34. "type": "ServiceActivity",
  35. "id": "node5310ec36c0364d3094d515f8f5ef"
  36. },
  37. "node2bf42efcebe266706c3e21326dc4": {
  38. "outgoing": "linef0deadac69f769440a1b0e32587e",
  39. "incoming": "line7587c8804d34a091dae3d321f081",
  40. "name": "node2",
  41. "error_ignorable": false,
  42. "component": {
  43. "code": "sleep_timer",
  44. "data": {
  45. "bk_timing": {
  46. "hook": true,
  47. "value": "${bk_timing}"
  48. }
  49. }
  50. },
  51. "stage_name": "stage2",
  52. "retryable": true,
  53. "skippable": true,
  54. "type": "ServiceActivity",
  55. "id": "node2bf42efcebe266706c3e21326dc4"
  56. },
  57. "node3c7dcf31454c1e9bdc9cf1cdeacc": {
  58. "outgoing": "linebf8f91c96a8f4eb3794ca5eb9881",
  59. "incoming": "line429f64cdec5d20f368611e621ef5",
  60. "name": "node3",
  61. "error_ignorable": false,
  62. "component": {
  63. "code": "sleep_timer",
  64. "data": {
  65. "bk_timing": {
  66. "hook": false,
  67. "value": "3"
  68. }
  69. }
  70. },
  71. "stage_name": "stage3",
  72. "retryable": true,
  73. "skippable": true,
  74. "type": "ServiceActivity",
  75. "id": "node3c7dcf31454c1e9bdc9cf1cdeacc"
  76. },
  77. "nodedb1478a75c13f90cc400f5379949": {
  78. "outgoing": "line24d28a3f9f80e23e4a4fab7c4ffd",
  79. "incoming": "linec43c77f26af408748a9c194dbcfe",
  80. "name": "node4",
  81. "error_ignorable": false,
  82. "component": {
  83. "code": "sleep_timer",
  84. "data": {
  85. "bk_timing": {
  86. "hook": true,
  87. "value": "${bk_timing}"
  88. }
  89. }
  90. },
  91. "stage_name": "stage3",
  92. "retryable": true,
  93. "skippable": true,
  94. "type": "ServiceActivity",
  95. "id": "nodedb1478a75c13f90cc400f5379949"
  96. }
  97. },
  98. "end_event": {
  99. "incoming": "line6ea858554964a04d868cead4435a",
  100. "outgoing": "",
  101. "type": "EmptyEndEvent",
  102. "id": "nodebe0db4ad30cc1723c7ede37b4b5f",
  103. "name": ""
  104. },
  105. "flows": {
  106. "line24d28a3f9f80e23e4a4fab7c4ffd": {
  107. "is_default": false,
  108. "source": "nodedb1478a75c13f90cc400f5379949",
  109. "id": "line24d28a3f9f80e23e4a4fab7c4ffd",
  110. "target": "node947e423b22e49aeb77bc77528bc0"
  111. },
  112. "linebf8f91c96a8f4eb3794ca5eb9881": {
  113. "is_default": false,
  114. "source": "node3c7dcf31454c1e9bdc9cf1cdeacc",
  115. "id": "linebf8f91c96a8f4eb3794ca5eb9881",
  116. "target": "node947e423b22e49aeb77bc77528bc0"
  117. },
  118. "line7587c8804d34a091dae3d321f081": {
  119. "is_default": false,
  120. "source": "node0863aab8325b84cfa3e5db52dc61",
  121. "id": "line7587c8804d34a091dae3d321f081",
  122. "target": "node2bf42efcebe266706c3e21326dc4"
  123. },
  124. "line429f64cdec5d20f368611e621ef5": {
  125. "is_default": false,
  126. "source": "node7e97af0f55fb64276e067951dd9d",
  127. "id": "line429f64cdec5d20f368611e621ef5",
  128. "target": "node3c7dcf31454c1e9bdc9cf1cdeacc"
  129. },
  130. "line6ea858554964a04d868cead4435a": {
  131. "is_default": false,
  132. "source": "node2b6f3285cfb3961c72834bafbe1b",
  133. "id": "line6ea858554964a04d868cead4435a",
  134. "target": "nodebe0db4ad30cc1723c7ede37b4b5f"
  135. },
  136. "line9dd9c8dbbad90943f268442ab7e0": {
  137. "is_default": false,
  138. "source": "node0863aab8325b84cfa3e5db52dc61",
  139. "id": "line9dd9c8dbbad90943f268442ab7e0",
  140. "target": "node7e97af0f55fb64276e067951dd9d"
  141. },
  142. "lineabc279d9be88eb98285132ba5b75": {
  143. "is_default": false,
  144. "source": "node947e423b22e49aeb77bc77528bc0",
  145. "id": "lineabc279d9be88eb98285132ba5b75",
  146. "target": "node2b6f3285cfb3961c72834bafbe1b"
  147. },
  148. "linef0deadac69f769440a1b0e32587e": {
  149. "is_default": false,
  150. "source": "node2bf42efcebe266706c3e21326dc4",
  151. "id": "linef0deadac69f769440a1b0e32587e",
  152. "target": "node2b6f3285cfb3961c72834bafbe1b"
  153. },
  154. "linec02d1e77e1076aa9c7c2c57238e4": {
  155. "is_default": false,
  156. "source": "node5310ec36c0364d3094d515f8f5ef",
  157. "id": "linec02d1e77e1076aa9c7c2c57238e4",
  158. "target": "node0863aab8325b84cfa3e5db52dc61"
  159. },
  160. "line7ed74aa679d19063b6d7037ce6db": {
  161. "is_default": false,
  162. "source": "node20cbeaa5379d08e8d8ed7bb44fdc",
  163. "id": "line7ed74aa679d19063b6d7037ce6db",
  164. "target": "node5310ec36c0364d3094d515f8f5ef"
  165. },
  166. "linec43c77f26af408748a9c194dbcfe": {
  167. "is_default": false,
  168. "source": "node7e97af0f55fb64276e067951dd9d",
  169. "id": "linec43c77f26af408748a9c194dbcfe",
  170. "target": "nodedb1478a75c13f90cc400f5379949"
  171. }
  172. },
  173. "gateways": {
  174. "node2b6f3285cfb3961c72834bafbe1b": {
  175. "incoming": ["linef0deadac69f769440a1b0e32587e", "lineabc279d9be88eb98285132ba5b75"],
  176. "outgoing": "line6ea858554964a04d868cead4435a",
  177. "type": "ConvergeGateway",
  178. "id": "node2b6f3285cfb3961c72834bafbe1b",
  179. "name": ""
  180. },
  181. "node0863aab8325b84cfa3e5db52dc61": {
  182. "outgoing": ["line7587c8804d34a091dae3d321f081", "line9dd9c8dbbad90943f268442ab7e0"],
  183. "incoming": "linec02d1e77e1076aa9c7c2c57238e4",
  184. "name": "",
  185. "type": "ExclusiveGateway",
  186. "conditions": {
  187. "line9dd9c8dbbad90943f268442ab7e0": {
  188. "evaluate": "${bk_timing} <= 10"
  189. },
  190. "line7587c8804d34a091dae3d321f081": {
  191. "evaluate": "${bk_timing} > 10"
  192. }
  193. },
  194. "id": "node0863aab8325b84cfa3e5db52dc61"
  195. },
  196. "node947e423b22e49aeb77bc77528bc0": {
  197. "incoming": ["linebf8f91c96a8f4eb3794ca5eb9881", "line24d28a3f9f80e23e4a4fab7c4ffd"],
  198. "outgoing": "lineabc279d9be88eb98285132ba5b75",
  199. "type": "ConvergeGateway",
  200. "id": "node947e423b22e49aeb77bc77528bc0",
  201. "name": ""
  202. },
  203. "node7e97af0f55fb64276e067951dd9d": {
  204. "incoming": "line9dd9c8dbbad90943f268442ab7e0",
  205. "outgoing": ["line429f64cdec5d20f368611e621ef5", "linec43c77f26af408748a9c194dbcfe"],
  206. "type": "ParallelGateway",
  207. "id": "node7e97af0f55fb64276e067951dd9d",
  208. "name": ""
  209. }
  210. },
  211. "constants": {
  212. "${bk_timing}": {
  213. "source_tag": "sleep_timer.bk_timing",
  214. "source_info": {
  215. "node5310ec36c0364d3094d515f8f5ef": ["bk_timing"],
  216. "node2bf42efcebe266706c3e21326dc4": ["bk_timing"],
  217. "nodedb1478a75c13f90cc400f5379949": ["bk_timing"]
  218. },
  219. "name": "timing",
  220. "index": 0,
  221. "custom_type": "",
  222. "value": "1",
  223. "show_type": "show",
  224. "source_type": "component_inputs",
  225. "key": "${bk_timing}",
  226. "desc": ""
  227. }
  228. },
  229. "outputs": ["${bk_timing}"]
  230. }
  231. }

返回结果示例

  1. {
  2. "result": true,
  3. "data": {
  4. "task_id": 10,
  5. "task_url": "http://bk_sops_host/taskflow/execute/3/?instance_id=10",
  6. "pipeline_tree": {
  7. "start_event": {
  8. "incoming": "",
  9. "outgoing": "line7ed74aa679d19063b6d7037ce6db",
  10. "type": "EmptyStartEvent",
  11. "id": "node20cbeaa5379d08e8d8ed7bb44fdc",
  12. "name": ""
  13. },
  14. "activities": {
  15. "node5310ec36c0364d3094d515f8f5ef": {
  16. "outgoing": "linec02d1e77e1076aa9c7c2c57238e4",
  17. "incoming": "line7ed74aa679d19063b6d7037ce6db",
  18. "name": "node1",
  19. "error_ignorable": false,
  20. "component": {
  21. "code": "sleep_timer",
  22. "data": {
  23. "bk_timing": {
  24. "hook": true,
  25. "value": "${bk_timing}"
  26. }
  27. }
  28. },
  29. "stage_name": "stage1",
  30. "retryable": true,
  31. "skippable": true,
  32. "type": "ServiceActivity",
  33. "id": "node5310ec36c0364d3094d515f8f5ef"
  34. },
  35. "node2bf42efcebe266706c3e21326dc4": {
  36. "outgoing": "linef0deadac69f769440a1b0e32587e",
  37. "incoming": "line7587c8804d34a091dae3d321f081",
  38. "name": "node2",
  39. "error_ignorable": false,
  40. "component": {
  41. "code": "sleep_timer",
  42. "data": {
  43. "bk_timing": {
  44. "hook": true,
  45. "value": "${bk_timing}"
  46. }
  47. }
  48. },
  49. "stage_name": "stage2",
  50. "retryable": true,
  51. "skippable": true,
  52. "type": "ServiceActivity",
  53. "id": "node2bf42efcebe266706c3e21326dc4"
  54. },
  55. "node3c7dcf31454c1e9bdc9cf1cdeacc": {
  56. "outgoing": "linebf8f91c96a8f4eb3794ca5eb9881",
  57. "incoming": "line429f64cdec5d20f368611e621ef5",
  58. "name": "node3",
  59. "error_ignorable": false,
  60. "component": {
  61. "code": "sleep_timer",
  62. "data": {
  63. "bk_timing": {
  64. "hook": false,
  65. "value": "3"
  66. }
  67. }
  68. },
  69. "stage_name": "stage3",
  70. "retryable": true,
  71. "skippable": true,
  72. "type": "ServiceActivity",
  73. "id": "node3c7dcf31454c1e9bdc9cf1cdeacc"
  74. },
  75. "nodedb1478a75c13f90cc400f5379949": {
  76. "outgoing": "line24d28a3f9f80e23e4a4fab7c4ffd",
  77. "incoming": "linec43c77f26af408748a9c194dbcfe",
  78. "name": "node4",
  79. "error_ignorable": false,
  80. "component": {
  81. "code": "sleep_timer",
  82. "data": {
  83. "bk_timing": {
  84. "hook": true,
  85. "value": "${bk_timing}"
  86. }
  87. }
  88. },
  89. "stage_name": "stage3",
  90. "retryable": true,
  91. "skippable": true,
  92. "type": "ServiceActivity",
  93. "id": "nodedb1478a75c13f90cc400f5379949"
  94. }
  95. },
  96. "end_event": {
  97. "incoming": "line6ea858554964a04d868cead4435a",
  98. "outgoing": "",
  99. "type": "EmptyEndEvent",
  100. "id": "nodebe0db4ad30cc1723c7ede37b4b5f",
  101. "name": ""
  102. },
  103. "flows": {
  104. "line24d28a3f9f80e23e4a4fab7c4ffd": {
  105. "is_default": false,
  106. "source": "nodedb1478a75c13f90cc400f5379949",
  107. "id": "line24d28a3f9f80e23e4a4fab7c4ffd",
  108. "target": "node947e423b22e49aeb77bc77528bc0"
  109. },
  110. "linebf8f91c96a8f4eb3794ca5eb9881": {
  111. "is_default": false,
  112. "source": "node3c7dcf31454c1e9bdc9cf1cdeacc",
  113. "id": "linebf8f91c96a8f4eb3794ca5eb9881",
  114. "target": "node947e423b22e49aeb77bc77528bc0"
  115. },
  116. "line7587c8804d34a091dae3d321f081": {
  117. "is_default": false,
  118. "source": "node0863aab8325b84cfa3e5db52dc61",
  119. "id": "line7587c8804d34a091dae3d321f081",
  120. "target": "node2bf42efcebe266706c3e21326dc4"
  121. },
  122. "line429f64cdec5d20f368611e621ef5": {
  123. "is_default": false,
  124. "source": "node7e97af0f55fb64276e067951dd9d",
  125. "id": "line429f64cdec5d20f368611e621ef5",
  126. "target": "node3c7dcf31454c1e9bdc9cf1cdeacc"
  127. },
  128. "line6ea858554964a04d868cead4435a": {
  129. "is_default": false,
  130. "source": "node2b6f3285cfb3961c72834bafbe1b",
  131. "id": "line6ea858554964a04d868cead4435a",
  132. "target": "nodebe0db4ad30cc1723c7ede37b4b5f"
  133. },
  134. "line9dd9c8dbbad90943f268442ab7e0": {
  135. "is_default": false,
  136. "source": "node0863aab8325b84cfa3e5db52dc61",
  137. "id": "line9dd9c8dbbad90943f268442ab7e0",
  138. "target": "node7e97af0f55fb64276e067951dd9d"
  139. },
  140. "lineabc279d9be88eb98285132ba5b75": {
  141. "is_default": false,
  142. "source": "node947e423b22e49aeb77bc77528bc0",
  143. "id": "lineabc279d9be88eb98285132ba5b75",
  144. "target": "node2b6f3285cfb3961c72834bafbe1b"
  145. },
  146. "linef0deadac69f769440a1b0e32587e": {
  147. "is_default": false,
  148. "source": "node2bf42efcebe266706c3e21326dc4",
  149. "id": "linef0deadac69f769440a1b0e32587e",
  150. "target": "node2b6f3285cfb3961c72834bafbe1b"
  151. },
  152. "linec02d1e77e1076aa9c7c2c57238e4": {
  153. "is_default": false,
  154. "source": "node5310ec36c0364d3094d515f8f5ef",
  155. "id": "linec02d1e77e1076aa9c7c2c57238e4",
  156. "target": "node0863aab8325b84cfa3e5db52dc61"
  157. },
  158. "line7ed74aa679d19063b6d7037ce6db": {
  159. "is_default": false,
  160. "source": "node20cbeaa5379d08e8d8ed7bb44fdc",
  161. "id": "line7ed74aa679d19063b6d7037ce6db",
  162. "target": "node5310ec36c0364d3094d515f8f5ef"
  163. },
  164. "linec43c77f26af408748a9c194dbcfe": {
  165. "is_default": false,
  166. "source": "node7e97af0f55fb64276e067951dd9d",
  167. "id": "linec43c77f26af408748a9c194dbcfe",
  168. "target": "nodedb1478a75c13f90cc400f5379949"
  169. }
  170. },
  171. "gateways": {
  172. "node2b6f3285cfb3961c72834bafbe1b": {
  173. "incoming": ["linef0deadac69f769440a1b0e32587e", "lineabc279d9be88eb98285132ba5b75"],
  174. "outgoing": "line6ea858554964a04d868cead4435a",
  175. "type": "ConvergeGateway",
  176. "id": "node2b6f3285cfb3961c72834bafbe1b",
  177. "name": ""
  178. },
  179. "node0863aab8325b84cfa3e5db52dc61": {
  180. "outgoing": ["line7587c8804d34a091dae3d321f081", "line9dd9c8dbbad90943f268442ab7e0"],
  181. "incoming": "linec02d1e77e1076aa9c7c2c57238e4",
  182. "name": "",
  183. "type": "ExclusiveGateway",
  184. "conditions": {
  185. "line9dd9c8dbbad90943f268442ab7e0": {
  186. "evaluate": "${bk_timing} <= 10"
  187. },
  188. "line7587c8804d34a091dae3d321f081": {
  189. "evaluate": "${bk_timing} > 10"
  190. }
  191. },
  192. "id": "node0863aab8325b84cfa3e5db52dc61"
  193. },
  194. "node947e423b22e49aeb77bc77528bc0": {
  195. "incoming": ["linebf8f91c96a8f4eb3794ca5eb9881", "line24d28a3f9f80e23e4a4fab7c4ffd"],
  196. "outgoing": "lineabc279d9be88eb98285132ba5b75",
  197. "type": "ConvergeGateway",
  198. "id": "node947e423b22e49aeb77bc77528bc0",
  199. "name": ""
  200. },
  201. "node7e97af0f55fb64276e067951dd9d": {
  202. "incoming": "line9dd9c8dbbad90943f268442ab7e0",
  203. "outgoing": ["line429f64cdec5d20f368611e621ef5", "linec43c77f26af408748a9c194dbcfe"],
  204. "type": "ParallelGateway",
  205. "id": "node7e97af0f55fb64276e067951dd9d",
  206. "name": ""
  207. }
  208. },
  209. "constants": {
  210. "${bk_timing}": {
  211. "source_tag": "sleep_timer.bk_timing",
  212. "source_info": {
  213. "node5310ec36c0364d3094d515f8f5ef": ["bk_timing"],
  214. "node2bf42efcebe266706c3e21326dc4": ["bk_timing"],
  215. "nodedb1478a75c13f90cc400f5379949": ["bk_timing"]
  216. },
  217. "name": "timing",
  218. "index": 0,
  219. "custom_type": "",
  220. "value": "1",
  221. "show_type": "show",
  222. "source_type": "component_inputs",
  223. "key": "${bk_timing}",
  224. "desc": ""
  225. }
  226. },
  227. "outputs": ["${bk_timing}"]
  228. }
  229. }
  230. }

返回结果参数说明

字段 类型 说明
result bool true/false 操作是否成功
data dict result=true 时成功数据,详细信息请见下面说明
message string result=false 时错误信息

data

字段 类型 说明
task_id int 任务实例ID
task_url string 任务实例链接
pipeline_tree dict 任务实例树

data.pipeline_tree

所有节点 ID 被替换成唯一 ID 的任务实例树,格式同输入参数 pipeline_tree