<?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: did version 5 remove the returned task uris? in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/did-version-5-remove-the-returned-task-uris/m-p/7072541#M4790</link>
    <description>&lt;P&gt;Thanks guys.&amp;nbsp; I'm going to have to revise my scripts.&amp;nbsp; &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2019 09:55:33 GMT</pubDate>
    <dc:creator>BradV</dc:creator>
    <dc:date>2019-12-11T09:55:33Z</dc:date>
    <item>
      <title>did version 5 remove the returned task uris?</title>
      <link>https://community.hpe.com/t5/hpe-oneview/did-version-5-remove-the-returned-task-uris/m-p/7072403#M4781</link>
      <description>&lt;P&gt;I recently upgraded our oneview from 4.2 to 5.0.&amp;nbsp; I'm also working on getting a oneview instance at each geographic location.&amp;nbsp; So, I just added a new instance to one of our locations.&amp;nbsp; I went to our original oneview through the rest api and deleted all of the servers from the geographic location of the new oneview instance.&amp;nbsp; I noticed there was no deletion task uri returned, nor anything.&amp;nbsp; I then started adding them to the new instance and noticed no taskuri was returned from the post command to add them.&amp;nbsp; &amp;nbsp;Is this the new design, or a bug?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another example.&amp;nbsp; I am getting ready to connect the new OneView instance to our AD.&amp;nbsp; I used this in version 4 and got a returned task.&amp;nbsp; Under version 5, I get nothing in return, even though it works:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ROOTB=$(curl --insecure https://our.org/ca_certs/base64/pkiroot.cer 2&amp;gt;/dev/null | awk 'NF {sub(/\r/,""); printf "%s\\n",$0}' 2&amp;gt;/dev/null)
ROOTB=${ROOTB%'\n'}
ROOTCA=$(curl --insecure \
   --header "content-type: application/json" \
   --header "accept: application/json" \
   --header "X-API-Version: ${currentVersion}" \
   --header "auth: ${sessionID}" \
   --data '{ "members": [{ "type": "CertficateAuthorityInfo", "certificateDetails":{ "base64Data":"'"${ROOTB}"'", "aliasName": "Our_Org", "type": "CertficateDetailV2"}}], "type": "CertificateAuthorityInfoCollection" }' \
   --request POST ${OneView}/rest/certificates/ca | jq -r '.uri')&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Dec 2019 11:45:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/did-version-5-remove-the-returned-task-uris/m-p/7072403#M4781</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2019-12-10T11:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: did version 5 remove the returned task uris?</title>
      <link>https://community.hpe.com/t5/hpe-oneview/did-version-5-remove-the-returned-task-uris/m-p/7072446#M4785</link>
      <description>&lt;P&gt;In our REST API reference documenting &lt;A href="https://techlibrary.hpe.com/docs/enterprise/servers/oneview5.0/cic-api/en/index.html#responseCodes" target="_blank" rel="noopener"&gt;HTTP Status Codes&lt;/A&gt;, an HTTP 202 reply will return an HTTP header called Location.&amp;nbsp; That will contain the taskUri string value.&amp;nbsp; Your code when issuing a POST, PUT, PATCh or DELETE should examine the HTTP response code.&amp;nbsp; If HTTP 202 is returned, to begin looking if there is a response body (which may still happen for a few resources even though they should be returning the Location HTTP header), then the HTTP Location header.&amp;nbsp; The other status code would be HTTP 201.&amp;nbsp; Taking a look at 5.00, adding a trusted certificate to the appliance store does return an async task.&lt;/P&gt;&lt;P&gt;We also document changes in the REST API, which you can get from the &lt;A href="https://techlibrary.hpe.com/docs/enterprise/servers/oneview5.0/cic-api/en/index.html#whatIsNew" target="_blank" rel="noopener"&gt;What's New&lt;/A&gt; section of the REST API Reference Guide.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 16:29:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/did-version-5-remove-the-returned-task-uris/m-p/7072446#M4785</guid>
      <dc:creator>ChrisLynch</dc:creator>
      <dc:date>2019-12-10T16:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: did version 5 remove the returned task uris?</title>
      <link>https://community.hpe.com/t5/hpe-oneview/did-version-5-remove-the-returned-task-uris/m-p/7072510#M4789</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1458"&gt;@ChrisLynch&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are right.&lt;BR /&gt;Prior to version 5.00, the task resource was being returned as part of the response body.&lt;BR /&gt;See here:&lt;BR /&gt;&lt;A href="https://techlibrary.hpe.com/docs/enterprise/servers/oneview4.2/cic-api/en/index.html#rest/certificates/ca" target="_blank" rel="noopener"&gt;https://techlibrary.hpe.com/docs/enterprise/servers/oneview4.2/cic-api/en/index.html#rest/certificates/ca&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;However, the REST API specification expects us to return the task in the response header and hence to stay compliant to the spec, this was changed in 5.00&lt;BR /&gt;Mentioned here:&lt;BR /&gt;&lt;A href="https://techlibrary.hpe.com/docs/enterprise/servers/oneview5.0/cic-api/en/index.html#rest/certificates/ca" target="_blank" rel="noopener"&gt;https://techlibrary.hpe.com/docs/enterprise/servers/oneview5.0/cic-api/en/index.html#rest/certificates/ca&lt;/A&gt; as&lt;/P&gt;&lt;PRE&gt;HTTP/1.1 202 Accepted with Task URI in the Location Header&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BradV&lt;/P&gt;&lt;P&gt;You can specify X-API-Version in the header to 1000 so you can continue to stay with the previous behavior, i.e your script will continue to work. On a 5.00 appliance, for backward compatibility reasons, the older API version 1000 continues to be supported.&lt;BR /&gt;You can also modify your script to extract the task from the response header if you want to stay current.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Bhaskar&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 06:01:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/did-version-5-remove-the-returned-task-uris/m-p/7072510#M4789</guid>
      <dc:creator>BhaskarV</dc:creator>
      <dc:date>2019-12-11T06:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: did version 5 remove the returned task uris?</title>
      <link>https://community.hpe.com/t5/hpe-oneview/did-version-5-remove-the-returned-task-uris/m-p/7072541#M4790</link>
      <description>&lt;P&gt;Thanks guys.&amp;nbsp; I'm going to have to revise my scripts.&amp;nbsp; &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 09:55:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/did-version-5-remove-the-returned-task-uris/m-p/7072541#M4790</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2019-12-11T09:55:33Z</dc:date>
    </item>
  </channel>
</rss>

