Import the MFT metadata into the MFT MDS store
put
/mftapp/rest/v1/applicationMetadata
Import metadata along with optional
configplan
file which allows to override the attributes in the metadata files.Request
Supported Media Types
- multipart/form-data
Query Parameters
-
previewModeFlag(optional): boolean
Flag to view the preview the import without actually importing metadata.
Form Parameters
Back to Top
Response
Supported Media Types
- application/json
200 Response
500 Response
Root Schema : Error information.
Type:
object
Title:
Show Source
Error information.
-
errorCode(optional):
string
The error code that Oracle Managed File Transfer returns.
-
errorKey(optional):
string
A message describing the error that Oracle Managed File Transfer returns.
-
errorMessage(optional):
string
A message that describes the error that Oracle Managed File Transfer returns
Example Response (application/json)
{
"errorCode":"MFT-2351",
"errorKey":"MFT_IMPORT_ERROR",
"errorMessage":"Error occurred while importing the metadata."
}
Examples
Example of cURL command to import metadata from a remote machine
The API supports importing metadata from a remote server.The following cURL command shows the import command:
curl -X PUT -H "Content-Type: multipart/form-data" -F "archive=@export.zip" -F "configPlan=@mftConfig.xml" http://test.us.oracle.com:port/mftapp/rest/v1/applicationMetadata
Run the above mentioned cURL command from folder where export.zip exists, else provide complete path for example,
/net/test.us.oracle.com/scratch/export.zip
.
It is recommended that you use MFT console or MFT REST API for export/import of files.