方法路径摘要认证
GET/v1/admin/site-groupsList all tenant site groups for a platform administrator登录会话

契约文件:api/control-site-groups.openapi.yaml

接口详情

GET /v1/admin/site-groups

List all tenant site groups for a platform administrator

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

全部需要:sites.read identity.users.manage

说明(契约原文)

Requires a live platform identity and both permissions under shared IAM rules. Tenant credentials are rejected even when they contain similarly named permissions. No scope override is accepted. Count and page come from one database snapshot. Groups are ordered by created_at, id, scope_id ascending. A user is returned only when the scope has exactly one non-deleted system tenant_owner with an active membership. Missing or multiple owners are explicit; the actor or first member is never substituted.

参数

listAdminSiteGroups 参数
名称位置类型必填说明
pagequeryinteger否—
limitqueryinteger否—

响应

listAdminSiteGroups 响应
状态码说明
200Complete scoped-resource rows and a real global total.

字段:items: array<AdminSiteGroup> total: integer page: integer limit: integer

400Invalid request or precondition. A refused name or remark is validation_error with error.details {field: name|remark, reason}.
401Authentication required.
403Permission denied.
503Site group service unavailable.

失败时怎么办

  • 400 按字段说明修正参数或请求体再发;不要原样重试。
  • 401 检查凭据格式、是否过期或被轮换。
  • 403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。
  • 503 依赖暂不可用:稍后用原 Idempotency-Key 重试。

↑ 回到列表