- IDMesh APIs
- 使用文档
- 管理 API
- 用户
- 应用
- 创建应用
- 更新应用基本信息
- 查询应用模板列表
- 查询应用列表
- 按条件查询应用
- 按 ID 查询应用
- 启用应用
- 禁用应用
- 删除应用
- 刷新应用安全码
- 查询应用配置信息
- 更新应用配置
- 禁用应用单点登录
- 启用应用多子账号登录
- 禁用应用多子账号登录
- 启用应用单点登录
- 启用应用多因素认证配置
- 禁用应用多因素认证配置
- 创建应用认证源
- 删除应用认证源
- 启用应用认证协议
- 禁用应用认证协议
- 重置应用认证协议密钥
- 查询应用认证协议列表
- 查询应用认证协议
- 更新应用认证协议
- 更新应用子账号
- 创建应用子账号
- 更新应用子账号
- 启用应用子账号
- 禁用应用子账号
- 删除应用子账号
- 按 APP ID 查询应用子账号列表
- 按条件查询应用子账号列表
- 按条件查询应用子账号
- 按 ID 查询应用子账号
- 更新应用 Logo
- 批量创建应用子账号
- 权限及资源
- 组织关系
- 身份源
- KV 存储
- 定时任务
- 事件
- BFF
查询授权单元下的授权规则列表
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,delegated_user
code
string
可选
self_only
string
可选
示例值:
true
resource_id
string
可选
resource_match_all_resources
string
可选
示例值:
false
resource_match_all_actions
string
可选
示例值:
false
resource_set_id
string
可选
page_mode
string
可选
示例代码
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
作用
resource_type
string
资源类型
code
string
代码
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