查看实例化应用列表
功能介绍
查看实例化应用列表。
URI
GET /v1/{project_id}/eds/instances/{instance_id}/connectors/{connector_id}/applications
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
项目ID。 获取方法请参考获取项目ID。 |
|
instance_id |
是 |
String |
实例ID,开通的交换数据平台实例ID。 获取方法请参考获取实例ID。 |
|
connector_id |
是 |
String |
连接器ID,指定交换数据平台下连接器的ID。 获取方法请参考获取连接器ID。 |
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
offset |
否 |
Integer |
偏移量,表示从此偏移量开始查询,offset大于等于0。
|
|
limit |
否 |
Integer |
每页显示条目数量,最大数量999,超过999后只返回999(防止单页返回过大)。
|
|
app_name |
否 |
String |
实例化APP名称。 |
|
ids |
否 |
Array |
实例化APP ID。 |
|
operations |
否 |
Array |
执行动作过滤。 枚举值:
|
|
status |
否 |
Array |
状态:
枚举值:
|
请求参数
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
X-Auth-Token |
是 |
String |
用户Token,通过调用IAM服务“获取用户Token”接口获取(响应消息头中X-Subject-Token的值)。 |
响应参数
状态码: 200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
data |
Array of AppInfo objects |
返回数据。 |
|
total |
Long |
总数。 |
|
error_code |
String |
错误码。 |
|
error_msg |
String |
错误描述。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
type |
String |
实例化的应用类型:
枚举值:
|
|
name |
String |
应用名称。 |
|
id |
String |
应用ID。 |
|
temp_id |
String |
应用模板ID。 |
|
temp_name |
String |
应用模板名称。 |
|
natives |
Boolean |
是否内置应用
|
|
operation |
Array of strings |
应用操作。 枚举值:
|
|
description |
String |
应用描述。 |
|
icon |
String |
应用图标。 |
|
connection |
DataSourceConnect object |
应用连接信息。 |
|
create_user_id |
String |
创建人ID。 |
|
create_user_name |
String |
创建人名称。 |
|
create_date |
String |
创建时间。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
datasource_type |
String |
数据源类型。 枚举值:
|
|
connection |
DataSourceConnection object |
数据源连接信息。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
endpoint |
String |
OBS访问地址。 参数校验规则:最小长度1,最大长度1000,匹配域名正则表达式。 |
|
bucket_name |
String |
OBS名称。 参数校验规则:最小长度1,最大长度100,匹配字母、数字、下划线、.及-。 |
|
access_key |
String |
OBS永久访问密钥。 参数校验规则:最大长度1024。 |
|
secret_key |
String |
OBS永久密钥。 参数校验规则:最大长度1024。 |
|
path |
String |
OBS访问路径。 参数校验规则:最小长度1,最大长度100,只能包含英文字母、数字、下划线、中文、/、\及-。 |
状态码: 400
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
data |
Object |
返回数据。 |
|
total |
Long |
总数。 |
|
error_code |
String |
错误码。 |
|
error_msg |
String |
错误描述。 |
状态码: 500
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
data |
Object |
返回数据。 |
|
total |
Long |
总数。 |
|
error_code |
String |
错误码。 |
|
error_msg |
String |
错误描述。 |
请求示例
查看实例化应用列表。
GET https://{endpoint}/v1/{project_id}/eds/instances/{instance_id}/connectors/{connector_id}/applications?offset=0&limit=10&operations=DOWNLOAD
响应示例
状态码: 200
OK
- 查看实例化应用列表。
{ "data" : [ { "type" : "UNSTRUCTURED", "name" : "OBS4", "id" : "70d5c8d0-fe76-4cf0-9d30-***********", "temp_id" : "335ac118-758e-4324-9d41-***********", "temp_name" : "文档下载", "natives" : false, "operation" : [ "DOWNLOAD" ], "description" : "abc", "icon" : "icon: data:image/png;base64,iVBORw0KGgoAAAAN*** // ***代表省略的图标编码", "connection" : { "datasource_type" : "OBS", "connection" : null }, "create_user_id" : "test-***********", "create_user_name" : "test-***********", "create_date" : "2023-11-21T16:50:53Z" } ], "total" : 1, "error_code" : null, "error_msg" : null }
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
OK |
|
400 |
Bad Request |
|
500 |
Internal Server Error |
错误码
请参见错误码。