方法路径摘要认证
GET/v1/cc-rule-groups—登录会话
GET/v1/cc-rule-groups/summaryCC rule group pill counts over every group登录会话

契约文件:api/control-openresty-security.openapi.yaml

接口详情

GET /v1/cc-rule-groups

operationId
listCCRuleGroupsForOpenRestyConfig
认证
  • 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
所需权限

全部需要:openresty_security.read

响应

listCCRuleGroupsForOpenRestyConfig 响应
状态码说明
200System groups are identified by system_rule_key, falling back to system_rule_id for legacy projections. Custom policy groups retain their UUID IDs.
401Authentication required
403Permission denied

失败时怎么办

  • 401 检查凭据格式、是否过期或被轮换。
  • 403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。

↑ 回到列表

GET /v1/cc-rule-groups/summary

CC rule group pill counts over every group

operationId
summarizeCCRuleGroups
认证
  • 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
所需权限

全部需要:openresty_security.read

说明(契约原文)

System groups count from the signed rule catalog once it has synced, else from the per-tenant projection; custom groups are the scope's CC policies. visible/disabled are enabled/disabled groups of both kinds.

响应

summarizeCCRuleGroups 响应
状态码说明
200Counts.

字段:all: integer system: integer custom: integer visible: integer disabled: integer

401Authentication required
403Permission denied

失败时怎么办

  • 401 检查凭据格式、是否过期或被轮换。
  • 403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。

↑ 回到列表