<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: getting firmware with a filter in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/getting-firmware-with-a-filter/m-p/7095838#M5455</link>
    <description>&lt;P&gt;I don't think the Filter option works here.&amp;nbsp; You will find that in the Common Parameters section of the API documentation states that not all endpoints implement either Filter, Query or UserQuery.&amp;nbsp; I'll dig into this a bit more and reply back to the thread.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2020 22:21:43 GMT</pubDate>
    <dc:creator>ChrisLynch</dc:creator>
    <dc:date>2020-07-21T22:21:43Z</dc:date>
    <item>
      <title>getting firmware with a filter</title>
      <link>https://community.hpe.com/t5/hpe-oneview/getting-firmware-with-a-filter/m-p/7095390#M5433</link>
      <description>&lt;P&gt;I can retrieve the entire firmware list with the REST API, but wanted to try to apply some filters.&amp;nbsp; That is not working.&amp;nbsp; I'm getting back:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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.&lt;/LI-CODE&gt;&lt;P&gt;I'm following the document API reference.&amp;nbsp; Here are two attempts (Note: currentVersion is set to 1200; sessionID is set to my current session ID; and OneView is set to &lt;A href="https://server.fqdn" target="_blank"&gt;https://server.fqdn&lt;/A&gt;&lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;Retrieve firmware for DL380 Gen10s:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MODEL="ProLiant DL380 Gen10"
curl --insecure \
   --header "X-API-Version: ${currentVersion}" \
   --header "auth: ${sessionID}" \
   --request GET ${OneView}/rest/server-hardware/*/firmware?filter=serverModel="${MODEL}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Retrieve BIOS firmware information:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;BIOS="System ROM"
curl --insecure \
   --header "X-API-Version: ${currentVersion}" \
   --header "auth: ${sessionID}" \
   --request GET ${OneView}/rest/server-hardware/*/firmware?filter=components.componentName="${BIOS}"&lt;/LI-CODE&gt;&lt;P&gt;I then want to combine those to just get the BIOS version for DL380s, for example.&amp;nbsp; Can anyone point out what I am doing wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 12:26:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/getting-firmware-with-a-filter/m-p/7095390#M5433</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2020-07-17T12:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: getting firmware with a filter</title>
      <link>https://community.hpe.com/t5/hpe-oneview/getting-firmware-with-a-filter/m-p/7095838#M5455</link>
      <description>&lt;P&gt;I don't think the Filter option works here.&amp;nbsp; You will find that in the Common Parameters section of the API documentation states that not all endpoints implement either Filter, Query or UserQuery.&amp;nbsp; I'll dig into this a bit more and reply back to the thread.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 22:21:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/getting-firmware-with-a-filter/m-p/7095838#M5455</guid>
      <dc:creator>ChrisLynch</dc:creator>
      <dc:date>2020-07-21T22:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: getting firmware with a filter</title>
      <link>https://community.hpe.com/t5/hpe-oneview/getting-firmware-with-a-filter/m-p/7096416#M5485</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;The documentation seems to imply that it does?&amp;nbsp; We are running version 5.30.&amp;nbsp; In the API Reference -&amp;gt; Servers -&amp;gt; Server Hardware -&amp;gt; GET /rest/server-hardware/*/firmware the first example shows using filters.&amp;nbsp; Am I miss-reading it, or is there an error in the documentation?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 10:59:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/getting-firmware-with-a-filter/m-p/7096416#M5485</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2020-07-27T10:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: getting firmware with a filter</title>
      <link>https://community.hpe.com/t5/hpe-oneview/getting-firmware-with-a-filter/m-p/7103510#M5666</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;Did you ever find an answer to this?&amp;nbsp; I get back:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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.&lt;/LI-CODE&gt;&lt;P&gt;but the 5.3 REST API documentation specifically states that one should be able to filter based on serverModel.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 12:01:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/getting-firmware-with-a-filter/m-p/7103510#M5666</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2020-10-02T12:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: getting firmware with a filter</title>
      <link>https://community.hpe.com/t5/hpe-oneview/getting-firmware-with-a-filter/m-p/7103543#M5670</link>
      <description>&lt;P&gt;I had no issues using the URI.&amp;nbsp; This is NOT a URL that you can access from a web browser.&amp;nbsp; It is a REST API URI.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 19:15:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/getting-firmware-with-a-filter/m-p/7103543#M5670</guid>
      <dc:creator>ChrisLynch</dc:creator>
      <dc:date>2020-10-02T19:15:28Z</dc:date>
    </item>
  </channel>
</rss>

