- Community Home
- >
- Software
- >
- HPE OneView
- >
- REST API for uploading new OneView update?
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Email to a Friend
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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. :)
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP