查询tool列表
功能介绍
查询工具列表。
URI
GET /v1/tools
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
scope |
否 |
String |
工具使用范围,如果为空默认domain。范围为:
|
name |
否 |
String |
工具名称,适用于根据工具名称模糊查询工具ID场景。 |
whole_name |
否 |
String |
工具名称,适用于根据工具名称全匹配查询工具ID场景。 |
offset |
否 |
String |
查询起始偏移,默认为0。 |
limit |
否 |
String |
单次查询总量,和offset必须成对出现。 |
category |
否 |
String |
工具分类,适用于根据工具分类查询工具场景。 支持选项:
|
请求消息
请求示例
GET /v1/tools HTTP/1.1 Host:Host Server Content-Type:application/json
响应消息
响应参数
响应中含有多个工具结构,结构如表2所示。
响应示例
{
"tools": [
{
"tool": [
{
"guid": "da46b3dd-ffa9-d99b-95fa-824eeeceebea",
"name": "obs-util",
"description": "",
"project_id": "a573035fc*********8eaea580553667",
"version": "0.1.1",
"scope": "public",
"domain": "gcs_container",
"domain_id": "024014b87********30fbe790bda3e6",
"vendor": "基因容器团队",
"image": "obs-util:0.1.1",
"create_at": "2019-06-13T06:59:14Z",
"update_at": "2019-06-13T06:59:14Z",
"category": "environment",
"instruction": "",
"cpu": "2C",
"memory": "8G",
"command": "",
"logo": "",
"type": "container",
"enterprise_project":{"id": "ccc130bb-fa32-4af9-9370-7458470169cf", "name": "dts"}
}
]
}
],
"total": 1
}
请求失败的响应参数如表11所示。
