
# 查询workflow工具
#### 功能介绍
查询特定流程包含的工具。
#### URI
GET /v1/workflows/{workflow_id}/tools
表1参数说明 
| 参数          | 是否必选 | 参数类型   | 描述                                                                                     |
|:---|:---|:---|:---|
| workflow_id | 是    | String | 流程id，即[创建workflow](https://support.huaweicloud.com/api-gcs/gcs_api_005_0010.html)的返回值。 |
   
#### 请求消息
**请求示例**
```
GET /v1/workflows/0e7196ae-fdbf-84e4-d751-28554dcd7572/tools HTTP/1.1 
Host:Host Server   
Content-Type:application/json
```
#### 响应消息
**响应参数**
响应中结构如[表2]所示。
 表2流程工具结构 
| 参数    | 参数类型                                          | 描述          |
|:---|:---|:---|
| tools | [表3] | 流程 tools信息。 |
   
 表3工具结构 
| 参数          | 参数类型   | 描述            |
|:---|:---|:---|
| 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"
    }
  }
}
```
#### 状态码
- 正常 状态码如[表4]所示。
  
 表4状态码 
| 状态码 | 描述        |
|:---|:---|
| 200 | 流程中工具查询成功 |
   
- 异常 状态码如[6.3-状态码](https://support.huaweicloud.com/api-gcs/gcs_api_006_001.html)所示。
  
 
