获取策略授权记录
测试中GET
/api/v2/policies/{code}/assignments请求参数
Path 参数
code
string
策略的唯一标识
示例值:
code
Query 参数
page
string
页数
示例值:
1
limit
string
每页显示条数
示例值:
10
namespace
string
权限分组 Code
示例值:
namespace-code
targetType
string
可选
PolicyAssignmentTargetType 目标类型
示例值:
ROLE
targetIdentifier
string
可选
目标唯一标识或 ID
示例值:
role-code
Header 参数
Authorization
string
必需
用户池管理员 Token
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
61cc2c7bb686e2767125230d
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
totalCount
integer
必需
list
array [object {3}]
必需
示例
{
"code": 200,
"message": "获取成功",
"data": {
"totalCount": 1,
"list": [
{
"code": "KzCLs--cf",
"targetType": "USER",
"targetIdentifier": "613f3da723b9597a4d07f371"
}
]
}
}
最后修改时间: 3 年前