Get Optim Directory Connections method
Use the Get Optim Directory Connections method to retrieve a list of all Optim™ directory connections in the connection manager.
HTTP method: GET
URI: /connection
Example: http://localhost:9080/server/connection
Request payload content type: None
Response payload content type: application/xml
Expected response: HTTP/1.1 200 OK
Response payload example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:connections xmlns:ns2="http://www.ibm.com/optim/xsd/connection/9.1.0">
<ns2:connection>
<id>13ec06b3-9037-44d7-b6c3-91c9879af0c3</id>
<name>DB2_TEST</name>
<status>Complete</status>
<vendor>DB2 UDB</vendor>
<version>10.5</version>
<jdbcUrl>jdbc:db2://localhost:50000/mytest</jdbcUrl>
</ns2:connection>
<ns2:connection>
<id>6f53789c-40ed-4e67-801d-d0502a456494</id>
<name>DEVMSQL2017</name>
<status>Complete</status>
<vendor>SQL Server</vendor>
<version>2017</version>
<jdbcUrl>jdbc:sqlserver://localhost:1433;databaseName=devmsql2017</jdbcUrl>
</ns2:connection>
</ns2:connections>
Response codes
The following response codes can be received when the method is complete:
Response code | Description |
---|---|
200 | OK. |
400 | Bad Request. A malformed request was submitted. |
404 | Not found. |