Get All Service Instances method

Use the Get All Service Instances method to receive an XML file that contains a list of all service instances. You can then get more detailed information about a service instance by using the Get Service Instance method.

HTTP method: GET

URI: /monitor/connection_name

Request payload content type: None

Response payload content type: application/xml

Expected response: HTTP/1.1 200 OK

Parameters

The method URI contains the following parameters.

Name Description Required
connection_name Enter the name that identifies the Optim™ directory connection that contains the service instance. Y

Response payload example

The following example shows a sample XML response for this method.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:serviceInstances xmlns="http://www.w3.org/2005/Atom"
 xmlns:ns2="http://www.ibm.com/optim/xsd/sim/9.1.0">
   <link href="http://interface:8080/server/monitor/OPTIMDIR1/892ea9ab-af33-40a1-acbb-110dc6cd74f3"/> 
   <link href="http://interface:8080/server/monitor/OPTIMDIR1/0f5f5bf3-5f29-4d53-8575-2ff2cbab1c08"/> 
   <link href="http://interface:8080/server/monitor/OPTIMDIR1/8630618c-3c08-4b76-b3cf-4dd6fb06fad3"/>
</ns2:serviceInstances>

Response codes

The following response codes can be received when the method is complete.

Response code Description
200 OK. The service instance list was successfully returned.
400 Bad Request. A malformed request was submitted.
404 Not Found. No service instances exist.


Feedback