POST /files/managementServer/data

Use this method to import a Lenovo XClarity Administrator backup.

To import a backup, complete the following steps.

  1. Import the backup using POST /files/managementServer/data?action=import. You must specify the passphrase to import the file.

  2. Validate the backup and make it available for later use using POST /files/managementServer/data?action=process.

Note: This API requires Lenovo XClarity Administrator v2.1.0 or later.


Authentication with user name and password is required.

Request URL

POST https://{management_server_IP}/files/managementServer/data

Query parameters

Attributes Required / Optional Description
action Required Action to take. This can be one of the following values.
  • import. Upload a backup package to the XClarity Administrator repository.

  • process. Validate the backup package for integrity and compatibility, and prepare the backup for later use.

The following example imports the backup to the XClarity Administrator.
POST https://
The following example validates and prepares the backup file.
POST https://

Request body

The request body differs depending on the value of the action query parameter.
Use the "multipart/form-data" media type to import the backup package. Use the attributes in the following table as the multipart name in the body. For more information about the multipart/form-data media type, see Returning Values from Forms: multipart/form-data webpage.
Attributes Required / Optional Type Description
filename Required String Name of the backup file to import

For example:

HTTP Header
Content-Type: multipart/form-data; boundary=AaB03x

Request body

   Content-Disposition: form-data; name=" uploadedfile"; 
                        filename=" LXCA_backup_Jul20.tar"
   Content-Type: application/x-tar 
Specify a JSON object with the following attribute.
Attributes Required / Optional Type Description
passphrase Required String Package passphrase that was specified by the user

For example:

   "passphrase": "xxxxxxxxxx"

Response codes

Code Description Comments
200 OK The request completed successfully.
201 Created One or more new resources were successfully created.
400 Bad Request A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
401 Unauthorized The user cannot be authenticated. Authentication has not been provided or has failed. A descriptive error message is returned in the response body.
500 Internal Server Error An internal error occurred. A descriptive error message is returned in the response body.

Response body

Attributes Type Description
result String Results of the request. This can be one of the following values.
  • success. The request completed successfully.
  • failed. The request failed. A descriptive error message was returned.
  • warning. The request completed with a warning. A descriptive error message was returned.
messages Array of objects Information about one or more messages
  id String Message identifier of a returned message
  text String Message text associated with the message identifier
  explanation String Additional information to clarify the reason for the message
  recovery Array of objects Recovery information
    text String User actions that can be taken to recover from the event
    URL String Link to the help system for more information, if available
The following example is returned if the request is successful.
   "result": "success",
   "message": []