获取被授权的资源
POST
/api/v2/acl/list-authorized-resources
请求参数
Header 参数
Authorization
string
可选
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
61e7bd4df5f706d7ee4c5fc6
Body 参数application/json
namespace
string
必需
targetType
string
必需
targetIdentifier
string
必需
resourceType
string
可选
示例
{
"namespace": "string",
"targetType": "string",
"targetIdentifier": "string",
"resourceType": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://core.authing.cn/api/v2/acl/list-authorized-resources' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
totalCount
integer
必需
list
array [object {4}]
必需
示例
{
"code": 200,
"message": "获取被授权的资源成功",
"data": {
"totalCount": 1,
"list": [
{
"code": "order:*",
"type": "DATA",
"actions": [
"order:read",
"order:delete"
],
"apiIdentifier": null
}
]
}
}
修改于 2022-01-19 08:08:47