<?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>question Is it possible to generate a Knox token pro-grammatically? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-generate-a-Knox-token-pro-grammatically/m-p/414081#M254460</link>
    <description>&lt;P&gt;I can get a Knox token from the Web UI in CDP Private Cloud, but is it possible to get it from the API without having to use the Web UI?&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2026 13:37:35 GMT</pubDate>
    <dc:creator>NovSeek</dc:creator>
    <dc:date>2026-05-14T13:37:35Z</dc:date>
    <item>
      <title>Is it possible to generate a Knox token pro-grammatically?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-generate-a-Knox-token-pro-grammatically/m-p/414081#M254460</link>
      <description>&lt;P&gt;I can get a Knox token from the Web UI in CDP Private Cloud, but is it possible to get it from the API without having to use the Web UI?&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 13:37:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-generate-a-Knox-token-pro-grammatically/m-p/414081#M254460</guid>
      <dc:creator>NovSeek</dc:creator>
      <dc:date>2026-05-14T13:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to generate a Knox token pro-grammatically?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-generate-a-Knox-token-pro-grammatically/m-p/414083#M254577</link>
      <description>&lt;P&gt;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Knox experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68134"&gt;@niparmar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35149"&gt;@Scharan&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 19:15:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-generate-a-Knox-token-pro-grammatically/m-p/414083#M254577</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2026-05-14T19:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to generate a Knox token pro-grammatically?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-generate-a-Knox-token-pro-grammatically/m-p/414085#M254579</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/146415"&gt;@NovSeek&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try follwoing&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;curl -k -c cookies3.txt -L -u knox_user:knoxpass &lt;A href="https://ccycloud-1.nightly-cm-my.root.comops.site:8443/gateway/homepage/knoxtoken/api/v1/token" target="_blank"&gt;https://ccycloud-1.nightly-cm-my.root.comops.site:8443/gateway/homepage/knoxtoken/api/v1/token&lt;/A&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;| jq -r '.access_token' &amp;gt; knox-access-token.txt&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; Knox token will be stored in&amp;nbsp;knox-access-token.txt&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;[root@ccycloud-1.nightly-cm-my.root.comops.site ~]# curl -ku Token:eyJqa3UiOiJodH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://ccycloud-1.nightly-cm-my.root.comops.site:8443/gateway/cdp-proxy-token/webhdfs/v1?op=LISTSTATUS&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;{"FileStatuses":{"FileStatus":[{"accessTime":0,"blockSize":0,"childrenNum":12,"fileId":16415,"group":"hbase","length":0,"modificationTime":1778772940944,"owner":"hbase","pathSuffix":"hbase","permission":"755","replication":0,"storagePolicy":0,"type":"DIRECTORY"},{"accessTime":0,"blockSize":0,"childrenNum":1,"fileId":16386,"group":"supergroup","length":0,"modificationTime":1778513008087,"owner":"hdfs","pathSuffix":"ranger","permission":"755","replication":0,"storagePolicy":0,"type":"DIRECTORY"},{"accessTime":0,"blockSize":0,"childrenNum":0,"fileId":16417,"group":"solr","length":0,"modificationTime":1778513048696,"owner":"solr","pathSuffix":"solr-infra","permission":"775","replication":0,"storagePolicy":0,"type":"DIRECTORY"},{"accessTime":0,"blockSize":0,"childrenNum":3,"fileId":16412,"group":"supergroup","length":0,"modificationTime":1778516233701,"owner":"hdfs","pathSuffix":"tmp","permission":"1777","replication":0,"storagePolicy":0,"type":"DIRECTORY"},{"accessTime":0,"blockSize":0,"childrenNum":13,"fileId":16394,"group":"supergroup","length":0,"modificationTime":1778578527265,"owner":"hdfs","pathSuffix":"user","permission":"755","replication":0,"storagePolicy":0,"type":"DIRECTORY"},{"accessTime":0,"blockSize":0,"childrenNum":1,"fileId":16399,"group":"supergroup","length":0,"modificationTime":1778513044819,"owner":"hdfs","pathSuffix":"warehouse","permission":"755","replication":0,"storagePolicy":0,"type":"DIRECTORY"},{"accessTime":0,"blockSize":0,"childrenNum":1,"fileId":16407,"group":"supergroup","length":0,"modificationTime":1778513047786,"owner":"hdfs","pathSuffix":"yarn","permission":"755","replication":0,"storagePolicy":0,"type":"DIRECTORY"}]}}[root@ccycloud-1.nightly-cm-my.root.comops.site ~]# &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2026 01:33:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-generate-a-Knox-token-pro-grammatically/m-p/414085#M254579</guid>
      <dc:creator>vamsi_redd</dc:creator>
      <dc:date>2026-05-15T01:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to generate a Knox token pro-grammatically?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-generate-a-Knox-token-pro-grammatically/m-p/414086#M254580</link>
      <description>&lt;P&gt;Thanks for the reply. That is valid but not quite what I want to do. I am trying to do it without having the cookie.txt file. I think I need to set up an additional topology that has basic/ldap auth and use that to generate the Knox token.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2026 07:40:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-generate-a-Knox-token-pro-grammatically/m-p/414086#M254580</guid>
      <dc:creator>NovSeek</dc:creator>
      <dc:date>2026-05-15T07:40:51Z</dc:date>
    </item>
  </channel>
</rss>

