列出¶
GET /api/v1/outer_function/list
概述¶
列出 OpenAPI 允许执行的 Func 函数列表
Query 请求参数¶
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
_fuzzySearch | string | 模糊搜索查询字段 例子: 超级 VIP 模板 允许为空: False |
|
funcId | string | 根据函数 Id 搜索 例子: 超级 VIP 模板 允许为空: False |
|
funcTitle | string | 根据函数标题搜索, 以 Like 方式查询 例子: 超级 VIP 模板 允许为空: False |
|
funcTags | commaarray | 函数标签,用于根据标签过滤函数 例子: 允许为空: False |
|
funcScriptId | string | 脚本集合 ID 例子: |
参数补充说明¶
请求例子¶
curl 'https://openapi.guance.com/api/v1/outer_function/list' \
-H 'Content-Type: application/json' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--compressed
响应¶
{
"code": 200,
"content": [
{
"argsJSON": [
"workspace_uuid",
"workspace_token",
"your_name"
],
"category": "openapi",
"definition": "test(workspace_uuid, workspace_token, your_name='OpenAPI User')",
"description": "The test interface is mainly to facilitate users in testing whether DataFlux Func can be successfully connected through OpenAPI",
"extraConfigJSON": null,
"id": "example__openapi.test",
"integration": null,
"kwargsJSON": {
"workspace_token": {},
"workspace_uuid": {},
"your_name": {
"default": "OpenAPI user"
}
},
"name": "test",
"scriptDescription": null,
"scriptId": "example__openapi",
"scriptSetDescription": null,
"scriptSetId": "Guance Cloud",
"scriptSetTitle": "Guance ",
"scriptTitle": null,
"tagsJSON": null,
"title": "test",
"url": "/api/v1/func/example__openapi.test"
},
{
"argsJSON": [
"workspace_uuid",
"workspace_token",
"data"
],
"category": "openapi",
"definition": "report_event(workspace_uuid, workspace_token, data)",
"description": "desc",
"extraConfigJSON": null,
"id": "example__openapi.report_event",
"integration": null,
"kwargsJSON": {
"data": {},
"workspace_token": {},
"workspace_uuid": {}
},
"name": "report_event",
"scriptDescription": null,
"scriptId": "example__openapi",
"scriptSetDescription": null,
"scriptSetId": "guance",
"scriptSetTitle": "Guance Cloud support",
"scriptTitle": null,
"tagsJSON": null,
"title": "Report Event",
"url": "/api/v1/func/example__openapi.report_event"
}
],
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-1B02BD5D-D249-4D56-8762-9D6CB31FF0D1"
}