Requesting Report Execution Details

Once the report is ready, your client must determine the names of the files to download by requesting the reportExecution descriptor again. Specify the requestID in the URL as follows:

Method

URL

GET

http://<host>:<port>/jasperserver[-pro]/rest_v2/reportExecutions/requestID

Options

accept: application/xml (default)

accept: application/json

Return Value on Success

Typical Return Values on Failure

200 OK – The content contains a ReportExecution descriptor. See below for an example.

404 Not Found – When the request ID specified in the request does not exist.

The report execution descriptor now contains the list of exports for the report, including the report output itself and any other file attachments. File attachments such as images and JavaScript occur only with HTML export.

<reportExecution>
  <reportURI>/reports/samples/AllAccounts</reportURI>
  <requestId>912382875_1366638024956_2</requestId>
  <status>ready</status>
  <totalPages>47</totalPages>
  <currentPage>1</currentPage>
  <exports>
    <export>
      <id>html</id>
      <outputResource>
        <contentType>text/html</contentType>
      </outputResource>
      <status>ready</status>
      <attachments>
        <attachment>
          <contentType>image/jpeg</contentType>
          <fileName>img_0_46_1</fileName>
        </attachment>
        <attachment>
          <contentType>image/png</contentType>
          <fileName>img_0_0_0</fileName>
        </attachment>
        <attachment>
          <contentType>image/png</contentType>
          <fileName>img_0_46_0</fileName>
        </attachment>
      </attachments>
    </export>
  </exports>
</reportExecution>
Version: 
Feedback