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
Query Parameters
Form Parameters
Back to Top

Response

Supported Media Types

200 Response

Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : configPlanOverrideResultSummmary
Type: array
Show Source
Nested Schema : failedTransfers
Type: array
Show Source
Nested Schema : skippedTransfers
Type: array
Show Source
Nested Schema : items
Type: object
Show Source

500 Response

Body ()
Root Schema : Error information.
Type: object
Title: Error information.
Show Source
Example Response (application/json)
{
    "errorCode":"MFT-2351",
    "errorKey":"MFT_IMPORT_ERROR",
    "errorMessage":"Error occurred while importing the metadata."
}
Back to Top

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.

Back to Top