Last Run Report
Generates a file with information for a given job run in the specified format.
Endpoint
https://<Director_IP_address>:4443/c/router
Request Example
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie @cookies.txt \
--data "{
"action": "ReportingManagement",
"method": "createJobReport",
"data": [1, 1, null, null, 10800000, "PDF"],
"type": "rpc",
"tid": 1}"
Request Fields
Field |
Type |
Value(s) |
---|---|---|
action
|
string | ReportingManagement |
method
|
string | createJobReport |
data
|
array | See parameters below |
type
|
string | rpc
|
tid
|
integer | 1 |
Data
Field |
Type |
Description |
---|---|---|
|
long | Job ID |
|
long | Job execution ID (optional) |
|
DateTime | Job history start date (in this case, null) |
|
DateTime | Job history finish date (in this case, null) |
|
Integer | Offset from UTC time zone in milliseconds (optional) |
|
string | The format for the exported file. Can be “CSV”, “PDF”, or “HTML” |
Error Response Sample
{
"action": "ReportingManagement",
"method": "createJobReport",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": null
}
Response Fields
Field |
Value |
Description |
---|---|---|
message
|
string | Message if the request failed |
where
|
string | Refence to the method where problem occurred |
cause
|
string | Cause of failure |