文档

GetRole - 查询组织角色信息

更新时间:

通过 OpenAPI 查询组织角色信息。

适用版本

企业专属版

服务接入点与授权信息

请求语法

GET  https://<domain>/oapi/v1/platform/organizations/<organizationId>/roles/<id>

请求头

参数

类型

是否必填

描述

示例值

x-yunxiao-token

string

个人访问令牌。

pt-0fh3****0fbG_35af****0484

请求参数

参数

类型

位置

是否必填

描述

示例值

organizationId

string

path

组织 ID。

99d1****71d4

id

string

path

角色 ID。

baef****accd

请求示例

curl -X 'GET' \
  'https://test.rdc.aliyuncs.com/oapi/v1/platform/organizations/99d1****71d4/roles/baef****accd' \
  -H 'accept: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' 

返回参数

参数

类型

描述

示例值

id

string

角色 ID。

8446****ce9f

name

string

名称。

name1

organizationId

string

组织 ID。

99d1****71d4

permissions

string

权限。

返回示例

[
  {
    "id": "8446****ce9f",
    "name": "name1",
    "organizationId": "99d1****71d4",
    "permissions": [
      "string"
    ]
  }
]

错误码

访问错误码中心查看 API 相关错误码。