跳转至

WAF3.0 API

POST 更新额外插件状态

POST /prod-api/waf/wafv3/plugin/library/changePluginStatus

批量启用或关闭指定策略组下的 额外插件pluginCodes 来自 列出额外插件库 返回的 pluginCode

Body 请求参数

{
  "wafId": 22,
  "pluginCodes": ["fake-bot", "wordpress-rule-exclusions"],
  "status": "ON"
}

请求参数

名称 位置 类型 必选 中文名 说明
Authorization header string 鉴权 Bearer Token
body body object 请求体 见下表

Body 字段说明

字段 类型 必选 说明
wafId integer 策略组 ID
pluginCodes string[] 要更新的插件编码列表,取自列表接口 pluginCode
status string 仅允许 ON(启用)或 OFF(关闭)

返回示例

200 Response

{
  "msg": "成功",
  "code": 200,
  "data": []
}

返回结果

状态码 状态码含义 说明
200 OK 成功
401 Unauthorized 未授权
403 Forbidden 无权限

返回数据结构

状态码 200

名称 类型 说明
msg string 提示信息
code integer 200 表示成功
data array 批量结果;某项失败时可能含 pluginCodemessage(以实现为准)