Get the details of the resultant instances of an event
/mftapp/rest/v1/events/{eventSessionId}/instances
eventSessionId as a path parameter. Submit with query parameter inDetail=true for response to contain complete details of the resultant instances; submit without query parameter for response to contain minimal details.Request
-
eventSessionId(required): string
ID of the event session,
-
inDetail: boolean
Return complete details of the resultant instances of an event.
Response
- application/json
200 Response
objecteventDetails-
endpointReference:
string
The source endpoint URL.
-
eventSessionId:
string
Session ID of the event being queried.
-
instances:
array instances
Title:
instancesInformation about the instances. -
sourceName:
string
Name of the source.
-
sourceType:
string
Depicts the source types for which the event was executed (File, FTP, SFTP, etc.).
-
submittedBy:
string
User who submitted the request.
-
totalInstances:
integer
Total number of instances created out of this event.
arrayinstances-
Array of:
object items
Title:
items
objectitems-
details:
object details
Title:
detailsDetails of the instance. -
fileName:
string
Name of the processed file.
-
status:
object status
Title:
statusString values depicting status of the instance.
objectdetails-
bytesReceived:
string
Bytes received.
-
priority:
string
Priority at which file is processed (High, Medium, or Low).
-
receivedTime:
string
Time at which the file was picked up from the source.
-
sourceURL:
string
The source endpoint URL.
-
statusDetail:
string
Consolidated detail about the statuses of the instances related to a particular source.
-
targets:
array targets
Title:
targetsTarget associated with the transfer.
objectstatus-
status:
string
Final status of the instance (Active, Completed, or Failed).
-
subStatus:
string
Substatus of the instance (Pending, Scheduled, Error, etc.).
arraytargets-
Array of:
object items
Title:
items
objectitems-
bytesTransferred:
string
Bytes transferred.
-
completionTime:
string
Time of completion.
-
deliveredFileName:
string
Name of the file delivered.
-
deliveryStatus:
string
Delivery status of the target message (pending, in progress, paused, etc.).
-
status:
string
Overall status of the target message process (Active, Completed, or Failed).
-
targetName:
string
Name of the target.
500 Response
objecterror-
errorCode:
string
The error code that Oracle Managed File Transfer returns.
-
errorKey:
string
The error key that Oracle Managed File Transfer returns.
-
errorMessage:
string
A message describing the error that Oracle Managed File Transfer returns.
Examples
The following cURL command shows how to get the details of an event by submitting GET request on the REST resource using cURL. For more information, see Use cURL.
cURL Command
curl -I -X GET -u <username>:<password> -H "Content-Type: application/json" http://<host>:<port>/mftapp/rest/v1/mftapp/rest/v1/events/ss212020-2139021-122/instances
Example of Response Body: 200 Response: Minimal Instance Details of an Event
The following example shows the contents of the response body for a successful request in JSON format when the inDetail=false query parameter is not submitted:
{
"eventSessionId": "ss212020-2139021-122",
"totalInstances": 1,
"sourceName": "src1",
"sourceType": "SFTP",
"endpointReference": "srrha1",
"submittedBy": "user1",
"instances": [
{
"filename": "file1",
"status": [
{
"status": "COMPLETED",
"subStatus": "SUCCESSFUL"
}
]
}
]
}Example of Response Body: 200 Response: Complete Instance Details of an Event
The following example shows the contents of the response body for a successful request in JSON format when the inDetail=true query parameter is submitted:
{
"eventSessionId": "ss212020-2139021-122",
"totalInstances": 1,
"sourceName": "src1",
"sourceType": "SFTP",
"endpointReference": "srrha1",
"submittedBy": "user1",
"instances": [
{
"filename": "file1",
"status": [
{
"status": "COMPLETED",
"subStatus": "SUCCESSFUL"
}
],
"details": [
{
"statusDetail": "Successful 1,Errored 0,InPogress 0",
"bytesReceived": "28",
"receivedTime": "2014-09-30 20:26:36.855",
"sourceURL": "http://host:port/mftconsole/faces/report?type=source=0000KZ742Fr1VcHpMs5Eie1KAg5t00000U",
"priority": "MEDIUM",
"targets": [
{
"targetName": "file_tgt2",
"status": "COMPLETED",
"deliveredFileName": "test1.txt",
"bytesTransferred": "28",
"completionTime": "2014-09-30 20:26:38.414"
}
]
}
]
}
]
} Example of Response Body: 500 Response
The following example shows the contents of the response body for an successful request in JSON format:
{
"errorCode":"MFT-5436"
"errorKey":"MFT_WS_EVENT_SERVICE_NO_EVENT_FOUND"
"errorMessage":"Error in processing EventService request. No Event found with provided Event Session Id {id}."
}