<?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 Need help on example access token generation for SnapDiff API v3 in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Need-help-on-example-access-token-generation-for-SnapDiff-API-v3/m-p/441655#M433</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;We are just starting an effort to convert some code to SnapDiff v3 and REST.&lt;/P&gt;&lt;P&gt;We've received the SnapDiff v3 documentation, and also an activation key from our Netapp partner manager.&lt;/P&gt;&lt;P&gt;We are having trouble getting a basic example working from the documentation. I think we either have a bad key, or maybe doing something wrong with the initial access-token submission.&amp;nbsp; We are following the directions in section 3 of the doc, attempting to use the REST API &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;/api/cluster/licensing/access&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;tokens&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;.&amp;nbsp; I am issuing something similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -ku name:password -X POST \&lt;BR /&gt;"&lt;A href="https://1.2.3.4/api/cluster/licensing/access_tokens?return_timeout=0" target="_blank" rel="noopener"&gt;https://1.2.3.4/api/cluster/licensing/access_tokens?return_timeout=0&lt;/A&gt;" \&lt;BR /&gt;-H "accept:application/json" \&lt;BR /&gt;-d '{"grant_type":"client_credentials","client_id":"software","client_secret":"&amp;lt;base64encoded value&amp;gt;"}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &amp;lt;base64encoded value&amp;gt; I'm using was the "Signature" JSON field of the key file supplied to us.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get back a rather nebulous message:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"message": "Internal error. Failed to create access token.",&lt;BR /&gt;"code": "1115544"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on what might be going wrong ... or am I using an incorrect value for the client_secret?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 09:53:03 GMT</pubDate>
    <dc:creator>jamesNJ</dc:creator>
    <dc:date>2025-06-04T09:53:03Z</dc:date>
    <item>
      <title>Need help on example access token generation for SnapDiff API v3</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Need-help-on-example-access-token-generation-for-SnapDiff-API-v3/m-p/441655#M433</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;We are just starting an effort to convert some code to SnapDiff v3 and REST.&lt;/P&gt;&lt;P&gt;We've received the SnapDiff v3 documentation, and also an activation key from our Netapp partner manager.&lt;/P&gt;&lt;P&gt;We are having trouble getting a basic example working from the documentation. I think we either have a bad key, or maybe doing something wrong with the initial access-token submission.&amp;nbsp; We are following the directions in section 3 of the doc, attempting to use the REST API &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;/api/cluster/licensing/access&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;tokens&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;.&amp;nbsp; I am issuing something similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -ku name:password -X POST \&lt;BR /&gt;"&lt;A href="https://1.2.3.4/api/cluster/licensing/access_tokens?return_timeout=0" target="_blank" rel="noopener"&gt;https://1.2.3.4/api/cluster/licensing/access_tokens?return_timeout=0&lt;/A&gt;" \&lt;BR /&gt;-H "accept:application/json" \&lt;BR /&gt;-d '{"grant_type":"client_credentials","client_id":"software","client_secret":"&amp;lt;base64encoded value&amp;gt;"}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &amp;lt;base64encoded value&amp;gt; I'm using was the "Signature" JSON field of the key file supplied to us.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get back a rather nebulous message:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"message": "Internal error. Failed to create access token.",&lt;BR /&gt;"code": "1115544"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on what might be going wrong ... or am I using an incorrect value for the client_secret?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:53:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Need-help-on-example-access-token-generation-for-SnapDiff-API-v3/m-p/441655#M433</guid>
      <dc:creator>jamesNJ</dc:creator>
      <dc:date>2025-06-04T09:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on example access token generation for SnapDiff API v3</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Need-help-on-example-access-token-generation-for-SnapDiff-API-v3/m-p/441657#M434</link>
      <description>&lt;P&gt;Hi there, this is not my area, but I did some digging. It looks like for the client_secret, it is the specification of the client details and the signature, encoded into base64.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Decoded it will begin something like:&lt;BR /&gt;{"statusResp":{"contract_id":"123456","isv_long_name":"test&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So try encoding the entire JSON file with base64 and using that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know how it goes.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 05:56:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Need-help-on-example-access-token-generation-for-SnapDiff-API-v3/m-p/441657#M434</guid>
      <dc:creator>AlexDawson</dc:creator>
      <dc:date>2023-02-15T05:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on example access token generation for SnapDiff API v3</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Need-help-on-example-access-token-generation-for-SnapDiff-API-v3/m-p/441665#M435</link>
      <description>&lt;P&gt;We had bee struggling on this for more than week ... turned out the key generation was bad. I got a new key this morning, and the example code works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response, I appreciate it.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 13:21:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Need-help-on-example-access-token-generation-for-SnapDiff-API-v3/m-p/441665#M435</guid>
      <dc:creator>jamesNJ</dc:creator>
      <dc:date>2023-02-15T13:21:33Z</dc:date>
    </item>
  </channel>
</rss>

