FTP Report Output v2

post

/jderest/v2/external/ftp/report

Using the report job number, transfer the output of the report to an external FTP server.

Request

Supported Media Types
Header Parameters
Body ()
Input used to check the status or retrieve the output of a requested report.
Root Schema : PostProcessUBERequest
Type: object
Input used to check the status or retrieve the output of a requested report.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful Execution

400 Response

Bad Request - Invalid JSON Input

403 Response

Authorization Failure

415 Response

Invalid Content-Type Header - Must use application/json

444 Response

Invalid Token
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source

500 Response

Server Failed to Process Request
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source
Back to Top

Examples

Example Request

The following shows an example of a report output request to transfer the output of a completed report using FTP. The softCodingRecordKey is the key to the soft coding/connection record; it contains the details and credentials of the FTP site. The token value is from a prior call to the tokenrequest service to establish a session

curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/external/ftp/report -d
{	 
    "jobNumber": 1207,
	"softCodingRecordKey":"MYFTP",
    "executionServer": "myEntServer"
}

Example Response - Transfer Logs

The following example shows the contents of the response body.

{
   "reportName": "R064011",
   "reportVersion": "XJDE0001",
   "jobNumber": 1207,
   "executionServer": "myEntServer",
   "jobStatus": "D",
   "objectType": "UBE",
   "user": "JDE",
   "environment": "JDV920",
   "submitDate": "20171102",
   "lastDate": "20171102",
   "submitTime": 170157,
   "lastTime": 170158,
   "oid": "R064011_XJDE0001",
   "queueName": "QBATCH",
   "fileName": "/FTP_Reports/R064011_XJDE0001_1207_PDF.pdf"
}

Example Request - Transfer Logs

The following example shows the contents of the response body.

curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/external/ftp/report -d
{	 
    "jobNumber": 1207,
	"softCodingRecordKey":"MYFTP",
    "executionServer": "myEntServer"
    "viewType":"LOG",
    "logType":"BOTH"
}

Example Response - Transfer Logs

The following example shows the contents of the response body.

{
   "reportName": "R064011",
   "reportVersion": "XJDE0001",
   "jobNumber": 1207,
   "executionServer": "myEntServer",
   "jobStatus": "D",
   "objectType": "UBE",
   "user": "JDE",
   "environment": "JDV920",
   "submitDate": "20171102",
   "lastDate": "20171102",
   "submitTime": 170157,
   "lastTime": 170158,
   "oid": "R064011_XJDE0001",
   "queueName": "QBATCH",
   "fileName": "/FTP_Reports/R064011_XJDE0001_1207_PDF.log"
}
Back to Top