Use the Get All Services method to receive an XML file that contains a list of all services in an Optim™ directory. You can then get more detailed information about a service by using the Get Service method.
HTTP method: GET
URI: /service/connection_name
Request payload content type: None
Response payload content type: application/xml
Expected response: HTTP/1.1 200 OK
The method URI contains the following parameters.
| Name | Description | Required |
|---|---|---|
| connection_name | Enter the name that identifies the Optim directory connection whose information you want to view. | Y |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:services xmlns="http://www.w3.org/2005/Atom" xmlns:ns2="http://www.ibm.com/optim/xsd/srm/9.1.0">
<link href="http://interface:8080/server/service/OPTIMDIR1/234d7245-aa47-44cb-b647-650734d200fd"/>
<link href="http://interface:8080/server/service/OPTIMDIR1/79550682-e362-464d-9a0b-eae9a046083f"/>
<link href="http://interface:8080/server/service/OPTIMDIR1/7c354125-4f2a-4d94-bfab-0711d2270af8"/>
</ns2:services>
The following response codes can be received when the method is complete.
| Response code | Description |
|---|---|
| 200 | OK. The service list was successfully returned. |
| 400 | Bad Request. A malformed request was submitted. |
| 404 | Not Found. No services exist. |