<?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: no active session when sending API request in SmartZone and Virtual SmartZone</title>
    <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/no-active-session-when-sending-API-request/m-p/16028#M876</link>
    <description>When you submit your first  POST you will get a JSESSION Cookie ID. Add that that to your second (and any subsequent) API call(s) payload and you should get authenticated.</description>
    <pubDate>Tue, 09 Jul 2019 20:17:51 GMT</pubDate>
    <dc:creator>lawrence_smith_</dc:creator>
    <dc:date>2019-07-09T20:17:51Z</dc:date>
    <item>
      <title>no active session when sending API request</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/no-active-session-when-sending-API-request/m-p/16027#M875</link>
      <description>Hi,&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;according to documentation the logon require 2 request (which i am able to run successfully)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;curl -k -X POST&amp;nbsp; &lt;A alt="" href="https://my-ip/wsg/api/public/v8_1/session" name="" rel="nofollow" target="" title="Link httpsRuckSZdom31labforescoutcom8443wsgapipublicv8_1session" type="" value=""&gt;https://my-ip/wsg/api/public/v8_1/session&lt;/A&gt; --data '{"username":"admin","password":"password"}' -H 'Content-type: application/json'&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;this returns only version which has no use.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;the 2nd request is the serviceticket -&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;curl -k -X POST&amp;nbsp; &lt;A alt="" href="https://my-ip/wsg/api/public/v8_1/serviceTicket" name="" rel="nofollow" target="" title="Link httpsRuckSZdom31labforescoutcom8443wsgapipublicv8_1serviceTicket" type="" value=""&gt;https://my-ip/wsg/api/public/v8_1/serviceTicket&lt;/A&gt; --data '{"username":"admin","password":"password"}' -H 'Content-type: application/json' - this return a string&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;now the request i am trying to run is&amp;nbsp;&lt;CODE alt="" name="" rel="" target="" title="" type="" value=""&gt;/v8_1/aps - to get the list of aps&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;according to documentation i need a session ID instead of the user password i dont seem to find session ID in the 2 request above, i tried using the service ticket instead of the session ID without success obviously,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;any ideas how to get it done or what i am missing? thanks.&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;</description>
      <pubDate>Tue, 09 Jul 2019 15:34:07 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/no-active-session-when-sending-API-request/m-p/16027#M875</guid>
      <dc:creator>tomer_iyar</dc:creator>
      <dc:date>2019-07-09T15:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: no active session when sending API request</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/no-active-session-when-sending-API-request/m-p/16028#M876</link>
      <description>When you submit your first  POST you will get a JSESSION Cookie ID. Add that that to your second (and any subsequent) API call(s) payload and you should get authenticated.</description>
      <pubDate>Tue, 09 Jul 2019 20:17:51 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/no-active-session-when-sending-API-request/m-p/16028#M876</guid>
      <dc:creator>lawrence_smith_</dc:creator>
      <dc:date>2019-07-09T20:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: no active session when sending API request</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/no-active-session-when-sending-API-request/m-p/16029#M877</link>
      <description>Hi Lawrence,&lt;BR /&gt;thanks for replying but when i run the first post-&lt;BR /&gt;[root@ct82-0108 ~]# curl -k -X POST&amp;nbsp;&amp;nbsp;&lt;A alt="" href="https://my-ip/wsg/api/public/v8_1/session" name="" rel="nofollow" target="" title="Link httpsRuckSZdom31labforescoutcom8443wsgapipublicv8_1session" type="" value=""&gt;https://my-ip/wsg/api/public/v8_1/session&lt;/A&gt;&amp;nbsp;--data '{"username":"admin","password":"my-password"}' -H 'Content-type: application/json'&amp;nbsp;&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;this is the response i get-&amp;nbsp;{"controllerVersion":"5.1.1.0.598"}&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;i dont see any JSESSION ID.&lt;BR /&gt;&lt;BR /&gt;thanks.</description>
      <pubDate>Wed, 10 Jul 2019 08:24:35 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/no-active-session-when-sending-API-request/m-p/16029#M877</guid>
      <dc:creator>tomer_iyar</dc:creator>
      <dc:date>2019-07-10T08:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: no active session when sending API request</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/no-active-session-when-sending-API-request/m-p/16030#M878</link>
      <description>Oh, yes - you need to add the "-i" option to the curl to see the cookie.</description>
      <pubDate>Wed, 10 Jul 2019 08:55:28 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/no-active-session-when-sending-API-request/m-p/16030#M878</guid>
      <dc:creator>lawrence_smith_</dc:creator>
      <dc:date>2019-07-10T08:55:28Z</dc:date>
    </item>
  </channel>
</rss>

