diff --git a/paas-ce/paas/esb/components/confapis/sops/apidocs/en/create_task.md b/paas-ce/paas/esb/components/confapis/sops/apidocs/en/create_task.md index e0fed07c4..a24fc904c 100644 --- a/paas-ce/paas/esb/components/confapis/sops/apidocs/en/create_task.md +++ b/paas-ce/paas/esb/components/confapis/sops/apidocs/en/create_task.md @@ -67,7 +67,7 @@ constant value, the type of value should be same with data from API[get_template } } }, - "stage_name": "步骤1", + "stage_name": "stage1", "can_retry": true, "isSkipped": true, "type": "ServiceActivity", @@ -78,13 +78,13 @@ constant value, the type of value should be same with data from API[get_template "node880ded556c6c3c269be3cedc64b6": { "outgoing": "line490caa49d2a03e64829693281032", "incoming": "lineb83161d6e0593ad68d9ec73a961b", - "name": "暂停", + "name": "pause", "error_ignorable": false, "component": { "code": "pause_node", "data": {} }, - "stage_name": "步骤1", + "stage_name": "stage1", "can_retry": true, "isSkipped": true, "type": "ServiceActivity", @@ -168,8 +168,8 @@ constant value, the type of value should be same with data from API[get_template "constants": {}, "location": [ { - "stage_name": "步骤1", - "name": "暂停", + "stage_name": "stage1", + "name": "pause", "y": 135, "x": 300, "type": "tasknode", @@ -182,7 +182,7 @@ constant value, the type of value should be same with data from API[get_template "id": "node5c48f37aa9f0351e8b43ab6a2295" }, { - "stage_name": "步骤1", + "stage_name": "stage", "name": "timing", "y": 135, "x": 595, diff --git a/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_common_template_info.md b/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_common_template_info.md new file mode 100644 index 000000000..6c25e0191 --- /dev/null +++ b/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_common_template_info.md @@ -0,0 +1,236 @@ +### Functional description + +Query common flow template details + +### Request Parameters + +{{ common_args_desc }} + +#### Interface Parameters + +| Field | Type | Required | Description | +|---------------|------------|--------|---------------| +| template_id | string | YES | the task ID | + +### Request Parameters Example + +``` +{ + "bk_app_code": "esb_test", + "bk_app_secret": "xxx", + "bk_token": "xxx", + "template_id": "30", +} +``` + +### Return Result Example + +``` +{ + "result": true, + "data": { + "category": "Other", + "edit_time": "2018-04-27 16:24:24 +0800", + "create_time": "2018-04-16 21:43:15 +0800", + "name": "new20180416213944", + "creator": "admin", + "pipeline_tree": { + "activities": { + "631b6576cc5dfbdcaa4f510ce88a7e67": { + "outgoing": "44ab36ebf4cf119edaf2d20401da87e4", + "incoming": "fb2f3a8b533ca5c67e2440b4164f7632", + "name": "node_1", + "error_ignorable": false, + "component": { + "code": "job_fast_execute_script", + "data": { + "account": { + "hook": false, + "value": "root" + }, + "ip_list": { + "hook": false, + "value": "127.0.0.1" + }, + "script_timeout": { + "hook": true, + "value": "${script_timeout}" + }, + "content": { + "hook": false, + "value": "${content}" + }, + "script_param": { + "hook": false, + "value": "${params}" + }, + "script_type": { + "hook": true, + "value": "${script_type}" + } + } + }, + "optional": false, + "type": "ServiceActivity", + "id": "631b6576cc5dfbdcaa4f510ce88a7e67", + "loop": null + } + }, + "end_event": { + "type": "EmptyEndEvent", + "outgoing": "", + "incoming": "44ab36ebf4cf119edaf2d20401da87e4", + "id": "60c81e383d048d8a3c574d3436e1b82c", + "name": "" + }, + "outputs": [], + "flows": { + "fb2f3a8b533ca5c67e2440b4164f7632": { + "is_default": false, + "source": "48afea1016ab70ee37179fa0eb1e1a14", + "id": "fb2f3a8b533ca5c67e2440b4164f7632", + "target": "631b6576cc5dfbdcaa4f510ce88a7e67" + }, + "44ab36ebf4cf119edaf2d20401da87e4": { + "is_default": false, + "source": "631b6576cc5dfbdcaa4f510ce88a7e67", + "id": "44ab36ebf4cf119edaf2d20401da87e4", + "target": "60c81e383d048d8a3c574d3436e1b82c" + } + }, + "start_event": { + "type": "EmptyStartEvent", + "outgoing": "fb2f3a8b533ca5c67e2440b4164f7632", + "incoming": "", + "id": "48afea1016ab70ee37179fa0eb1e1a14", + "name": "" + }, + "constants": { + "${script_type}": { + "source_tag": "job_fast_execute_script.script_type", + "source_info": { + "631b6576cc5dfbdcaa4f510ce88a7e67": [ + "script_type" + ] + }, + "name": "script_type", + "index": 0, + "custom_type": "radio", + "value": "4", + "show_type": "show", + "source_type": "component_inputs", + "key": "${script_type}", + "validation": "^.*$", + "desc": "" + }, + "${content}": { + "source_tag": "", + "source_info": {}, + "name": "content", + "index": 2, + "custom_type": "textarea", + "value": "", + "show_type": "show", + "source_type": "custom", + "key": "${content}", + "desc": "" + }, + "${script_timeout}": { + "source_tag": "job_fast_execute_script.script_timeout", + "source_info": { + "631b6576cc5dfbdcaa4f510ce88a7e67": [ + "script_timeout" + ] + }, + "name": "script_timeout", + "index": 1, + "custom_type": "input", + "value": "", + "show_type": "show", + "source_type": "component_inputs", + "key": "${script_timeout}", + "validation": "^.*$", + "desc": "" + }, + "${params}": { + "source_tag": "", + "source_info": {}, + "name": "params", + "index": 3, + "custom_type": "input", + "value": "", + "show_type": "show", + "source_type": "custom", + "key": "${params}", + "desc": "" + } + }, + "gateways": {} + }, + "id": 30, + "editor": "admin" + }, +} +``` + +### Return Result Description + +| Field | Type | Description | +|-----------|----------|-----------| +| result | bool | true or false, indicate success or failure | +| data | dict | data returned when result is true, details are described below | +| message | string | error message returned when result is false | + +#### data + +| Field | Type | Description | +|-----------|----------|-----------| +| id | int | flow template ID | +| name | string | flow template name | +| category | string | flow type,the value is described below | +| creator | string | person who created this flow template | +| create_time | string | datetime when this flow template created | +| editor | string or null | person who edited this flow template last | +| edit_time | string | datetime when this flow template edited | +| pipeline_tree | dict | template tree info, details are described below | + +#### data.category + +| Value | Description | +|--------------|----------| +| OpsTools | operation tools | +| MonitorAlarm | monitor alarm | +| ConfManage | configuration management | +| DevTools | development tools | +| EnterpriseIT | enterprise IT | +| OfficeApp | official APPs | +| Other | other | + +#### data.pipeline_tree + +| Field | Type | Description | +|-----------|----------|-----------| +| start_event | dict | start node | +| end_event | dict | end node | +| activities | dict | task node(atoms or subprocess)info | +| gateways | dict | gateways(parallel gateway、exclusive gateway、exclusive gateway)info | +| flows | dict | sequenceFlow(the line between nodes)info | +| constants | dict | global variables, details are described below | +| outputs | list | outputs info, indicate outputs field of global variables| + +#### data.pipeline_tree.constants.KEY + +KEY, the format is like ${key} + +#### data.pipeline_tree.constants.VALUE + +| Field | Type | Description | +|-----------|----------|-----------| +| key | string | same with KEY | +| name | string | name | +| index | int | display order at the front end | +| desc | string | description | +| source_type | string | source of variable, custom mean manual variable, component_inputs means variables comes from task node inputs parameters, component_outputs means variables comes from task node outputs parameters | +| custom_type | string | custom type, which is not empty when source_type is custom, the value is input ,or textarea, or datetime, or int | +| source_tag | string | source tag and atom info, which is not empty when source_type is component_inputs or component_outputs | +| source_info | dict | source info about task node ID | diff --git a/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_common_template_list.md b/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_common_template_list.md new file mode 100644 index 000000000..bcd8ade11 --- /dev/null +++ b/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_common_template_list.md @@ -0,0 +1,81 @@ +### Functional description + +Query common flow templates list + +### Request Parameters + +{{ common_args_desc }} + +#### Interface Parameters + +None + +### Request Parameters Example + +``` +{ + "bk_app_code": "esb_test", + "bk_app_secret": "xxx", + "bk_token": "xxx", +} +``` + +### Return Result Example + +``` +{ + "data": [ + { + "category": "Other", + "name": "flow2", + "creator": "admin", + "edit_time": "2019-07-15 15:13:22 +0800", + "create_time": "2019-07-15 15:13:22 +0800", + "editor": "admin", + "id": 10014 + }, + { + "category": "Other", + "name": "flow1", + "creator": "admin", + "edit_time": "2019-07-15 15:13:22 +0800", + "create_time": "2019-07-15 15:13:22 +0800", + "editor": "admin", + "id": 10013 + }, + ], + "result": true +} +``` + +### Return Result Description + +| Field | Type | Description | +|-----------|----------|-----------| +| result | bool | true or false, indicate success or failure | +| data | dict | data returned when result is true, details are described below | +| message | string | error message returned when result is false | + +#### data + +| Field | Type | Description | +|-----------|----------|-----------| +| id | int | flow template ID | +| name | string | flow template name | +| category | string | template type,the value is described below | +| creator | string | person who created this flow template | +| create_time | string | datetime when this flow template created | +| editor | string or null | person who edited this flow template last | +| edit_time | string | datetime when this flow template edited | + +#### data.category + +| Value | Description | +|--------------|----------| +| OpsTools | operation tools | +| MonitorAlarm | monitor alarm | +| ConfManage | configuration management | +| DevTools | development tools | +| EnterpriseIT | enterprise IT | +| OfficeApp | official APPs | +| Other | other | diff --git a/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_task_detail.md b/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_task_detail.md index e7d7aea33..8fbff1292 100644 --- a/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_task_detail.md +++ b/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_task_detail.md @@ -129,7 +129,7 @@ Query a task execution details } } }, - "stage_name": "步骤1", + "stage_name": "stage1", "can_retry": true, "isSkipped": true, "type": "ServiceActivity", @@ -140,13 +140,13 @@ Query a task execution details "node880ded556c6c3c269be3cedc64b6": { "outgoing": "line490caa49d2a03e64829693281032", "incoming": "lineb83161d6e0593ad68d9ec73a961b", - "name": "暂停", + "name": "pause", "error_ignorable": false, "component": { "code": "pause_node", "data": {} }, - "stage_name": "步骤1", + "stage_name": "stage1", "can_retry": true, "isSkipped": true, "type": "ServiceActivity", @@ -230,8 +230,8 @@ Query a task execution details "constants": {}, "location": [ { - "stage_name": "步骤1", - "name": "暂停", + "stage_name": "stage1", + "name": "pause", "y": 135, "x": 300, "type": "tasknode", @@ -244,7 +244,7 @@ Query a task execution details "id": "node5c48f37aa9f0351e8b43ab6a2295" }, { - "stage_name": "步骤1", + "stage_name": "stage1", "name": "timing", "y": 135, "x": 595, diff --git a/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_task_node_detail.md b/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_task_node_detail.md index 4b6982d87..5ad510331 100644 --- a/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_task_node_detail.md +++ b/paas-ce/paas/esb/components/confapis/sops/apidocs/en/get_task_node_detail.md @@ -118,7 +118,7 @@ Query a task node execution details #### data.histories[] -| 名称 | 类型 | 说明 | +| Field | Type | Description | | ------------ | ---------- | ------------------------------ | | start_time | string | start time | | finish_time | string | finish time | diff --git a/paas-ce/paas/esb/components/confapis/sops/apidocs/en/node_callback.md b/paas-ce/paas/esb/components/confapis/sops/apidocs/en/node_callback.md index 2bcc5a1f9..5b27fd191 100644 --- a/paas-ce/paas/esb/components/confapis/sops/apidocs/en/node_callback.md +++ b/paas-ce/paas/esb/components/confapis/sops/apidocs/en/node_callback.md @@ -18,18 +18,15 @@ callback specific node ### Request Parameters Example ``` -import requests -kwargs = { +{ "app_code": "app_code", "app_secret": "app_secret", "access_token": "access_token", "bk_biz_id": "2", "task_id": "10", "node_id": "node0df0431f8f553925af01a94854bd", - "callback_data": {"data": "data"}, + "callback_data": {"data": "data"} } -response = requests.get("http://{stageVariables.domain}/apigw/node_callback/10/2/", kwargs) -result = response.json() ``` ### Return Result Example diff --git a/paas-ce/paas/esb/components/confapis/sops/apidocs/zh_hans/get_common_template_info.md b/paas-ce/paas/esb/components/confapis/sops/apidocs/zh_hans/get_common_template_info.md new file mode 100644 index 000000000..1ff20c2b2 --- /dev/null +++ b/paas-ce/paas/esb/components/confapis/sops/apidocs/zh_hans/get_common_template_info.md @@ -0,0 +1,236 @@ +### 功能描述 + +查询公共流程模板详情 + +### 请求参数 + +{{ common_args_desc }} + +#### 接口参数 + +| 字段 | 类型 | 必选 | 描述 | +|---------------|------------|--------|---------------| +| template_id | string | 是 | 模板ID | + +### 请求参数示例 + +``` +{ + "bk_app_code": "esb_test", + "bk_app_secret": "xxx", + "bk_token": "xxx", + "template_id": "30", +} +``` + +### 返回结果示例 + +``` +{ + "result": true, + "data": { + "category": "Other", + "edit_time": "2018-04-27 16:24:24 +0800", + "create_time": "2018-04-16 21:43:15 +0800", + "name": "new20180416213944", + "creator": "admin", + "pipeline_tree": { + "activities": { + "631b6576cc5dfbdcaa4f510ce88a7e67": { + "outgoing": "44ab36ebf4cf119edaf2d20401da87e4", + "incoming": "fb2f3a8b533ca5c67e2440b4164f7632", + "name": "节点_1", + "error_ignorable": false, + "component": { + "code": "job_fast_execute_script", + "data": { + "account": { + "hook": false, + "value": "root" + }, + "ip_list": { + "hook": false, + "value": "127.0.0.1" + }, + "script_timeout": { + "hook": true, + "value": "${script_timeout}" + }, + "content": { + "hook": false, + "value": "${content}" + }, + "script_param": { + "hook": false, + "value": "${params}" + }, + "script_type": { + "hook": true, + "value": "${script_type}" + } + } + }, + "optional": false, + "type": "ServiceActivity", + "id": "631b6576cc5dfbdcaa4f510ce88a7e67", + "loop": null + } + }, + "end_event": { + "type": "EmptyEndEvent", + "outgoing": "", + "incoming": "44ab36ebf4cf119edaf2d20401da87e4", + "id": "60c81e383d048d8a3c574d3436e1b82c", + "name": "" + }, + "outputs": [], + "flows": { + "fb2f3a8b533ca5c67e2440b4164f7632": { + "is_default": false, + "source": "48afea1016ab70ee37179fa0eb1e1a14", + "id": "fb2f3a8b533ca5c67e2440b4164f7632", + "target": "631b6576cc5dfbdcaa4f510ce88a7e67" + }, + "44ab36ebf4cf119edaf2d20401da87e4": { + "is_default": false, + "source": "631b6576cc5dfbdcaa4f510ce88a7e67", + "id": "44ab36ebf4cf119edaf2d20401da87e4", + "target": "60c81e383d048d8a3c574d3436e1b82c" + } + }, + "start_event": { + "type": "EmptyStartEvent", + "outgoing": "fb2f3a8b533ca5c67e2440b4164f7632", + "incoming": "", + "id": "48afea1016ab70ee37179fa0eb1e1a14", + "name": "" + }, + "constants": { + "${script_type}": { + "source_tag": "job_fast_execute_script.script_type", + "source_info": { + "631b6576cc5dfbdcaa4f510ce88a7e67": [ + "script_type" + ] + }, + "name": "脚本类型", + "index": 0, + "custom_type": "radio", + "value": "4", + "show_type": "show", + "source_type": "component_inputs", + "key": "${script_type}", + "validation": "^.*$", + "desc": "" + }, + "${content}": { + "source_tag": "", + "source_info": {}, + "name": "内容", + "index": 2, + "custom_type": "textarea", + "value": "", + "show_type": "show", + "source_type": "custom", + "key": "${content}", + "desc": "" + }, + "${script_timeout}": { + "source_tag": "job_fast_execute_script.script_timeout", + "source_info": { + "631b6576cc5dfbdcaa4f510ce88a7e67": [ + "script_timeout" + ] + }, + "name": "超时时间", + "index": 1, + "custom_type": "input", + "value": "", + "show_type": "show", + "source_type": "component_inputs", + "key": "${script_timeout}", + "validation": "^.*$", + "desc": "" + }, + "${params}": { + "source_tag": "", + "source_info": {}, + "name": "参数", + "index": 3, + "custom_type": "input", + "value": "", + "show_type": "show", + "source_type": "custom", + "key": "${params}", + "desc": "" + } + }, + "gateways": {} + }, + "id": 30, + "editor": "admin" + }, +} +``` + +### 返回结果参数说明 + +| 字段 | 类型 | 描述 | +|-----------|----------|-----------| +| result | bool | true/false 查询成功与否 | +| data | dict | result=true 时模板详情,详细信息见下面说明 | +| message | string | result=false 时错误信息 | + +#### data + +| 字段 | 类型 | 描述 | +|-----------|----------|-----------| +| id | int | 模板ID | +| name | string | 模板名称 | +| category | string | 模板分类,分类信息见下面说明 | +| creator | string | 模板创建人 | +| create_time | string | 模板创建时间 | +| editor | string 或者 null | 模板编辑人 | +| edit_time | string | 模板最新编辑时间 | +| pipeline_tree | dict | 模板任务树信息,详细信息见下面说明 | + +#### data.category + +| 返回值 | 描述 | +|--------------|----------| +| OpsTools | 运维工具 | +| MonitorAlarm | 监控告警 | +| ConfManage | 配置管理 | +| DevTools | 开发工具 | +| EnterpriseIT | 企业IT | +| OfficeApp | 办公应用 | +| Other | 其它 | + +#### data.pipeline_tree + +| 字段 | 类型 | 描述 | +|-----------|----------|-----------| +| start_event | dict | 开始节点信息 | +| end_event | dict | 结束节点信息 | +| activities | dict | 任务节点(原子和子流程)信息 | +| gateways | dict | 网关节点(并行网关、分支网关和汇聚网关)信息 | +| flows | dict | 顺序流(节点连线)信息 | +| constants | dict | 全局变量信息,详情见下面 | +| outputs | list | 模板输出信息,标记 constants 中的输出字段 | + +#### data.pipeline_tree.constants.KEY + +全局变量 KEY,${key} 格式 + +#### data.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 时有效,变量的来源原子 | +| source_info | dict | source_type=component_inputs或component_outputs 时有效,变量的来源节点信息 | diff --git a/paas-ce/paas/esb/components/confapis/sops/apidocs/zh_hans/get_common_template_list.md b/paas-ce/paas/esb/components/confapis/sops/apidocs/zh_hans/get_common_template_list.md new file mode 100644 index 000000000..2c624e31b --- /dev/null +++ b/paas-ce/paas/esb/components/confapis/sops/apidocs/zh_hans/get_common_template_list.md @@ -0,0 +1,81 @@ +### 功能描述 + +查询公共模板列表 + +### 请求参数 + +{{ common_args_desc }} + +#### 接口参数 + +无 + +### 请求参数示例 + +``` +{ + "bk_app_code": "esb_test", + "bk_app_secret": "xxx", + "bk_token": "xxx", +} +``` + +### 返回结果示例 + +``` +{ + "data": [ + { + "category": "Other", + "name": "父流程", + "creator": "admin", + "edit_time": "2019-07-15 15:13:22 +0800", + "create_time": "2019-07-15 15:13:22 +0800", + "editor": "admin", + "id": 10014 + }, + { + "category": "Other", + "name": "子流程", + "creator": "admin", + "edit_time": "2019-07-15 15:13:22 +0800", + "create_time": "2019-07-15 15:13:22 +0800", + "editor": "admin", + "id": 10013 + }, + ], + "result": true +} +``` + +### 返回结果参数说明 + +| 字段 | 类型 | 描述 | +|-----------|----------|-----------| +| result | bool | true/false 查询成功与否 | +| data | list | result=true时模板列表,item 信息见下面说明 | +| message | string | result=false时错误信息 | + +#### data + +| 字段 | 类型 | 描述 | +|-----------|----------|-----------| +| id | int | 模板ID | +| name | string | 模板名称 | +| category | string | 模板分类,分类信息见下面说明 | +| creator | string | 模板创建人 | +| create_time | string | 模板创建时间 | +| editor | string 或者 null | 模板编辑人 | +| edit_time | string | 模板最新编辑时间 | + +#### data.category + +| 返回值 | 描述 | +|--------------|----------| +| OpsTools | 运维工具 | +| MonitorAlarm | 监控告警 | +| ConfManage | 配置管理 | +| DevTools | 开发工具 | +| EnterpriseIT | 企业IT | +| OfficeApp | 办公应用 | +| Other | 其它 | diff --git a/paas-ce/paas/esb/components/confapis/sops/apidocs/zh_hans/node_callback.md b/paas-ce/paas/esb/components/confapis/sops/apidocs/zh_hans/node_callback.md index b8e2a047f..68a0ffaa8 100644 --- a/paas-ce/paas/esb/components/confapis/sops/apidocs/zh_hans/node_callback.md +++ b/paas-ce/paas/esb/components/confapis/sops/apidocs/zh_hans/node_callback.md @@ -18,18 +18,15 @@ ### 请求参数示例 ``` -import requests -kwargs = { +{ "app_code": "app_code", "app_secret": "app_secret", "access_token": "access_token", "bk_biz_id": "2", "task_id": "10", "node_id": "node0df0431f8f553925af01a94854bd", - "callback_data": {"data": "data"}, + "callback_data": {"data": "data"} } -response = requests.get("http://{stageVariables.domain}/apigw/node_callback/10/2/", kwargs) -result = response.json() ``` ### 返回结果示例 diff --git a/paas-ce/paas/esb/components/confapis/sops/sops.yaml b/paas-ce/paas/esb/components/confapis/sops/sops.yaml index 140094eff..c8fbe4f49 100644 --- a/paas-ce/paas/esb/components/confapis/sops/sops.yaml +++ b/paas-ce/paas/esb/components/confapis/sops/sops.yaml @@ -10,6 +10,16 @@ dest_path: /o/bk_sops/apigw/get_template_list/{bk_biz_id}/ dest_http_method: GET +- path: /v2/sops/get_common_template_list/ + name: get_common_template_list + label: 查询公共模板列表 + label_en: Query common templates list + method: GET + api_type: query + comp_codename: generic.v2.sops.sops_component + dest_path: /o/bk_sops/apigw/get_common_template_list/ + dest_http_method: GET + - path: /v2/sops/get_template_info/ name: get_template_info label: 查询单个模板详情 @@ -20,6 +30,16 @@ dest_path: /o/bk_sops/apigw/get_template_info/{template_id}/{bk_biz_id}/ dest_http_method: GET +- path: /v2/sops/get_common_template_info/ + name: get_common_template_info + label: 查询单个公共流程模板详情 + label_en: Query common template detail + method: GET + api_type: query + comp_codename: generic.v2.sops.sops_component + dest_path: /o/bk_sops/apigw/get_common_template_info/{template_id}/ + dest_http_method: GET + - path: /v2/sops/create_task/ name: create_task label: 通过流程模板新建任务