Query LDAP Node List
Retrieve a list of LDAP nodes.
Request URL
GET {base_url}/{api_path}/ldap_nodes/list?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| page | Yes | Integer | Define which page is displayed. |
| page_size | Yes | Integer | Define how many records per page. |
| sort_by | No | String | Define the sorting field. Valid value:
|
| order_by | No | String | Define the display order. Valid value:
|
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
| node_list | Array<LDAP_Node> | The list of LDAP nodes. |
| total_number | Integer | The total number of LDAP nodes. |
- LDAP_Node
-
Parameter Type Description id Integer The unique ID of the LDAP node. node_name String The name of the LDAP node. Company ContactsExtensions
ou String The organization unit (OU) value that identifies the node' path in the LDAP directory. base_dn String The Base DN of the LDAP node. enable Integer Whether the LDAP node is enabled. 0: Disabled.1: Enabled.
status Integer The status of the LDAP node. 0: The node is not being modified.1: The node is being modified.
Example
Request example
GET /openapi/v1.0/ldap_nodes/list?page=1&page_size=2&access_token=KHlhDSbuZ75OsFLDUbZHdkE5cIQEcIlK HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"total_number": 2,
"node_list": [
{
"id": 1,
"node_name": "Company Contacts",
"ou": "Company Contacts",
"base_dn": "dc=docs,dc=proxy,dc=test,dc=yeastarcloud,dc=com",
"enable": 1,
"status": 0
},
{
"id": 2,
"node_name": "Extensions",
"ou": "Extensions",
"base_dn": "dc=docs,dc=proxy,dc=test,dc=yeastarcloud,dc=com",
"enable": 1,
"status": 0
}
]
}