文档首页 > > CLI参考> gcs 命令详情> gcs get tool

gcs get tool

分享
更新时间: 2019/04/22 10:06

功能

获取所有tool、指定tool或者名称符合条件的tool的信息。

语法

gcs get tool TOOLID [params]

参数说明

表1 参数说明

参数名称

是否必选

简写

描述

TOOLID

不涉及

需要获取的tool的ID。

--name

-n

需要获取的tool的名称,用于匹配符合条件的tool。

--exact

-e

查找名称时的匹配方式。指定--exact时,以完全匹配方式查找--name指定的tool。不指定是以部分匹配方式查找。

使用示例

  • 获取所有模板信息。
    gcs get tool
    {
      "tools": [
        {
          "tool": [
            {
              "guid": "04e20b56-962d-24d8-0eb6-2c43ce35c957",
              "name": "nextdenovo",
              "description": "",
              "project_id": "b95272738324466d8fd7e8cb7ae85afa",
              "version": "v000",
              "scope": "domain",
              "domain": "tsjsdbd",
              "domain_id": "1c905dc27dc94aed90e637a07456de69",
              "vendor": "tsjsdbd",
              "image": "100.125.0.198:20202/hubqgene/nextdenovo:v0",
              "create_at": "2019-01-22T03:15:49Z",
              "update_at": "2019-01-22T03:15:49Z",
              "category": "environment",
              "instruction": "",
              "cpu": "2C",
              "memory": "8G",
              "command": "",
              "logo": "",
              "type": "container"
            },
            {
              "guid": "3a063961-27f5-8e8e-3200-4a45b744feaf",
              "name": "nextdenovo",
              "description": "",
              "project_id": "b95272738324466d8fd7e8cb7ae85afa",
              "version": "v0",
              "scope": "domain",
              "domain": "tsjsdbd",
              "domain_id": "1c905dc27dc94aed90e637a07456de69",
              "vendor": "huboqiang",
              "image": "100.125.0.198:20202/hubqgene/nextdenovo:v0",
              "create_at": "2019-01-09T05:40:15Z",
              "update_at": "2019-01-09T05:40:15Z",
              "category": "others",
              "instruction": "",
              "cpu": "2C",
              "memory": "8G",
              "command": "",
              "logo": "",
              "type": "container"
            }
          ]
        },
    ...
  • 获取指定tool的信息
    gcs get tool 04e20b56-962d-24d8-0eb6-2c43ce35c957
    {
      "guid": "04e20b56-962d-24d8-0eb6-2c43ce35c957",
      "name": "nextdenovo",
      "description": "",
      "project_id": "b95272738324466d8fd7e8cb7ae85afa",
      "version": "v000",
      "scope": "domain",
      "domain": "tsjsdbd",
      "domain_id": "1c905dc27dc94aed90e637a07456de69",
      "vendor": "tsjsdbd",
      "image": "100.125.0.198:20202/hubqgene/nextdenovo:v0",
      "create_at": "2019-01-22T03:15:49Z",
      "update_at": "2019-01-22T03:15:49Z",
      "category": "environment",
      "instruction": "",
      "cpu": "2C",
      "memory": "8G",
      "command": "",
      "logo": "",
      "type": "container"
    }
  • 获取匹配某个名称的tool的信息
    gcs get tool --name bwa
    {
      "tools": [
        {
          "tool": [
            {
              "guid": "cafe1800-58f7-44e1-b73e-e26e29d68477",
              "name": "bwa-sam-sambamba-bed",
              "description": "",
              "project_id": "b95272738324466d8fd7e8cb7ae85afa",
              "version": "v0",
              "scope": "domain",
              "domain": "tsjsdbd",
              "domain_id": "1c905dc27dc94aed90e637a07456de69",
              "vendor": "tsjsdbd",
              "image": "100.125.0.198:20202/hubqgene/bwa-sam-sambamba-bed:v0",
              "create_at": "2018-12-13T08:15:43Z",
              "update_at": "2018-12-13T08:15:43Z",
              "category": "basic",
              "instruction": "",
              "cpu": "2C",
              "memory": "8G",
              "command": "",
              "logo": "",
              "type": "container"
            }
          ]
        }
      ],
      "total": 1
    }
分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区