查询workflow工具
功能介绍
查询特定流程包含的工具。
URI
GET /v1/workflows/{workflow_id}/tools
| 参数 | 是否必选 | 参数类型 | 描述 | 
|---|---|---|---|
| workflow_id | 是 | String | 流程id,即创建workflow的返回值。 | 
请求消息
请求示例
GET /v1/workflows/0e7196ae-fdbf-84e4-d751-28554dcd7572/tools HTTP/1.1 Host:Host Server Content-Type:application/json
响应消息
响应参数
响应中结构如表2所示。
| 参数 | 参数类型 | 描述 | 
|---|---|---|
| command | String | 直接写要执行的命令。 | 
| cpu | String | 工具默认需要的cpu。 | 
| description | String | 工具描述信息。 | 
| image | String | 工具镜像。 | 
| memory | String | 工具默认需要memory。 | 
| name | String | 工具名称。 | 
| scope | String | 工具范围。 | 
| type | String | 工具类型。 | 
| version | String | 工具版本。 | 
响应示例
{
  "tools": {
    "nginx:latest": {
      "command": "your command here",
      "cpu": "2C",
      "description": "",
      "image": "nginx:latest",
      "memory": "8G",
      "name": "nginx",
      "scope": "domain",
      "type": "container",
      "version": "latest"
    }
  }
}
  
  