Get available active sources
get
/sources
Gets the list of sources active in MFT based on the criteria like application type, binding type, etc. The response contains the list of sources with URLs.
Request
Query Parameters
- application
-
Type:
stringType of the application binding you want to discover- bindingType
Type:stringBinding type of source you want to discover- onlyEventEnabled
Type:booleanDiscover only event enabled sources- searchFilter
Type:stringFull/partial Name of source(s) to be discoveredResponse
Supported Media Types- application/json
200 ResponseBodyRoot Schema : source- sources
-
Type:
arraysourcesSources discovered
Nested Schema : sourcesNested Schema : sources-items[0]Type:object- bindingType
-
Type:
stringBinding type of the source. - eventInvokeUrl
-
Type:
stringURL at which to invoke the event. - name
-
Type:
stringName of the source. - url
-
Type:
stringURL of the source.
Example application/json
{ "sources":[ { "name":"src1", "url":"/scratch/demo", "bindingType":"File", "eventInvokeUrl":"/mftapp/rest/v1/events" }, { "name":"src2", "url":"/scratch/username", "bindingType":"File", "eventInvokeUrl":"/mftapp/rest/v1/events" } ] }500 ResponseSomething went wrongBodyRoot Schema : Error information.Type:objectTitle:Error information.- errorCode
-
Type:
stringThe error code that Oracle Managed File Transfer returns. - errorKey
-
Type:
stringThe error key that Oracle Managed File Transfer returns. - errorMessage
-
Type:
stringA message describing the error that Oracle Managed File Transfer returns.
Example application/json
{ "errorCode":"MFT-5403", "errorKey":"MFT_WS_DISCOVERY_COULD_NOT_QUERY_MFT_SOURCES", "errorMessage":"Discovery service is unable to query MFT Sources for the given application ODI and search Filter file1." }Examples
Example of Response Body: 200 Response
The following example shows the contents of the response body for a successful request in JSON format:
{ "sources": [ { "name": "src1", "url": "/scratch/demo", "bindingType": "File", "eventInvokeUrl": "/mftapp/rest/v1/events" }, { "name": "src2", "url": "/scratch/username", "bindingType": "File", "eventInvokeUrl": "/mftapp/rest/v1/events" } ] }Example of Response Body: 500 Response
The following example shows the contents of the response body for an unsuccessful request in JSON format:
{ "errorCode":"MFT-5403" "errorKey":"MFT_WS_DISCOVERY_COULD_NOT_QUERY_MFT_SOURCES" "errorMessage":"Discovery service is unable to query MFT Sources for the given application {application} and search Filter {search filter}." }