- Community Home
- >
- Software
- >
- HPE OneView
- >
- getting firmware with a filter
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
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
07-17-2020 05:26 AM
07-17-2020 05:26 AM
getting firmware with a filter
I can retrieve the entire firmware list with the REST API, but wanted to try to apply some filters. That is not working. I'm getting back:
400 Bad Request
Your browser sent a request that this server could not understand.
Additionaly, a 400 Bad Reqest
error was encountered while trying ot use an ErrorDocument to handle the request.
I'm following the document API reference. Here are two attempts (Note: currentVersion is set to 1200; sessionID is set to my current session ID; and OneView is set to https://server.fqdn
Retrieve firmware for DL380 Gen10s:
MODEL="ProLiant DL380 Gen10"
curl --insecure \
--header "X-API-Version: ${currentVersion}" \
--header "auth: ${sessionID}" \
--request GET ${OneView}/rest/server-hardware/*/firmware?filter=serverModel="${MODEL}"
Retrieve BIOS firmware information:
BIOS="System ROM"
curl --insecure \
--header "X-API-Version: ${currentVersion}" \
--header "auth: ${sessionID}" \
--request GET ${OneView}/rest/server-hardware/*/firmware?filter=components.componentName="${BIOS}"
I then want to combine those to just get the BIOS version for DL380s, for example. Can anyone point out what I am doing wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2020 03:08 PM - edited 07-21-2020 03:21 PM
07-21-2020 03:08 PM - edited 07-21-2020 03:21 PM
Re: getting firmware with a filter
I don't think the Filter option works here. You will find that in the Common Parameters section of the API documentation states that not all endpoints implement either Filter, Query or UserQuery. I'll dig into this a bit more and reply back to the thread.
[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
07-27-2020 03:59 AM
07-27-2020 03:59 AM
Re: getting firmware with a filter
Hi Chris,
The documentation seems to imply that it does? We are running version 5.30. In the API Reference -> Servers -> Server Hardware -> GET /rest/server-hardware/*/firmware the first example shows using filters. Am I miss-reading it, or is there an error in the documentation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2020 05:01 AM
10-02-2020 05:01 AM
Re: getting firmware with a filter
Hi Chris,
Did you ever find an answer to this? I get back:
400 Bad Request
Your browser sent a request that tis server could not understand.
Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.
but the 5.3 REST API documentation specifically states that one should be able to filter based on serverModel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2020 12:15 PM
10-02-2020 12:15 PM
Re: getting firmware with a filter
I had no issues using the URI. This is NOT a URL that you can access from a web browser. It is a REST API URI.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
