HP OneView REST API Reference

firmware-bundles
firmware-bundles.html[10/17/2013 10:35:47 AM]
Updated: October 16, 2013 4:39
MDT
API Specifications Create Read Update Delete
/rest/firmware-bundles POST
HP OneView REST API Reference
firmware-bundles
The firmware-bundles resource provides REST APIs for uploading firmware SPP files to the CI appliance.
URI: /rest/firmware-bundles
Method API
POST Upload an SPP ISO image file to the appliance.
Parameter Attributes Description
file Required The ISO image file as a MultipartFile file to be uploaded.
uploadfilename Optional only used by the UI code for IE9
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
TaskResourceV2 Returns a task resource that can be used to
monitor the progress
of the upload.
Response Codes
REST API Response Codes
Examples
https://{appl}/rest/firmware-bundles
Use a REST client tool that supports the multi-part form file upload
feature in order to upload SPP firmware bundles to the appliance. The
curl command is an example of such a tool.
You need to include the following data to upload an SPP to appliance:
a) an HTTP header: "auth" with the valid session token.
b) an HTTP header: "uploadfilename" with the name of a local
file to be loaded.
c) a multi-part file option indicating the full path of a
local file to be loaded.
d) a form with the Content-Type multipart/form-data and
specify
the submit action as https://{app1}/rest/firmware-bundles.
Using the curl command, the options would be: