资源详情
GET
/api/v2/resources/detail
请求参数
Query 参数
id
string
资源 ID
示例值:
61debb338a741ec3d5a8b1dd
namespace
string
分组唯一标识
示例值:
evrve
code
string
资源名称
示例值:
coh2i
Header 参数
Authorization
string
必需
示例值:
Bearer token
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/resources/detail?id=61debb338a741ec3d5a8b1dd' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 61b95d6c96d42670da568408'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
createdAt
string
必需
updatedAt
string
必需
userPoolId
string
必需
code
string
必需
actions
array [object {2}]
必需
type
null
必需
description
null
必需
namespaceId
integer
必需
apiIdentifier
null
必需
示例
{
"code": 200,
"message": "",
"data": {
"id": "61debb338a741ec3d5a8b1dd",
"createdAt": "2022-01-12T11:27:47.182Z",
"updatedAt": "2022-01-12T11:27:47.182Z",
"userPoolId": "61b95d6c96d42670da568408",
"code": "resource3",
"actions": [
{
"name": "read",
"description": "读"
},
{
"name": "write",
"description": "写"
}
],
"type": null,
"description": null,
"namespaceId": 5,
"apiIdentifier": null
}
}
修改于 2022-01-14 10:45:57