
# gcs get tool
#### 功能
获取所有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",
            "enterprise_project": {
              "id": "ccc130bb-fa32-4af9-9370-7458470169cf",
              "name": "dts"
            }
          },
          {
            "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",
            "enterprise_project": {
              "id": "ccc130bb-fa32-4af9-9370-7458470169cf",
              "name": "dts"
            }
          }
        ]
      },
  ...
  ```
  
- 获取指定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",
    "enterprise_project": {
      "id": "ccc130bb-fa32-4af9-9370-7458470169cf",
      "name": "dts"
    }
  }
  ```
  
- 获取匹配某个名称的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",
            "enterprise_project": {
              "id": "ccc130bb-fa32-4af9-9370-7458470169cf",
              "name": "dts"
            }
          }
        ]
      }
    ],
    "total": 1
  }
  ```
  
 
