获取权限列表
GET
/v1/privileges请求参数
Query 参数
identity_id
string
主体id
identity_type
string
主体类型
identity_name
string
主体名称
application_id
string
应用id
object_type
string
可选
对象类型(可选值: data, api, ui, res_set, app)
object_code
string
对象代码
affect
string
可选
作用方式(allow,deny)
page_num
string
起始页,默认1
page_size
string
页大小,默认20
page_sort
string
可选
排序方式,格式:字段[排序方式]
page_mode
string
可选
分页方式,格式:0不分页,1分页,默认为1
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
total_num
number
数据总数
current_page
number
当前页数(废弃)
data
array[object (Privilege) {11}]
数据列表
id
string
必需
identity_type
string
主体类型
identity_id
string
主体id
auth_unit_rule_id
string
授权条目id
application_id
string
应用id
object_type
string
对象类型
object_code
string
对象代码
affect_scope
string
作用范围
affect
string
作用
time_created
string
创建时间 rfc3339
time_modified
string
更新时间 rfc3339
示例
{
"total_num": 0,
"current_page": 0,
"data": [
{
"id": "string",
"identity_type": "string",
"identity_id": "string",
"auth_unit_rule_id": "string",
"application_id": "string",
"object_type": "string",
"object_code": "string",
"affect_scope": "string",
"affect": "string",
"time_created": "string",
"time_modified": "string"
}
]
}
最后修改时间: 5 个月前