Use the Get Service Instance Artifact Names method to receive an XML file that contains a list of artifact names for a service instance. For example, you can determine whether a service instance has an override file. You can then use the Get Service Instance Artifact method to receive the content that is contained in each artifact.
HTTP method: GET
URI: /monitor/connection_name/artifacts/execution_id
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 that contains the service instance. | Y |
| execution_id | Enter the execution ID that identifies the service instance whose artifacts you want to view. | Y |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:serviceInstanceArtifacts 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/fbf1cdd5-bdf7-4682-96ad-722672af0001/run.log"/>
<link href="http://interface:8080/server/monitor/OPTIMDIR1/fbf1cdd5-bdf7-4682-96ad-722672af0001/svc_request.xml"/>
<link href="http://interface:8080/server/monitor/OPTIMDIR1/fbf1cdd5-bdf7-4682-96ad-722672af0001/execution.properties"/>
<link href="http://interface:8080/server/monitor/OPTIMDIR1/fbf1cdd5-bdf7-4682-96ad-722672af0001/svc_response.xml"/>
<link href="http://interface:8080/server/monitor/OPTIMDIR1/fbf1cdd5-bdf7-4682-96ad-722672af0001/overrides.txt"/>
</ns2:serviceInstanceArtifacts>
The following response codes can be received when the method is complete.
| Response code | Description |
|---|---|
| 200 | OK. The artifact list was successfully returned. |
| 400 | Bad Request. A malformed request was submitted. |
| 404 | Not Found. The execution ID does not exist. |