Settings/AD/LDAP/OAuth Operations
GETAD/LDAP/OAuth OperationsSince 2.2SynchronousAuth Required
GetLdapEntry
GetLdapEntry
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Query Parameters
Request Inputs
Query Parameters
ldapFilterStringRequiredThe query condition.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
limitIntegerOptional. The maximum number of returned records. This parameter is similar to the limit field of MySQL.
Responses
Endpoint
GET/zstack/v1/ldap/entry
/zstack/v1/ldap/entry
Request Example
curl -X GET 'http://{host}/zstack/v1/ldap/entry?ldapFilter=<ldapFilter>&systemTags=<systemTags>&userTags=<userTags>&limit=1' -H 'Authorization: OAuth {sessionUuid}'
Response Example
200{ "inventories": [ { "attributes": [ { "id": "userPrincipalName", "orderMatters": false, "values": [ "weiqi@adtest.zs" ], "valuesAsNames": {} }, { "id": "displayName", "orderMatters": false, "values": [ "zstest" ], "valuesAsNames": {} }, { "id": "name", "orderMatters": false, "values": [ "weiqi" ], "valuesAsNames": {} }, { "id": "distinguishedName", "orderMatters": false, "values": [ "CN=weiqi,OU=ui,OU=zstest,DC=adtest,DC=zs" ], "valuesAsNames": {} }, { "id": "cn", "orderMatters": false, "values": [ "weiqi" ], "valuesAsNames": {} }, { "id": "objectClass", "orderMatters": false, "values": [ "top", "person", "organizationalPerson", "user" ], "valuesAsNames": {} } ], "dn": "CN=weiqi,OU=ui,OU=zstest,dc=adtest,dc=zs" } ], "success": true }Change History
This API has no change history records yet.
