POST /managementServer/data
Use this method to backup or restore Lenovo XClarity Administrator system data, settings, and imported files such as operating-system images, firmware updates, and OS device drivers.
During the backup or restore operation, the management server is placed in a quiesced state. You can use the GET /managementServer/quiesce method to retrieve the current status of the management server and of the backup or restore operation that is in progress. Note that while the management server is being quiesced or resumed, status cannot be retrieved.
The restore operation is a multiple-step operation. The backup package must first be decrypted and prepared before the restore can start.
To restore a backup file in a newly setup management server, complete the following steps.
Send the backup to the new management server by completing one of the following steps.
Importing the backup to the management server using POST /files/managementServer/data?action=import.
Pushing the backup from an existing management server to the new management server using PUT /managementServer/data and specifying the operation=push and action=start request attributes.
Validate, decrypt, and prepare the backup using POST /files/managementServer/data?action=process.
Restore the backup using POST /managementServer/data and specifying the operation=restore and action=start request attributes.
To restore a backup file in an existing management server, complete the following steps
If the package is not in the local repository, either:
If the file is on the local server, import the file using POST /files/managementServer/data?action=import and then validate and prepare the backup the file using POST /files/managementServer/data?action=process.
If the file is in a remote share, copy the backup to the local repository using PUT /managementServer/data and specifying the operation=copyand action=start request attributes.
Decrypt and prepare the backup using POST /managementServer/data and specifying the operation=restore and action=prepare request attributes.
Restore the backup using POST /managementServer/data and specifying the operation=restore and action=start request attributes.
If you want to restore managed devices, you must also restore the network settings except when the target management server uses the same IP address as the source management server when the backup was created. Restoring managed devices without restoring network settings in a management server with different IP address causes most devices to lose connectivity.
If the backup was created in a management server with a static IP address and you restore network settings, ensure that there will be no IP address conflicts in your network. If another system is using the same IP address, you might not be able access both the existing system and the XClarity Administrator instance.
If the backup was created in a management server with a DHCP IP address and you restore network settings, ensure that you modify the MAC address for the DHCP server or the XClarity Administrator instance so that the management server can receive the same IP address that the source management server had when the backup package was created.
The restore operation checks whether the source IP addresses are available to avoid IP conflicts. If at least one of the source IP addresses is already in use and online, the restore operation fails and returns an error message.
Authentication
Authentication with username and password is required.
Request URL
POST https://{management_server_IP}/managementServer/data
Query parameters
None
Request body
Attributes | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
action | Required | String | Action to take. This can be the following value.
Note To cancel a backup operation, use | ||
includeFW | Required | Boolean | Indicates whether to include firmware and OS device-driver updates in the backup. This can be one of the following values.
| ||
includeOS | Required | Boolean | Indicates whether to include operating system images in the backup. This can be one of the following values.
| ||
label | Required | String | File name of the backup. If empty, the file name is the current date | ||
operation | Required | String | Type of operation to perform. This can be the following value.
| ||
passphrase | Required | String | Passphrase that is required for decrypting and restoring the backup. Attention If you forget the passphrase, it cannot be recovered. | ||
remoteShareDestination | Optional | String | Remote share where you want to store the backup (for example, /mnt/backups). If you do not specify a remote share or if the attribute is empty, the backup is stored in the local repository. |
{
"action": "start",
"includeFW": true,
"includeOS": true,
"label": "mybackup",
"operation": "backup",
"passphrase": "123456789",
"remoteShareDestination": "/mnt/my_remote_share"
}
Attributes | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
action | Required | String | Action to take. This can be the following value.
| ||
operation | Required | String | Operation to perform. This can be the following value.
| ||
passphrase | Required | String | Passphrase to use to decrypt the backup | ||
uuid | Required | String | UUID of the backup file to restore |
{
"action": "prepare",
"operation": "restore",
"passphrase": "123456789",
"uuid": "56be1884-3187-4a4c-90b5-13f05ee824a2"
}
Attributes | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
action | Required | String | Action to take. This can be the following value.
| ||
devices | Required | Boolean | Indicates whether to restore device inventory. This can be one of the following values.
| ||
firmware | Required | Boolean | Indicates whether to restore firmware and OS device-driver updates. This can be one of the following values.
| ||
network | Required | Boolean | Indicates whether to restore network settings. This can be one of the following values.
| ||
operation | Required | String | Operation to perform. This can be the following value.
| ||
osImages | Required | Boolean | Indicates whether to restore operating-system images. This can be one of the following values.
|
{
"action": "start",
"includeFW": false,
"includeOS": true,
"label": "mybackup2",
"operation": "backup",
"passphrase": "123456789"
}
{
"action": "start",
"devices": true,
"network": true,
"operation": "restore",
"osImages": false,
"firmware": false
}
Attributes | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
action | Required | String | Action to take. This can be the following value.
| ||
operation | Required | String | Operation to perform. This can be the following value.
|
{
"action": "cancel",
"operation": "restore"
}
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
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. |
403 | Forbidden | The orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. Ensure that you have privileges to perform the request. |
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.
| ||
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 |
{
"result": "success",
"message": []
}