Import the MFT metadata into the MFT MDS store

put

/mftapp/rest/v1/applicationMetadata

Imports metadata along with optional config plan 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

The following cURL command shows how to import metadata from a remote machine. For more information, see Use cURL.

cURL Command

To import the metadata archive:

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 this cURL command from a folder where export.zip exists. Otherwise, provide the 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