Skip to main content
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

  • ldapServerUuidStringRequired

    The LDAP server UUID.

Body Fields

  • updateldapserverObjectRequired

    updateldapserver request body object.

    • nameString

      Optional. The resource name.

    • descriptionString

      Optional. The detailed description of the resource.

    • urlString

      Optional. The URL of the LDAP server.

    • baseString

      Optional. The base DN of the LDAP server.

    • usernameString

      Optional. The username used to access the LDAP server.

    • passwordString

      Optional. The password.

    • encryptionString

      Optional. The encryption method.

  • systemTagsList

    Optional. The system tags.

  • userTagsList

    Optional. The user tags.

Responses

200 OK

On success, this API returns the following response structure.

  • errorErrorCodeRequired

    The error code. If not null, the operation fails, or vice versa. For more information, see error.

    • codeStringRequired

      The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001.

    • descriptionStringRequired

      The brief description of the error.

    • detailsStringRequired

      The details about the error.

    • elaborationStringRequired

      The reserved field. Default value: null.

    • opaqueLinkedHashMapRequired

      The reserved field. Default value: null.

    • causeErrorCodeRequired

      The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null.

  • inventoryLdapServerInventoryRequired

    See inventory.

    • uuidStringRequired

      The resource UUID.

    • nameStringRequired

      The resource name.

    • descriptionStringRequired

      The detailed description of the resource.

    • urlStringRequired

      地址。

    • baseStringRequired

      The base DN of the LDAP server.

    • usernameStringRequired

      The username used to access the LDAP server.

    • passwordStringRequired

      The password.

    • encryptionStringRequired

      The encryption method.

    • createDateTimestampRequired

      The creation date.

    • lastOpDateTimestampRequired

      The last operation date.

Endpoint

PUT/zstack/v1/ldap/servers/{ldapServerUuid}

/zstack/v1/ldap/servers/{ldapServerUuid}

Operation ID

UpdateLdapServer

Permalink

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.

View all change history