<?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 Not able to use rest endpoints of cloudbreak to do stack list on localhost in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-use-rest-endpoints-of-cloudbreak-to-do-stack/m-p/106172#M54485</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I am trying to understand REST Api for cloudbreak and I am trying to list stacks I created on cloudbreak using the API call. But it always giving me 404 not found.&lt;/P&gt;&lt;P&gt;This is how I get the token (ref: &lt;A href="https://community.hortonworks.com/questions/26536/cloudbreak-rest-api-usage.html):" target="_blank"&gt;https://community.hortonworks.com/questions/26536/cloudbreak-rest-api-usage.html):&lt;/A&gt; &lt;/P&gt;&lt;P&gt;curl -iX POST -H "accept: application/x-www-form-urlencoded" -d 'credentials={"username":"admin@example.com","password":"cloudbreak"}' "http://localhost:8089/oauth/authorize?response_type=&lt;STRONG&gt;token&lt;/STRONG&gt;&amp;amp;client_id=cloudbreak_shell&amp;amp;scope.0=openid&amp;amp;source=login&amp;amp;redirect_uri=http://cloudbreak.shell" &lt;/P&gt;&lt;P&gt;Once I have token I am trying to get list of stacks as &lt;/P&gt;&lt;P&gt;curl -vvv -X GET -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" &lt;A href="http://localhost:8080/api/v1/stacks/3" target="_blank"&gt;http://localhost:8080/api/v1/stacks/3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;* About to connect() to localhost port 8080 (#0)&lt;/P&gt;&lt;P&gt;*   Trying ::1...&lt;/P&gt;&lt;P&gt;* Connected to localhost (::1) port 8080 (#0)&lt;/P&gt;&lt;P&gt;&amp;gt; GET /api/v1/stacks/3 HTTP/1.1&l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.1 404 Not Found&lt;/P&gt;&lt;P&gt;&amp;lt; Server: Apache-Coyote/1.1&lt;/P&gt;&lt;P&gt;&amp;lt; Content-Length: 0&lt;/P&gt;&lt;P&gt;&amp;lt; Date: Wed, 15 Feb 2017 00:51:22 GMT&lt;/P&gt;&lt;P&gt;&amp;lt; &lt;/P&gt;&lt;P&gt;* Connection #0 to host localhost left intact&lt;/P&gt;&lt;P&gt;from shell I can see the stack as&lt;/P&gt;&lt;P&gt;cloudbreak-shell&amp;gt;stack list&lt;/P&gt;&lt;P&gt;  ID  INFO&lt;/P&gt;&lt;P&gt;  --  -----------&lt;/P&gt;&lt;P&gt;  3   cloudbreak2&lt;/P&gt;&lt;P&gt;Any Pointers on this will be really helpful.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Atul Aggarwal&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2017 08:54:51 GMT</pubDate>
    <dc:creator>atul_aggarwal19</dc:creator>
    <dc:date>2017-02-15T08:54:51Z</dc:date>
    <item>
      <title>Not able to use rest endpoints of cloudbreak to do stack list on localhost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-use-rest-endpoints-of-cloudbreak-to-do-stack/m-p/106172#M54485</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I am trying to understand REST Api for cloudbreak and I am trying to list stacks I created on cloudbreak using the API call. But it always giving me 404 not found.&lt;/P&gt;&lt;P&gt;This is how I get the token (ref: &lt;A href="https://community.hortonworks.com/questions/26536/cloudbreak-rest-api-usage.html):" target="_blank"&gt;https://community.hortonworks.com/questions/26536/cloudbreak-rest-api-usage.html):&lt;/A&gt; &lt;/P&gt;&lt;P&gt;curl -iX POST -H "accept: application/x-www-form-urlencoded" -d 'credentials={"username":"admin@example.com","password":"cloudbreak"}' "http://localhost:8089/oauth/authorize?response_type=&lt;STRONG&gt;token&lt;/STRONG&gt;&amp;amp;client_id=cloudbreak_shell&amp;amp;scope.0=openid&amp;amp;source=login&amp;amp;redirect_uri=http://cloudbreak.shell" &lt;/P&gt;&lt;P&gt;Once I have token I am trying to get list of stacks as &lt;/P&gt;&lt;P&gt;curl -vvv -X GET -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" &lt;A href="http://localhost:8080/api/v1/stacks/3" target="_blank"&gt;http://localhost:8080/api/v1/stacks/3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;* About to connect() to localhost port 8080 (#0)&lt;/P&gt;&lt;P&gt;*   Trying ::1...&lt;/P&gt;&lt;P&gt;* Connected to localhost (::1) port 8080 (#0)&lt;/P&gt;&lt;P&gt;&amp;gt; GET /api/v1/stacks/3 HTTP/1.1&lt;/P&gt;&lt;P&gt;&amp;gt; User-Agent: curl/7.29.0&lt;/P&gt;&lt;P&gt;&amp;gt; Host: localhost:8080&lt;/P&gt;&lt;P&gt;&amp;gt; Accept: */*&lt;/P&gt;&lt;P&gt;&amp;gt; Authorization: Bearer eyJhbGciOiJIUzI1NiIsImtpZCI6ImxlZ2FjeS10b2tlbi1rZXkiLCJ0eXAiOiJKV1QifQ.eyJqdGkiOiJhMDRiZmYyOWY0YzQ0NGYzYWFlNGNlNjI2NzYyMjBiNCIsInN1YiI6ImIxMzk1NDU3LWNlYjYtNDZlMC1hOWZlLTU2NGE3NTU0N2RhMSIsInNjb3BlIjpbImNsb3VkYnJlYWsubmV0d29ya3MucmVhZCIsImNsb3VkYnJlYWsudXNhZ2VzLnVzZXIiLCJjbG91ZGJyZWFrLnJlY2lwZXMiLCJjbG91ZGJyZWFrLnVzYWdlcy5nbG9iYWwiLCJvcGVuaWQiLCJjbG91ZGJyZWFrLnBsYXRmb3JtcyIsImNsb3VkYnJlYWsudGVtcGxhdGVzLnJlYWQiLCJwYXNzd29yZC53cml0ZSIsImNsb3VkYnJlYWsudXNhZ2VzLmFjY291bnQiLCJjbG91ZGJyZWFrLnN0YWNrcy5yZWFkIiwiY2xvdWRicmVhay5ldmVudHMiLCJjbG91ZGJy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IsImNsb3VkYnJlYWsudGVtcGxhdGVzIiwiY2xvdWRicmVhay5uZXR3b3JrcyIsImNsb3VkYnJlYWsuc3NzZGNvbmZpZ3MiLCJjbG91ZGJyZWFrLnVzYWdlcyIsImNsb3VkYnJlYWsuc2VjdXJpdHlncm91cHMiLCJjbG91ZGJyZWFrLnN0YWNrcyIsImNsb3VkYnJlYWsuY3JlZGVudGlhbHMiXX0.ZH_ejvtJZZ21QqbJrByrfggozhOOBh3LxfPxbtC_iuM&amp;amp;expires_in&lt;/P&gt;&lt;P&gt;&amp;gt; Content-Type: application/json&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt; HTTP/1.1 404 Not Found&lt;/P&gt;&lt;P&gt;&amp;lt; Server: Apache-Coyote/1.1&lt;/P&gt;&lt;P&gt;&amp;lt; Content-Length: 0&lt;/P&gt;&lt;P&gt;&amp;lt; Date: Wed, 15 Feb 2017 00:51:22 GMT&lt;/P&gt;&lt;P&gt;&amp;lt; &lt;/P&gt;&lt;P&gt;* Connection #0 to host localhost left intact&lt;/P&gt;&lt;P&gt;from shell I can see the stack as&lt;/P&gt;&lt;P&gt;cloudbreak-shell&amp;gt;stack list&lt;/P&gt;&lt;P&gt;  ID  INFO&lt;/P&gt;&lt;P&gt;  --  -----------&lt;/P&gt;&lt;P&gt;  3   cloudbreak2&lt;/P&gt;&lt;P&gt;Any Pointers on this will be really helpful.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Atul Aggarwal&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 08:54:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-use-rest-endpoints-of-cloudbreak-to-do-stack/m-p/106172#M54485</guid>
      <dc:creator>atul_aggarwal19</dc:creator>
      <dc:date>2017-02-15T08:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to use rest endpoints of cloudbreak to do stack list on localhost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-use-rest-endpoints-of-cloudbreak-to-do-stack/m-p/106173#M54486</link>
      <description>&lt;P&gt;I think the root has been changed can you try with: cb/api/v1/stacks/3 instead of /api/v1/stacks/3.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:03:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-use-rest-endpoints-of-cloudbreak-to-do-stack/m-p/106173#M54486</guid>
      <dc:creator>Krisz</dc:creator>
      <dc:date>2017-02-15T20:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to use rest endpoints of cloudbreak to do stack list on localhost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-use-rest-endpoints-of-cloudbreak-to-do-stack/m-p/106174#M54487</link>
      <description>&lt;P&gt;Woohoo! thanks &lt;A href="https://community.hortonworks.com/questions/83582/not-able-to-use-rest-endpoints-of-cloudbreak-to-do.html#"&gt;@khorvath&lt;/A&gt;!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 01:54:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-use-rest-endpoints-of-cloudbreak-to-do-stack/m-p/106174#M54487</guid>
      <dc:creator>atul_aggarwal19</dc:creator>
      <dc:date>2017-02-16T01:54:45Z</dc:date>
    </item>
  </channel>
</rss>

