<?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 Problem about testing Simplivity Token API in HPE SimpliVity</title>
    <link>https://community.hpe.com/t5/hpe-simplivity/problem-about-testing-simplivity-token-api/m-p/7106480#M1886</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I use postman to test the simplivity token api but the server response the message as following:&lt;/P&gt;&lt;P&gt;{"jsonrpc":"2.0","id":null,"error":{"code":-32600,"message":"Invalid Request","data":"Received unexpected jsonNode grant_type"}}&lt;/P&gt;&lt;P&gt;How could it be resolved?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2020 03:34:17 GMT</pubDate>
    <dc:creator>FelixTsai</dc:creator>
    <dc:date>2020-10-27T03:34:17Z</dc:date>
    <item>
      <title>Problem about testing Simplivity Token API</title>
      <link>https://community.hpe.com/t5/hpe-simplivity/problem-about-testing-simplivity-token-api/m-p/7106480#M1886</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I use postman to test the simplivity token api but the server response the message as following:&lt;/P&gt;&lt;P&gt;{"jsonrpc":"2.0","id":null,"error":{"code":-32600,"message":"Invalid Request","data":"Received unexpected jsonNode grant_type"}}&lt;/P&gt;&lt;P&gt;How could it be resolved?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 03:34:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-simplivity/problem-about-testing-simplivity-token-api/m-p/7106480#M1886</guid>
      <dc:creator>FelixTsai</dc:creator>
      <dc:date>2020-10-27T03:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem about testing Simplivity Token API</title>
      <link>https://community.hpe.com/t5/hpe-simplivity/problem-about-testing-simplivity-token-api/m-p/7106568#M1888</link>
      <description>&lt;P&gt;Can you post the API auth request ?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 11:07:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-simplivity/problem-about-testing-simplivity-token-api/m-p/7106568#M1888</guid>
      <dc:creator>DamianErangey</dc:creator>
      <dc:date>2020-10-27T11:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem about testing Simplivity Token API</title>
      <link>https://community.hpe.com/t5/hpe-simplivity/problem-about-testing-simplivity-token-api/m-p/7106601#M1889</link>
      <description>&lt;P&gt;Request URL:&amp;nbsp;&lt;SPAN&gt;https://simplivity@&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN&gt;{{OVC_IP}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/api/oauth/token&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Method: POST&lt;/P&gt;&lt;P&gt;Headers: Accept and Content-Type are set as&amp;nbsp;&lt;SPAN&gt;application/json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Body: raw request and use json data as below&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"grant_type"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"password"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"username"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"hcimonitor@vsphere.local"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"password"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Mon.1000!"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Oct 2020 13:31:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-simplivity/problem-about-testing-simplivity-token-api/m-p/7106601#M1889</guid>
      <dc:creator>FelixTsai</dc:creator>
      <dc:date>2020-10-27T13:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem about testing Simplivity Token API</title>
      <link>https://community.hpe.com/t5/hpe-simplivity/problem-about-testing-simplivity-token-api/m-p/7107927#M1902</link>
      <description>&lt;P&gt;Here is an example of obtaining and using an access token:&lt;/P&gt;&lt;P&gt;Request an expiring token from the OVC at ip address xx.xx.xx.xx using username 'administrator@vsphere.local' and password 'MySecretPassword!':&lt;BR /&gt;&lt;STRONG&gt;curl -k https://simplivity@xx.xx.xx.xx/api/oauth/token -d grant_type=password -d username='administrator@vsphere.local' -d password='MySecretPassword!'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Results are displayed:&lt;BR /&gt;{"access_token":"&lt;STRONG&gt;42630e4f-211d-444c-b332-b4fcd0c979f1&lt;/STRONG&gt;","token_type":"bearer","expires_in":86399,"scope":"read write","updated_at":1604506169367}&lt;/P&gt;&lt;P&gt;Use the returned access token "&lt;STRONG&gt;42630e4f-211d-444c-b332-b4fcd0c979f1&lt;/STRONG&gt;" to request information from the OVC REST API:&lt;BR /&gt;&lt;STRONG&gt;curl -k -X GET -H "Authorization: Bearer 42630e4f-211d-444c-b332-b4fcd0c979f1" -H "Accept: application/json" "&lt;A href="https://xx.xx.xx.xx/api/hosts?show_optional_fields=false&amp;amp;limit=500&amp;amp;offset=0&amp;amp;case=sensitive" target="_blank" rel="noopener"&gt;https://xx.xx.xx.xx/api/hosts?show_optional_fields=false&amp;amp;limit=500&amp;amp;offset=0&amp;amp;case=sensitive&lt;/A&gt;"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Results will be displayed.&lt;/P&gt;&lt;P&gt;I am an HPE employee&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 14:31:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-simplivity/problem-about-testing-simplivity-token-api/m-p/7107927#M1902</guid>
      <dc:creator>US_SimpliVity</dc:creator>
      <dc:date>2020-11-05T14:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem about testing Simplivity Token API</title>
      <link>https://community.hpe.com/t5/hpe-simplivity/problem-about-testing-simplivity-token-api/m-p/7107928#M1903</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see issues with the paswword characters, can you redeuce the complexity of password and check the API call.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 14:28:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-simplivity/problem-about-testing-simplivity-token-api/m-p/7107928#M1903</guid>
      <dc:creator>Shivam1</dc:creator>
      <dc:date>2020-11-05T14:28:42Z</dc:date>
    </item>
  </channel>
</rss>

