HP OneView REST API Reference

backups
backups.html[10/17/2013 10:35:53 AM]
Request
Header
Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the
current release, this must be set to "X-API-Version:3"
Response Description
void
Response Codes
REST API Response Codes
Examples
The following example creates a backup of the appliance.
POST https://{appl}/rest/backups/
URI: /rest/backups/archive
Method API
POST Uploads a backup file onto the appliance. The uploaded backup file is used by the restore
operation. A new backup overwrites the uploaded file. Also the upload operation overwrites an
existing backup file. The upload API requires the content type attribute in the REST API header to
be set to "multipart/form-data". The API returns an error if a backup, restore, backup upload or
backup download is already in progress.
Request
Header
Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the
current release, this must be set to "X-API-Version:3"
Response Description
BackupDetail Details about the uploaded backup file.
Response Codes
REST API Response Codes
Examples
The following example uploads a backup file that will be
used to restore the appliance.
POST https://{appl}/rest/backups/archive
URI: /rest/backups/archive/{id}
Method API
GET Downloads a backup from the appliance to a location managed by the software initiating the
download. The accept attribute in the API request header must be set to
"application/octetstream;q=0.8, application/json". The software that sends this request must
handle automatic redirects. The backup is returned in the response body. This method returns an