w5teams / w5

Security Orchestration, Automation and Response (SOAR) Platform. 安全编排与自动化响应平台,无需编写代码的安全自动化,使用 SOAR 可以让团队工作更加高效

Home Page:https://w5.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

动作参数的key不能为action(具体实现的函数参数不能用action)

answerwa opened this issue · comments

这里不能用action
image

好像会识别到app.json最外层的action中(这个Add实际上是我某个具体函数参数action的Add)
Image_20211202155722

运行也会报:请使用正确的应用

是否能发下完整的 app.json ?

{
  "identification": "w5soar",
  "is_public": false,
  "name": "操作接口",
  "version": "0.5",
  "description": "部分操作接口",
  "type": "基本应用",
  "action": [
    {
      "name": "增加或删除设备tag",
      "func": "addOrRemoveMachineTags"
    }
  ],
  "args": {
    "addOrRemoveMachineTags": [
      {
        "key": "tenantId",
        "type": "text",
        "required": true
      },
      {
        "key": "appId",
        "type": "text",
        "required": true
      },
      {
        "key": "appSecret",
        "type": "text",
        "required": true
      },
      {
        "key": "machineId",
        "type": "text",
        "required": true
      },
      {
        "key": "action",
        "type": "select",
        "default": "Add",
        "data": [
          "Add",
          "Remove"
        ],
        "required": true
      },
      {
        "key": "value",
        "type": "text",
        "required": true
      }
    ]
  }
}

第五个参数action随便换成其它名字就可以了