IDMesh APIs
  1. 授权单元 & 授权规则
IDMesh APIs
  • IDMesh APIs
  • 使用文档
  • 管理 API
    • 用户
      • 创建用户
      • 锁定用户
      • 解锁用户
      • 批量锁定用户
      • 批量解锁用户
      • 批量重置密码
      • 编辑用户
      • 删除用户
      • 批量删除用户
      • 查询用户列表
      • 查询用户详情
      • 修改密码
      • 重置密码
      • 查询用户存储凭证列表
      • 创建用户存储凭证
      • 删除用户存储凭证
      • 登录名验证
      • 判断用户是否存在
      • 用户头像上传
      • 用户头像显示
      • 用户实名验证
      • 用户离职
      • 用户变更组织
    • 应用
      • 创建应用
      • 更新应用基本信息
      • 查询应用模板列表
      • 查询应用列表
      • 按条件查询应用
      • 按 ID 查询应用
      • 启用应用
      • 禁用应用
      • 删除应用
      • 刷新应用安全码
      • 查询应用配置信息
      • 更新应用配置
      • 禁用应用单点登录
      • 启用应用多子账号登录
      • 禁用应用多子账号登录
      • 启用应用单点登录
      • 启用应用多因素认证配置
      • 禁用应用多因素认证配置
      • 创建应用认证源
      • 删除应用认证源
      • 启用应用认证协议
      • 禁用应用认证协议
      • 重置应用认证协议密钥
      • 查询应用认证协议列表
      • 查询应用认证协议
      • 更新应用认证协议
      • 更新应用子账号
      • 创建应用子账号
      • 更新应用子账号
      • 启用应用子账号
      • 禁用应用子账号
      • 删除应用子账号
      • 按 APP ID 查询应用子账号列表
      • 按条件查询应用子账号列表
      • 按条件查询应用子账号
      • 按 ID 查询应用子账号
      • 更新应用 Logo
      • 批量创建应用子账号
    • 权限及资源
      • 权限
        • 鉴权
        • 获取权限列表
      • 授权单元 & 授权规则
        • 获取授权单元列表
          GET
        • 按 ID 查询授权单元
          GET
        • 删除授权单元
          DELETE
        • 批量创建授权规则
          POST
        • 更新授权规则
          PUT
        • 查询授权单元下的授权规则列表
          GET
        • 查询授权规则列表
          GET
        • 批量删除授权规则
          DELETE
        • 查询授权单元下的授权规则列表
          GET
      • 资源 & 资源集合
        • 创建资源
        • 更新资源
        • 更新资源
        • 查询资源列表
        • 按 ID 查询资源
        • 删除资源
        • 创建资源集合
        • 更新资源集合
        • 查询资源集合列表
        • 按 ID 查询资源集合
        • 创建资源集合成员
        • 删除资源集合
        • 更新资源集合成员
        • 查询资源集合成员列表
        • 按 ID 查询资源集合成员
        • 删除资源集合成员
      • 应用授权
        • 授权应用
        • 查询已授权应用列表
      • 鉴权
      • 授权
    • 组织关系
      • 创建组织对象
      • 查询父组织节点
      • 删除组织节点
      • 获取组织关系列表
      • 修改组织关系基本信息
      • 获取组织关系基本信息
      • 删除组织关系
      • 批量添加组织成员
      • 添加组织成员
      • 编辑组织成员
      • 获取组织成员信息及其关联的组织关系列表
      • 获取组织的成员信息列表
      • 删除组织成员
      • 创建组织节点
      • 编辑组织节点
      • 删除组织子节点
      • 批量删除节点
      • 查询节点信息列表
      • 查询组织节点信息
      • 获取组织子节点列表
      • 获取组织的成员信息列表
      • 批量检查节点
      • 禁用组织节点
      • 禁用组织节点新
      • 批量从组织关系中移除用户-内部使用
      • 从组织关系中移除用户-内部使用
      • 树关联-删除节点关联
      • 树关联-创建
      • 树关联-树对象关系查询
      • 树关联-节点关系查询
      • 树关联-查询所有
      • 启用组织节点
    • 身份源
      • 获得系统支持的所有认证模板
      • 创建某个租户的认证方式信息
      • 创建某个租户的认证方式信息
      • 更新某个租户的认证方式信息
      • 更新某个租户的认证方式信息
      • 获得某个租户的认证方式信息
      • 查询某个租户的认证方式列表
      • 删除某个租户的认证方式信息
      • 删除某个租户的认证方式信息
      • 创建某个租户的身份源配置信息
      • 修改某个租户的身份源配置信息
      • 删除某个身份源配置信息
      • 获取某个租户支持的所有身份源配置
      • 按 ID 获取的身份源配置信息
    • KV 存储
      • 获取 Bucket 列表
      • 获取 Object 列表
      • 获取 Bucket 详情
      • 删除 Bucket
      • 创建 Object
      • 获取 Object 详情
      • 删除 Object
    • 定时任务
      • 查询定时任务列表
      • 查询定时任务详情
      • 创建定时任务
      • 更新定时任务
      • 删除定时任务
      • 触发定时任务
      • 挂起定时任务
      • 恢复定时任务
      • 获取预创建 ID
      • 查询子任务日志
      • 查询任务日志
      • 创建子任务
      • 回调子任务执行结果
      • 更新子任务
      • 取消任务执行
      • 查询指定定时任务的子任务列表
      • 查询子任务列表
    • 事件
      • 注册事件订阅
      • 查询已订阅事件列表
      • 删除订阅事件
      • 重置订阅事件
      • 更新订阅事件
  • BFF
    • 登录验证Thin模式
      POST
  1. 授权单元 & 授权规则

查询授权单元下的授权规则列表

GET
/v1/auth-units/{auid}/rules
type_mgmtdocprogrammer-docmodule_permission

请求参数

Path 参数
auid
string 
必需
Query 参数
application_id
string 
应用id
可选
type
string 
可选
规则类型,多个类型使用,分隔
示例值:
api, ui, data, app, res, res_set
source
string 
可选
来源,多个来源使用 "," 分隔,为空默认为 generic
示例值:
generic,delegated_user
code
string 
可选
资源或资源集合code
self_only
string 
可选
只查询指定主体下的授权
示例值:
true
resource_id
string 
可选
资源id,当type=api,ui,data时有效
resource_match_all_resources
string 
可选
匹配所有资源,当type=res时有效
示例值:
false
resource_match_all_actions
string 
可选
匹配所有资源操作,当type=res时有效
示例值:
false
resource_set_id
string 
可选
资源集合id,当type=res_set
page_mode
string 
可选
分页方式,格式:0不分页,1分页,默认为1

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/v1/auth-units//rules'

返回响应

🟢200成功
application/json
Body
array of:
id
string 
规则id
必需
auth_unit_id
string 
au id
必需
resource
object (AuthUnitResouce) 
授权的资源
可选
id
string 
资源id
必需
developer_id
string 
开发者id
必需
tenant_id
string 
租户id
必需
application_id
string 
应用id
必需
applicatioin_name
string 
应用名称
必需
is_global
boolean 
是否为全局
必需
description
string 
描述
必需
type
string 
类型
必需
code
string 
代码
必需
uri
string 
uri
可选
time_modified
string 
修改时间 rfc3339
必需
time_created
string 
创建时间 rfc3339
必需
scope
string 
授权范围
必需
selected_actions
array[string] | null 
选中的操作code列表
可选
match_all_actions
boolean  | null 
匹配所有操作
可选
match_all_resources
boolean  | null 
匹配所有资源
可选
resource_set
object 
授权的资源集合
可选
id
string 
集合id
可选
application_id
string 
应用id
可选
application_name
string 
应用名
可选
is_global
boolean 
是否为全局
可选
code
string 
集合代码
可选
description
string 
集合描述
可选
time_modified
string 
更新时间 rfc3339
可选
time_created
string 
创建时间 rfc3339
可选
members
array[object (ResourceSetMember) {17}] 
资源集合成员
可选
match_all_resources
boolean 
匹配所有资源
可选
affect
string 
作用
必需
allow/deny
resource_type
string 
资源类型
可选
当resource存在时
code
string 
代码
必需
当 resource 存在时表示 resource_code
当 resource_set存在时表示 resource_set_code
description
string 
描述
可选
application_name
string 
应用名称
必需
identity_id
string 
授权主体id
必需
identity_type
string 
授权主体类型
必需
identity_name
string 
授权主体名称
必需
inherited
boolean 
是否为继承权限
必需
示例
[
    {
        "id": "string",
        "auth_unit_id": "string",
        "resource": {
            "id": "string",
            "developer_id": "string",
            "tenant_id": "string",
            "application_id": "string",
            "applicatioin_name": "string",
            "is_global": true,
            "description": "string",
            "type": "string",
            "code": "string",
            "uri": "string",
            "time_modified": "string",
            "time_created": "string",
            "scope": "string",
            "selected_actions": [
                "string"
            ],
            "match_all_actions": true,
            "match_all_resources": true
        },
        "resource_set": {
            "id": "string",
            "application_id": "string",
            "application_name": "string",
            "is_global": true,
            "code": "string",
            "description": "string",
            "time_modified": "string",
            "time_created": "string",
            "members": [
                {
                    "id": "string",
                    "set_id": "string",
                    "developer_id": "string",
                    "tenant_id": "string",
                    "resource_id": "string",
                    "application_id": "string",
                    "application_name": "string",
                    "is_global": true,
                    "resource_type": "string",
                    "resource_code": "string",
                    "resource_scope": "string",
                    "resource_actions": {
                        "code": "string",
                        "description": "string"
                    },
                    "resource_description": "string",
                    "selected_resource_actions": [
                        "string"
                    ],
                    "match_all_resource_actions": true,
                    "time_modified": "string",
                    "time_created": "string"
                }
            ],
            "match_all_resources": true
        },
        "affect": "string",
        "resource_type": "string",
        "code": "string",
        "description": "string",
        "application_name": "string",
        "identity_id": "string",
        "identity_type": "string",
        "identity_name": "string",
        "inherited": true
    }
]
🟠400BadRequest
修改于 2024-10-18 06:30:35
上一页
批量删除授权规则
下一页
创建资源
Built with