- Community Home
- >
- Software
- >
- HPE OneView
- >
- REST API for uploading new OneView update?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2019 07:20 AM
02-01-2019 07:20 AM
I haven't found in the API reference yet, so asking here. Is there a REST API command to upload a new version of the OneView software (the .bin file) to a current appliance?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2019 06:41 PM
02-04-2019 06:41 PM
Re: REST API for uploading new OneView update?
Hi Brad,
Please refer to below API reference guide.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2019 02:55 AM
02-05-2019 02:55 AM
Re: REST API for uploading new OneView update?
Thanks! Not sure how I missed it? I was searching all over. :)
I gave it try using:
UPD=/hp/oneview/HPE_OneView_4.10.04_update_Z7550-96558.bin curl --insecure \ --header "content-type: application/json" \ --header "accept: application/json" \ --header "X-API-Version: ${currentVersion}" \ --header "auth: ${sessionID}" \ --form "file=@${UPD}" \ --request POST ${OneView}/rest/appliance/firmware/image | jq -r '.'
After about a minute, it fails with:
{ "message": "Internal Server Error", "details": There was a problem while processing the request. The request might not have completed with the required timeout, or another error might have occurred.", "recommendedActions": [ "Resend the request. If the error persists, create a support dump and contact your authorized support representative." ], "data": {}, "errorCode": "GENERIC_HTTP_500", "nestedErrors": [], "errorSource": null }
I tried again and got the same reply. Is there some way to tell it to allow more time for the upload?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2019 03:58 AM
02-12-2019 03:58 AM
Re: REST API for uploading new OneView update?
I request you to raise a support ticket with HPE.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2019 05:48 AM
02-12-2019 05:48 AM
SolutionMy fault. I had not read the API fully and completely. I missed adding '--globoff' and changing the content-type to 'multipart/form-data.' Once I did that, the file uploaded correctly using
UPD=/hp/oneview/HPE_OneView_4.10.04_update_Z7550-96558.bin
curl --insecure --globoff \
--header "content-type: multipart/form-data" \
--header "accept: application/json" \
--header "X-API-Version: ${currentVersion}" \
--header "auth: ${sessionID}" \
--form "file=@${UPD}" \
--request POST ${OneView}/rest/appliance/firmware/image | jq -r '.'
Once, I had that, I was able to tell it to go ahead and apply the firmware update. :)