- IDMesh APIs
- 使用文档
- 管理 API
- 用户
- 应用
- 创建应用
- 更新应用基本信息
- 查询应用模板列表
- 查询应用列表
- 按条件查询应用
- 按 ID 查询应用
- 启用应用
- 禁用应用
- 删除应用
- 刷新应用安全码
- 查询应用配置信息
- 更新应用配置
- 禁用应用单点登录
- 启用应用多子账号登录
- 禁用应用多子账号登录
- 启用应用单点登录
- 启用应用多因素认证配置
- 禁用应用多因素认证配置
- 创建应用认证源
- 删除应用认证源
- 启用应用认证协议
- 禁用应用认证协议
- 重置应用认证协议密钥
- 查询应用认证协议列表
- 查询应用认证协议
- 更新应用认证协议
- 更新应用子账号
- 创建应用子账号
- 更新应用子账号
- 启用应用子账号
- 禁用应用子账号
- 删除应用子账号
- 按 APP ID 查询应用子账号列表
- 按条件查询应用子账号列表
- 按条件查询应用子账号
- 按 ID 查询应用子账号
- 更新应用 Logo
- 批量创建应用子账号
- 权限及资源
- 组织关系
- 身份源
- KV 存储
- 定时任务
- 事件
- BFF
获取授权单元列表
GET
/v1/auth-units
type_mgmtdocprogrammer-docmodule_permission
请求参数
Query 参数
identity_id
string
主体id
identity_type
string
主体类型
identity_name
string
主体名称
page_num
string
起始页,默认1
page_size
string
页大小,默认20
page_sort
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'
返回响应
🟢200成功
application/json
Body
total_num
number
总数量
data
array[object (AuthUnit) {7}]
可选
id
string
必需
identity_id
string
实体id
identity_name
string
实体名称
identity_type
string
实体类型
rules
array[object (Au) {13}]
必需
time_created
string
必需
time_modified
string
必需
示例
{
"total_num": 0,
"data": [
{
"id": "string",
"identity_id": "string",
"identity_name": "string",
"identity_type": "string",
"rules": [
{
"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
}
],
"time_created": "string",
"time_modified": "string"
}
]
}
🟠400参数错误
修改于 2024-10-18 06:30:35