跳转到主要内容
GET
/
providers
/
rules
获取所有规则集合
curl --request GET \
  --url http://{host}:{port}/providers/rules \
  --header 'Authorization: Bearer <token>'
{
  "providers": {
    "example_ruleset": {
      "name": "example_ruleset",
      "type": "Rule",
      "vehicleType": "HTTP",
      "behavior": "Domain",
      "ruleCount": 5,
      "format": "MrsRule",
      "updatedAt": "2026-06-22T06:57:33Z"
    }
  }
}

授权

Authorization
string
header
必填

在请求头中携带 Authorization: Bearer ${secret},其中 secret 对应配置中的 secret 字段。若未设置 secret 可省略,但强烈建议设置。

响应

200 - application/json

规则集合列表。

providers
object
最后修改于 2026年6月23日