Unregistering an LDAP server

Unregister an LDAP server from IBM Spectrum Protect Plus.

Method and URI

Although IBM Spectrum Protect Plus supports up to one LDAP server, you have to specify it using {ldapId}. To delete an LDAP Server with {ldapId}, the request’s method and URI are similar to the following example:

DELETE  https://{hostname|IPv4}/api/ldap/{ldapId}

Tip

To get an {ldapId} value based on its name, follow the instructions in Getting an {ldapId}.

Parameters

None.

Data

None.

Example: Unregister an LDAP server

Assume that you have an LDAP server, 10.0.0.111, and you want to delete it. You get the {ldapId}: 1011.

A Python snippet that is similar to the following example can be used to unregister the LDAP server:

ldap_id = "1011"     # 10.0.0.111

requests.delete('https://' + spp_ipv4 + '/api/ldap/' + ldap_id,
    headers={...}, params="", data="", verify=...)

After you run the Python snippet, ensure that you get a response with the HTTP status of 204 (No Content) and that you no longer see the LDAP server 10.0.0.111. The response body is empty.