Settings/AD/LDAP/OAuth Operations
POSTAD/LDAP/OAuth OperationsSince 0.6SynchronousAuth Required
AddLdapServer
AddLdapServer
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
nameStringRequiredThe resource name.
descriptionStringRequiredThe detailed description of the resource.
urlStringRequiredThe URL of the LDAP server.
baseStringRequiredThe base DN of the LDAP server.
usernameStringRequiredThe username used to access the LDAP server.
passwordStringRequiredThe password.
encryptionStringRequiredThe encryption method.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/ldap/servers
/zstack/v1/ldap/servers
Request Example
curl -X POST 'http://{host}/zstack/v1/ldap/servers' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","url":"<url>","base":"<base>","username":"<username>","password":"<password>","encryption":"<encryption>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "ef7291bd94ce478880938851e3ff6ad6", "name": "miao", "description": "miao desc", "url": "ldap://localhost:1888", "base": "dc\u003dexample,dc\u003dcom", "username": "", "password": "", "encryption": "None" } }Change History
This API has no change history records yet.
