获取策略列表
测试中GET
/api/v2/policies/list请求参数
Query 参数
page
string
页数
示例值:
1
limit
string
每页显示条数
示例值:
10
namespace
string
权限分组 Code
示例值:
namespace-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 {13}]
必需
示例
{
"code": 200,
"message": "获取成功",
"data": {
"totalCount": 1,
"list": [
{
"id": "61cd6d6b9a278754df55e1e3",
"createdAt": "2021-12-30T08:27:23.835Z",
"updatedAt": "2021-12-30T08:27:23.835Z",
"userPoolId": "59f86b4832eb28071bdd9214",
"isDefault": false,
"isAuto": false,
"hidden": false,
"code": "rtbrnrt",
"description": "rtbrnrt",
"statements": [
{
"resource": "book:*",
"actions": [
"*"
],
"effect": "ALLOW",
"condition": [
{
"operator": "StringNotEquals",
"param": "AppId",
"value": "eerveb"
}
],
"resourceType": "DATA"
}
],
"namespaceId": 2,
"assignmentsCount": 0,
"namespace": "default"
}
]
}
}
最后修改时间: 3 年前