查询已发布应用
功能介绍
查询已发布的应用。
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
GET /v1/{project_id}/app-groups/{app_group_id}/apps
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
项目ID。 |
|
app_group_id |
是 |
String |
应用组ID。 |
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
limit |
否 |
Integer |
单次查询的大小[1-100],默认值10。 |
|
offset |
否 |
Integer |
查询的偏移量,默认值0。 |
|
name |
否 |
String |
应用名称。 |
|
state |
否 |
String |
应用状态:
|
|
app_id |
否 |
String |
应用ID。 |
请求参数
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
X-Auth-Token |
否 |
String |
用户Token。 通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。 |
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
count |
Integer |
总数。 |
|
items |
Array of App objects |
查发布的应用列表。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
id |
String |
应用ID。 |
|
name |
String |
应用名称。 |
|
version |
String |
应用版本号。 |
|
command_param |
String |
启动命令行参数。 |
|
execute_path |
String |
执行路径。 |
|
work_path |
String |
应用工作目录。 |
|
icon_path |
String |
应用图标的路径。 |
|
icon_index |
Integer |
应用图标的索引。 |
|
description |
String |
应用描述。 |
|
app_group_id |
String |
应用组标识Id。 |
|
state |
String |
应用状态:
|
|
tenant_id |
String |
所在的租户ID。 |
|
publish_at |
String |
发布时间。 |
|
source_type |
Integer |
应用类型:
|
|
publisher |
String |
应用发布者。 |
|
icon_url |
String |
图标url。 |
|
publishable |
Boolean |
是否可发布应用:
|
|
sandbox_enable |
Boolean |
是否使用沙箱模式运行,取值为:
|
|
is_pre_boot |
Boolean |
是否开启应用预开,取值为:
|
|
app_extended_info |
AppExtendedInfo object |
自定义应用业务扩展信息。 |
状态码:400
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码,失败时返回。 |
|
error_msg |
String |
错误描述。 |
状态码:401
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码,失败时返回。 |
|
error_msg |
String |
错误描述。 |
状态码:403
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码,失败时返回。 |
|
error_msg |
String |
错误描述。 |
状态码:404
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码,失败时返回。 |
|
error_msg |
String |
错误描述。 |
状态码:405
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码,失败时返回。 |
|
error_msg |
String |
错误描述。 |
状态码:500
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码,失败时返回。 |
|
error_msg |
String |
错误描述。 |
状态码:503
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码,失败时返回。 |
|
error_msg |
String |
错误描述。 |
请求示例
GET /v1/a4da8115c9d8464ead3a38309130523f/app-groups/575772274859184144/apps?limit=10&offset=0
响应示例
状态码:200
成功响应。
{
"count" : 1,
"items" : [ {
"id" : "575772278315290631",
"name" : "应用name2531691942",
"version" : "V1.9202534394",
"command_param" : "yQhK1urkWx0XR8ILGdSeFvqJYyMHURzP",
"execute_path" : "C:\\Program Files (x86)\\Google应用\\appH7wqKcwpfk\\app0256aVegjU\\chrome.exe",
"work_path" : "C:\\Users\\zhangssan\\AppData应用\\Local\\Google\\app5P521tF0RMkLrihaO0DR",
"icon_path" : "C:\\Users\\zhangSan\\AppData\\Local应用\\Google\\appAXwSgdKA1FyDkbejBs2f.jpg",
"icon_index" : 1499,
"description" : "应用description256261241750805",
"app_group_id" : "575772274859184144",
"state" : "NORMAL",
"tenant_id" : "a4da8115c9d8464ead3a38309130523f",
"publish_at" : "2023-06-06T14:13:58.914Z",
"source_type" : 2,
"publisher" : "tPPgWwxy5T130lX",
"icon_url" : "",
"sandbox_enable" : false,
"is_pre_boot" : false
} ]
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
成功响应。 |
|
400 |
由于包含语法错误,当前请求无法被服务器理解。 |
|
401 |
鉴权失败。 |
|
403 |
没有操作权限。 |
|
404 |
找不到资源。 |
|
405 |
请求中指定的方法不被允许。 |
|
500 |
服务内部错误,具体返回错误码请参见错误码说明。 |
|
503 |
服务不可用。 |
错误码
请参见错误码。