通过 OpenAPI 查询组织信息。
适用版本 | 企业专属版 |
服务接入点与授权信息
获取服务接入点,替换 API 请求语法中的 <domain> :服务接入点(domain)。
获取个人访问令牌,具体操作,请参见获取个人访问令牌。
请求语法
GET https://<domain>/oapi/v1/platform/organizations/<id>
请求头
参数 | 类型 | 是否必填 | 描述 | 示例值 |
x-yunxiao-token | string | 是 | 个人访问令牌。 | pt-0fh3****0fbG_35af****0484 |
请求参数
参数 | 类型 | 位置 | 是否必填 | 描述 | 示例值 |
id | string | path | 是 | 组织 ID。 | 99d1****71d4 |
请求示例
curl -X 'GET' \
'https://test.rdc.aliyuncs.com/oapi/v1/platform/organizations/99d1****71d4' \
-H 'accept: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
返回参数
参数 | 类型 | 描述 | 示例值 |
createdAt | string | 创建时间。 | Thu,04 Jul 2024 13:44:21 |
creatorId | string | 创建者 ID。 | f5b8****7a1c |
defaultRole | string | 默认角色。 | |
description | string | 描述。 | |
id | string | 用户 ID 。 | b4df****d122 |
name | string | 名称。 | lingma |
updateAt | string | 更新时间。 | Thu,04 Jul 2024 13:44:21 |
返回示例
{
"createdAt": "Thu,04 Jul 2024 13:44:21",
"creatorId": "f5b8****7a1c",
"defaultRole": "string",
"description": "string",
"id": "b4df****d122",
"name": "lingma",
"updateAt": "Thu,04 Jul 2024 13:44:21"
}
错误码
访问错误码中心查看 API 相关错误码。
文档内容是否对您有帮助?