角色详情
测试中
GET
/api/v2/roles/{code}
请求参数
Path 参数
code
string
角色唯一标识
示例值:
rgwe
Query 参数
namespace
string
分组 Code
示例值:
default
Header 参数
Authorization
string
必需
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
59f86b4832eb28071bdd9214
Body 参数application/x-www-form-urlencoded
object {0}
示例代码
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/roles/rgwe' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 59f86b4832eb28071bdd9214'
返回响应
🟢200成功
application/json
Body
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"
}
}
修改于 2022-01-24 06:11:50