角色详情
测试中GET
/api/v2/roles/{code}请求参数
Path 参数
code
string
角色唯一标识
示例值:
rgwe
Query 参数
namespace
string
分组 Code
示例值:
default
Header 参数
Authorization
string
必需
用户池管理员 Token
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
59f86b4832eb28071bdd9214
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
createdAt
string
必需
updatedAt
string
必需
userPoolId
string
必需
code
string
必需
description
string
必需
parentCode
null
必需
isSystem
boolean
必需
namespaceId
integer
必需
parent
null
必需
arn
string
必需
namespace
string
必需
示例
{
"code": 200,
"message": "查询成功",
"data": {
"id": "61d6b74da45f7f1c910c639d",
"createdAt": "2022-01-06T09:33:01.110Z",
"updatedAt": "2022-01-06T09:33:01.110Z",
"userPoolId": "59f86b4832eb28071bdd9214",
"code": "rgwe",
"description": "eew",
"parentCode": null,
"isSystem": false,
"namespaceId": 2,
"parent": null,
"arn": "arn:cn:authing:59f86b4832eb28071bdd9214:role:61d6b74da45f7f1c910c639d",
"namespace": "default"
}
}
最后修改时间: 3 年前