<?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: Retrieve ILO sessionKey through Oneview rest API with Read-only user in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/retrieve-ilo-sessionkey-through-oneview-rest-api-with-read-only/m-p/7118805#M5994</link>
    <description>&lt;P&gt;Unfortunately, this operation is not supported with the &lt;FONT face="courier new,courier"&gt;Read-Only&lt;/FONT&gt; permission.&amp;nbsp; An alternate way is to use the &lt;FONT face="courier new,courier"&gt;Firmware Operator&lt;/FONT&gt; role, which provides read-only for almost everything, but is allowed to change the firmware policy of a profile, change the power state of a server (i.e. reboot) and connect to the remote console.&amp;nbsp; This permission will generate the session token you are looking for.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 15:58:55 GMT</pubDate>
    <dc:creator>ChrisLynch</dc:creator>
    <dc:date>2021-01-27T15:58:55Z</dc:date>
    <item>
      <title>Retrieve ILO sessionKey through Oneview rest API with Read-only user</title>
      <link>https://community.hpe.com/t5/hpe-oneview/retrieve-ilo-sessionkey-through-oneview-rest-api-with-read-only/m-p/7118652#M5992</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to connect to all ILOs of oneview site using rest API to retrieve ILO's data like fan status, cpu status , etc....&lt;/P&gt;&lt;P&gt;I need to use an account with Read-only privileges.&lt;/P&gt;&lt;P&gt;I connect to oneview with login API and I retrieve sessionID.&amp;nbsp; (rest API: /rest/login-sessions).&amp;nbsp; With this sessionID I call API&amp;nbsp;/rest/server-hardware/{uuid}/remoteConsoleUrl to retrieve the ILO sessionID and then I can use this ILO sessionID to retrieve data from ILO, for example using redfish API&amp;nbsp;/redfish/v1/chassis/1/Thermal/ to retrieve thermal data.&amp;nbsp; The problem is that when I do the call&amp;nbsp;/rest/server-hardware/{uuid}/remoteConsoleUrl there is the error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{"errorCode":"ACTION_FORBIDDEN_BY_ROLE","message":"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;This user session is not authorized to perform the action&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;on {\"name\":\"&amp;lt;serverName&amp;gt;\", \"uri\":\"/rest/server-hardware/{uuid}\"}.","details":"This user session is not authorized to perform the Update action on {\"name\":\"&amp;lt;serverName&amp;gt;\", \"uri\":\"/rest/server-hardware/{uuid}\"} in the server-hardware category.","recommendedActions":["User session permission roles do not authorize the action on this category of resources.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Retry the action with permissions that include a role that authorizes the action on the resource category or request assistance from a user who is authorized to perform the action&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;."],"errorSource":null,"nestedErrors":[],"data":{}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I connect to ILO server, using rest API, with read-only oneview user?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOTE:I can't connect directly to ILO, for many reasons, but I need to use a Oneview session, I need to pass through Oneview.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 14:58:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/retrieve-ilo-sessionkey-through-oneview-rest-api-with-read-only/m-p/7118652#M5992</guid>
      <dc:creator>davidnew</dc:creator>
      <dc:date>2021-01-26T14:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve ILO sessionKey through Oneview rest API with Read-only user</title>
      <link>https://community.hpe.com/t5/hpe-oneview/retrieve-ilo-sessionkey-through-oneview-rest-api-with-read-only/m-p/7118805#M5994</link>
      <description>&lt;P&gt;Unfortunately, this operation is not supported with the &lt;FONT face="courier new,courier"&gt;Read-Only&lt;/FONT&gt; permission.&amp;nbsp; An alternate way is to use the &lt;FONT face="courier new,courier"&gt;Firmware Operator&lt;/FONT&gt; role, which provides read-only for almost everything, but is allowed to change the firmware policy of a profile, change the power state of a server (i.e. reboot) and connect to the remote console.&amp;nbsp; This permission will generate the session token you are looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 15:58:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/retrieve-ilo-sessionkey-through-oneview-rest-api-with-read-only/m-p/7118805#M5994</guid>
      <dc:creator>ChrisLynch</dc:creator>
      <dc:date>2021-01-27T15:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve ILO sessionKey through Oneview rest API with Read-only user</title>
      <link>https://community.hpe.com/t5/hpe-oneview/retrieve-ilo-sessionkey-through-oneview-rest-api-with-read-only/m-p/7119733#M6018</link>
      <description>&lt;P style="margin: 0;"&gt;Please refer HPE OneView - User Accounts and Roles article for more information on User role permissions&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;A href="https://support.hpe.com/hpesc/public/docDisplay?docId=a00054510en_us&amp;amp;docLocale=en_US#:~:text=HPE%20OneView%20defines%20a%20set,resources%20managed%20by%20the%20appliance.&amp;amp;text=A%20scope%20is%20a%20user%2Ddefined%20set%20of%20resources" target="_blank"&gt;https://support.hpe.com/hpesc/public/docDisplay?docId=a00054510en_us&amp;amp;docLocale=en_US#:~:text=HPE%20OneView%20defines%20a%20set,resources%20managed%20by%20the%20appliance.&amp;amp;text=A%20scope%20is%20a%20user%2Ddefined%20set%20of%20resources&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 07:41:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/retrieve-ilo-sessionkey-through-oneview-rest-api-with-read-only/m-p/7119733#M6018</guid>
      <dc:creator>AmRa</dc:creator>
      <dc:date>2021-02-04T07:41:04Z</dc:date>
    </item>
  </channel>
</rss>

