Settings/AD/LDAP/OAuth Operations
PUTAD/LDAP/OAuth OperationsSince 0.6SynchronousAuth Required
UpdateLdapServer
UpdateLdapServer
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
ldapServerUuidStringRequiredThe LDAP server UUID.
Body Fields
updateldapserverObjectRequiredupdateldapserver request body object.
nameStringOptional. The resource name.
descriptionStringOptional. The detailed description of the resource.
urlStringOptional. The URL of the LDAP server.
baseStringOptional. The base DN of the LDAP server.
usernameStringOptional. The username used to access the LDAP server.
passwordStringOptional. The password.
encryptionStringOptional. The encryption method.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/ldap/servers/{ldapServerUuid}
/zstack/v1/ldap/servers/{ldapServerUuid}
Request Example
curl -X PUT 'http://{host}/zstack/v1/ldap/servers/{ldapServerUuid}' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updateldapserver":{"name":"<name>","description":"<description>","url":"<url>","base":"<base>","username":"<username>","password":"<password>","encryption":"<encryption>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "8e1ee5b25564449fbd6054621567b5c1", "name": "new name", "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.
