Skip to content

List



GET /api/v1/outer_function/list

Overview

List the Func functions that are allowed to be executed via OpenAPI

Query Request Parameters

Parameter Name Type Required Description
_fuzzySearch string Fuzzy search query field
Example: Super VIP template
Can be empty: False
funcId string Search by function Id
Example: Super VIP template
Can be empty: False
funcTitle string Search by function title, queried in a Like manner
Example: Super VIP template
Can be empty: False
funcTags commaarray Function tags, used to filter functions by tags
Example:
Can be empty: False
funcScriptId string Script collection ID
Example:

Additional Parameter Notes

Request Example

curl 'https://openapi.guance.com/api/v1/outer_function/list' \
  -H 'Content-Type: application/json' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --compressed

Response

{
    "code": 200,
    "content": [
        {
            "argsJSON": [
                "workspace_uuid",
                "workspace_token",
                "your_name"
            ],
            "category": "openapi",
            "definition": "test(workspace_uuid, workspace_token, your_name='OpenAPI User')",
            "description": "Test interface, mainly for users to conveniently test whether they can call DataFlux Func through OpenAPI",
            "extraConfigJSON": null,
            "id": "guance__openapi.test",
            "integration": null,
            "kwargsJSON": {
                "workspace_token": {},
                "workspace_uuid": {},
                "your_name": {
                    "default": "OpenAPI User"
                }
            },
            "name": "test",
            "scriptDescription": null,
            "scriptId": "guance__openapi",
            "scriptSetDescription": null,
            "scriptSetId": "guance",
            "scriptSetTitle": "Guance Support",
            "scriptTitle": null,
            "tagsJSON": null,
            "title": "Test",
            "url": "/api/v1/func/guance__openapi.test"
        },
        {
            "argsJSON": [
                "workspace_uuid",
                "workspace_token",
                "data"
            ],
            "category": "openapi",
            "definition": "report_event(workspace_uuid, workspace_token, data)",
            "description": "Report events, write events using DataFlux Func\nSupports self-built inspections and all alarm processing logic accompanying monitors\n\nParameters:\n    data {dict,list} Event data or its list to be reported, structure as follows:\n                        {\n                            \\\"title\\\"         : {str}      Event title, only single-line text is supported\n                            \\\"message\\\"       : {str}      Event content, supports Markdown\n                            \\\"status\\\"        : {str}      Event level, optional values are: ok, info, warning, error, critical\n                            \\\"dimension_tags\\\": {str,dict} Event dimensions, e.g.: { 'host': 'web001' } or its serialized string\n                        }",
            "extraConfigJSON": null,
            "id": "guance__openapi.report_event",
            "integration": null,
            "kwargsJSON": {
                "data": {},
                "workspace_token": {},
                "workspace_uuid": {}
            },
            "name": "report_event",
            "scriptDescription": null,
            "scriptId": "guance__openapi",
            "scriptSetDescription": null,
            "scriptSetId": "guance",
            "scriptSetTitle": "Guance Support",
            "scriptTitle": null,
            "tagsJSON": null,
            "title": "Report Events",
            "url": "/api/v1/func/guance__openapi.report_event"
        }
    ],
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-1B02BD5D-D249-4D56-8762-9D6CB31FF0D1"
} 

Feedback

Is this page helpful? ×