更新时间:2025-04-09 GMT+08:00
分享

查询应用列表

功能介绍

查询应用列表

调试

您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。

URI

GET /v2/{project_id}/edge-apps

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目ID。获取方法请参见 获取项目ID

表2 Query参数

参数

是否必选

参数类型

描述

edge_app_id

String

应用ID搜索关键字

offset

Integer

查询的起始位置,取值范围为非负整数,默认为0。

limit

Integer

每页记录数,默认值为10,取值区间为1-1000。

app_type

String

应用id搜索关键字

function_type

String

功能类型

function_types

Array of strings

功能类型列表

protocol

String

驱动协议类型搜索关键字

请求参数

表3 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

用户Token。通过调用IAM服务 获取IAM用户Token接口获取,接口返回的响应消息头中“X-Subject-Token”就是需要获取的用户Token。简要的获取方法样例请参见 Token认证

响应参数

状态码:200

表4 响应Body参数

参数

参数类型

描述

count

Integer

总记录数

page_info

PageInfoDTO object

分页信息

edge_apps

Array of QueryApplicationBriefResponseDTO objects

每页记录数

表5 PageInfoDTO

参数

参数类型

描述

offset

Integer

页码

limit

Integer

每页记录数

表6 QueryApplicationBriefResponseDTO

参数

参数类型

描述

edge_app_id

String

应用id

description

String

应用描述

create_time

String

创建时间

update_time

String

最后一次修改时间

last_published_version

String

最新发布版本

app_type

String

应用类型SYSTEM_REQUIRED|SYSTEM_OPTIONAL|USER

function_type

String

应用类型DATA_PROCESSING|PROTOCOL_PARSING

deploy_type

String

部署类型docker|process

protocol

String

驱动协议类型OPCUA|Modbus-TCP

edge_app_name

String

应用名称

delivered_app

Boolean

是否是下发到端侧网关上应用。

请求示例

GET https://{endpoint}/v2/{project_id}/edge-apps

响应示例

状态码:200

OK

{
  "count" : 0,
  "page_info" : {
    "offset" : 0,
    "limit" : 0
  },
  "edge_apps" : [ {
    "edge_app_id" : "string",
    "description" : "string",
    "create_time" : "string",
    "update_time" : "string",
    "last_published_version" : "string",
    "app_type" : "string",
    "function_type" : "string",
    "protocol" : "string",
    "edge_app_name" : "string",
    "deploy_type" : "string"
  } ]
}

状态码

状态码

描述

200

OK

401

Bad Request

500

Internal Server Error

错误码

请参见错误码

相关文档