查询tool
功能介绍
查询工具详情。
请求消息
请求示例
GET /v1/tools/d078e49c-124c-7706-bcbb-81885661f431 HTTP/1.1 Host:Host Server Content-Type:application/json
响应消息
响应参数
请求成功的响应参数如表2所示。
参数 | 参数类型 | 描述 |
|---|---|---|
guid | String | 工具ID。 |
name | String | 工具名称。 |
description | String | 工具描述。 |
project_id | String | 工具所属项目ID。 |
version | String | 工具版本。 |
scope | String | 工具可用范围,包括:
|
domain | String | 工具所属租户名称。 |
domain_id | String | 工具所属租户ID。 |
vendor | String | 工具创建者。 |
image | String | 工具包含镜像地址。 |
create_at | String | 工具创建时间。 |
update_at | String | 工具更新时间。 |
category | String | 工具分类。 |
instruction | String | 工具使用说明。 |
cpu | String | 使用工具,设置的虚机节点cpu限制。 |
memory | String | 使用工具,设置的虚机节点内存限制。 |
command | String | 使用工具,常用指令。 |
logo | String | 工具logo图片地址。 |
type | String | 工具类型。 |
enterprise_project | 表3 object | 企业项目信息 |
响应示例
{
"guid": "457fe199-1e81-6cd7-d1b2-6e25c13aeaa2",
"name": "nginx",
"description": "",
"project_id": "30a8c4d********18a9c45a87c3a854a",
"version": "latest",
"scope": "domain",
"domain": "gcs-user",
"domain_id": "bf8441478cb6********c4395d0b3e5",
"vendor": "gcs-user",
"image": "nginx:latest",
"create_at": "2018-08-20T08:32:29Z",
"update_at": "2018-08-20T08:32:29Z",
"category": "",
"instruction": "",
"cpu": "2C",
"memory": "8G",
"command": "",
"logo": "",
"type":"container",
"enterprise_project": {"id": "ccc130bb-fa32-4af9-9370-7458470169cf", "name": "dts"}
} 请求失败的响应参数如表9所示。

