Get All Work Orders method
For Optim™ V11.3.0.8 or higher, use the Get All Work Orders method to receive an XML file that contains links to the work orders.
HTTP method: GET
URI: /workorder/connection_name
Example: http://localhost:8080/server/workorder/DB2_TEST
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 parameter(s):
| Name | Description | Required |
|---|---|---|
| connection_name | Enter the name that identifies the Optim directory connection that contains the work orders. Refer to Get Optim Directory Connections method to get a list of your connections, and then use the name from the payload. | Y |
Response payload example
<?xml version="1.0" encoding="UTF-8"?>
<ns2:workorders xmlns="http://www.w3.org/2005/Atom"
xmlns:ns2="http://www.ibm.com/optim/xsd/workorder/9.1.0">
<link href="http://localhost:8080/server/workorder/DB2_TEST/10000"/>
<link href="http://localhost:8080/server/workorder/DB2_TEST/10001"/>
<link href="http://localhost:8080/server/workorder/DB2_TEST/10002"/>
<link href="http://localhost:8080/server/workorder/DB2_TEST/10003"/>
<link href="http://localhost:8080/server/workorder/DB2_TEST/10004"/>
</ns2:workorders>
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. |