文档首页> 基因容器 GCS> API参考> API> Workflow> 查询workflow工具
更新时间:2022-06-15 GMT+08:00
分享

查询workflow工具

功能介绍

查询特定流程包含的工具。

URI

GET /v1/workflows/{workflow_id}/tools

表1 参数说明

参数

是否必选

参数类型

描述

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所示。

表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

流程中工具查询成功

分享:

    相关文档

    相关产品