查询多个 LDAP 节点条目信息

查询多个 LDAP 节点条目的详细信息。

请求 URL

GET {base_url}/{api_path}/ldap_nodes/query?access_token={access_token}

请求参数

参数 是否必填 类型 说明
ids 是 String LDAP 节点条目的唯一 ID。
注:

响应参数

参数 类型 说明
errcode Integer 返回错误码。
  • 0:请求成功。
  • 非零值:请求失败。
注: 更多错误码和错误信息说明,请参见 错误码 & 错误信息。
errmsg String 返回信息。
  • SUCCESS:请求成功。
  • FAILURE:请求失败。
node_entry_list Array<LDAP_Node_Entry> LDAP 节点条目列表。
LDAP_Node_Entry
参数 类型 说明
id Integer 条目的唯一 ID。
display_name String 条目的显示名称。
first_name String 名。
last_name String 姓。
sn String SN 属性值。
company String 公司名称。
email String 电子邮箱地址。
business String 办公号码 1。
business2 String 办公号码 2。
business_fax String 公司传真。
mobile String 手机号码。
mobile2 String 手机号码 2。
home String 家庭号码。
home2 String 家庭号码 2。
home_fax String 家庭传真。
other String 其他号码。
extension_number String 分机号码。
department String 部门。
title String 职位。
job_title String 职位。
position String 岗位。
organization String 组织。
industry String 行业。
report_to String 上级。
remark String 备注。
street String 街道。
city String 市。
state String 州(省)。
country String 国家/地区。
zip_code String 邮政编码。

示例

请求示例

GET /openapi/v1.0/ldap_nodes/query?ids=159,300&access_token=KHlhDSbuZ75OsFLDUbZHdkE5cIQEcIlK HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com

响应示例

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "node_entry_list": [
        {
            "id": 159,
            "display_name": "Leo Ball",
            "email": "leoball@sample.com",
            "first_name": "Leo Ball",
            "extension_number": "1000"
        },
        {
            "id": 300,
            "display_name": "Leo Ball",
            "email": "",
            "first_name": "Leo",
            "last_name": "Ball",
            "extension_number": "1023"
        }
    ]
}