获取用户池下权限组列表
GET
/api/v2/resource-namespace/{userPoolId}
请求参数
Path 参数
userPoolId
string
用户池 ID
示例值:
61b95d6c96d42670da568408
Query 参数
limit
string
每页数量
示例值:
1
page
string
当前页码
示例值:
10
Header 参数
Authorization
string
Token
示例值:
Bearer sdsdfsdfsdff
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://core.authing.cn/api/v2/resource-namespace/61b95d6c96d42670da568408' \
--header 'Authorization: Bearer sdsdfsdfsdff' \
--header 'x-authing-userpool-id: 61b95d6c96d42670da568408'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
total
integer
必需
list
array [object {7}]
必需
示例
{
"code": 200,
"message": "请求成功",
"data": {
"total": 4,
"list": [
{
"id": 4,
"name": "系统权限组",
"code": "system",
"description": "由 Authing 维护的用户池系统权限。",
"status": 1,
"appId": null,
"appName": null
},
{
"id": 5,
"name": "默认权限组",
"code": "default",
"description": "用户自行创建的权限会默认放在此分组。",
"status": 1,
"appId": null,
"appName": null
},
{
"id": 7,
"name": "示例应用",
"code": "61b95d6cf8c1e8c415b8552f",
"description": "",
"status": 1,
"appId": "61b95d6cf8c1e8c415b8552f",
"appName": "示例应用"
},
{
"id": 8,
"name": "自建应用",
"code": "61dbe4836beb0afb44d14b88",
"description": "",
"status": 1,
"appId": "61dbe4836beb0afb44d14b88",
"appName": "自建应用"
}
]
}
}
修改于 2022-01-12 09:44:41