GetOrganizationalUnit - 查询一个EIAM组织信息

更新时间:
复制为 MD 格式

调用GetOrganizationalUnit接口,获取指定组织的详细信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /v2/{instanceId}/{applicationId}/organizationalUnits/{organizationalUnitId} HTTP/1.1

路径参数

名称

类型

必填

描述

示例值

instanceId

string

实例 ID。

idaas_ue2jvisn35ea5lmthk267xxxxx

applicationId

string

应用 ID。

app_mkv7rgt4d7i4u7zqtzev2mxxxx

organizationalUnitId

string

组织 ID。

ou_wovwffm62xifdziem7an7xxxxx

请求参数

名称

类型

必填

描述

示例值

Authorization

string

认证信息。 格式:Bearer ${access_token}。 示例:Bearer ATxxxx。

Bearer AT8csE2seYxxxxxij

返回参数

名称

类型

描述

示例值

object

响应结果。

instanceId

string

实例 ID。

idaas_ue2jvisn35ea5lmthk267xxxxx

organizationalUnitId

string

组织 ID。

ou_wovwffm62xifdziem7an7xxxxx

organizationalUnitName

string

组织名称。

name001

parentId

string

父组织 ID。

ou_wovwffm62xifdziem7an7xxxxx

organizationalUnitExternalId

string

外部 ID。

id_wovwffm62xifdziem7an7xxxxx

organizationalUnitSourceType

string

来源类型,取值可选范围:

  • build_in - 自建。

  • ding_talk - 钉钉导入。

  • ad - AD 导入。

  • ldap - LDAP 导入。

build_in

organizationalUnitSourceId

string

来源 ID。

id_wovwffm62xifdziem7an7xxxxx

createTime

integer

创建时间,格式为 Unix 时间戳,单位为毫秒。

1652083425923

updateTime

integer

最近更新时间,格式为 Unix 时间戳,单位为毫秒。

1652083425923

description

string

描述。

xxxxx

示例

正常返回示例

JSON格式

{
  "instanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
  "organizationalUnitId": "ou_wovwffm62xifdziem7an7xxxxx",
  "organizationalUnitName": "name001",
  "parentId": "ou_wovwffm62xifdziem7an7xxxxx",
  "organizationalUnitExternalId": "id_wovwffm62xifdziem7an7xxxxx",
  "organizationalUnitSourceType": "build_in",
  "organizationalUnitSourceId": "id_wovwffm62xifdziem7an7xxxxx",
  "createTime": 1652083425923,
  "updateTime": 1652083425923,
  "description": "xxxxx"
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情